This is the expected behavior. The page flow scope does not 'goes back' from
the dialog. To return values you have to use the returnFromDialog method
(the second parameter is a Map to return many values).


Walter Mourão
http://waltermourao.com.br
http://arcadian.com.br
http://oriens.com.br



On Thu, Jan 6, 2011 at 6:53 AM, omid p <vermind...@gmail.com> wrote:

> 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
>

Reply via email to