Customizing the GWT UI with Spring Roo

How can I customize the GWT user interface that Spring Roo automatically generates?

Should I change the source files created by Roo? If so, would it not be knocked down the next time Roo starts up?

Or do I need to configure something in Roo and then rebuild the GWT sources?

In this particular case, you need to change the width of the columns of the list of domain objects.

+4
source share
3 answers

As far as I know, this is really not possible in Spring Roo. As you rightfully declare, Spring Roo files will be restored by Spring Roo when your objects change. There are some solutions, but all these are just small workarounds and do not offer the real programming experience you expect or want. The Spring Roo team (and the community) have already addressed this issue, although they are working hard to solve this problem. Therefore, expect that this will be improved in the near future. For more information, check out the following links to the Spring Roo Forum and Spring Roo JIRA:

+3
source

Can I humbly suggest a Metawidget ? It generates Spring MVC, GWT, and other interfaces at run time, so there are no regeneration steps (and nothing gets "clobbered") as your objects change.

If you have a chance to try, I will be very grateful for your feedback.

Hello,

Richard.

+1
source

If you want to modify the ui.xml file created by ROO, just rename it and refer to it in the .java file.

For example, you want to modify the PizzaDetailsView.ui.xml file:

Rename it to PizzaDetailsViewPrime.ui.xml Then add this line immediately before the Binder interface declaration:

@UiTemplate ("PizzaDetailsViewPrime.ui.xml")

0
source

All Articles