Skip to content

Commit

Permalink
FORGE-587: Wrap <h:panelGroup> in <f:validateBean disabled="true"> so…
Browse files Browse the repository at this point in the history
… that validation is not performed on search operation.
  • Loading branch information
Ryan Bradley committed Jun 8, 2012
1 parent 9946a05 commit 1e03caf
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions scaffold-faces/src/main/resources/scaffold/faces/search.xhtml
Expand Up @@ -25,14 +25,16 @@

<ui:define name="main">
<h:form id="search">
<h:panelGroup styleClass="search">

@{searchMetawidget}
<h:panelGroup styleClass="buttons">
<h:commandLink value="Search" action="#{@{beanName}.search}"/>
<h:commandLink value="Create New" action="#{@{beanName}.create}"/>
<f:validateBean disabled="true">
<h:panelGroup styleClass="search">

@{searchMetawidget}
<h:panelGroup styleClass="buttons">
<h:commandLink value="Search" action="#{@{beanName}.search}"/>
<h:commandLink value="Create New" action="#{@{beanName}.create}"/>
</h:panelGroup>
</h:panelGroup>
</h:panelGroup>
</f:validateBean>

@{beanMetawidget}
<ui:include src="/resources/scaffold/paginator.xhtml">
Expand Down

0 comments on commit 1e03caf

Please sign in to comment.