You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Sathish Gopal <sa...@emirates.com> on 2008/05/06 07:43:57 UTC
Making entire row editable in a DataTable
Hi all,
I've built a DataTable(AjaxFallbackDataTable) to display list of values. My
requirement is that by clicking (Link) one of the coloumns in any given row
should make the row (all the columns) editable.
I've used AjaxEditlabel as cell renderer for all the columns. How to change
the underlying editor of all the column in a specific row?
--
View this message in context: http://www.nabble.com/Making-entire-row-editable-in-a-DataTable-tp17071597p17071597.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: Making entire row editable in a DataTable
Posted by Roman Zechner <ze...@liland.at>.
Hm .. maybe you should have a look at the Editable TreeTable to get some
ideas
http://wicketstuff.org/wicket13/ajax/tree/table/editable
ChuckDeal wrote:
> If you have a handle to the Item instance represetning the cell, then you can
> do something like
>
> cell.findParent(Item.class)
>
> which will get you the row's Item instance, on which you can call
> row.getModel()
>
> FWIW, the inmethod grid is excellent, but it does require pretty big changes
> in order to replace an exisiting *complex* DataTable
>
> Chuck
>
>
> Sathish Gopal wrote:
>
>> If i need to adopt to this API, then i need to rewrite the entire Page
>> class. Is there any other solution.
>>
>> How do i get hold of the rowModel(org.apache.wicket.markup.repeater.Item)
>> in the DataView when one of the columns is selected. There must be way to
>> get the rowModel for some event trigger in a column...
>>
>>
>> Jonathan Locke wrote:
>>
>>> don't know the answer, but just thought you should know about this FYI:
>>>
>>> http://inmethod.com/
>>>
>>>
>>> Sathish Gopal wrote:
>>>
>>>> Hi all,
>>>>
>>>> I've built a DataTable(AjaxFallbackDataTable) to display list of values.
>>>> My requirement is that by clicking (Link) one of the coloumns in any
>>>> given row should make the row (all the columns) editable.
>>>> I've used AjaxEditlabel as cell renderer for all the columns. How to
>>>> change the underlying editor of all the column in a specific row?
>>>>
>>>>
>>>
>>
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Making entire row editable in a DataTable
Posted by ChuckDeal <cd...@csc.com>.
If you have a handle to the Item instance represetning the cell, then you can
do something like
cell.findParent(Item.class)
which will get you the row's Item instance, on which you can call
row.getModel()
FWIW, the inmethod grid is excellent, but it does require pretty big changes
in order to replace an exisiting *complex* DataTable
Chuck
Sathish Gopal wrote:
>
> If i need to adopt to this API, then i need to rewrite the entire Page
> class. Is there any other solution.
>
> How do i get hold of the rowModel(org.apache.wicket.markup.repeater.Item)
> in the DataView when one of the columns is selected. There must be way to
> get the rowModel for some event trigger in a column...
>
>
> Jonathan Locke wrote:
>>
>>
>> don't know the answer, but just thought you should know about this FYI:
>>
>> http://inmethod.com/
>>
>>
>> Sathish Gopal wrote:
>>>
>>> Hi all,
>>>
>>> I've built a DataTable(AjaxFallbackDataTable) to display list of values.
>>> My requirement is that by clicking (Link) one of the coloumns in any
>>> given row should make the row (all the columns) editable.
>>> I've used AjaxEditlabel as cell renderer for all the columns. How to
>>> change the underlying editor of all the column in a specific row?
>>>
>>
>>
>
>
--
View this message in context: http://www.nabble.com/Making-entire-row-editable-in-a-DataTable-tp17071597p17105576.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: Making entire row editable in a DataTable
Posted by Sathish Gopal <sa...@emirates.com>.
If i need to adopt to this API, then i need to rewrite the entire Page class.
Is there any other solution.
How do i get hold of the rowModel(org.apache.wicket.markup.repeater.Item) in
the DataView when one of the columns is selected. There must be way to get
the rowModel for some event trigger in a column...
Jonathan Locke wrote:
>
>
> don't know the answer, but just thought you should know about this FYI:
>
> http://inmethod.com/
>
>
> Sathish Gopal wrote:
>>
>> Hi all,
>>
>> I've built a DataTable(AjaxFallbackDataTable) to display list of values.
>> My requirement is that by clicking (Link) one of the coloumns in any
>> given row should make the row (all the columns) editable.
>> I've used AjaxEditlabel as cell renderer for all the columns. How to
>> change the underlying editor of all the column in a specific row?
>>
>
>
--
View this message in context: http://www.nabble.com/Making-entire-row-editable-in-a-DataTable-tp17071597p17078462.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: Making entire row editable in a DataTable
Posted by Jonathan Locke <jo...@gmail.com>.
don't know the answer, but just thought you should know about this FYI:
http://inmethod.com/
Sathish Gopal wrote:
>
> Hi all,
>
> I've built a DataTable(AjaxFallbackDataTable) to display list of values.
> My requirement is that by clicking (Link) one of the coloumns in any given
> row should make the row (all the columns) editable.
> I've used AjaxEditlabel as cell renderer for all the columns. How to
> change the underlying editor of all the column in a specific row?
>
--
View this message in context: http://www.nabble.com/Making-entire-row-editable-in-a-DataTable-tp17071597p17071609.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