-----BEGIN PGP SIGNED MESSAGE----- Hash: RIPEMD160 Actually I just did this at work but I used fragments rather than panels. We just need a simpler datatype->html widget look up so I just went with fragments so that I don't need to build a bunch of java class and html files. The fragments are named according to the type they represent so I can simply say :
Fragment f = new Fragment("item", typeName); f.add(new TextField(...)); etc. There are, of course, some if checks to determine which component to add to f but this makes it pretty easy to add new widgets. Now if we ever need to start adding some very complex components I might move over to using panels. But for our simple form builder, the fragments work just fine. Eelco Hillenius wrote: >> Hello, I've been following the discussions here, and this one caught my eye. >> Does this mean that Wicket is ill suited for example for creating dynamic >> forms that are built dynamically at runtime after reading some page >> definition file from xml or some other data store. I havent looked into >> Wicket deeply, I just skimmed the surface, but I'm currently thinking about >> converting a Struts solution that builds forms based on form metadata stored >> in xml files. In my case, almost all jsp's have the same layout, and only >> differ in the form fields shown. > > On the contrairy, Wicket is very well suited for that. Panels is the magic > word. > > Eelco > > ------------------------------------------------------------------------- > Take Surveys. Earn Cash. Influence the Future of IT > Join SourceForge.net's Techsay panel and you'll get the chance to share your > opinions on IT & business topics through brief surveys-and earn cash > http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV > _______________________________________________ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user - -- Justin Lee http://www.antwerkz.com AIM : evan chooly Skype : evanchooly -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.2.1 (Cygwin) iD8DBQFGGiTLJnQfEGuJ90MRA+GxAKCqEmm3J1/k2O4xGD4x+7Q/Tw6PaQCdHyyh 5RWxlT4OYskq9NivC3mpa5Y= =5LJx -----END PGP SIGNATURE----- ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys-and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user