Reputation: 416
I am facing a situation where i have to use a component wrapper, or something that does the same as "outputPanel" in primefaces. do you know any ?
Upvotes: 2
Views: 3836
Reputation: 1109874
I needed to rerender DataTable from an ajax action fired from a command link inside it
Just reference the data table itself.
<h:form id="form">
<h:dataTable id="table" ...>
<h:column>
<h:commandLink ...>
<f:ajax ... render=":form:table" />
</h:commandLink>
</h:column>
</h:dataTable>
</h:form>
Or, if you really insist for some unclear reason, the plain JSF equivalent of <p:outputPanel>
is just <h:panelGroup>
.
<h:form id="form">
<h:panelGroup id="group">
<h:dataTable ...>
<h:column>
<h:commandLink ...>
<f:ajax ... render=":form:group" />
</h:commandLink>
</h:column>
</h:dataTable>
</h:panelGroup>
</h:form>
Upvotes: 2
Reputation: 5619
Since you asked for an equivalent component wrapper, I would suggest using panelGrid with columns value of one.
<h:panelGrid id="grid" columns="1">
</h:panelGrid>
Upvotes: 6