There is a good reason why Wicket is not letting you override a form's action attribute. Is at the core of its processing.
If I understand you right you have a panel that processes a search form and you would like to respond with SearchResultsPage. Wicket's way of doing that would be to use PageParameters. Add a constructor to your SearchResultsPage that takes in an instance of PageParameters and then pass your search parameters through it via setResponsePage(new SearchResultsPage(mySearchPageParameters). If I didn't understand you right, then try to better explain your use-case :) You might also be interested in the o.a.wicket.extensions.markup.html.repeater.data.table.filter package :) ~ Thank you, Paul Bors -----Original Message----- From: Daniel Watrous [mailto:[email protected]] Sent: Friday, June 21, 2013 5:13 PM To: [email protected] Subject: Point Form action to Page Hi, I have created a Panel that contains a search form. I can't figure out how to get the "action" of the Form to submit to the search results page. Any ideas? In other words, I was hoping to do something like this: form.add(new SimpleAttributeModifier("action", SearchResultsPage.class)); Thanks, Daniel --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
