I have gotten the search tab to work by making the class that creates the tab
panel have a class variable called searchPanel that holds the panel that the
getPanel() method returns, (I create it the first time the tab is selected
and then just return it each time after that) I might have to go with a more
complicated method for the detail tabs but wanted to post this in case
anyone else was looking for a way to keep the state of tabs when switching
between them.



igor.vaynberg wrote:
> 
> you need to do this on model-level, not component level. there have
> been threads on the mailing list about background tasks, even
> search-result specific threads. search the list.
> 
> -igor
> 
> On Mon, Aug 11, 2008 at 9:47 AM, kag1526 <[EMAIL PROTECTED]> wrote:
>>
>> I have a TabbedPanel where the first tab is a search screen where you can
>> search the database and then click on a row to open detailed information
>> about that row in another tab. Some of the searches can take a long time
>> in
>> the database so I need the search results to stay in the search tab even
>> if
>> the user moves to another tab and then back again, is there anyway to
>> accomplish this?
>>
>> The methods I have though of are:
>> 1) Making the searchTabPanel a singleton, which might work for this, but
>> there is also a treeTable in the detailed tabs and I would like whatever
>> nodes are collasped or expanded to also be persistant, although if this
>> is
>> the best way to go I'll do that for the searchTab and either try to find
>> another way or do without for the detailed tabs.
>>
>> 2) Keeping a list of the panels in the overall page class then just
>> before
>> switching tabs saving the panel and if the panel already exists for the
>> new
>> tab using that panel instead of a new one, however there isn't a method
>> that
>> will allow you to do something just before a tab is changed, it must have
>> been gwt where I saw that. (I built this same application in gwt earlier
>> so
>> I get them confused from time to time.
>>
>> Does anyone know of any other ways that might work for keeping the pages
>> persistant while changing tabs?
>> --
>> View this message in context:
>> http://www.nabble.com/How-to-not-reload-page-when-switching-tabs-in-TabbedPanel.-tp18929550p18929550.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]
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-not-reload-page-when-switching-tabs-in-TabbedPanel.-tp18929550p18932094.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]

Reply via email to