You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Boris Goldowsky <bg...@cast.org> on 2014/10/30 18:16:43 UTC
Modify items in quickview?
How would you set things up to have the best of both worlds with a QuickView? I need to have
(a) a button like an AjaxItemsNavigator that adds additional elements to the QuickView without repainting the entire view, AND
(b) some AJAX operations that change the entire content of the QuickView – for example, they can change the data provider.
If I use the ReuseAllStrategy I can’t determine how to accomplish (b). Other item reuse strategies don’t seem to allow (a). Does a custom item reuse strategy with a “reset” method make sense or is there a better way?
Boris
Re: Modify items in quickview?
Posted by vineet semwal <vi...@gmail.com>.
hi,
actually your workaround is the right way.there is no setter method for
dataprovider in quickview. even in dataview there is none.this is to depict
dataprovider can only be provided at construction time either by providing
it in constructor or by overriding getter for dataprovider..
actually quickview supports both reconstructing view on complete re-render
and partial adding/removing of items when abstractitemsnavigationstrategy
implementations like itemsnavigationstrategy or reuseallstrategy is used..
regards,
Vineet Semwal
Re: Modify items in quickview?
Posted by Boris Goldowsky <bg...@cast.org>.
Yes, that one.
For now, I am just replacing the QuickView with a newly-instantiated one,
which does work around the problem.
Boris
On 10/30/14, 4:26 PM, "Paul Bors" <pa...@bors.ws> wrote:
>Are you talking about this QuickView?
>https://github.com/vineetsemwal/quickview
>
>
>
>On Thu, Oct 30, 2014 at 1:16 PM, Boris Goldowsky <bg...@cast.org>
>wrote:
>
>> How would you set things up to have the best of both worlds with a
>> QuickView? I need to have
>> (a) a button like an AjaxItemsNavigator that adds additional elements to
>> the QuickView without repainting the entire view, AND
>> (b) some AJAX operations that change the entire content of the
>>QuickView
>> for example, they can change the data provider.
>>
>> If I use the ReuseAllStrategy I can¹t determine how to accomplish (b).
>> Other item reuse strategies don¹t seem to allow (a). Does a custom item
>> reuse strategy with a ³reset² method make sense or is there a better
>>way?
>>
>> Boris
>>
>>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Modify items in quickview?
Posted by Paul Bors <pa...@bors.ws>.
Are you talking about this QuickView?
https://github.com/vineetsemwal/quickview
On Thu, Oct 30, 2014 at 1:16 PM, Boris Goldowsky <bg...@cast.org>
wrote:
> How would you set things up to have the best of both worlds with a
> QuickView? I need to have
> (a) a button like an AjaxItemsNavigator that adds additional elements to
> the QuickView without repainting the entire view, AND
> (b) some AJAX operations that change the entire content of the QuickView –
> for example, they can change the data provider.
>
> If I use the ReuseAllStrategy I can’t determine how to accomplish (b).
> Other item reuse strategies don’t seem to allow (a). Does a custom item
> reuse strategy with a “reset” method make sense or is there a better way?
>
> Boris
>
>