I'm trying to use JSF here with three different input text boxes that work with three separate buttons.
However, I'm finding that the first two text boxes aren't working at all and that the very last text box's user input text is the only one that can actually be used with all three of the buttons.
Can somebody tell me what's wrong with my code? Thanks.
<h:panelGrid columns="1" style="padding-left:20px;" cellspacing="30">
<h:panelGroup style="color: black; font-size:medium;" >
<b style="color: black;">Search for species reviews</b> by name (scientific or common)<br/>
<p> <h:inputText id="name" size="20" value="#{searchBean.inputName}" required="false" />
<h:commandLink action="#{searchBean.searchByName}" class="buttons">Search</h:commandLink></p>
<h:message for="name" errorClass="errors" style="color: red;" />
</h:panelGroup>
<h:panelGroup style="color: black; font-size:medium;">
<p><b style="color: black; font-size:medium; padding-bottom:25px;">Find Species Reviews</b><br/></p>
<h:inputText id="searchOne" size="20" value="#{searchBean.inputName}" required="false" /> <h:commandLink action="#{searchBean.searchByOther}" class="buttons">Enter Species</h:commandLink> or <h:commandLink action="#{searchBean.reviewSearchAction}" class="buttons
">Andvanced Search</h:commandLink>
</h:panelGroup>
<h:panelGroup style="color: black; font-size:medium;">
<p><b style="color: black; font-size:medium;">Find Fire Studies</b><br/></p>
<h:inputText id="searchTwo" size="20" value="#{searchBean.inputName}" required="false" /> <h:commandLink action="#{searchBean.searchByFireStudy}" class="buttons">Enter Species</h:commandLink> or <h:commandLink action="#{searchBean.fireStudySearchAction}" class="buttons">Advanced Search</h:commandLink>
</h:panelGroup>