RE: [Actionframework-users] suggested design for a search page?
Status: Inactive
Brought to you by:
ptoman
From: Petr T. <cz5...@ti...> - 2002-10-17 08:27:56
|
>Suppose I have for example a page which allows the user to enter search >criteria on the top of the page, and then displays matching rows to the >(previous) criteria on the rest of the page. You can define a default action for the template, which would by invoked only "if" no parameters are supplied, for example: <template name=3D"results.vm"> <invoke component=3D"Searcher" method=3D"findBooks(String author, String title)" if=3D"!$title"> <input-variable name=3D"author" value=3D"someDefaultValue"/> <input-variable name=3D"title" value=3D"someDefaultValue"/> </invoke> </template> The search form submit would be handled by the <action>, as usually. -Petr [ http://dione.zcu.cz/~toman40 - Pet...@pi... - ICQ=3D22957959 ] _________________________________________________________________ Chcete v=ECd=ECt jak=E9 to je m=EDt =B9est jazyk=F9? Zkuste to na http://= slovnik.tiscali.cz |