Because how can wicket get anything if the browser doesn't submit it????
But if you want a link then you have to make sure that that link is appended with the value of the text field when the link is clicked.
The name of that parameter must be the form name of the text field (that is the textfield.getInputName()). Then everything will go ok.
Something like that is done in DropDownChoice.onComponentTag(final ComponentTag tag)
tag.put("onChange", "location.href='' + this.options[this.selectedIndex].value;");
somthing like that you have to do when you create the url for youre link.
On 10/28/05, Alex Chew <[EMAIL PROTECTED]> wrote:
The code is generated by OAW.I hate use form in each row, imo, wicket can get the model value when the link was clicked.Also , i tried table_ProductList.setOptimizeItemRemoval(true), but nothing changed.what i need is get value of textfield(not in a form) when a link was clicked.help and thanks
ahh wait a second
If you click on that link the form which you also should have (you have a
TextField that should be in a form)
is course not submitted. You just click on the link not a submit button!