http://www.jobinesh.com/2010/10/enabling-validation-for-table-filters.html
<af:table value="#{bindings.ExampleReviewROVO.collectionModel}"
var="row"
rows="#{bindings.ExampleReviewROVO.rangeSize}"
emptyText="#{bindings.ExampleReviewROVO.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.ExampleReviewROVO.rangeSize}"
rowBandingInterval="0"
filterModel="#{bindings.ExampleReviewROVOQuery.queryDescriptor}"
queryListener="#{bindings.IExampleReviewROVOQuery.processQuery}"
filterVisible="true" varStatus="vs"
selectedRowKeys="#{bindings.ExampleReviewROVO.collectionModel.selectedRow}"
selectionListener="#{bindings.ExampleReviewROVO.collectionModel.makeCurrent}"
rowSelection="single" id="t1"
columnStretching="column:c9" immediate="true">
<af:column sortProperty="Bin" filterable="true"
sortable="true"
headerText="#{bindings.ExampleReviewROVO.hints.Bin.label}"
id="c6" width="55">
<af:inputText value="#{row.bindings.Bin.inputValue}"
label="#{bindings.ExampleReviewROVO.hints.Bin.label}"
required="#{bindings.ExampleReviewROVO.hints.Bin.mandatory}"
columns="#{bindings.ExampleReviewROVO.hints.Bin.displayWidth}"
maximumLength="#{bindings.ExampleReviewROVO.hints.Bin.precision}"
shortDesc="#{bindings.ExampleReviewROVO.hints.Bin.tooltip}"
id="it1">
<f:validator binding="#{row.bindings.Bin.validator}"/>
</af:inputText>
<f:facet name="filter">
<af:inputText value="#{vs.filterCriteria.Bin}" id="id31"
label=" ">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.ExampleReviewROVO.hints.Bin.format}"/>
</af:inputText>
</f:facet>
</af:column>
</af:table>
<af:table value="#{bindings.ExampleReviewROVO.collectionModel}"
var="row"
rows="#{bindings.ExampleReviewROVO.rangeSize}"
emptyText="#{bindings.ExampleReviewROVO.viewable ? 'No data to display.' : 'Access Denied.'}"
fetchSize="#{bindings.ExampleReviewROVO.rangeSize}"
rowBandingInterval="0"
filterModel="#{bindings.ExampleReviewROVOQuery.queryDescriptor}"
queryListener="#{bindings.IExampleReviewROVOQuery.processQuery}"
filterVisible="true" varStatus="vs"
selectedRowKeys="#{bindings.ExampleReviewROVO.collectionModel.selectedRow}"
selectionListener="#{bindings.ExampleReviewROVO.collectionModel.makeCurrent}"
rowSelection="single" id="t1"
columnStretching="column:c9" immediate="true">
<af:column sortProperty="Bin" filterable="true"
sortable="true"
headerText="#{bindings.ExampleReviewROVO.hints.Bin.label}"
id="c6" width="55">
<af:inputText value="#{row.bindings.Bin.inputValue}"
label="#{bindings.ExampleReviewROVO.hints.Bin.label}"
required="#{bindings.ExampleReviewROVO.hints.Bin.mandatory}"
columns="#{bindings.ExampleReviewROVO.hints.Bin.displayWidth}"
maximumLength="#{bindings.ExampleReviewROVO.hints.Bin.precision}"
shortDesc="#{bindings.ExampleReviewROVO.hints.Bin.tooltip}"
id="it1">
<f:validator binding="#{row.bindings.Bin.validator}"/>
</af:inputText>
<f:facet name="filter">
<af:inputText value="#{vs.filterCriteria.Bin}" id="id31"
label=" ">
<af:convertNumber groupingUsed="false"
pattern="#{bindings.ExampleReviewROVO.hints.Bin.format}"/>
</af:inputText>
</f:facet>
</af:column>
</af:table>
No comments:
Post a Comment