Thanks David.  On implementing the first method you mention here below, I
have one follow-up question.  If, at some point, I have a 50+ different
if/then statements, would there be a noticeable performance impact?


David Bernard-2 wrote:
> 
> To implement the method, I see 2 ways:
> 1/ a list of if/else
>    if ("up".equals(panelType)) {
>      return new UserPanel(id);
>    }
>    if( "xx".equals(panelType)) {
>     ...
>    }
> 


-- 
View this message in context: 
http://www.nabble.com/Calling-Methods-based-on-page-parameters-tf4448115.html#a12699052
Sent from the Wicket - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to