> 1) How can I use a compound property model without naming the nested > form components with their full path (ie. 'birthDate.year' instead of > simply 'year'). > > 2) If I add a validator to the form component panel (for panel level > validation), can I assume that the nested component models will be > already bound when the validator is triggered, or at least that > getConvertedInput() will work on them?
As you're looking at the date-time components, the answer to both questions is that clients of those components should consider it implementation details. Like FormComponentPanel says, it doesn't typically get any input itself. The nested components really are for recording intermediate input, which is applied to the model of the panel when updateModel is called, and as you can see, the internal state is synchronized in onAttach. I believe you should design such compound components like black boxes, which from a user's perspective behave like normal form components (they work on one model, and you only have to know it's public API). 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 [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
