Hi all,
I have a use case that I think should be quite common: I have several category type properties in my domain classes that generally should be selected from a predefined set but some times it need a custom value that doesn't fit the predefined ones. Is there a nice/recommended way of doing this? For example, lets say I have a domain class Address with a property Country. Normally all available countries would be selectable. But to be safe, I want to give users the chance to insert one. So, in the Address edit page, the user selects "Other" in the selection box and a text field shows where he can insert the unlisted country.
Some time back I asked the following question:
> - I need to fill-in an incremental invoice number. It should be editable for
> flexibility, but when creating a new invoice it should be initialized to the
> current invoice number. How can I set the initial value for a new invoice?
And Alejandro's answer was:
There is a builder pattern implementation. But I just realize that
in Trails 1.2.x there is no way to contribute your builder
(org.trails.builder.Builder) to the builder director. Take a look at
it (org.trails.builder.BuilderDirector), if that is what you need I
can quickly fix it to allow contributions to the map.
I don't really understand how to use it.