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

need help on resolveExpression for my param

  • 1.  need help on resolveExpression for my param

    Posted Wed February 06, 2013 12:58 PM

    Hello,

    this is my problem in detail :

    I have a menu item of HtmlCommandLink control

    every item is a HtmlCommandLink control with a param passed

    the domaine name text on the top is a parameterized text attached to a data name “domaineName”

    my data must return the value of the param to show it in the parameterized text, but it return always a null value.
    below my return data code that return null

    
    public java.lang.String getDomaineName()  {  
    String domaineName = (String)resolveExpression("#{param['param']}");
    return domaineName;
    }

    i tried also this method but i got always null value

    
    public java.lang.String getDomaineName()  {  
    String value = (String)getFacesContext().getExternalContext().getRequestParameterMap().get("param");
    return domaineName;
    }

    when i looked in the web, the last two methods work well for some members, but not for me :frowning:
    the request is sent on the url and contains the param value, but on the view my parameterized text displays nothing, the return value is always null !!

    plz if you have any help bout the cause of this problem

    Thanks and regards


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


  • 2.  RE: need help on resolveExpression for my param

    Posted Fri February 08, 2013 11:58 AM

    Hello:

    Try to use

    
    HttpServletRequest request = PortalServlet.getCurrentRequest();
    
    domainName = request.getParameter("domainName"); // if domainName is your param....

    Hope this help.

    Regards.


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