You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by nino martinez wael <ni...@gmail.com> on 2010/10/21 09:31:05 UTC
Dropdrown mapping from Object to string?
Hi
I have an dropdown which gets feed a Queue list, I have a custom renderer
which then select the name property as displayvalue. Now the property it's
setting on the backing model are just a string which of course will not take
a queue instance. So should I use a custom converter for this or something
else?
regards Nino
Re: Dropdrown mapping from Object to string?
Posted by nino martinez wael <ni...@gmail.com>.
seems like an idea..I'll try that..
2010/10/21 Igor Vaynberg <ig...@gmail.com>
> do it in the ddc's model
>
> -igor
>
> On Thu, Oct 21, 2010 at 3:14 AM, nino martinez wael
> <ni...@gmail.com> wrote:
> > Thats not the problem... The problem are that the dropdown consists of
> > Queue's and the backing model just are a string so I need to somehow
> convert
> > the string from and to a queue..
> >
> > 2010/10/21 Andrea Del Bene <ad...@ciseonweb.it>
> >
> >> Hi Nino,
> >>
> >> what kind of Model are you using as backing model? You can try nesting
> >> models to extract string property from object
> >> For example: <PropertyModel<Drop down control's model>>
> >> See IChainingModel for further informations.
> >>
> >>
> >> Hi
> >>>
> >>> I have an dropdown which gets feed a Queue list, I have a custom
> renderer
> >>> which then select the name property as displayvalue. Now the property
> it's
> >>> setting on the backing model are just a string which of course will not
> >>> take
> >>> a queue instance. So should I use a custom converter for this or
> something
> >>> else?
> >>>
> >>>
> >>> regards Nino
> >>>
> >>>
> >>>
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> >> For additional commands, e-mail: users-help@wicket.apache.org
> >>
> >>
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: Dropdrown mapping from Object to string?
Posted by Igor Vaynberg <ig...@gmail.com>.
do it in the ddc's model
-igor
On Thu, Oct 21, 2010 at 3:14 AM, nino martinez wael
<ni...@gmail.com> wrote:
> Thats not the problem... The problem are that the dropdown consists of
> Queue's and the backing model just are a string so I need to somehow convert
> the string from and to a queue..
>
> 2010/10/21 Andrea Del Bene <ad...@ciseonweb.it>
>
>> Hi Nino,
>>
>> what kind of Model are you using as backing model? You can try nesting
>> models to extract string property from object
>> For example: <PropertyModel<Drop down control's model>>
>> See IChainingModel for further informations.
>>
>>
>> Hi
>>>
>>> I have an dropdown which gets feed a Queue list, I have a custom renderer
>>> which then select the name property as displayvalue. Now the property it's
>>> setting on the backing model are just a string which of course will not
>>> take
>>> a queue instance. So should I use a custom converter for this or something
>>> else?
>>>
>>>
>>> regards Nino
>>>
>>>
>>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
>> For additional commands, e-mail: users-help@wicket.apache.org
>>
>>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Dropdrown mapping from Object to string?
Posted by nino martinez wael <ni...@gmail.com>.
Thats not the problem... The problem are that the dropdown consists of
Queue's and the backing model just are a string so I need to somehow convert
the string from and to a queue..
2010/10/21 Andrea Del Bene <ad...@ciseonweb.it>
> Hi Nino,
>
> what kind of Model are you using as backing model? You can try nesting
> models to extract string property from object
> For example: <PropertyModel<Drop down control's model>>
> See IChainingModel for further informations.
>
>
> Hi
>>
>> I have an dropdown which gets feed a Queue list, I have a custom renderer
>> which then select the name property as displayvalue. Now the property it's
>> setting on the backing model are just a string which of course will not
>> take
>> a queue instance. So should I use a custom converter for this or something
>> else?
>>
>>
>> regards Nino
>>
>>
>>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
Re: Dropdrown mapping from Object to string?
Posted by Andrea Del Bene <ad...@ciseonweb.it>.
Hi Nino,
what kind of Model are you using as backing model? You can try nesting
models to extract string property from object
For example: <PropertyModel<Drop down control's model>>
See IChainingModel for further informations.
> Hi
>
> I have an dropdown which gets feed a Queue list, I have a custom renderer
> which then select the name property as displayvalue. Now the property it's
> setting on the backing model are just a string which of course will not take
> a queue instance. So should I use a custom converter for this or something
> else?
>
>
> regards Nino
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org