xx:listOf
TextEH1EH2EH3
Edit
Boolean

UiEditHandler

The UiEditHandler are utility classes helping to determine if input fields in the user interface are editable or not. There are a couple of implementations available:

  • UiEditStatusHandler : Evaluates one or more specific status of an entity. They can be in a allow and/or deny list
  • UiEditLogicHandler : Combines multiple UiEditHandlers with AND or OR conditions.
<h:body>
	<ui:composition>
<h:form id="fTypes">
	<p:dataTable styleClass="jeesl-datatable"
			var="t" value="#{handlerEditBean.types}"
			selection="#{handlerEditBean.type}" selectionMode="single" rowKey="#{t.id}">
		<f:facet name="header">
			<j:dtHeader entity="xx" code="listOf"/>
		</f:facet>
		<p:ajax event="rowSelect" listener="#{handlerEditBean.selectType()}" update=":fPanel"/>
        <p:column headerText="Text">  
          <p:outputLabel value="#{t.code}"/>
        </p:column>
        <p:column headerText="EH1" styleClass="jeeslCenter">
        	<j:triCheckmark value="#{handlerEditBean.map1[t]}"/>
        </p:column>
        <p:column headerText="EH2" styleClass="jeeslCenter">
        	<j:triCheckmark value="#{handlerEditBean.map2[t]}"/>
        </p:column>
        <p:column headerText="EH3" styleClass="jeeslCenter">
        	<j:triCheckmark value="#{handlerEditBean.map3[t]}"/>
        </p:column> 
      </p:dataTable>	
</h:form>
<h:form id="fPanel">
	<p:panel header="Edit" styleClass="jeesl-panel">
		<f:facet name="actions">
			<j:svg type="jeeslSave" rendered="#{handlerEditBean.eh3.allow}" listener="#{handlerEditBean.save()}"/>
		</f:facet>
		<p:panelGrid columns="2" columnClasses="jeeslGrid30,jeeslGrid70">
			<p:outputLabel value="Label"/>
			<p:inputText value="#{handlerEditBean.txt}" rendered="#{handlerEditBean.eh3.allow}"/>
			<h:outputText value="#{handlerEditBean.txt}" rendered="#{handlerEditBean.eh3.deny}"/>
		</p:panelGrid>
	</p:panel>
</h:form>