You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by massimo_pugni <ma...@alice.it> on 2010/11/16 11:53:52 UTC
Switching between wicket tabs
Hi all,
I'm new on wicket and I'm searching for a solution:
does anyone know if it is possibile to switch between tabs using some kind
of external buttons/links
regards
Massimo
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Switching-between-wicket-tabs-tp3044579p3044579.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Switching between wicket tabs
Posted by Francois Meillet <fr...@gmail.com>.
use parameters
PageParameters parameters = new PageParameters();
parameters.set("TAB_NUM", 3);
parameters.set("USERNAME_ID", "username);
setResponsePage(YourCLaasContainingTheTabbedPanel.class, pageParameters);
and in your YourCLaasContainingTheTabbedPanel.class
extract the parameters
int tabindex = pageParameters.get("TAB_NUM").toInt();
and set tabbedPanel # setSelectedTab accordingly
François Meillet
Formation Wicket - Développement Wicket
Le 20 déc. 2014 à 08:44, K <ko...@gmail.com> a écrit :
> Hi
>
> I have a similar issue. i am trying to navigate to tab i intend to but issue
> is i have parameters i need to forward to that tab. can anyone suggest how
> to handle it.
>
> Scenario: i have list of items displaying in tab1 and when i click on the
> item it has to be redirected to tab3 with the item details (lets say
> username and password).
>
> Thanks in advance
> K
>
> -----
> K
> --
> View this message in context: http://apache-wicket.1842946.n4.nabble.com/Switching-between-wicket-tabs-tp3044579p4668862.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
Re: Switching between wicket tabs
Posted by K <ko...@gmail.com>.
Hi
I have a similar issue. i am trying to navigate to tab i intend to but issue
is i have parameters i need to forward to that tab. can anyone suggest how
to handle it.
Scenario: i have list of items displaying in tab1 and when i click on the
item it has to be redirected to tab3 with the item details (lets say
username and password).
Thanks in advance
K
-----
K
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Switching-between-wicket-tabs-tp3044579p4668862.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Switching between wicket tabs
Posted by Alexander Monakhov <do...@gmail.com>.
Hello.
What's problem with button?
Why do you need tabbed panel's markup id? If button that changes
selected tab is in another panel, you could pass callback to panel's
constructor
Best regards, Alexander.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Switching between wicket tabs
Posted by massimo_pugni <ma...@alice.it>.
Hello again,
I'm trying; after having had some difficulties to map the button out the
tabbedpanel, I'm adding, java side, the submitlink to the tabbedpanel. For
now I've got the opposite problem: how to map the markup (id), from the
tabbedpanel 'cause of the html button definition is in anoher panel?
regards
Massimo
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Switching-between-wicket-tabs-tp3044579p3047075.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Switching between wicket tabs
Posted by massimo_pugni <ma...@alice.it>.
Ciao and many thanks Alexander,
tomorrow I'll try it!
best regards
Massimo
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Switching-between-wicket-tabs-tp3044579p3045783.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Switching between wicket tabs
Posted by massimo_pugni <ma...@alice.it>.
Ciao Igor and Alexander,
I found the way adding the SubmitLink and all the code I need (without the
'RequestCycle' and making it visible when I have to) into my extended
TabbedPanel. Some problem to solve with layout but I'm optimistc.
Thank you very much for help and ciao by Massimo
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Switching-between-wicket-tabs-tp3044579p3052447.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Switching between wicket tabs
Posted by Alexander Monakhov <do...@gmail.com>.
Hi!
Thanx for hint, Igor!
Best regards, Alexander.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Switching between wicket tabs
Posted by Igor Vaynberg <ig...@gmail.com>.
RequestCycle.get().setResponsePage( getPage() ); is unnecessary
-igor
On Tue, Nov 16, 2010 at 2:01 PM, Alexander Monakhov <do...@gmail.com> wrote:
> Hello.
>
> Add link to content panel. onClick() method should select appropriated tab:
> Link<Void> link = new Link<Void>( "link" ) {
>
> @Override
> public void onClick() {
> tabbedPanel.setSelectedTab( /* any tab
> index here*/ );
> RequestCycle.get().setResponsePage( getPage() );
> }
>
> };
>
> When onClick() method invoked, desired tab is selected and page that
> contains tabbed panel is set as response page.
>
> Best regards, Alexander.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Switching between wicket tabs
Posted by Alexander Monakhov <do...@gmail.com>.
Hello.
Add link to content panel. onClick() method should select appropriated tab:
Link<Void> link = new Link<Void>( "link" ) {
@Override
public void onClick() {
tabbedPanel.setSelectedTab( /* any tab
index here*/ );
RequestCycle.get().setResponsePage( getPage() );
}
};
When onClick() method invoked, desired tab is selected and page that
contains tabbed panel is set as response page.
Best regards, Alexander.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Switching between wicket tabs
Posted by massimo_pugni <ma...@alice.it>.
Well,
I've just implemented a wicket page using wicket tabs, tabbedPanel and so
on; it works fine!
Structure is standard, something like
<table class="tab-row"><tr><td class=tab0 selected></td> .... <td class=tab4
last></td></table>
<div class="tab-panel"><div>CONTENT: tab0 selected</div></div>.
What I'd like to do is to have a button/link inside the 'content' div to
switch from tab0 (currently selected) to 'tab4 last', any other content,
without using tab links.
Is this possible?
Thank you Alexander
hope to have been clear
ciao
Massimo
--
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Switching-between-wicket-tabs-tp3044579p3045748.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Switching between wicket tabs
Posted by Alexander Monakhov <do...@gmail.com>.
Hello.
Could you please give some details? Or sample?
Best regards, Alexander.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org