yes, it makes sense. and furthermore sometimes you should be passing models
for more dynamic arguments.
in your case doing something like this
basepage { private long userid; //setter+getter. basepage() { add(new
userpanel("userpanel", new propertymodel(this, "userid"));
that way the userpanel can always pull out the userid by using the passedin
model.
-igor
On 5/16/07, eddmosphere <[EMAIL PROTECTED]> wrote:
hehe just keep answering myself..
so, as I see it, in order to have the username passed from LoginPage to
the
first tab/panel of my BasePage tabbedPanel, I need to pass it as an
argument
to the constructor of the page, right? because..the tabs are constructed
when the page is called and so, if I used a setter method on a BasePage
object, that value wouldn't be available on tab creation time..is this
correct? It seems that way - at least, I think it does.
so..can I say that setters should be used when we need to create content
for
"simple" components - as Labels - and that argument-passing should be used
when creating more "complex" components like TabbedPanel and AbstractTab
(which don't have all the values available during creation time) ?? does
this make sense?
;) Edd
--
View this message in context:
http://www.nabble.com/TabbedPanel---select-which-tab-to-show-when-page-loads-tf3765927.html#a10656011
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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user