RE: How to pass context-param values to different WebPages ?

2010-07-14 Thread Stefan Lindner
Create a getMyName-method in Applicatoin class and call Application.get().getMyName() in your page class Stefan -Ursprüngliche Nachricht- Von: Madhan [mailto:madhan.sundarara...@tcs.com] Gesendet: Mittwoch, 14. Juli 2010 14:58 An: users@wicket.apache.org Betreff: How to pass

Re: How to pass context-param values to different WebPages ?

2010-07-14 Thread Bilgin Ibryam
((YourApplication)getApplication()).getServletContext().getAttribute(attrName); Bilgin On Wed, Jul 14, 2010 at 1:58 PM, Madhan madhan.sundarara...@tcs.com wrote: I am new to wicket. I have created a simple web-app which displays my name in a label. However, when I wanted to extend the

RE: How to pass context-param values to different WebPages ?

2010-07-14 Thread Madhan
I tried the following statement in the constructor of my WebPage class, add( new Label( userName, (IndexApplication.get()).getUserName() ) ); I got the following error, IndexPage.java:10: cannot find symbol symbol : method getUserName() -- View this message in context:

RE: How to pass context-param values to different WebPages ?

2010-07-14 Thread Stefan Lindner
, ((IndexApplication)(IndexApplication.get())).getUserName() ) ); -Ursprüngliche Nachricht- Von: Madhan [mailto:madhan.sundarara...@tcs.com] Gesendet: Mittwoch, 14. Juli 2010 15:29 An: users@wicket.apache.org Betreff: RE: How to pass context-param values to different WebPages ? I tried