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.


#TechXchangePresenter
 View Only
Expand all | Collapse all

How to send client-side param to my data

  • 1.  How to send client-side param to my data

    Posted Fri February 01, 2013 07:06 AM

    Hello,

    I have a menu with a list of items, every item contains a controle param exp :

    menu1 : paramName : value1
    menu2 : paramName : value2
    menu3 : paramName : value3
    .
    .
    .

    I want to send the param value into my request to refresh a part of my view by setting the return value of a data with the value of the param everytime.

    how can i get this value plz ??

    below my method : DomaineSelected is my data

    public java.lang.String getDomaineSelected()  {
    return ??? ;
    }
    

    1 - my command link

    2 - control param

    3 - my data

    i use a static value in my data

    public java.lang.String getDomaineSelected()  {
    return "douane";
    }
    

    i want change the return with the value of my params in client side

    thanks and regards


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


  • 2.  RE: How to send client-side param to my data

    Posted Fri February 01, 2013 04:46 PM

    The command parameters should be accessible as request parameters.

    For example:

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

    Or:

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

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