Session Storage - activePanelId of Jquery Tabs Component

17 views
Skip to first unread message

Daniel P.

unread,
Mar 23, 2015, 5:51:11 AM3/23/15
to tapestry...@googlegroups.com

Hello,

 

I'm trying to store the activePanelId of a Jquery tabs component as a SessionAttribute, so that when the page is loaded, the correct panel is highlighted and the correct tab content is displayed, i.e. the one that was highlighted/displayed when you left the page.

Now, when I leave the page and come back, the correct tab content is displayed, but the highlighted panel is always the one with index 0.
What am I doing wrong?

Code:

(Page)

@SessionAttribute(SessionConstants.SESSION_ACTIVEPANEL)
@Property
int activePanel; 

(Template)

    <body>

 

<t:jquery.tabs t:tabs="Tab1,Tab2,Tab3,Tab4" t:activePanelId="activePanel" ajax="true">


Regards,

Daniel P.

 P.S.: Cross-posting from tapestry users mailing list because I remembered that this place would be more appropriate.

Emmanuel DEMEY

unread,
Mar 25, 2015, 12:26:53 PM3/25/15
to tapestry...@googlegroups.com

Hi
i think we van notre store java primitives in SessionStorage. Try with Integer.
Manu

--
You received this message because you are subscribed to the Google Groups "tapestry5-jquery" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tapestry5-jque...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Reply all
Reply to author
Forward
0 new messages