thx for your reply Gwyn and Igor. That was the info I was looking for.
igor.vaynberg wrote:
>
> no it is not possible. in wicket the view is dumb, it contains no
> knowledge or logic. if, for example, the person has first name and
> last name and you wanted to output a full name you would have to do
> the concatenation in java code, and the view would simply have
> placeholder. in wicket everything is done in
> java, not spread out between controller and view.
>
> that said, if you use a compound property model you can shorten your
> example to:
> add(new label("firstname"));
> add(new label("lastname"));
>
> and in the view
>
>
>
> -igor
>
> On Tue, Jun 3, 2008 at 1: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.
>>
>> --
>> View this message in context:
>> http://www.nabble.com/Bean-properties-from-view--tp17633058p17633058.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]
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>
--
View this message in context:
http://www.nabble.com/Bean-properties-from-view--tp17633058p17634633.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]