Panel

The actions-facet has 3 icons in the following ordering:


The following examples demonstrates the ejb-options:

Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.
Confirm

The attribute confirm=true will add a confirm dialog to the button

Confirmation Required!
Are you sure you want to proceed?
Confirmation Required!
Are you sure you want to proceed?

The default messages are:

Confirmation Required!
Are you sure you want to proceed?
Yes
No
Tooltips

xx

Text can directly entered
Both attributes required
multiLang
multiDescription
Table with clickable icons
j:svgp:gijp:icon

Clickable

TODO:

  1. Styling in j:svg and jp:icon need to be removed (to have no alignment in the p:panelGrid
  2. Styling need to be added to styleClass=jeeslPanel to have icons right-aligned in the f:actions for p:panel
  3. Styling need to be added to j:dtHeader to have to have icons right-aligned

 

*****

 

There are three different components available providing an icon and supporting a listener:

  • j:icon is using a type attribute for icons in the resource path. The use of j:icon is DEPRECATED, j:svg should be used instead!
  • jp:icon is using a value attribute for objects supporting EjbWithGraphic. The use of jp:icon is DEPRECATED, j:svg should be used with value instead!
  • j:svg is similar to j:icon, is using images in the resource-path with type or with value objects supporting EjbWithGraphic.

The following attributes are available for j:svg

  • ejb: Provides a object which has to support EjbWithId
  • ejbRendered : Additional rendering options based on the ID of the ejb: "saved" (only rendered if the id is > 0)
  • library : The library of the resource, jeesl graphics are using jeeslGfx

Tooltips are supported with different options

  • tooltip : text or EL expression
  • ttEntity+ttCode : Uling labeling engine
  • ttValue : To access attributes of a provided value.
<h:form id="fPanel">
	<p:panel header="Panel" styleClass="jeesl-panel">
		<f:facet name="actions">
			<j:svg type="jeeslSave" listener="#{iconClickBean.click()}" library="jeeslGfx" styleClass="jeesl-action-icon"/>
			<j:svg id="overlayButton" type="jeeslSearch" library="jeeslGfx" styleClass="jeesl-action-icon"/>
			<jp:icon value="#{iconClickBean.icon}" listener="#{iconClickBean.click()}"/>
		</f:facet>
		<p>
			The actions-facet has 3 icons in the following ordering:
		</p>
		<j:inputGrid labelWidth="9">
			<p:outputLabel value="j:svg"/>
			<j:svg type="jeeslSave" listener="#{iconClickBean.click()}"/>
			
			<p:outputLabel value="j:svg (without listener)"/>
			<j:svg type="jeeslSave" oncomplete="alert('CLick')"/>
			
			<p:outputLabel value="p:graphicImage"/>
			<p:graphicImage name="#{appIconBean.svg['jeeslSearch']}" library="jeeslGfx" height="12"/>
			
			<p:outputLabel value="jp:icon"/>
			<jp:icon value="#{iconClickBean.icon}" listener="#{iconClickBean.click()}"/>
			
			<p:outputLabel value="j:svg (value)"/>
			<j:svg value="#{iconClickBean.icon}" listener="#{iconClickBean.click()}"/>
		</j:inputGrid>
		<p:separator/>
		<p>
			The following examples demonstrates the ejb-options:
		</p>
		<j:inputGrid labelWidth="9">
			<p:outputLabel value="A unsaved EJB:"/>
			<jp:icon value="#{appIconBean.iconEjbUnsaved}" listener="#{iconClickBean.click()}"
						ejbRendered="unsaved" ejb="#{iconClickBean.unsavedEntity}"/>
		</j:inputGrid>
	</p:panel>
	<p:overlayPanel for=":fPanel:overlayButton:link" widgetVar="opDummy" appendToBody="false">