Hi all,
In the parameters reference wiki page:
http://code.google.com/p/wicket-web-beans/wiki/ParameterReference
we can see the description of the standard property parameter
"defaultValue".
Now, on the enumerated types wiki page:
http://code.google.com/p/wicket-web-beans/wiki/EnumeratedTypes
we see this example:
# Enum Bean Example
Customer {
cols: 1;
props:
firstName, lastName,
customerType{default: Government};
}
Here, .beanprops file is configuring the enum property
CustomerType with the parameter "default". This actually works
with .beanprops files because the EnumField is consuming that
parameter (EnumField.java, line 156):
String defaultChoice =
getElementMetaData().getParameter("default");
Now if you attempt to configure that same field with a
defaultValue parameter in a Property annotation or a JProperty
declaration, it won't work, which is precisely the problem described
in Issue 3:
http://code.google.com/p/wicket-web-beans/issues/detail?id=3
To fix this issue the consumed parameter in EnumField must be
corrected, this also implies fixing two examples (Enums and
CustomFields) and also fixing the EnumeratedTypes wiki page.
This can also possibly break existing apps that are currently
configured using the "default" parameter in the .beanprops file,
that's why I ask before committing.
Should I proceed ?
Daniel