I have a page with a ListChoice of user names that is populated with a call to our server (loadUserNames()). The page also contains a number of TextFields corresponding to the user's other attributes. When you modify those text fields so the user name doesn't correspond to anything in the list, the Add AjaxFallbackButton enables. Click this, and you make a call to the server which creates the new user.
The new user does not show up in the ListChoice. If you refresh the page, it does, so we know it's created, and we know that loadUserNames() will return the correct list if it were called and its values were used.. I want the new user name to show up in the ListChoice after submission, and I'd like to be able to set the selection in the ListChoice to the new user. I've tried giving the ListChoice a LoadableDetachableModel, I've tried giving it an ArrayList model with a call to loadUserNames() and setChoices() on the ListChoice after submission, I've tried a AjaxFormComponentUpdatingBehavior( "onsubmit" ), hoping this might fire after submission, I've tried using a call to getRequestCycleSettings().setRenderStrategy(IRequestCycleSettings.ONE_PASS_RENDER) in my application class's init() method, I've tried a ton of things and I can't figure this out. Any ideas? -- View this message in context: http://www.nabble.com/How-to-update-ListChoice-after-form-submission--tp19786374p19786374.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]