On Wed, Nov 12, 2008 at 7:35 AM, Antoine <[EMAIL PROTECTED]> wrote:
>
> I'm looking for feed back on any experience you might have in that
> area: dynamic UI over several modules. If you have interesting reading/
> link/libraries that can help me that would be terrific too. Also, I'm
> open to any other solution that might fill our need of modular
> application.
Hmm.. dynamic UI or several modules ... is this a false dichotomy?
I'm working on a forms package that generates a client UI dynamically.
Here's an example:
public class DemoForm extends Form {
public DemoForm() {
setTitle("Demo Form");
}
@FormField(label = "Name", required = true, order = 1)
@CharField(maxLength = 50)
private String name;
@FormField(label = "Address 1", order = 2)
@CharField(maxLength = 50)
private String address1;
@FormField(label = "Address 2", order = 3)
@CharField(maxLength = 50)
private String address2;
@FormField(label = "E-mail", order = 4, required = true)
@EmailField()
private String email;
@FormField(label = "Verify E-mail", order = 5, required = true)
@EmailField()
private String verifyEmail;
@FormField(label = "Phone", required = true, order = 6)
@PhoneField()
private String phone;
@FormField(label = "Phone 2", order = 7)
@PhoneField()
private String phone2;
@FormField(label = "A Date", order = 8)
@DateField()
private String date;
}
You can probably see where this is going. The first issue I ran into
was how to make these annotations (or something that represents them)
available to the client side of the application. I guess my choices
are
1- Generators to process annotations during compile to JS
2- Process the annotations on the server side, and pass a POJO that
represents the form to some client side form rendering routine.
I opted for #2. I imagine you face a pretty similar issue.
-Dave
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---