cancel
Showing results for 
Search instead for 
Did you mean: 

[Solved] create link 'Advanced search'

ribz33
Champ on-the-rise
Champ on-the-rise
hi,

I wanted to create a link "advaced search", i didnt see any way with jsf tag
so i created a static link :
<a href="" onclick="document.forms['browse']['browse:act'].value='_advsearch';document.forms['browse'].submit();return false;" id="_advsearch"> Advanced search </a>]

But i thinks that is "dirty" ! So is there a "cleaner" way to do that ?
Someone have a suggestion ?

That is working but i ask just to do best code as possible Smiley Very Happy

thx
2 REPLIES 2

kevinr
Star Contributor
Star Contributor
The Advanced Search page can be reached via the JSF page outcome "advSearch" (see WEB-INF/faces-config-navigation.xml) so you can use many different JSF tags to create a link/button that jumps to that page.

So to generate a button:

<h:commandButton value="Advanced Search" action="advSearch" />
or to generate a link:

<h:commandLink value="Advanced Search" action="advSearch" />

Thanks,

Kevin

ribz33
Champ on-the-rise
Champ on-the-rise
Thx its working Smiley Happy