Code: Select all
<p:layout style="width: 900px; height: 1720px;">
<p:layoutUnit position="west" style="width: 700px;">
<h:form>
<p:tree value="${accessRoleTree.root}"
var="item"
nodeSelectListener="${accessRoleTree.onNodeselect}"
dynamic="true"
update="formID"
cache="false">
<p:treeNode type="role">
<h:outputText value="${item.name}" />
</p:treeNode>
<p:treeNode type="accessRole">
<h:outputText value="${item.shortUrl}" />
</p:treeNode>
</p:tree>
</h:form>
</p:layoutUnit>
<p:layoutUnit id="centerId" position="center">
<h:form id="formID" prependId="false">
<p:dataTable id="id2"
value="${accessRoles.selectedAccessRoles}"
var="accessRole"
rowIndexVar="row"
selectionMode="single"
binding="${accessRoles.table}"
>
<p:column>
<h:outputText value="${row}"/>
</p:column>
<p:column>
<f:facet name="header"><h:outputText value="Name (here was text in russian)"/></f:facet>
<h:outputText value="${accessRole.humanName}"/>
</p:column>
<p:column>
<f:facet name="header"><h:outputText value="filePath"/></f:facet>
<h:outputText value="${accessRole.filePath}"/>
</p:column>
<p:column>
<f:facet name="header"><h:outputText value="shortUrl"/></f:facet>
<h:outputText value="${accessRole.shortUrl}"/>
</p:column>
<p:column>
<a4j:commandLink value="edit"
oncomplete="dlg.show()"
action="${accessRoleProperties.onPopulate}"
reRender="accessRolePropertiesForm" >
<img src="${server.baseUrl}/static/images/edit.gif"/>
</a4j:commandLink>
</p:column>
</p:dataTable>
</h:form>
</p:layoutUnit>
</p:layout>
Help me, please