wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dgn <david_nei...@hms.harvard.edu>
Subject Modifying model output to TextArea
Date Tue, 15 Oct 2013 18:45:13 GMT
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: [email1@somedomain.com, email2@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-TextArea-tp4661830.html
Sent from the Users forum mailing list archive at Nabble.com.

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


Mime
View raw message