Yep. Either that, or - if you don't want to use pages you can use panels, and replace one for the other. Or if you think replacing is too expensive (everything that is replaced is serialized and saved in order to support the back button by default), place all panels you want and switch the visible property.
Eelco On 9/13/05, Ingram Chen <[EMAIL PROTECTED]> wrote: > On 13 Sep 2005 16:20:00 +0200, Voors Paul <[EMAIL PROTECTED]> wrote: > > Let me give an example: > > A user can add search values in a textbox Much like google. > > Depending on the results of the search with the user values. I wat to show > different pages (pagetype 1). > > If there are no results, the user will get an 'advanced search' page with > more explicit search options. > > If the results is specific topic. The user will get specific page designed > for this topic (pagetype 2). > > Finally there is a default page, which show the search results (pagetype > 3). > > > > Hopefully this is more clear for you. > > > > Paul > > > > ------------------------------------------------------- > > SF.Net email is Sponsored by the Better Software Conference & EXPO > > September 19-22, 2005 * San Francisco, CA * Development Lifecycle > Practices > > Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA > > Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf > > _______________________________________________ > > Wicket-user mailing list > > [email protected] > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > > new Form("search") { > protected void onSubmit() { > Result reslult = searcher.search(...) ; > if( result == null ) { > setResponsePage( AdvanceSearchPage.class) ; > } else if (result.getType() == Result.SPECIFIC ){ > setResponsePage( pageSelector.getPageByTopic( result )) ; > } else { > setResponsePage( DefaultPage.class) ; > } > } > } > > maybe you can incorporate all conditions into pageSelector.getPage(result) ; > > > -- > Ingram Chen > Java [EMAIL PROTECTED] > Institue of BioMedical Sciences Academia Sinica Taiwan > blog: http://www.javaworld.com.tw/roller/page/ingramchen ------------------------------------------------------- SF.Net email is Sponsored by the Better Software Conference & EXPO September 19-22, 2005 * San Francisco, CA * Development Lifecycle Practices Agile & Plan-Driven Development * Managing Projects & Teams * Testing & QA Security * Process Improvement & Measurement * http://www.sqe.com/bsce5sf _______________________________________________ Wicket-user mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wicket-user
