|
|
@ -10,15 +10,16 @@ |
|
|
|
<h:messages /> |
|
|
|
<h:messages /> |
|
|
|
<h:form id="form1"> |
|
|
|
<h:form id="form1"> |
|
|
|
<div> |
|
|
|
<div> |
|
|
|
<p:inputText id="searchFor" size="45" |
|
|
|
<p:autoComplete id="searchFor" size="45" |
|
|
|
placeholder="Recipe title/cuisine/category, etc.)" |
|
|
|
placeholder="Recipe title/cuisine/category, etc.)" |
|
|
|
value="#{adminMainBean.searchText}" |
|
|
|
value="#{adminMainBean.searchText}" |
|
|
|
|
|
|
|
completeMethod="#{adminMainBean.searchSuggestionList}" |
|
|
|
> |
|
|
|
> |
|
|
|
<f:ajax event="change" execute="@this" |
|
|
|
<f:ajax event="change" execute="@this" |
|
|
|
render="form2:table1" |
|
|
|
render="form2:table1" |
|
|
|
listener="#{adminMainBean.ajaxUpdateList}" |
|
|
|
listener="#{adminMainBean.ajaxUpdateList}" |
|
|
|
/> |
|
|
|
/> |
|
|
|
</p:inputText> |
|
|
|
</p:autoComplete> |
|
|
|
<p:defaultCommand target="find" /> |
|
|
|
<p:defaultCommand target="find" /> |
|
|
|
<p:commandButton id="find" value="Find" |
|
|
|
<p:commandButton id="find" value="Find" |
|
|
|
icon="ui-icon-search" |
|
|
|
icon="ui-icon-search" |
|
|
@ -28,12 +29,11 @@ |
|
|
|
<p:outputLabel for="@next" value="Search for " /> |
|
|
|
<p:outputLabel for="@next" value="Search for " /> |
|
|
|
<p:selectOneMenu id="ctlSearchType" |
|
|
|
<p:selectOneMenu id="ctlSearchType" |
|
|
|
value="#{userSession.searchType}" |
|
|
|
value="#{userSession.searchType}" |
|
|
|
immediate="true" |
|
|
|
|
|
|
|
> |
|
|
|
> |
|
|
|
<f:selectItems |
|
|
|
<f:selectItems |
|
|
|
value="#{userSession.searchTypeList}" |
|
|
|
value="#{userSession.searchTypeList}" |
|
|
|
/> |
|
|
|
/> |
|
|
|
<p:ajax /> |
|
|
|
<p:ajax listener="#{adminMainBean.resetSuggestions}"/> |
|
|
|
</p:selectOneMenu> |
|
|
|
</p:selectOneMenu> |
|
|
|
<p:commandButton id="ctlClear" value="Clear" |
|
|
|
<p:commandButton id="ctlClear" value="Clear" |
|
|
|
icon="ui-icon-close" |
|
|
|
icon="ui-icon-close" |
|
|
|