can't you use this method for that:
protected WebMarkupContainer newLink(String linkId, final int index)
doc:
/**
* Factory method for links used to switch between tabs.
*
* The created component is attached to the following markup. Label
* component with id: title will be added for you by the tabbed panel.
*
* <pre>
* <a href="#"
wicket:id="link"><span wicket:id="title">[[tab
title]]</span></a>
* </pre>
*
* Example implementation:
*
* <pre>
* protected WebMarkupContainer newLink(String linkId, final int index)
* {
* return new Link(linkId)
* {
* private static final long serialVersionUID = 1L;
*
* public void onClick()
* {
* setSelectedTab(index);
* }
* };
* }
* </pre>
*
* @param linkId
* component id with which the link should be created
* @param index
* index of the tab that should be activated when this link
is
* clicked. See [EMAIL PROTECTED] #setSelectedTab(int)}.
* @return created link component
*/
On 12/21/06, Carfield Yim <[EMAIL PROTECTED]> wrote:
I have a page form which contain a TabbedPanel(), I would like the
form show submit button or not depend which tab is clicked. How can I
do that? Is there any event like onTabChangeEvent so that I can show
or hidden submit button once user click difference tab
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user