myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From omid p <vermind...@gmail.com>
Subject Re: passing information in tr:inputListOfValues
Date Thu, 06 Jan 2011 08:53:51 GMT
Hi,
finally i successfully send parameters to diloag box but i can not send
params from dialog box to parent page am i missing sth ?

 <tr:form>
               <tr:inputListOfValues label="Select" value="(Empty)"
action="dialog:valueDialog"
               >
               <tr:setActionListener from="K"
                                        to="#{pageFlowScope.myval}"/>

               </tr:inputListOfValues>
               <tr:outputText
value="#{pageFlowScope.myvar.firstName}"></tr:outputText>
               <tr:commandButton text="getLov Val"></tr:commandButton>

       </tr:form>

Dialog.jspx

 <tr:form>
       <tr:outputText value="#{pageFlowScope.myval}"></tr:outputText>
               <tr:commandButton text="Select user "
action="#{listBean.select}"></tr:commandButton>
       </tr:form>

Code behind

public String select(){
        User user = new User("omid", "p");

        RequestContext requestContext = RequestContext.getCurrentInstance();


        requestContext.returnFromDialog(user.getLastName(), null);
        requestContext.getPageFlowScope().put("myvar", user); //this has no
effect

        return "";
    }

i can't get myvar

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message