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:[email protected]] 
Gesendet: Mittwoch, 14. Juli 2010 15:29
An: [email protected]
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: [email protected]
For additional commands, e-mail: [email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to