You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Per Newgro <pe...@gmx.ch> on 2008/02/06 22:09:32 UTC

Can i assign parameters while calling the application?

Hi *,

i use an application. This will be called by different urls via filters in 
web.xml I set a custom init-param for every filter. I can access the
parameter and thus load my data based on the value. So far all ok.

But i'm tired of adding always a new filter and the definition to the web.xml
I would be glad if i could assign my parameter as a url-parameter.
Something like http://localhost:8080/myappl?myparam=2

Is this possible? If it is - how can i access myparam?

Thanks
Per

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Can i assign parameters while calling the application?

Posted by Newgro <pe...@gmx.ch>.
Thanks for your response. I did it the way you suggested. But i hit the next
wall now. My application is using
ssl mode ( http://cwiki.apache.org/WICKET/how-to-switch-to-ssl-mode.html
wiki-ssl ).

I think because of the required
"getRequestCycleSettings().setRenderStrategy(Settings.ONE_PASS_RENDER);"
my page is not rendered anymore after i mounted them in application.

Is there a workaround for this?

Cheers
Per
-- 
View this message in context: http://www.nabble.com/Can-i-assign-parameters-while-calling-the-application--tp15321764p15334968.html
Sent from the Wicket - User 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: Can i assign parameters while calling the application?

Posted by "djo.mos" <dj...@gmail.com>.
Hi,
  I am not sure I understood why you are using filters ... anyway, it is
perfectly possible to pass parameters to a Wicket page via URLs by providing
a constructor taking a PageParameters as an argument + configuring the
adequate URL encoding strategy.

  Look  http://cwiki.apache.org/WICKET/passing-parameters-to-pages.html here 
and  http://cwiki.apache.org/WICKET/stateless-pages.html here  for more
details (Wicket wiki).

Regards

-- 
View this message in context: http://www.nabble.com/Can-i-assign-parameters-while-calling-the-application--tp15321764p15331875.html
Sent from the Wicket - User 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