2 Replies Latest reply on Oct 7, 2009 5:43 AM by ronanker

    jsFunction and target frame

    ronanker

      Hi,

      "a4j:jsFunction" is a great tool but I did not find any way to specify the "target" frame.

      In "a4j:commandlink" tag there is an attribute "target". It could be fine to have the same attribute for "a4j:jsFunction".

      Is this possible ?

      Notice, I can't create a jira by myself, I have only readonly access.

      Thanks a lot.

        • 1. Re: jsFunction and target frame
          ilya_shaikovsky

          hm.. in general as a workaround you could try to click by hidden link in your js

          • 2. Re: jsFunction and target frame
            ronanker


            Hi ilya_shaikovsky,

            Thanks for the tip.
            Actually, this is what is done in our app. But I thought it would be cleaner if there is a "target" attribute in our jsFunction.

            By the way, we can't achieve to use "rich:menuItem" with the "target" attribute.
            By using the "target" attribute we expect to open a new browser window.

            In some case, clicking on such menuItem raise a viewExpiredException et in other case the current page (but not the targeted one) is refreshed but with strange values in the form.

            Thanks again for your time.