Your are new to Java too?
Did you override the get() method in your IndexApplication? If not, 
IndexApplication.get results in an Applicationobject and not in an 
IndexApplication object. Either cast it in your opage oder create your own get 
methodn in IndexApplication.


add( new Label( "userName", 
((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 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: 
http://apache-wicket.1842946.n4.nabble.com/How-to-pass-context-param-values-to-different-WebPages-tp2288699p2288744.html
Sent from the Wicket - User mailing list archive at Nabble.com.

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


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

Reply via email to