Re: Modify items in quickview?

2014-10-31 Thread vineet semwal
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


Modify items in quickview?

2014-10-30 Thread Boris Goldowsky
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?

2014-10-30 Thread Paul Bors
Are you talking about this QuickView?
https://github.com/vineetsemwal/quickview



On Thu, Oct 30, 2014 at 1:16 PM, Boris Goldowsky bgoldow...@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




Re: Modify items in quickview?

2014-10-30 Thread Boris Goldowsky
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 p...@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 bgoldow...@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-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org