no, the problem is more basic than that. it would work if new Model() was
assigned to the field.  instead it is being assigned to a local variable,
which goes out of scope, leaving the field still null:

Model model = new Model("MSFT"); 

if the field were final, the compiler would warn that the field was never
assigned.


Newgro wrote:
> 
> Hello Kengimel,
> 
> You do this
>       private Model model;                
> and that
>       String sym = (String) model.getObject();
> 
> but you did not 
>       form.setModel(model) 
> or @ least 
>       setModel(model)
> 
> You only can get things you've assigned before.
> 
> Cheers
> Per
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/Problem-with-Textfield-tp17170575p17178784.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]

Reply via email to