Re: [Wicket-user] TabbedPanel tabs instanciation

2007-07-12 Thread Erik van Oosten

Xavier,

Just an idea, I am not sure this would work: do not use the first tab, and
switch to the second tab (index 1) if you do not have the parameter.

Regards,
Erik.


Xavier Hanin wrote:
 
 When debugging my application which uses a TabbedPanel, I realized that
 one
 tab was unnecessarily instanciated. After some investigation the reason is
 simply because I call setSelectedTab based on the parameters of my page,
 but
 since the instanciation of a TabbedPanel call setSelectedTab(0), the first
 tab is always instanciated, even though I don't need to render it.
 
 Do anyone know a workaround for this?
 

-- 
View this message in context: 
http://www.nabble.com/TabbedPanel-tabs-instanciation-tf4070193.html#a11567857
Sent from the Wicket - User mailing list archive at Nabble.com.


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] TabbedPanel tabs instanciation

2007-07-12 Thread Igor Vaynberg

On 7/12/07, Xavier Hanin [EMAIL PROTECTED] wrote:


Hi,

When debugging my application which uses a TabbedPanel, I realized that
one tab was unnecessarily instanciated. After some investigation the reason
is simply because I call setSelectedTab based on the parameters of my page,
but since the instanciation of a TabbedPanel call setSelectedTab(0), the
first tab is always instanciated, even though I don't need to render it.

Do anyone know a workaround for this?



i guess tabbedpanel will have to be rewritten to call setactivettab(0) in
onattach if no explicit call has been made. patch is welcome

-igor



Xavier


--
Xavier Hanin - Independent Java Consultant
http://xhab.blogspot.com/
http://incubator.apache.org/ivy/
http://www.xoocode.org/
-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


-
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user