If you're using a backing bean action to differentiate the kind of
navigation, use the same action to set the flag in the page flow scope.


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



2009/3/30 Rafa Pérez <raja...@gmail.com>

> Thanks for your answer, but I'm not sure if it could be applied to our
> problem. The button who launches the dialog is used to navigate to other
> pages too, and if one of those pages can be opened either in "dialog mode"
> or normal flow of navigation. Then it won't be possible to differentiate in
> which case we are, aren't we?
>
> Regards,
>
> -- Rafa
>
>
> 2009/3/26 Walter Mourão <walter.mou...@gmail.com>
>
>> Not sure if it is possible "per si", but you can set a flag in the
>> pageFlowScope to be checked inside the (supposed) dialog page, like:
>>
>> <tr:commandButton ...>
>> <tr:setActionListener from="#{row}" to="#{pageFlowScope.dialogFlag}" />
>> </tr:commandButton>
>>
>>
>> Cheers,
>>
>> Walter Mourão
>> http://waltermourao.com.br
>> http://arcadian.com.br
>> http://oriens.com.br
>>
>>
>>
>> 2009/3/26 Rafa Pérez <raja...@gmail.com>
>>
>> Hi all,
>>>
>>> we have several pages that can be opened either in the normal flow of the
>>> application or as dialogs. Is it possible to programmattically know if a
>>> window is opened as a dialog?
>>>
>>> Thanks in advance,
>>>
>>> -- Rafa
>>>
>>> PS: We are using Trinidad 1.0.10 and MyFaces 1.1.6
>>>
>>
>>
>

Reply via email to