You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by jnorris <j....@snet.net> on 2008/03/10 14:13:14 UTC
AjaxFallbackDefaultDataTable and DropDownChoice
Hi All,
I have implemented an AjaxFallbackDefaultDataTable and would like to put a
DropDownChoice in one of the columns to list values. For example in a table
of users a roles column would show the roles assigned to the user as a
dropdown list. I haven't been able to find any examples of doing this. If
anyone has already done something like this or has any suggestions on how to
do it, I'd appreciate the help. I tried to extend AbstractColumn but
couldn't get it to work due to cellItem.add( ddc ) throwing an exception
(Component cell must be applied to a tag of type 'select', not '' ).
Thanks,
Jim
--
View this message in context: http://www.nabble.com/AjaxFallbackDefaultDataTable-and-DropDownChoice-tp15950744p15950744.html
Sent from the Wicket - User 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
Re: AjaxFallbackDefaultDataTable and DropDownChoice
Posted by jnorris <j....@snet.net>.
Thanks Martijn!
Adding the ddc to a panel worked.
Jim
Martijn Dashorst wrote:
>
> Instead of directly adding the DDC to the column, add a panel or
> fragment containing the DDC.
>
> Martijn
>
> On 3/10/08, jnorris <j....@snet.net> wrote:
>>
>> Hi All,
>>
>> I have implemented an AjaxFallbackDefaultDataTable and would like to put
>> a
>> DropDownChoice in one of the columns to list values. For example in a
>> table
>> of users a roles column would show the roles assigned to the user as a
>> dropdown list. I haven't been able to find any examples of doing this.
>> If
>> anyone has already done something like this or has any suggestions on
>> how to
>> do it, I'd appreciate the help. I tried to extend AbstractColumn but
>> couldn't get it to work due to cellItem.add( ddc ) throwing an exception
>> (Component cell must be applied to a tag of type 'select', not '' ).
>>
>> Thanks,
>> Jim
>>
>>
>>
>> --
>> View this message in context:
>> http://www.nabble.com/AjaxFallbackDefaultDataTable-and-DropDownChoice-tp15950744p15950744.html
>> Sent from the Wicket - User 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
>>
>>
>
>
> --
> Buy Wicket in Action: http://manning.com/dashorst
> Apache Wicket 1.3.1 is released
> Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
>
--
View this message in context: http://www.nabble.com/AjaxFallbackDefaultDataTable-and-DropDownChoice-tp15950744p15976495.html
Sent from the Wicket - User 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
Re: AjaxFallbackDefaultDataTable and DropDownChoice
Posted by Martijn Dashorst <ma...@gmail.com>.
Instead of directly adding the DDC to the column, add a panel or
fragment containing the DDC.
Martijn
On 3/10/08, jnorris <j....@snet.net> wrote:
>
> Hi All,
>
> I have implemented an AjaxFallbackDefaultDataTable and would like to put a
> DropDownChoice in one of the columns to list values. For example in a table
> of users a roles column would show the roles assigned to the user as a
> dropdown list. I haven't been able to find any examples of doing this. If
> anyone has already done something like this or has any suggestions on how to
> do it, I'd appreciate the help. I tried to extend AbstractColumn but
> couldn't get it to work due to cellItem.add( ddc ) throwing an exception
> (Component cell must be applied to a tag of type 'select', not '' ).
>
> Thanks,
> Jim
>
>
>
> --
> View this message in context: http://www.nabble.com/AjaxFallbackDefaultDataTable-and-DropDownChoice-tp15950744p15950744.html
> Sent from the Wicket - User 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
>
>
--
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.1 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.1
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org