Hi,
Your first solution seems good to me.
I will do something like this:
IModel model = Model.of(new POJO());
new Form("form", model){
@Override
public void onSubmit(){
setResponsePage(new SearchPage(getDefaultModel()));
}
}
Is this a good solution for Wicket's point of view?
Thanks.
On Tue, Dec 15, 2015 at 4:12 PM, Mihir Chhaya <[email protected]>
wrote:
> I am not expert; but following are some of the possible options (not
> necessarily best approach):
>
> 1. Create POJO model and pass that as constructor parameter to the target
> (quick search) page.
> 2. Or, set the model into session (customer session model) and then get
> that into target page.
> 3. Set POJO model into current page as default model. Get current page's
> reference into quick search and get the default model object.
> 4. Assuming your quick search is not exact replica of full search, create
> linear Page Parameters and get into the target page.
>
> Thanks,
> -Mihir.
>
>
> On Tue, Dec 15, 2015 at 12:19 PM, Marcel Barbosa Pinto <
> [email protected]> wrote:
>
> > Hello,
> >
> > Question for the experts:
> >
> > I have a search page that has a POJO as a model. It uses this model to
> > filter a search through a form component.
> > Now I have another page (let's say quick search) that needs to send
> (post)
> > this POJO model to this search page, in order to do the search filtering.
> > As PageParameters can't(?) be used to send this "complex model", how the
> > search page can receive it from another page? May I have to use Events?
> >
> > Thank you guys.
> >
>
--
Marcel Barbosa Pinto
55 11 98255 8288