Mojarra 2.1.28 ui:repeat nested in h:datatable receiving null value
Issue
ui:repeatin a xhtml callstestAction.findAppIds(agency)withagency=nullbut each agency comes fromtestAction.agenciesand it does not contain null.
WhyfindAppIdsis called with null? How to modify to avoid this issue?
<body>
<h2>Test Page</h2>
<br />
<!-- Data Entry Area -->
<h:form id="serviceAgenciesForm">
<h:dataTable var="agency" value="#{testAction.agencies}" cellpadding="8">
<h:column>
<f:facet name="header">
<h:outputText value="ID" ></h:outputText>
</f:facet>
<h:outputText value="agency id: #{agency.id}"></h:outputText>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="Applications" ></h:outputText>
</f:facet>
<ui:repeat var="app" value="#{testAction.findAppIds(agency)}"></ui:repeat>
<h:outputText value="Application names: #{app}" ></h:outputText>
</h:column>
</h:dataTable>
</h:form>
</body>
Environment
- Red Hat JBoss Enterprise Application Platform (EAP) 6.3.2
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
