70 lines
3.7 KiB
Plaintext
70 lines
3.7 KiB
Plaintext
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
|
|
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
|
|
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
|
|
<%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%>
|
|
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
|
|
|
|
<h:form id="frm_tester">
|
|
<table style="width: 100%">
|
|
<tr>
|
|
<td>
|
|
<f:facet name="header">
|
|
<t:outputText value="Tester 1" />
|
|
</f:facet>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<t:dataTable id="tableTester" value="#{routing.regole}" var="regola" cellspacing="5px" >
|
|
<f:facet name="caption">
|
|
<t:outputText value="Lista elementi : #{routing.num_regole}" style="text-align:center;border: 1px solid #000000"/>
|
|
</f:facet>
|
|
<t:column style="font-weight:bold;"
|
|
headerstyle="background-color:#99CCFF;">
|
|
<f:facet name="header">
|
|
<t:outputText value="CHECK" style="text-align:center;border: 1px solid #000000"/>
|
|
</f:facet>
|
|
<t:selectBooleanCheckbox value="#{regola.editable}" >
|
|
<a4j:actionparam name="editable" value="true" assignTo="#{regola.editable}"/>
|
|
<a4j:support event="onclick"
|
|
immediate="true"
|
|
reRender="loadingPanel"
|
|
onsubmit="Richfaces.showModalPanel('loadingPanel');"
|
|
oncomplete="Richfaces.hideModalPanel('loadingPanel');" />
|
|
</t:selectBooleanCheckbox>
|
|
</t:column>
|
|
<t:column style="font-weight:bold;"
|
|
headerstyle="background-color:#99CCFF;">
|
|
<f:facet name="header">
|
|
<t:outputText value="id regola" style="text-align:center;border: 1px solid #000000;width:100%"/>
|
|
</f:facet>
|
|
<t:outputText value="#{regola.idRegola}"></t:outputText>
|
|
</t:column>
|
|
<t:column style="font-weight:bold;"
|
|
headerstyle="background-color:#99CCFF;">
|
|
<f:facet name="header" >
|
|
<t:outputText value="olo" style="text-align:center;border: 1px solid #000000;width:100%" />
|
|
</f:facet>
|
|
<t:inputText value="#{regola.olo}" size="10" rendered="#{regola.editable}" />
|
|
<t:outputText value="#{regola.olo}" rendered="#{not regola.editable}" />
|
|
</t:column>
|
|
</t:dataTable>
|
|
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td>
|
|
<rich:modalPanel shadowDepth="1" shadowOpacity="4"
|
|
styleClass="rich-mpnl-shadow"
|
|
style="border:2 solid;border-color:#AAAAFF;" width="252"
|
|
height="232" id="loadingPanel" autosized="true" zindex="100"
|
|
left="500" top="150">
|
|
<h:graphicImage alt="loading..." width="250" height="230"
|
|
style="align:center;"
|
|
value="/resources/images/loading_aqua.gif" />
|
|
</rich:modalPanel>
|
|
</td>
|
|
</tr>
|
|
</table>
|
|
</h:form>
|