Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.help > #1892

Generate forms from a model?

From m.skrzetuski@gmail.com
Newsgroups comp.lang.java.help
Subject Generate forms from a model?
Date 2012-06-22 03:06 -0700
Organization http://groups.google.com
Message-ID <bf8d0c7a-a900-47ad-a4ec-5f3062017dfe@googlegroups.com> (permalink)

Show all headers | View raw


Hi there,

is it possible to generate forms from models in Java? Suppose I have the following model.

someInformation|dataType:Integer|possibleValues:1,2,3
someOtherInformation|dataType:String|maxLength:50
someBooleanInformation|lables:Yes,No
...

Is there some library out there that would generate a form from the model in the following way?

--> from someInformation line generate a JList with my possible values and validate the input on pushing submit
--> from someOtherInformation generate JTextField that is 50 chars long and validate the input on pushing submit
--> from someBooleanInformation generate JOptionPanes wit Yes and NO and validate the input on pushing submit
--> etc.

So is there any library for such dynamic form generation and validation?

Kind regards
Maciej

Back to comp.lang.java.help | Previous | NextNext in thread | Find similar | Unroll thread


Thread

Generate forms from a model? m.skrzetuski@gmail.com - 2012-06-22 03:06 -0700
  Re: Generate forms from a model? Roedy Green <see_website@mindprod.com.invalid> - 2012-06-22 05:22 -0700
  Re: Generate forms from a model? markspace <-@.> - 2012-06-24 09:43 -0700

csiph-web