Hello Alessandro, I doubt you are going to find much more off the shelf to solve the use case you have.
If I had similar spec to you (complicated interactive registration that needs to happen on the client) then GWT seems like a good fit. Depends a bit how often your registration fields and rules change. If it is not very often then expressing them in Java (compiled to JavaScript) seems much the best way. Then you can write unit tests and use Java tooling... I've written the other extreme (UI to add fields, config validation...) and it is a big task. Either way GWT should make it easy to encapsulate the building blocks you need. e.g. TextBoxQuestionWidget that has a label, hint field, mandatory and fires off events to hide/unhide other sections. Hmmm. Not sure that was very helpful. Sam On Aug 3, 12:36 pm, "A.Augustini" <[email protected]> wrote: > Currently learning GWT, and I still cannot imagine how to build a > *rule-based* controller for a dynamically composed form -- preferably > a multipage one, and -- due to GWT concepts -- obviously running on > the client side in JavaScript. > > The idea is to have a multi-sections/multi-tabs registration form > that: > (a) shows its questions according to "question specs" from a > backend database, > (b) gives the users instant input validation feedback via locally > centralized validation rules base, > (c) controls the "questionary behaviour" after some locally > centralized "fill out" rules, e.g., > > * "When user fills out InputField A, hide section/tab C". > * "When user checks CheckBox B, also check boxes Y > and Z automatically". > * "When user selects D,E and F then show {widget} G". > * ... > > (d) finally submits all the collected data (from each form page/tab) > to a server-side service (i.e. 'submit' button triggers RPC). > > The main point is to optimally have all the validation, filter, > action/ > behaviour, etc. rules centralized at one place -- hence the rule-based > approach. > > The main issues are: > 1. Which way to go for realizing such a "JavaScript Rule Engine" > solution in GWT? > > 2. Does there already exist a GWT framework or Composite targeting > *rule-based* form controllers for the client side? > > Hope some more experienced GWT programmers can help me further on > this topic. > > Kindly regards, > Alessandro -- 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.
