[PrimeFaces] Cannot find component for expression "imageFichierAxe"
Bonjour à tous,
Comme dans le sujet, mon composant ajax ne trouve pas l'ID de objet "imageFichierAxe" pourtant il y est bien.
Je voudrais savoir s'il y a des contraintes de "portée"
L'evenement declanchant est "slideEnd" ce slide est dans un "tab" d'un "tabview". et l'objet "imageFichierAxe" est un "graphicImage" dans un "panelGrid" à l’extérieur du "tab"
Je mets la partie du wizard ou il y a le probleme.
merci
Code:
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 80 81 82 83 84 85 86 87 88 89 90 91 92 93
| <p:panel>
<h:panelGrid columns="2">
<p:column style="max-width:45%;">
<p:tabView id="tabViewPreOp" activeIndex="${calculWizard.formCalcul.unitesK}" dynamic="true" cache="true">
<p:ajax event="tabChange" listener="#{calculWizard.onTabChange}" update=":formSaisie:tabViewPreOp" />
<p:tab id="tabDiotrie" title="#{msg['form.calcul.notionMeridiens.dioptrie']}">
<h:panelGrid id="grid2D" columns="3" cellpadding="2">
<h:outputText for="kPlat" value="#{msg['form.calcul.kPlat']}" />
<h:panelGrid columns="1" style="margin-bottom: 10px">
<p:inputNumber id="kPlat" style="text-align: center;" value="#{calculWizard.formCalcul.kPlat}" symbol=" D" symbolPosition="s" />
<p:slider for="kPlat" minValue="35" maxValue="50" step="0.5" required="true" validatorMessage="Nom kPlat !"></p:slider>
</h:panelGrid>
<p:message for="kPlat" />
<h:outputText for="axePlat" value="#{msg['form.calcul.axePlat']}" />
<h:panelGrid columns="1" style="margin-bottom: 10px">
<p:inputNumber id="axePlat" value="#{calculWizard.formCalcul.axePlat}" symbol=" °" symbolPosition="s" required="true" validatorMessage="axe Plat !">
</p:inputNumber>
<p:slider for="axePlat" minValue="0" maxValue="180" step="1" required="true" validatorMessage="Nom kcambré !"><p:ajax event="slideEnd" listener="#{calculWizard.onSlideEndAxePlat}" update="imageFichierAxe" /> </p:slider>
</h:panelGrid>
<p:message for="axePlat" />
<h:outputText for="kCambre" value="#{msg['form.calcul.kCambre']}" />
<h:panelGrid columns="1" style="margin-bottom: 10px">
<p:inputNumber id="kCambre" value="#{calculWizard.formCalcul.kCambre}" symbol=" D" symbolPosition="s" required="true" validatorMessage="Nom kPlat !" />
<p:slider for="kCambre" minValue="35" maxValue="50" step="0.5" required="true" validatorMessage="Nom kcambré !" >
</p:slider>
</h:panelGrid>
<p:message for="kCambre" />
<h:outputText for="axeCambre" value="#{msg['form.calcul.axeCambre']}" />
<h:panelGrid columns="1" style="margin-bottom: 10px">
<p:inputNumber id="axeCambre" value="#{calculWizard.formCalcul.axeCambre}" symbol=" °" symbolPosition="s" readonly="1" />
</h:panelGrid>
<p:message for="axeCambre" />
</h:panelGrid>
</p:tab>
<p:tab id="tabmm" title="#{msg['form.calcul.notionMeridiens.milimetre']}">
<h:panelGrid id="grid2M" columns="3" cellpadding="2">
<ui:include src="calculM.xhtml"></ui:include>
</h:panelGrid>
</p:tab>
</p:tabView>
</p:column>
<p:column style="max-width:50%;">
<h:panelGrid id="gridOeil1" styleClass="ui-noborder" columns="3" layout="table">
<f:facet name="header">
<p:column colspan="3"><h:outputText value="Oeil #{msg[calculWizard.formCalcul.oeil]}"/></p:column>
</f:facet>
<p:column style="width:30px; -webkit-transform:rotate(270deg);"><h:outputText value="#{msg[calculWizard.temporal]}" /></p:column>
<p:column><p:graphicImage id="imageFichierAxe" value="#{calculWizard.imageAxe}" stream="false"/></p:column>
<p:column style="width:30px; -webkit-transform:rotate(270deg);" ><h:outputText value="#{msg[calculWizard.nasal]}" /></p:column>
<p:column></p:column>
<p:column style="margin-left: auto;margin-right: auto">
<p:commandButton value="#{msg['form.calcul.btMAJ']}" id="btajax" update="imageFichierAxe" actionListener="#{calculWizard.updateAxes()}" />
</p:column>
<p:column></p:column>
</h:panelGrid>
</p:column>
<p:column>
<h:panelGrid id="grid2" columns="2" cellpadding="2">
<h:outputText for="AIC" value="#{msg['form.calcul.AIC']}" />
<h:panelGrid columns="1" style="margin-bottom: 10px">
<p:inputNumber id="AIC" value="#{calculWizard.formCalcul.AIC}" size="8" symbol=" D" symbolPosition="s" required="true" validatorMessage="AIC !" />
<p:slider for="AIC" minValue="0.00" maxValue="2.00" step="0.01" required="true" validatorMessage="AIC" />
</h:panelGrid>
<h:outputText for="LI" value="#{msg['form.calcul.LI']}" />
<h:panelGrid columns="1" style="margin-bottom: 10px">
<p:inputNumber id="LI" value="#{calculWizard.formCalcul.LI}" size="8" symbol=" °" symbolPosition="s" required="true" validatorMessage="LI !" />
<p:slider for="LI" minValue="0" maxValue="360" step="1" required="true" validatorMessage="LI" />
</h:panelGrid>
<h:outputText for="plio" value="#{msg['form.calcul.plio']}" />
<h:panelGrid columns="1" style="margin-bottom: 10px">
<p:inputNumber id="plio" value="#{calculWizard.formCalcul.pIOL}" size="8" symbol=" D" symbolPosition="s" required="true" validatorMessage="pIOL !" />
<p:slider for="plio" minValue="5.00" maxValue="33.00" step="0.5" required="true" validatorMessage="pIOL"></p:slider>
</h:panelGrid>
</h:panelGrid>
</p:column>
<p:column>legende</p:column>
</h:panelGrid>
</p:panel> |