Prev Next
Topic Replies (5)
  1. 1
    idnkx user

    siuywi

    Hi All.
    I created a control parameter in Hidden Command property.... with Name : itemValue and Value : True... I am trying to access this value from in my action using ResolveExpression Command ....
    Object datavalue= resolveExpression("#{itemValue}");
    I am failing to get the Value .
    I think I am doing some mistake while using resolve Expression command.
    can anyone please help me out with this ..??

    1
    idnkx user

    Asadul

    this.getFacesContext().getExternalContext().getRequestParameterMap().get("itemValue");
    Try the above one....

    1
    idnkx user

    siuywi

    I want to extract Value : "Leading Ru" .... from "itemValue" in my action...Please see fig. for reference.

    1
    idnkx user

    siuywi

    I am receiving null .

    1
    idnkx user

    Asadul

    IContext sessionContext = ContextFactory.acquireContext(true);
    String itemValue = (String) sessionContext.getAttribute("itemValue",IContext.SCOPE_SESSION);

    try this....

Leave a Reply
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect