Well, in the IColumn is where it actually creates a label to display
something in the table.  If you want to have it editable, that's where
you need the

if (foo) { rowItem.add(new Label(...)); } else { rowItem.add(new
TextField(...)) }

logic.

On Sun, Dec 26, 2010 at 11:58 AM, Alex Shubert <alex.shub...@gmail.com> wrote:
> Implementing what? The one reason why we cant move to Knopp's
> implementation is huge relaying on IColumn and all that things. So, we
> already have enough IColumn implementation. What exactly you suggest
> to overload?
>
> On 26 December 2010 20:09, Jeremy Thomerson <jer...@wickettraining.com> wrote:
>> You might have better success implementing it in your IColumn
>> implementations since they generate the components for each cell.
>>
>> On Sun, Dec 26, 2010 at 4:55 AM, alex shubert <alex.shub...@gmail.com> wrote:
>>> Hello
>>>
>>> Currently I am working on Editable DefaultDatatable. My first attempt
>>> was to override
>>>       protected Item<T> newRowItem
>>> with
>>>       final Item item = super.newRowItem(id, index, tiModel);
>>>       item.add(new AjaxFormSubmitBehavior("onclick") {
>>>
>>> naively thought that adding rowItem to ajax target will trigger
>>> ICellPopulator#populateItem call for every cell so I have a chance to
>>> read special metaData from parent rowItem and if it exists return
>>> TextField instead Label for every cell iin a row.. It seems I was
>>> wrong - item repopulation does not happens.
>>>
>>> I need any advice how may I implement such behaviour, except switching
>>> to Knopp's code. It just impossible right now becouse there are
>>> already implemented filter functionality.
>>>
>>> Thank's in advance.
>>>
>>> P.S.: I hope I am not alone who works now and does not shopping.
>>> --
>>> Best regards
>>> Alex
>>>
>>> ---------------------------------------------------------------------
>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>>> For additional commands, e-mail: users-h...@wicket.apache.org
>>>
>>>
>>
>>
>>
>> --
>> Jeremy Thomerson
>> http://wickettraining.com
>> Need a CMS for Wicket?  Use Brix! http://brixcms.org
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
>> For additional commands, e-mail: users-h...@wicket.apache.org
>>
>>
>
>
>
> --
> Best regards
> Alex
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>



-- 
Jeremy Thomerson
http://wickettraining.com
Need a CMS for Wicket?  Use Brix! http://brixcms.org

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to