You could give it a dummy IModel of just new Model()...

Ian Godman wrote:
> 
> Hi
> 
> I have a little problem with an AJAX submit button.
> 
> The template is:
>          <input type="submit" wicket:id="AddButton-link" value="Add" />
> 
> In the java this is:
>             add( new AjaxSubmitLink("AddButton-link"){
>                 private static final long serialVersionUID = 1L;
>                 @Override
>                 public void onSubmit(AjaxRequestTarget target, Form form){
>                 .........
>                 });
> 
> My problem is that when I submit the form it tries to update a model
> property for the submit link.
>     ERROR 2007-09-03 14:38:04,816 [btpool0-4]
> org.apache.wicket.RequestCycle: No get method defined for class: class
> com............Model expression: AddButton-link
> 
> I am sure its one of those simple things I am missing again but how do I
> tell wicket not to try to update the button in the model ?
> 
> 
> Ian
> 
> 
> 
> 
> 
> 
> 
>       ___________________________________________________________
> Yahoo! Answers - Got a question? Someone out there knows the answer. Try
> it
> now.
> http://uk.answers.yahoo.com/
> 

-- 
View this message in context: 
http://www.nabble.com/How-to-exclude-from-model-update-tf4372466.html#a12462629
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