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
|
<?xml version="1.0" encoding="iso-8859-15"?>
<!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<ui:composition xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
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"
template="layout/template.xhtml">
<ui:define name="body">
<h:form>
<rich:modalPanel id="panel" width="350" height="100">
<f:facet name="header">
<rich:panel bodyClass="rich-laguna-panel-no-header">
<a4j:commandLink value="Office" reRender="ajaxPanel,rep"><a4j:actionparam value="1" assignTo="#{faq.id}"/></a4j:commandLink>
<a4j:commandLink value="Facturation" reRender="ajaxPanel"><a4j:actionparam value="2" assignTo="#{faq.id}"/></a4j:commandLink>
<a4j:commandLink value="Portail" reRender="ajaxPanel"><a4j:actionparam value="3" assignTo="#{faq.id}"/></a4j:commandLink>
</rich:panel>
</f:facet>
<f:facet name="controls">
<h:panelGroup>
<h:graphicImage value="layout/static/img/close.png" style="cursor:pointer" id="hidelink"/>
<rich:componentControl for="panel" attachTo="hidelink" operation="hide" event="onclick"/>
</h:panelGroup>
</f:facet>
<a4j:outputPanel id="ajaxPanel" ajaxRendered="true" >
<h:panelGroup rendered="#{faq.id != null}">
<div style="width:150;height:300;overflow:auto"><img src="#{facesContext.externalContext.request.contextPath}/layout/static/img/offre.png" style="margin-top:10px; margin-left:10px"/></div>
</h:panelGroup>
<h:panelGroup rendered="#{faq.id != null && faq.id=='2' }">
<div style="width:150;height:300;overflow:auto"><img src="#{facesContext.externalContext.request.contextPath}/layout/static/img/facturation.png" style="margin-top:10px; margin-left:10px"/></div>
</h:panelGroup>
<h:panelGroup rendered="#{faq.id != null && faq.id=='3'}">
<div style="width:150;height:300;overflow:auto"><img src="#{facesContext.externalContext.request.contextPath}/layout/static/img/portail.png" style="margin-top:10px; margin-left:10px"/></div>
</h:panelGroup>
</a4j:outputPanel>
</rich:modalPanel>
<rich:panel bodyClass="rich-laguna-panel-no-header">
<h:outputText id="rep" value="Selected Name:#{faq.id}"/>
</rich:panel>
<h:outputLink value="#" id="link">FAQ<rich:componentControl for="panel" attachTo="link" operation="show" event="onclick"/></h:outputLink>
</h:form>
</ui:define>
</ui:composition> |
Partager