Well, take a look at the Wicket Guide to review how converters work:
* 11.3 Input value conversion
  http://wicket.apache.org/guide/guide/single.html#chapter11_3

Did you remember to override the convertToString() method?

Second, why not use a form component panel in this case?
* 11.8 Creating complex form components with FormComponentPanel
  http://wicket.apache.org/guide/guide/chapter11.html#chapter11_8

And finally, don't expect your users to return to the previous page via a
button click. They will use your browser's back button or some other key
stroke shortcut that will mess up your workflow.

~ Thank you,
  Paul Bors

-----Original Message-----
From: dgn [mailto:david_nei...@hms.harvard.edu] 
Sent: Tuesday, October 15, 2013 2:45 PM
To: users@wicket.apache.org
Subject: Modifying model output to TextArea

I'm stumped in how to modify model output for redisplay on a web page after
confirmation.

I have a TextArea<List&lt;InternetAddress>> that gets added to a form. On
submission I have a custom converter that work fine to transform the input
into a model object with the same type of member.

After form submit there is a confirmation page on which the user can either
submit or return to the previous page containing the form. (The previous
page is passed to the confirmation page so the 'return' button onSubmit()
contains setResponsePage(previousPage). When the previous page re-renders
all the data of the form is there except the List of email address is
surrounded by brackets: [ema...@somedomain.com, ema...@somedomain.com].

This is understandable since the corresponding model is a List and a
List.toString() displays its contents with brackets. Is there a Wicket way I
can modify the rendering of this TextArea to remove these brackets? Or,
would it be simpler to just modify the toString() of the List?



--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Modifying-model-output-to-TextAre
a-tp4661830.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to