« Return to Thread: Wicket RAD and JTA

Re: Wicket RAD and JTA

by wfaler :: Rate this Message:

Reply to Author | View in Thread

Hi,
Assuming you are using the bean-based approach here (as there are no others implemented yet :D ):

The textlabels for form components and table headers follow Wicket's localization model, but with the key being the fully qualified name of the field, for instance:
the property "name" in the class com.myorg.MyBean would be:
com.myorg.MyBean.name=This is the form label for Name

You can put this in a properties file either corresponding to the page the component is in, or the application.properties, for instance:
MyPage.properties or MyApplication.properties

For tables, you use the annotations in org.wicketrad.propertytable.annotation, you can use @LabelProperty to just display a property on a row, @BookmarkableLinkProperty to create a link that is bookmarkable and so on.
The ordering of columns follows the same rules as for forms, either using the @Order annotation, or failing that, the alphabetical order of fields.

Hope that helps!

 « Return to Thread: Wicket RAD and JTA