On Tue, Jun 3, 2008 at 9:38 PM, FastGorilla <[EMAIL PROTECTED]> wrote:
>
> I have knowledgde of Servlets, JSP and JSF, and reading a bit about Wicket.
>
> Something that turns me immediately off is that you have to use something
> like
> add(new Label("firstName", person.getName()));
> add(new Label("lastName", person.getName()));
> add(new Label("address", person.getAdress()));
> add(new Label("postalcode", person.getPostalcode()));
> etc....
> to send data to the view. Which is a lot of hardcoded duplicated property
> mapping code.
>
> Isn't it possible to just send the whole person object to the view, just
> like in JSP, JSF, Facelets? Instead of manally putting all person bean using
> the add-method.

Yes - the part that you're missing is the Modal usage in Wicket and
particulalry, the way that components can work their way up their
hierarchy.  See
http://cwiki.apache.org/WICKET/working-with-wicket-models.html#WorkingwithWicketmodels-CompoundPropertyModels,
for example.

/Gwyn

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to