IBM webMethods Hybrid Integration

IBM webMethods Hybrid Integration

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
Expand all | Collapse all

Problem with passing param with htmlCommandLink

  • 1.  Problem with passing param with htmlCommandLink

    Posted Tue February 05, 2013 02:22 PM

    Hi,

    I have a question about using htmlCommandLink. In my application, I am using a htmlCommandLink and using a param to pass. However, the param always retuns a null value using one of those methods below :

    String value = (String)resolveExpression("#{param['paramName']}");

    or

     String value2 = (String)getFacesContext().getExternalContext().getRequestParameterMap().get("paramName");  

    I don’t know why, even my param value is sending in the url request!!
    do I have to set something in the scope ???

    thanks and regards


    #MWS-CAF-Task-Engine
    #webMethods-BPMS
    #webMethods


  • 2.  RE: Problem with passing param with htmlCommandLink

    Posted Mon February 11, 2013 01:29 AM

    Hi,

    Did you try getting req. params as given below?

    String reqParamValue = PortalServlet.getCurrentRequest().getParameter(“paramName”);

    regards,
    Raj


    #webMethods-BPMS
    #MWS-CAF-Task-Engine
    #webMethods