Hi everybody,
I'm still trying to change to facelets (from jsp) but now I have a problem with the ajax functionality, I'trying to do 3 dependent lists (country, state, city)
in ajax, so far I see that the change is made in the flow (the variable take the value that the ajax fired action give it to it) but even using render
<render fragments="hotels:departamentosFragment" />
nothing change on the web page.
here's the code:
the ajax event trigger
Code:<sf:ajaxEvent action="clickBoton" event="onchange"> <h:selectOneMenu id="listPaises" styleClass="textfield" value="#{flowScope.pais}"> <f:selectItem itemLabel="#{messages['list.seleccione']}" /> <f:selectItems value="#{flowScope.paises}" /> </h:selectOneMenu> </sf:ajaxEvent>
the transition on the flow
FaceletCode:<transition on="clickBoton"> <set name="flowScope.title" value="'Changed with Ajax'"></set> <!-- new value --> <render fragments="hotels:departamentosFragment" /> </transition>
All the configuration is just fine since i'm working on an swf example (swf-booking-faces).Code:<ui:define name="content"> <h:form id="hotels"> .... .... <ui:fragment id="departamentosFragment" > <h:outputText value="#{flashScope.title}"/> .... .. </ui:fragment>
What am I missing, please a little help.
Regards.


Reply With Quote