Within my SearchPanel onSubmit, how do I get the PageParameters to make
that call to setResponsePage? I hope I'm understanding you right.


On Fri, Jun 21, 2013 at 3:30 PM, Paul Bors <p...@bors.ws> wrote:

> 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:dwmaill...@gmail.com]
> Sent: Friday, June 21, 2013 5:13 PM
> To: users@wicket.apache.org
> 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: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>

Reply via email to