Re: WiQuery tabs remain selected across requests?

2012-11-27 Thread Stefan Renz
Hi Ernesto, I'm getting a Uncaught SyntaxError: Unexpected identifier in the JavaScript console as soon as I use the Tabs#setAjaxSelectEvent() call. What can I do to help narrowing down the problem? I'm using Wicket 1.5.7, and WiQuery branch origin/1.5 with your commit cherrypicked. I can see

Re: WiQuery tabs remain selected across requests?

2012-11-27 Thread Ernesto Reinaldo Barreiro
Hi Stefan, If you can come up with a test page that would be nice (I will add ti to a demo project). On the mean time I think I have spotted (and hopefully fixed) a JavaScript error from your code bellow. Can you please try with latest 1.5.x branch? On Tue, Nov 27, 2012 at 1:04 PM, Stefan Renz

Re: WiQuery tabs remain selected across requests?

2012-11-27 Thread Stefan Renz
Woohoo -- it works like a charm! Ok, let me come up with a demo page... Thanks a lot, bye Stefan Ernesto Reinaldo Barreiro wrote: Hi Stefan, If you can come up with a test page that would be nice (I will add ti to a demo project). On the mean time I think I have spotted (and hopefully

Re: WiQuery tabs remain selected across requests?

2012-11-27 Thread Ernesto Reinaldo Barreiro
Hi, On Tue, Nov 27, 2012 at 2:44 PM, Stefan Renz s.r...@efonds.com wrote: Woohoo -- it works like a charm! Ok, let me come up with a demo page... Yes that would be of some help if you need more features added: I did add the feature but I did not had a test page at hand to test it;-) . Later

WiQuery tabs remain selected across requests?

2012-11-26 Thread Stefan Renz
Hi, we're using WiQuery tabs in our web application to divide information into smaller, logically grouped chunks. Often times, our users will select a few items in a list in order to browse through information. For each of those selected items we present a detail page with WiQuery tabs on them,

Re: WiQuery tabs remain selected across requests?

2012-11-26 Thread Ernesto Reinaldo Barreiro
Can you try setDefaultSelectedTabIndex? On Mon, Nov 26, 2012 at 12:55 PM, Stefan Renz s.r...@efonds.com wrote: Hi, we're using WiQuery tabs in our web application to divide information into smaller, logically grouped chunks. Often times, our users will select a few items in a list in order

Re: WiQuery tabs remain selected across requests?

2012-11-26 Thread Stefan Renz
In principle, yes, that's one part of the solution. However, I need to know which index the page currently displays. How can I get the information, which tab is selected? Ernesto Reinaldo Barreiro wrote: Can you try setDefaultSelectedTabIndex? On Mon, Nov 26, 2012 at 12:55 PM, Stefan Renz

Re: WiQuery tabs remain selected across requests?

2012-11-26 Thread Ernesto Reinaldo Barreiro
I see there is a http://api.jqueryui.com/tabs/#option-active which does not seem to be implemented on wiquery (I will add it). So, what you will need is some sort of AJAX version for http://api.jqueryui.com/tabs/#event-activate and on server side record this number (that you will pass as an

Re: WiQuery tabs remain selected across requests?

2012-11-26 Thread Stefan Renz
Hi Ernesto, thanks for the quick feedback. We're working on top of Wicket/WiQuery 1.5.7. Ciao Stefan Ernesto Reinaldo Barreiro wrote: I see there is a http://api.jqueryui.com/tabs/#option-active which does not seem to be implemented on wiquery (I will add it). So, what you will

Re: WiQuery tabs remain selected across requests?

2012-11-26 Thread Ernesto Reinaldo Barreiro
Let me see if I can add those features today or tomorrow. On Mon, Nov 26, 2012 at 1:24 PM, Stefan Renz s.r...@efonds.com wrote: Hi Ernesto, thanks for the quick feedback. We're working on top of Wicket/WiQuery 1.5.7. Ciao Stefan Ernesto Reinaldo Barreiro wrote: I see there is a

Re: WiQuery tabs remain selected across requests?

2012-11-26 Thread Ernesto Reinaldo Barreiro
Stefan, I have added support for AJAX events https://github.com/WiQuery/wiquery/commit/cd1fa658a6bd8bd896b1f46c7750ecb04ee2e034 You can use them to track selected index at server side as tabs.setAjaxSelectEvent(new ITabsAjaxEvent() { private static final long serialVersionUID = 1L; public

Re: WiQuery tabs remain selected across requests?

2012-11-26 Thread Ernesto Reinaldo Barreiro
Stefan, Yes it will make it into the next 1.5.x release. It will be good if you can test it before that, so that we can fix/add anything else you need. On Mon, Nov 26, 2012 at 10:58 PM, Stefan Renz s.r...@efonds.com wrote: Hi Ernesto, fabulous, thanks for the quick solution. I'll try that as