1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79
|
<ui:composition template="/faces/templates/neweditTemplate.xhtml"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich"
xmlns:a4j="http://richfaces.org/a4j"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:c="http://java.sun.com/jstl/core"
xmlns:richfaces="http://richfaces.ajax4jsf.org/rich">
<ui:define name="object">
<h:outputLabel value="#{generalSocieteBean.s1}" id="pp"></h:outputLabel>
<h:inputText style=" width : 300px;" value="#{generalSocieteBean.s2}">
<a4j:support event="onchange" action="#{generalSocieteBean.change}"
reRender="pp"
actionListener="#{generalSocieteBean.onchangePoinGrai}"></a4j:support>
</h:inputText>
<rich:panel style="text-align:right">
<h:outputLabel>
<h:graphicImage url="#{a4jSkin.nameSkin}/img/add1.gif"
onclick="Richfaces.showModalPanel('panelTreeptgraissage')" />
Ajouter
</h:outputLabel>
</rich:panel>
</ui:define>
<ui:define name="content">
<h:form id="ff">
<rich:modalPanel id="panelTreeptgraissage" height="500" width="600"
resizeable="true" moveable="false">
<f:facet name="header">
<rich:dropDownMenu value="Action">
<rich:menuItem value="Exit"
icon="#{a4jSkin.nameSkin}/img/exit.png"
onclick="Richfaces.hideModalPanel('panelTreeptgraissage');">
</rich:menuItem>
<rich:menuItem value="Ajouter" ajaxSingle="true"
icon="#{a4jSkin.nameSkin}/img/edititem.gif" submitMode="ajax">
<a4j:support event="onclick"
action="#{generalSocieteBean.change}" reRender="pp"
actionListener="#{generalSocieteBean.onchangePoinGrai}"></a4j:support>
</rich:menuItem>
</rich:dropDownMenu>
</f:facet>
<rich:panel>
<h:inputText style=" width : 300px;"
value="#{generalSocieteBean.s1}">
<a4j:support event="onchange"
action="#{generalSocieteBean.change}" reRender="pp"
actionListener="#{generalSocieteBean.onchangePoinGrai}"></a4j:support>
</h:inputText>
</rich:panel>
<a4j:commandButton id="yesButton" value="hello" reRender="pp"
action="#{generalSocieteBean.change}">
</a4j:commandButton>
</rich:modalPanel>
</h:form>
</ui:define>
</ui:composition> |
Partager