Auto generating UI

Posted by joshua on Stack Overflow See other posts from Stack Overflow or by joshua
Published on 2010-03-24T12:30:27Z Indexed on 2010/03/24 12:33 UTC
Read the original article Hit count: 335

Filed under:
|

Hi Guys;

I am writting an application that autogenerated the data input UI from a java bean.

Now i have a bean that has other beans as a property. eg User has property username, and usertype of type UserType;

Whats the best strategy in java. Do i loop through the fields in an if else loop? eg. get field list if field is of type text use text field else if field is a number user a number field etc.

is there a shortcut to the ifs?

© Stack Overflow or respective owner

Related posts about auto

Related posts about generate