Topic
1 reply Latest Post - ‏2013-07-29T12:43:34Z by Berndyman
Demir
Demir
3 Posts
ACCEPTED ANSWER

Pinned topic Is it possible to open a forwarded EGL page in a Modal Dialog at the same page ?

‏2013-06-19T12:33:01Z |

Hi, 

In EGL programs, we are using 'forward' command to go a specific page. Such as: forward to label "gisLegendDetailDetailPage" ;

But, I want this page to be open at the top of the current page(clicked page) as a modal dialog. Is it possible ?

In fact, I created a modal dialog with the JQuery but it is also opened on the forwarded page.

In berief; is there any way to open a modal dialog at the same page when it was forwarded ?         

 

JSF Code

<h:commandLink
actionListener="#{gisLegendListPage._commandActionListener}"
action="#{gisLegendListPage.passParam}">
<h:outputText id="textLEGEND_IDDetail"
value="#{vargisLegendDetailArray.LEGEND_005fID}"
binding="#{vargisLegendDetailArray_LEGEND_005fID_Ref}"
styleClass="outputText">
</h:outputText>

</h:commandLink>

---------------------------------------------------------------------

EGL function

 function passParam()
 
        table UIData;
        index int;
        detailRec GisLegendDetail;
 
        table = viewRoot.findComponent("form1:tableEx2") as UIData;
        index = table.getRowIndex() + 1;
        move gisLegendDetailArray[index] to detailRec byName;
        j2eeLib.setSessionAttr(PageControl.DETAILRECORD, detailRec);
        j2eeLib.setSessionAttr(PageControl.DETAILMODE, PageControl.GETDETAIL);
        setupContext(PageControl.GETDETAIL);
 
        forward to label "gisLegendDetailDetailPage" ;
    end 
  • Berndyman
    Berndyman
    2 Posts
    ACCEPTED ANSWER

    Re: Is it possible to open a forwarded EGL page in a Modal Dialog at the same page ?

    ‏2013-07-29T12:43:34Z  in response to Demir

    Hi Demir,

    As far as I remember there is no easy way to create a popup-window in JSF. However, with some javacript you might be able to achieve your goal. For instance:

    document.getElementById('form1:myButton').onclick=window.open("your target JSP", "", 'width=200,height=100,scrollbars=yes,toolbar=yes,location=yes');

     

    Regards,

    Bernd.