Thanks a lot for your answer.
Please would you mind telling me if I well understood:
-First case:
I have this in my jsp page:
<h:selectOneMenu id="fn" style="width:150px" value="#{
jspFormEPFService.functionLabel}" onchange="submit();" >
<f:selectItems
value="#{EthicFlow_JspWizard.jspFormEPFService.functionsToDisplay}" />
</h:selectOneMenu>
<h:selectOneMenu id="dimStructure" style="width:150px"
value="#{jspFormEPFService.dimStructLabel}" >
<f:selectItems
value="#{EthicFlow_JspWizard.jspFormEPFService.dimsStructToDisplay}" />
</h:selectOneMenu>
But then I need to recalculate the structure in a method submit() in my
bean?
-Second case:
I added this url to my jsp page:
<%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j" %>
But apparently I need to add as well some filters to my web.xml:
<!-- Ajax4JSF Initial parameters -->
<filter>
<display-name>Ajax4jsf Filter</display-name>
<filter-name>ajax4jsf</filter-name>
<filter-class>org.ajax4jsf.Filter</filter-class>
</filter>
<filter-mapping>
<filter-name>ajax4jsf</filter-name>
<url-pattern>/*</url-pattern>
</filter-mapping>
<!-- Ajax4JSF Initial parameters -->
But that doesnt seem to work, what do I miss?
Thanks for your help
Sophie
-----Message d'origine-----
De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Envoyé : vendredi 7 juillet 2006 15:34
À : MyFaces Discussion
Objet : Re: refreshing..
You can do that on server side by adding onchange="submit();" to
<h:selectOneMenu id="fn" ...> and in getDimsStructToDisplay() create the
proper
values for <f:selectItems value="#{jspFormEPFService.dimsStructToDisplay}"
/> in
<h:selectOneMenu id="dimStructure"... >
If you want to do that without reload of the page, use ajax4jsf instead of
onchange="submit();" with
<h:selectOneMenu id="fn" style="width:150px" value="#{
jspFormEPFService.functionLabel}" >
<a4j:support event="onchange" reRender="dimStructure" />
<f:selectItems value="#{jspFormEPFService.functionsToDisplay}" />
</h:selectOneMenu>
Holger
__________ NOD32 1.1649 (20060707) Information __________
This message was checked by NOD32 antivirus system.
http://www.eset.com