Examples (jtp)
entity
entity+code
Tooltip Description
Examples (j)
entity="JeeAttribute"
entity="JeeUnknown" (Fallback to debug)
entity="JeeAttribute" (Fallback to default)

entity="JeeAttribute" code="label"
entity="JeeAttribute" code="label" userLocaleCode="de"
entity="JeeAttribute" code="something" (Fallback to debug)
entity="JeeAttribute" code="missing" (Fallback to default)
Tooltip Description
Tests
Image Options (for entity+code)
entity+code+url

j2:label inside of j:inputGrid
does not work

Label

jtp:label

Additional user feedback for missing field input can be provided without having to rely on client side validation.

Required are the to be validated field and a boolean to check if validation should take place.

< jtp:label validated="#{bean.boolean}" field="#{bean.entity.field" />

If the field is empty and validated true the label will be marked red, otherwise it will have default styling.

< jtp:label entity="JeeAttribute" code="demo" .... > entity and code are evaluated to corresponding revision entity and attribute. Appropriate translated text is applied, when corresponding revision entity and attributes are not defined it is evaluated to entityName:column name so that we can be later put in translation in revision.

<p:panel styleClass="jeesl-panel">
	<f:facet name="header"><j:pHeader title="Examples (jtp)"/></f:facet>
	<f:facet name="actions">
		<j:svg type="jeeslSave" listener="#{outputLabelBean.validate()}" update="@form" />
	</f:facet>
	<j:inputGrid>
		<jtp:label entity="JeeAttribute"/>
		<h:outputText id="jtp-entity" value="entity"/>
		
		<jtp:label entity="JeeAttribute" code="label"/>
		<h:outputText id="jtp-entity-code" value="entity+code"/>
		
		<jtp:label entity="JeeAttribute" code="label" ttd="true"/>
		<h:outputText id="jtp-tooltip" value="Tooltip Description"/>
	</j:inputGrid>
</p:panel>