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

Reply via email to