below is a suggestion by me on how to handle repeating components created by javascript, especially for the case where several fields are involved.
would love to get a comment on it thanks, ittay Ittay Dror wrote: > > > i think this can be solved inside wicket quite easily: > * FormComponent.getInputAsArray uses > 'getRequest().getParameters(getInputName())'. instead, it would be > 'getParent().getRequestParameters(this, getInputName())', > * the default implementation of getRequestParameters(Component, String) in > Component will be getRequest().getParameters(getInputName()) > * In the above case, when creating a ListView, use a subclass that > modifies getRequestParameters() so it returns the parameters from the nth > occurrence of the parameters (the nth 'atext=xx&acb=yy' segment) > > then, form components can be used as they are. > > ittay > -- View this message in context: http://www.nabble.com/dynamically-%28client%29-created-form-components-tf3325801.html#a9332092 Sent from the Wicket - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- 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
