Javascript popups in page flows?

Is there a way to make a popup window in a page flow? I want to have a
link which will use Javascript to pop up a new window, but I don't like
having to hard code the link to that window instead of using the page
flow functionality.
What I've been able to get working is:
<script language="Javascript">
function createNew() {
window.open('/MyPortalWeb/mydir/create_item/create_itemController.jpf','newItemWin','height=500,width=500,scrollbars');
</script>
Create New Item
Is there a way to do this with netui tags, so that I can use actions to
direct the page flow, and still get the ability to open the link in a
new window?
Joe Robins                    Tel: 212-918-5057
Thaumaturgix, Inc.               Fax: 212-918-5001
19 W. 44th St., Suite 810          Email: [email protected]
New York, NY 10036               http://www.tgix.com
thau'ma-tur-gy, n. the working of miracles.

Tanya,
I read this hread from you. I had posted a similar issue yesterday(look for posts
by Jack). Is ther a way to work with page flows and popup's until sp2 comes out
in december?
Thanks
"tanya" <[email protected]> wrote:
>
Apologies, that last message was not complete...
You can try using:
<netui:anchor href="/myNestedFlow/Controller.jfp" anchor="A"/>
But, one thing to note for GA, there is a limitation where you cannot
call 2 (or
more) pop ups and expect to maintain 2 pageflow stacks. Only the current
pageflow
and it's nested stack are kept in the session. Having a 2nd pageflow
will stomp
on this first one.
For SP2, out sometime in dec, there will be a workaround for this:
<netui:anchor href="../a/FlowA.jpf" target="_a">
<netui:parameter name="jpfScopeID" value="scopeA"/>
Page Flow A (scope "scopeA")
</netui:anchor>
<br>
<netui:anchor href="../b/FlowB.jpf" target="_b">
<netui:parameter name="jpfScopeID" value="scopeB"/>
Page Flow B (scope "scopeB")
</netui:anchor>
Each scope has its own idea of the current page flow and the current
stack
of nested page flows.
-Tanya
"tanya" <[email protected]> wrote:
How about
Popups and pageflow don't work together in 8.1GA because only the current
pageflow
and it's stack (of nested pageflows) is maintained in the session. 8.1sp2
(out
sometime in dec) will be able to handle this. It will look something
like this:
<frameset cols="50%,50%">
<frame src="../a/FlowA.jpf?jpfScopeID=scopeA" name="frameA">
<frame src="../b/FlowB.jpf?jpfScopeID=scopeB" name="frameB">
</frameset>
Each scope has its own idea of the current page flow and the current
stack
of nested page flows.
Joe Robins <[email protected]> wrote:
Is there a way to make a popup window in a page flow? I want to have
a
link which will use Javascript to pop up a new window, but I don't
like
having to hard code the link to that window instead of using the page
flow functionality.
What I've been able to get working is:
<script language="Javascript">
function createNew() {
window.open('/MyPortalWeb/mydir/create_item/create_itemController.jpf','newItemWin','height=500,width=500,scrollbars');
</script>
Create New Item
Is there a way to do this with netui tags, so that I can use actions
to
direct the page flow, and still get the ability to open the link ina
new window?
Joe Robins                    Tel: 212-918-5057
Thaumaturgix, Inc.               Fax: 212-918-5001
19 W. 44th St., Suite 810          Email: [email protected]
New York, NY 10036               http://www.tgix.com
thau'ma-tur-gy, n. the working of miracles.

Similar Messages

  • Javascript and page flows

    Hi
    I have my javascript code snippet as below in my jsp page (using page flows):-
    <SCRIPT>
    var contextName;
    contextName="<%= request.GetContextPath() >";
    </SCRIPT>
    The problem is I can never get the above value dynamically computed in my app
    . The value of contextName is always the static string - <%= request.GetContextPath()
    and not its value .Is there any way I can get the above expression to be evaluated and the evaulated
    value be assigned to contextName.
    Thanks
    Kar

    Kar,
    I think the problem here is that scriptlets (<%= ... %>) aren't
    evaluated in a .js file, only in .jsp files. This is because they are a
    JSP feature. I recommend you declare the variable you need in your .js
    file in a small script section in your JSP that refers to the .js file,
    or some variation of this.
    Thomas
    kar piyush wrote:
    Eddie
    Thanks for pointing out the typo :) . Actually the problem I am facing is that
    I am trying to use an external javascript file in a template file as
    <netui-template:includeSection name="jscriptSection" defaultPage="/resources/scripts/generic.js"></netui-template:includeSection>
    where generic.js has my javascript code . This is basically spoofing the page
    flow framework to read an external javascript file (Which it does properly ---
    well almost). The problem is it is never able to evaluate the <%= request.getContextPath()%>
    tag and spits it out as is . However if I change the name of generic.js to generic.jsp
    and have the javascript code in it as is, at runtime it is able to proplely evaulate
    the javascript contents in generic.jsp . So right now I have all my javascript
    code in a .jsp file (which Idonot like ). I want to be able to create .js file
    and hook it into the template framework in some way so that it is able to successfully
    evaulate expressions.
    Can u share the syntax or a tip as to how to include a .js file in a template

  • Retaining BSP page chages with Javascript popup window

    Hi Experts
    We are using a customized BSP application for our performance
    Management. To propmt users for saving their appraisal documents
    before a session timeout,we used an Javascript popup message(alert
    window). This window doesnot affect the BSP page in any way.(code
    provided below)
    Per changed requirement,we now have to retain the BSP page values once
    the user clicks 'OK' on this javascript popup window. I used the page
    refresh option with script. But this is erasing the earlier values.
    Can anyone tell me,how i can holdback the BSP page values after the
    user action on the popup window. If a piece of code is provided,it
    would be greatly appreciated.
    Thanks in Advance
    Alan
    Existing code for timeout popup
    javascript code
    function remind (){
    var msg = "Your Session will expire in the next 10 minutes. Please
    save your data.";
    alert the msg(using alert box)
    <%
    data: v_rem type string.
    DATA: port TYPE STRING.
    data: l_timer type string.
    port = request->get_header_field(
    if_http_header_fields_sap=>server_port ).
    DATA: services TYPE TABLE OF ICM_SINFO.
    CALL FUNCTION 'ICM_GET_INFO' TABLES SERVLIST = services.
    FIELD-SYMBOLS: <service> TYPE ICM_SINFO.
    DATA: wait TYPE STRING.
    READ TABLE services ASSIGNING <service> WITH KEY service = port.
    wait = <service>-KEEPALIVE - 10.
    CONDENSE wait.
    ****Start Changes: Timeout
    **l_timer = wait * 60 * 1000.
    l_timer = 1 * 60 * 1000.
    ****End Changes
    concatenate `'remind(` wait `)',` l_timer into v_rem.
    %>
    <htmlb:content design = "DESIGN2002+DESIGN2003"
    sessionManagement = "TRUE"
    controlRendering = "SAP">
    <htmlb:page title = "<%= otr(ZPMDGL/TITLE_DOCUMENT) %>"
    disableBackspaceNavigation = "TRUE" onLoad pass v_rem as a parameter to setTimeout

    duplicate post locked.
    Raja

  • Retaining BSP Page values with Javascript popup window

    Hi Experts
    We are using a customized BSP application for our performance
    Management. To propmt users for saving their appraisal documents
    before a session timeout,we used an Javascript popup message(alert
    window). This window doesnot affect the BSP page in any way.(code
    provided below)
    Per changed requirement,we now have to retain the BSP page values once
    the user clicks 'OK' on this javascript popup window. I used the page
    refresh option with script. But this is erasing the earlier values.
    Can anyone tell me,how i can holdback the BSP page values after the
    user action on the popup window. If a piece of code is provided,it
    would be greatly appreciated.
    Thanks in Advance
    Alan
    Existing code for timeout popup
    javascript code
    function remind (){
    var msg = "Your Session will expire in the next 10 minutes. Please
    save your data.";
    alert the msg(using alert box)
    <%
    data: v_rem type string.
    DATA: port TYPE STRING.
    data: l_timer type string.
    port = request->get_header_field(
    if_http_header_fields_sap=>server_port ).
    DATA: services TYPE TABLE OF ICM_SINFO.
    CALL FUNCTION 'ICM_GET_INFO' TABLES SERVLIST = services.
    FIELD-SYMBOLS: <service> TYPE ICM_SINFO.
    DATA: wait TYPE STRING.
    READ TABLE services ASSIGNING <service> WITH KEY service = port.
    wait = <service>-KEEPALIVE - 10.
    CONDENSE wait.
    ****Start Changes: Timeout
    **l_timer = wait * 60 * 1000.
    l_timer = 1 * 60 * 1000.
    ****End Changes
    concatenate `'remind(` wait `)',` l_timer into v_rem.
    %>
    <htmlb:content design            = "DESIGN2002+DESIGN2003"
                   sessionManagement = "TRUE"
                   controlRendering = "SAP">
    <htmlb:page title = "<%= otr(ZPMDGL/TITLE_DOCUMENT) %>"
                  disableBackspaceNavigation = "TRUE" onLoad pass v_rem as a  parameter to setTimeout
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:32 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:34 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:35 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:36 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:36 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:37 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:38 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:39 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:40 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:40 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:44 AM
    Edited by: Bala Subramanyam Duvvuri on Apr 8, 2008 6:46 AM

    If the BSP page is refrehed, all the user input it sent back to the server. If you don't do anything special, the input is lost and not sent back to the client again. You can go to your controller class' DO_HANDLE_DATA to read the user input, and store it in the controller class to send it back to the client.
    If you don't use controller classes, the equivalent would be onInputProcessing. A more advanced alternative would be to use MVC model binding, which would do most of the stuff automatically for you.

  • Nested page flows with a common popup

    Hello,
    I would appreciate some help with the following problem...
    I have a web application that utilizes nested page flows. I need the
    ability to popup a window (with dynamic data) that can be initialized from
    any page flow in the application. The catch is that after popup is opened,
    the active page flow in the application must be the flow that created the
    popup. Also, I want to have one copy of this JSP in my application, and it
    requires page flow data binding.
    My solution as it stands works, but throws an Exception. Basically, the
    popup has its own nested page flow that is initialized by an action in any
    other flow that needs it. The popup flow uses the response to send a
    redirect to a blank window, then forwards to a return action to get back to
    the popup flow's parent flow. Functionally this works perfectly, however,
    the following exception is thrown:
    java.lang.IllegalStateException: Cannot forward to a response that is
    already committed
    Obviously, I'm not going about this correctly. Thanks for any help in
    advance,
    Chris

    Hello,
    I would appreciate some help with the following problem...
    I have a web application that utilizes nested page flows. I need the
    ability to popup a window (with dynamic data) that can be initialized from
    any page flow in the application. The catch is that after popup is opened,
    the active page flow in the application must be the flow that created the
    popup. Also, I want to have one copy of this JSP in my application, and it
    requires page flow data binding.
    My solution as it stands works, but throws an Exception. Basically, the
    popup has its own nested page flow that is initialized by an action in any
    other flow that needs it. The popup flow uses the response to send a
    redirect to a blank window, then forwards to a return action to get back to
    the popup flow's parent flow. Functionally this works perfectly, however,
    the following exception is thrown:
    java.lang.IllegalStateException: Cannot forward to a response that is
    already committed
    Obviously, I'm not going about this correctly. Thanks for any help in
    advance,
    Chris

  • BUG: Popup in page fragment; with many regions and popup binded to backing.

    BUG: Popup in page fragment; with many regions and popup or parent binded to backing bean.
    JDEV11.1.2.1 Popup will not popup.(sometimes works if using RichPopup.Show() in backing bean Java code.)
    I have a bug (Popup will not popup)that only happens when I have more than one of the same region.
    And I have a popup in the page fragment is binded to backing bean.
    My SR guy is out today but we plan to enter one.
    test.jspx
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:f="http://java.sun.com/jsf/core">
        <jsp:directive.page contentType="text/html;charset=UTF-8"/>
        <f:view>
            <af:document title="test" id="d1">
                <af:form id="f1">
                    <af:panelGroupLayout id="pgl1" layout="horizontal">
                        <af:outputText value="BUG JDEV11.1.2.1 and IE7. Broken Popup! If I have a jsff fragment and I have many regions of this fragment."
                                       id="ot2"/>
                        <af:outputText value="Inside the fragment I have a popup. If that popup or its parent are binded to a Backing Bean the popup doesn't work."
                                       id="ot1"/>
                    </af:panelGroupLayout>
                    <!-- with a single region it also works (with bindings in place in fragment). -->
                    <af:region value="#{bindings.taskflowemp1.regionModel}" id="r1"/>
                    <af:region value="#{bindings.taskflowemp2.regionModel}" id="r2"/>    
                    <!--
                    <af:region value="#{bindings.taskflowemp3.regionModel}" id="r3"/>
                    <af:region value="#{bindings.taskflowemp4.regionModel}" id="r4"/>
                    -->
                </af:form>
            </af:document>
        </f:view>
    </jsp:root>region.jsff
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1" xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
              xmlns:f="http://java.sun.com/jsf/core">
      <af:group id="g1">
      <!-- If I remove the binding for popop or popup group, the popup works fine. -->
    <!--Working code here
        <af:group id="g2">
          <af:popup childCreation="deferred" autoCancel="disabled" id="p1" >
        -->
           <!-- Problem code here   -->
        <af:group id="g2" binding="#{TestBean.popupGroup}">
          <af:popup childCreation="deferred" autoCancel="disabled" id="p1" binding="#{TestBean.testPopup}"> 
            <!-- End problem code -->
            <af:dialog id="d2" title="Dialog Title">
              <f:facet name="buttonBar"/>
              <af:outputText value="Dialog Contents" id="ot100"/>
            </af:dialog>
          </af:popup>
        </af:group>
        <af:panelGroupLayout id="pgl1">
          <af:panelBox text="Region" id="pb1">
            <f:facet name="toolbar"/>
            <af:commandButton text="showPopupBehavior" id="cb1" >
              <af:showPopupBehavior popupId="p1"/>
            </af:commandButton>
            <af:commandButton text="AdfPage.PAGE.findComponent JavaScript" id="cb2" actionListener="#{TestBean.popupTestJavaScript}"/>
            <af:commandButton text="RichPopup.Show() Java" id="cb3" actionListener="#{TestBean.popupTestJava}"/>
          </af:panelBox>
        </af:panelGroupLayout>
      </af:group>
    </jsp:root>TestBean.java
    package view;
    import javax.faces.context.FacesContext;
    import javax.faces.event.ActionEvent;
    import oracle.adf.view.rich.component.rich.RichPopup;
    import org.apache.myfaces.trinidad.component.UIXGroup;
    import org.apache.myfaces.trinidad.render.ExtendedRenderKitService;
    import org.apache.myfaces.trinidad.util.Service;
    public class TestBean {
        private RichPopup testPopup;
        private UIXGroup popupGroup;
        public TestBean() {
        public void setTestPopup(RichPopup testPopup) {
            this.testPopup = testPopup;
        public RichPopup getTestPopup() {
            return testPopup;
        public void popupTestJava(ActionEvent actionEvent) {
            if(testPopup != null){
                RichPopup.PopupHints ph = new RichPopup.PopupHints();
                testPopup.show(ph);
            }else{
                System.err.println("TestBean.testPopop IS NULL!");
        public void popupTestJavaScript(ActionEvent actionEvent) {
            showPopupTest("r1:0:p1");
        private static void showPopupTest(String popupId) {
            FacesContext facesContext = FacesContext.getCurrentInstance();
            ExtendedRenderKitService service =
                Service.getRenderKitService(facesContext,
                                            ExtendedRenderKitService.class);
            service.addScript(facesContext,
                              "AdfPage.PAGE.findComponent('" + popupId + "').show();");
        public void setPopupGroup(UIXGroup popupGroup) {
            this.popupGroup = popupGroup;
        public UIXGroup getPopupGroup() {
            return popupGroup;
    }

    Thanks that fixed the problem.
    "a user error"
    Well I followed your book! Chapter 6 of the "Oracle Fusion Developer Guide - Working with Bounded Task Flows in ADF Regions". I think this comes back to book writer error. I found almost no mention of BackingBeanScope in this chapter. Don't you think this would be an important note?
    "did you know that there is a Java API (on the RichPopup instance) to launch a popup ?"
    Yes I posted in my code! If you read the above code you would see it there.
    I don't really understand why the scope of the bean has anything to do with af:showPopupBehavior or AdfPage.PAGE.findComponent.

  • Syntax Error In Javascript Popup Window

    I'm wondering if anybody can help me out here with a curious bit of code. I'm using GoLive 9 to generate Javascript popup windows. They seem to work fine, but when I check the syntax I get these errors:
    Line 22 Unexpected PCDATA
    Line 24 The Corresponding start tag is missing
    Specifically, it references this code:
    </script>
    //-->
    </script>
    But every time I try to delete or modify those lines I lose the link to my css file and can't link it back. Does anybody out there with a whole lot more brains than me have a solution? Remember, I'm stupid, so if you have a fix I'd appreciate it being explained as simply as possible. Thanks. BTW here's the entire code for the Javascript popup page below:
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="content-type" content="text/html;charset=utf-8" />
    <meta name="generator" content="Adobe GoLive" />
    <title>1408</title>
    <script type="text/javascript"><!--
    <script type="text/javascript">
    //Global var to store a reference to the opened window
    var openedWindow;
    function openWindow()
    openedWindow = window.open('moreinfo.htm');
    function closeOpenedWindow()
    openedWindow.close();
    </script>
    //-->
    </script>
    <link href="../../../BAD/michaelthibault.com/css/agl-styles.css" rel="stylesheet" type="text/css" media="all" />
    <link href="../../../BAD/michaelthibault.com/css/java.css" rel="stylesheet" type="text/css" media="all" />
    <style type="text/css" media="all"><!--
    a:link { color: #838383; }
    a:active { color: #838383; }
    .dsR1 /*agl rulekind: base;*/ { width: 480px; height: 260px; }
    #media { position: absolute; top: 50px; left: 50px; width: 480px; height: 260px; z-index: 1; }
    #pause { position: absolute; top: 320px; left: 50px; width: 180px; height: 15px; z-index: 2; }
    #close_a { position: absolute; z-index: 3; top: 336px; left: 50px; width: 180px; height: 19px; }
    --></style>
    </head>
    <body>
    <div id="media">
    <object class="dsR1" classid="clsid:02BF25D5-8C17-4B23-BC80-D3488ABDDC6B" codebase="http://www.apple.com/qtactivex/qtplugin.cab" height="204" width="480" align="left">
    <param name="enablejavascript" value="true" />
    <param name="bgcolor" value="#1a1a1a" />
    <param name="src" value="../../media/01_trailers/1408_tlr1r_h.480.mov" />
    <param name="autoplay" value="true" />
    <param name="controller" value="false" />
    <embed align="left" height="204" pluginspage="http://www.apple.com/quicktime/download/" src="../../media/01_trailers/1408_tlr1r_h.480.mov" type="video/quicktime" width="480" controller="false" autoplay="true" bgcolor="#1a1a1a" enablejavascript="true"></embed>
    </object></div>
    <div id="pause">double click in center to pause</div>
    <div id="close_a">
    <a href="javascript:self.close();">close window</a></div>
    <p></p>
    </body>
    </html>

    You have a script tag nested inside another script tag. Try changing this:
    < script type="text/javascript">< !--
    < script type="text/javascript">
    //Global var to store a reference to the opened window
    var openedWindow;
    function openWindow()
    openedWindow = window.open('moreinfo.htm');
    function closeOpenedWindow()
    openedWindow.close();
    < /script>
    //-->
    < /script>
    ...to this...
    < script type="text/javascript">< !--
    //Global var to store a reference to the opened window
    var openedWindow;
    function openWindow()
    openedWindow = window.open('moreinfo.htm');
    function closeOpenedWindow()
    openedWindow.close();
    //-->
    < /script>

  • No header/footer in page flow JSP

    good morning group
    i have a jsp in a popup which is part of a page flow, and therefore, the html header & footer is displayed. is there a way to suppress the rendering of the header&footer stuff ?
    many thanx in advance :-)
    best wishes
    -ToM-

    "Mindy" <[email protected]> wrote in message
              news:402a4528$[email protected]..
              >
              > Is there a way to get the NT login name of a user in the page flows and
              jsp? We
              > want to authenticate a user belongs to a group before giving him access to
              a site
              > so the first thing in the begin method in page flow will be to get his
              login name
              > and then we have another module which validates the user belongs to a
              particular
              > group.
              Two possibilities spring to mind, NTRealm which is a security realm for
              weblogic that works with NTLM, I have no personal experience with it however
              you can search edocs for more info about it. Another alternative is jCIFS
              which includes an NTLM authentication handler for HTTP. I have used this in
              a previous life and it works great. You can view more info about it here
              http://jcifs.samba.org/src/docs/httpclient.html.
              Gerald
              

  • JavaScript Popup Window

    Hi, has anyone done an example where you are at a page, say Page1.jsp that has a text box and a button, when you click on the button a javascript popup window must open(Page2.jsp). Page2.jsp has a text box and a button. The user will enter a value in the text box and when they click the button it must close the popup window and populate the text box on Page1.jsp with the value entered on Page2.jsp.
    Is this possible in JSF, I have tried but it doesn't work. On the popup windoow botton I have javascript code that saves the value in the session, submits the parent page and then closes the popup window.
    On the parent page init, I look for the value saved in the session var and set the textbox's text to it. When I read the value of the text box, it is right but on the screen the value does not show up at all,
    Does anyone have any idea, I can't seem to understand at all what could be wrong here.

    Hi,
    You can use this code:
    1. in the parent form you have a button and a text field named "textCallClass".
    2. in the popup window you have listbox and a button.
    When the button on the popup window is clicked, the selected list item is returned.
    In you popup window, button on_click :
                        <script>
                            function handleOK() {
                                var myform      = document.forms[0];
                                var listControl = myform['form1:listboxID'];
                                var openerField = window.opener.document.getElementById("form1:textCallClass");
                                if (listControl.selectedIndex == -1) {
                                    alert ("Please select an item from the list !");
                                    return false;
                                else {
                                    openerField.value = listControl.options[listControl.selectedIndex].value;
                                    window.close();
                        </script>In the parent form, button on_click:
                            function handleCallClassPopup() {
                                window.open("CallClassLookup.jsp", "Lookup", "width=250,height=300");
                            }A better way is to use the SessionBean to store and retrieve the data.
    Catalin Florean.

  • Message resources from page flow

    How can I access the ResourceBoundle declared at the top of the page flow, from
    the page flow?

    I have a question that goes along with this...
    Can you add formatting with any of these different bundle options? Since
    8.1 SP2 now has the attribute "accessKey" on buttons, we'd like to be able
    to underline the letter we are using for the accessKey. Our attempt at
    using the message bundle just puts the formatting inside the button value.
    When the jsp displayed this was the value shown for the button text: <u> S
    </u>ubmit
    Is this possible to do without using javascript? One of our team members
    found a script that adds the underline, but there is alot of code to
    underline one letter.
    Ideas?
    Thank you!
    Wendy
    "John Rohrlich" <[email protected]> wrote in message
    news:[email protected]...
    Gus,
    Your welcome.
    You don't need to get the bundle and pass it. You can access it directly
    from the JSP. If these are validation error messages you can use the
    <netui:error> tag. If the string you want to access is not for displaying
    validation errors you'll want to access the strings in another manner. The
    documentation in
    http://edocs.bea.com/workshop/docs81/doc/en/workshop/guide/netui/guide/conDatabindingXScript.html
    shows at least 3 approaches. Here is the relevant section from that
    document.
    bundle
    The bundle data binding context references properties that you define in a
    message resources file, which allows you to implement internationalizedweb
    applications by not hard-coding text labels in your JSP pages.
    For example, in your page flow controller class, you can add an annotation
    such as the following:
    * @jpf:controller
    * @jpf:message-resources resources="labels.Messages"
    public class Controller extends PageFlowController
    { ...In this example, the naming convention is that the message resources
    file must be located in the project's /WEB-INF/classes/labels directory,and
    the file must be named Messages.properties.
    In the Messages.properties file, you might have a property such as:
    nameLabel=Name Then in your JSP page, you can use a data bindingexpression
    such as the following:
    <netui:label value="{bundle.default.nameLabel}"/> Alternately, you can use
    the key attribute on the @jpf:message-resources annotation:
    In your page flow controller class annotation:
    * @jpf:controller
    * @jpf:message-resources key="foo" resources="labels.Messages"
    public class Controller extends PageFlowController
    { ...Assume that the Messages.properties file in the
    /WEB-INF/classes/labels directory is the same as shown in the previous
    example. In the JSP page, you could use a tag such as the following:
    <netui:label value="{bundle['foo/jpfDirectory'].nameLabel}"/> In this
    case, your page flow controller class file is/jpfDirectory/Controller.jpf.
    >
    Another option is to use the <netui-data:declareBundle> tag. For example,in
    your JSP page:
    <netui-data:declareBundle name="someMessages"
    bundlePath="com/foobar/resources/WebAppMessages"/>This tag declares abundle
    that can be referenced in a data binding expression, such as in the
    following example:
    <netui:label value="{bundle.someMessages}"/> For more information, see the
    topics about the @jpf:message-resources Annotation and the
    <netui-data:declareBundle> Tag.
    "Gus" <[email protected]> wrote in message
    news:[email protected]...
    First of all, thanks!
    I want to get a string from the bundle and pass it to a JSP in therequest.
    I have defined the resources at the top of the JPF, as specified in thehelp:
    @jpf:message-resources resources="mensajes"
    The question is how can I get a string from the mensajes.properties
    file.
    >>
    Gus
    I would be better able to answer your question if I knew what you
    wanted
    to
    do. Are you trying to display the strings from the bundle?
    john
    "Gus" <[email protected]> wrote in message
    news:[email protected]...
    How can I access the ResourceBoundle declared at the top of the pageflow,
    from
    the page flow?

  • Page Flows - opening new windows - losing context values

    Hi.. Anyone face this -?
    I have a page flow that gets some data from the database and displays it in a grid. The page has a print button that should open a popup with a printable version of the grid. I am storing the rowset in the page flow as an instance variable. Now when I click on print, I call an action in the page flow that opens a new JSP in another window. The JSP is expecting the grid from the page flow context. However, it seems like in the new window, a new version of the controller is getting instantiated, with the rowset being null.
    How would I get around this?
    Thanks
    Kunal

    I've had success with the following so far--think it works around the instance label limitation:
    * Popup window action. Redirect set to true to unwrap request from portal.
    * @jpf:action
    * @jpf:forward path="/portlets/full/path/to/this/action/displayNumber.do" name="jumpout" redirect="true"
    * @jpf:forward path="Number.jsp" name="success"
    protected Forward displayNumber() throws Exception
         String s = this.getRequest().getParameter("jpfScopeID");
         if(s==null || s.equals("")){
              Forward fwd = new Forward("jumpout");
              pageFlowVar x = "test";
              PortletBackingContext ctx = PortletBackingContext.getPortletBackingContext(this.getRequest());
              fwd.addQueryParam("jpfScopeID", ctx.getInstanceLabel());
              return fwd;
         } else {
              Forward fwd = new Forward( "success" );
              fwd.addPageInput("pageInput", x);
              return fwd;
    }

  • Javascript Popup - height

    Good morning,
    Hopefully one of you experts will be able to help me.
    I have added some javascript in my page header to do the following:
    I want to open a popup page, centre page, no scrollbars, no resize etc. This all works fine as does the width of the popup page. Somehow the height of the popup doesn't stick and it appears to be about 800 in height??? I am baffled by it and would welcome any help. Thanks in advance.
    Sue
    Here is my code:
    <script type="text/javascript">
    function PopupPage()
    popUp2('f?p=&APP_ID.:75:&SESSION.::NO:::',"toolbar=no,scrollbars=no,,statusbar=no,,resizable=no,height=300,width=300,left=362,top=234");
    </script>

    I haven't solved this problem, I'm still baffled by it but my colleague has given me another solution and it works. Just incase anyone else ever has a similar problem, here's his solution:
    Page Header:
    <script type="text/javascript">
    function PopUpNamedViewDetails(url, name, top, left, width, height)
    settings=
    "toolbar=no,location=no,directories=no,"+
    "status=no,menubar=no,scrollbars=no,"+
    "left="+left+",top="+top+
    "resizable=yes,width="+width+",height="+height;
    MyNewWindow=window.open(url,name,settings);
    </script>
    javascript call
    javascript:PopUpNamedViewDetails('f?p=&APP_ID.:83:&APP_SESSION.','Individuals',134,362,300,300);

  • Javascript popup

    Hi everybody,
    I've programmed a Javascript popup (window.open ... window.document.write).
    This does not work in the EP running on Internet Explorer 6.0 SP 1 (no problems in my PDK).
    In the EP this script only open the new window, but without contents.
    all help would be appreciated ,
    Thanks in advance,
    David Reifs

    Relaxing the domain in the popup allows the main and popup windows to 'talk' to each other, but the code shown in a previous post (win1.document.write('test')) cannot be used to relax the domain since the main window cannot write to the popup until it's domain has been relaxed.
    One solution (based on the Portal's Date Picker popup) is to:
    1. Set a Javascript variable in the main window to the desired HTML
    2. Open the popup with the URL of a HTML page that relaxes the domain then writes the HTML from the variable in the main window.
    For example:
    1. Create a static HTML page called 'empty.html' to be displayed in the popup:
    <html>
    <head>
    <script language="JavaScript">
      if (window.document.domain == window.location.hostname) {
        if (document.domain.indexOf('.') != -1) {
          document.domain = document.domain.substring(document.domain.indexOf('.')+1);
      document.write(window.opener.myHtml);     
      this.focus();     
    </script>
    </head>
    <body>
    </body>
    </html>
    2. Use code like the following to create a URL to this static HTML page:
    IResource htm = request.getResource(IResource.STATIC_PAGE, "htm/empty.htm");
    String emptyUrl = htm.getResourceInformation().getURL(request);
    3. Use code like the following Javascript to open the popup, and set the HTML to be displayed in the popup:
    var myHtml = "";
    function openPopup(title, emptyUrl, theHtml, windowName) {
      myHtml = theHtml;
      var atts = 'top=0,left=0,height=200,width=200,resizable=yes,menubar=yes,scrollbars=yes,status=yes';
      var myApp = window.open(emptyUrl, windowName, atts);
      if (myApp) {
        myApp.focus();
      else {
        alert('You may have unrequested popup blocking on.');
    4. Then use code like the following to create the button that displays the popup:
    <span id='myPopupButton' class='sapBtnStd' title='Click to open popup'
    onClick="openPopup(
       'My Pop Title',
       '<%= emptyUrl %>',
       '<h1>Hello World</h1><b>It's great to be alive.</b>',
       'MyPopUp')">
      Open My Popup
    </span>
    A bit complicated when all you want is a pop up - but it works.

  • Send data from flash to a popup ASP page

    how can I send data from a flash webpage to an ASP page which
    has to open in a popup window.
    I can do them both seperatly, but how to integrate those 2 in
    1....
    Here's my script...

    I'm not sure if this will work, so you'll have to forgive me
    if I'm way off here. I use php for all my server-side goodness. I
    recently was doing sort of the same thing, but what I did to solve
    it was this (oversimplified of course)...
    variableSTRING =
    "?variableA=valueONE&variableB=valueTWO";
    getURL("javascript:popup('
    http://test.php"+variableSTRING+"
    ','myPopUp',800,600)");
    does that help?

  • Calling Webstart without interrupting HTML page flow

    I am trying to invoke a JNLP link without interrupting
    the HTML page flow. So on my first page i want to click
    a link, which will invoke JNLP and will display the second
    page, which says something like 'Starting..' and invokes
    the 3rd page. The 3rd page keeps waiting on the app server
    until the JWS app has logged in an than displays 'Logged In'.
    I already managed the above by adding to the second page
    <script>
    open("xyz.com/xyz.jnlp","_blank");
    </script>However I don't like that solution because it pops up a new window that will close asap, but causes unwanted flickering.
    Any ideas?
    Cheers,
    rio

    So, you want to submit an http request when an html element is clicked, and have the response be filled into a container on the page? This type of thing falls under the blanket of Ajax. There are a million Ajax implementations that can do this for you.
    For instance, if you were using the prototype library, you would use the [Ajax.Updater|http://www.prototypejs.org/api/ajax/updater] javascript call. Then you could write something like <input type="radio" id="customerInfo" onclick="update(this.id)" />, and call your javascript update function. Any ajax library should know how to construct an xmlHttpRequest object, post it, and get the response back in some way you can use programatically.
    How the web server generates the response (servlet or otherwise) is irrelevant. If this is new ground for you, you will want to read up on Ajax technologies, the xmlHttpRequest object, and javascript.

Maybe you are looking for

  • Ipod Shuffle 2nd gen doesn't operate and computer does not respond.

    Hi, I'm having troubles with my 2nd gen iPod shuffle. I was listening to music at night but accidently left it on during night. Next day no light flashed when i turned my iPod on, so I put my iPod on the dock, hoping it would turn on again. I've had

  • I enable Display PDF in browser but still opens in Reader

    Our current client PC's are Windows XP 32-bit, IE 7, using Adobe X v.10.1.2. We have an application that opens PDF files. We have the parameter "Display PDF in browser" enabled and it opens in the browser as it should. However, new PC's are built wit

  • Automate image pdf to searchable pdf conversion in Acrobat

    Hi I have Adobe Acrobat Pro 9 installed on my machine. My requirement is to convert scanned image pdfs to searchable versions. I am able to do so manually using the OCR feature in Acrobat or through the Batch Processing option in "Advanced" tab. Howe

  • SAP Query with constante code mvt value

    hello, I wish to create several abap query since tables MKPF and MSEG for the inventory mouvements. each query for a type of inventory turnover (101, 501,…), but I should not put the code movement in criteria of selection. it is necessary that the co

  • FLV Flash Video support in Director 11

    Guys, where do I import FLV? "Having trouble importing this file"... Please tell me we still don't have to do the old SWF container bullcrap. Please??? -Mark