Re: AjaxFallbackDefaultDataTable and DropDownChoice

2008-03-11 Thread jnorris

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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]


 
 
 -- 
 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 
 
 

-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



AjaxFallbackDefaultDataTable and DropDownChoice

2008-03-10 Thread jnorris

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: AjaxFallbackDefaultDataTable and DropDownChoice

2008-03-10 Thread Martijn Dashorst
Instead of directly adding the DDC to the column, add a panel or
fragment containing the DDC.

Martijn

On 3/10/08, jnorris [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
  For additional commands, e-mail: [EMAIL PROTECTED]




-- 
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]