glassfish
  1. glassfish
  2. GLASSFISH-20991

the target of "Selected Targets" and "Available Targets" is wrong

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Minor Minor
    • Resolution: Unresolved
    • Affects Version/s: 4.0
    • Fix Version/s: None
    • Component/s: admin_gui
    • Labels:
      None
    • Environment:

      linux

      Description

      1.create cluster(cluster1)
      2."Clusters">"cluster1">"Resources"
      3.choose "Admin Object Resources" from the left dropdown
      4.change the dropdown of "Resource Type"
      now the "Selected Targets" ought to have one target which is cluster1, but now the all targets in the "Available Targets".

        Activity

        Hide
        lzg5039 added a comment -

        Hi Anissa
        My fix as follows,add the line after 87 and 124,can you give me some advices

        https://svn.java.net/svn/glassfish~svn/trunk/main/appserver/admingui/jca/src/main/resources/adminObjectAttr.inc
        
        85   setAttribute(key="click" value="$this{component}");
        86   setAttribute(key="resAdapter" value="#{click.selected}");
        87   setAttribute(key="reload" value="#{true}" );
        +    setAttribute(key="target" value="#{pageSession.targetValue}" ); 
        88   if(#{statusId}) {
        89   getUIComponent(clientId="#{statusId}", component=>$attribute{statusComponent});
        
        
        122  setAttribute(key="click" value="$this{component}");
        123  setAttribute(key="resType" value="#{click.selected}")
        124  setAttribute(key="reload" value="#{true}" );
        +    setAttribute(key="target" value="#{pageSession.targetValue}" ); 
        125  getUIComponent(clientId="#{resAdaptorPropId}", component=>$attribute{resAdaptorComponent});
        126  getUIComponentProperty(component="$attribute{resAdaptorComponent}", name="selected", value=>$attribute{resAdapter});
        
        
        Show
        lzg5039 added a comment - Hi Anissa My fix as follows,add the line after 87 and 124,can you give me some advices https://svn.java.net/svn/glassfish~svn/trunk/main/appserver/admingui/jca/src/main/resources/adminObjectAttr.inc 85 setAttribute(key="click" value="$this{component}"); 86 setAttribute(key="resAdapter" value="#{click.selected}"); 87 setAttribute(key="reload" value="#{true}" ); + setAttribute(key="target" value="#{pageSession.targetValue}" ); 88 if(#{statusId}) { 89 getUIComponent(clientId="#{statusId}", component=>$attribute{statusComponent}); 122 setAttribute(key="click" value="$this{component}"); 123 setAttribute(key="resType" value="#{click.selected}") 124 setAttribute(key="reload" value="#{true}" ); + setAttribute(key="target" value="#{pageSession.targetValue}" ); 125 getUIComponent(clientId="#{resAdaptorPropId}", component=>$attribute{resAdaptorComponent}); 126 getUIComponentProperty(component="$attribute{resAdaptorComponent}", name="selected", value=>$attribute{resAdapter});
        Hide
        Anissa Lam added a comment -

        You mean that since you are going to the Admin Object creation screen, the selected target should be whatever you come fom, ie, cluster1.
        I am using 4.0 build 89, i cannot reproduce the issue you filed here.
        I have 1 instance and 1 cluster created in the domain.
        The left box, available target has "server" and "instance1", and the right box, "Selected target" has cluster1.
        So, cluster1 is pre-selected for you.

        Show
        Anissa Lam added a comment - You mean that since you are going to the Admin Object creation screen, the selected target should be whatever you come fom, ie, cluster1. I am using 4.0 build 89, i cannot reproduce the issue you filed here. I have 1 instance and 1 cluster created in the domain. The left box, available target has "server" and "instance1", and the right box, "Selected target" has cluster1. So, cluster1 is pre-selected for you.
        Hide
        Anissa Lam added a comment -

        Attached is what i am seeing. cluster1 preselected correctly,

        Show
        Anissa Lam added a comment - Attached is what i am seeing. cluster1 preselected correctly,
        Hide
        lzg5039 added a comment -

        sorry,the explanation of step 4 does not clear.I will explain as following
        1.create cluster(cluster1)
        2."Clusters">"cluster1">"Resources"
        3.choose "Admin Object Resources" from the left dropdown
        4.change the value of "Resource Type" from "javax.jms.Queue" to "javax.jms.Topic"
        now the "Selected Targets" ought to have one target which is cluster1, but now the all targets in the "Available Targets".

        Show
        lzg5039 added a comment - sorry,the explanation of step 4 does not clear.I will explain as following 1.create cluster(cluster1) 2."Clusters">"cluster1">"Resources" 3.choose "Admin Object Resources" from the left dropdown 4.change the value of "Resource Type" from "javax.jms.Queue" to "javax.jms.Topic" now the "Selected Targets" ought to have one target which is cluster1, but now the all targets in the "Available Targets".
        Hide
        Anissa Lam added a comment -

        downgrade to P4. This is minor issue, user can easily select the target again.

        Show
        Anissa Lam added a comment - downgrade to P4. This is minor issue, user can easily select the target again.

          People

          • Assignee:
            Anissa Lam
            Reporter:
            lzg5039
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated: