Results 1 to 2 of 2
  1. #1
    fcsacin is offline Member
    Join Date
    Nov 2011
    Posts
    2
    Rep Power
    0

    Default JSF2 - f:ajax and f:param

    Hello...
    first.. sorry if someone already answered this question.. but i searched and not found... (and sorry my bad english)
    so.. i have the following question..
    on jsf1.x i could do this:
    Java Code:
    <a4j:support event="onChange".. required="#{empty param['skipvalidation']}">
    <f:param name="skipvalidation" value="1"/>
    </a4j:support>
    now.. on JSF2, if i try to do this, the listener method its not called and model its not updated... someone could
    tell me why and some way i could do this?
    the code on JSF2 version:
    Java Code:
    <f:ajax event="change" required="#{empty param['skipvalidation']}">
    <f:param name="skipvalidation" value="1"/>
    </f:ajax>

  2. #2
    fcsacin is offline Member
    Join Date
    Nov 2011
    Posts
    2
    Rep Power
    0

    Default Re: JSF2 - f:ajax and f:param

    Sorry guys.. i typed the wrong code..
    the code that is not working is:
    Java Code:
    <h:selectOneMenu id="parametroTipo"  
                value="#{testeMB.bean.tipoParametro}"  
                required="#{empty param['skipvalidation']}">  
                                                      
                    <f:selectItem itemLabel="" />   
                    <f:selectItems  
                        value="#{testeMB.listaTipoParametro}"  
                        var="tipoParametro" itemValue="#{tipoParametro}"  
                        itemLabel="#{tipoParametro.descricao}" />  
    <f:ajax event="change" execute="@this" render="parametroTipo">                                                      
    <f:param name="skipvalidation" value="1"/>  
    </f:ajax>  
    </h:selectOneMenu>

Similar Threads

  1. JSF2.0 & Datepicker
    By kors in forum JavaServer Faces (JSF)
    Replies: 3
    Last Post: 05-31-2012, 07:57 AM
  2. Array as object or param?
    By überfuzz in forum New To Java
    Replies: 3
    Last Post: 02-08-2011, 11:06 PM
  3. Problem with Jboss 5.1.0.GA and (JSF 1.2 or JSF2.0)
    By Nagabrahmam in forum JavaServer Faces (JSF)
    Replies: 0
    Last Post: 05-17-2010, 12:13 PM
  4. How to use <s:param> tag
    By aruna.hcu in forum Web Frameworks
    Replies: 7
    Last Post: 01-13-2010, 08:25 AM
  5. jsp:param action
    By Java Tip in forum Java Tip
    Replies: 0
    Last Post: 12-24-2007, 10:03 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •