ICEfaces
  1. ICEfaces
  2. ICE-3858

Add ability to specify destination target with OutputResource

    Details

    • Type: Improvement Improvement
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 1.7.2 SP1
    • Fix Version/s: 1.8RC1, 1.8
    • Component/s: ICE-Components
    • Labels:
      None
    • Environment:
      All

      Description

      When there are two or more outputResource components, if one is already open, opening a second one will overwrite the first. The improvement is to add a way to change the destination target of the component. Right now in our source it is hard coded to traget="blank".

        Activity

        Hide
        Keith Garry Boyce added a comment -

        consider: resource.setAttribute("target", outputResource.getPath());

        as a default if a passed through target is not supplied to component

        Show
        Keith Garry Boyce added a comment - consider: resource.setAttribute("target", outputResource.getPath()); as a default if a passed through target is not supplied to component
        Hide
        yip.ng added a comment -

        The reason a new browser window (or tab) is not open is that the hard coded target value should be "_blank", not "blank". (Common HTML mistake.) But I will add the target attribute anyway and make "_blank" the default value.

        Show
        yip.ng added a comment - The reason a new browser window (or tab) is not open is that the hard coded target value should be "_blank", not "blank". (Common HTML mistake.) But I will add the target attribute anyway and make "_blank" the default value.
        Hide
        Keith Garry Boyce added a comment -

        Does this handle the case where you want to overwrite? i.e: you want the same target

        Show
        Keith Garry Boyce added a comment - Does this handle the case where you want to overwrite? i.e: you want the same target
        Hide
        yip.ng added a comment -

        Yes. Just set the target attribute explicitly. Anything other than "_blank" (default) will reuse an existing target window with the same name, if any. Otherwise a new window with the specified name will be created.

        Show
        yip.ng added a comment - Yes. Just set the target attribute explicitly. Anything other than "_blank" (default) will reuse an existing target window with the same name, if any. Otherwise a new window with the specified name will be created.

          People

          • Assignee:
            Unassigned
            Reporter:
            Tyler Johnson
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved: