glassfish
  1. glassfish
  2. GLASSFISH-12516

[Property Table Conversion alone Pending]Configs -> Virtual Servers create/edit

    Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Critical Critical
    • Resolution: Fixed
    • Affects Version/s: 3.1
    • Fix Version/s: 3.1_ms04
    • Component/s: admin_gui
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Issuezilla Id:
      12,516

      Description

      Both virtualServerEdit.jsf and virtualServerNew.jsf needs conversion.
      Don't forget the virtualServerButtons.inc thats included.

        Issue Links

          Activity

          Hide
          Anissa Lam added a comment -

          MS3

          Show
          Anissa Lam added a comment - MS3
          Hide
          srinik76 added a comment -

          Edit and Delete rest api conversion check in done.

          Show
          srinik76 added a comment - Edit and Delete rest api conversion check in done.
          Hide
          srinik76 added a comment -

          Index:
          common/src/main/java/org/glassfish/admingui/common/handlers/WebAppHandlers.java
          ===================================================================

          common/src/main/java/org/glassfish/admingui/common/handlers/WebAppHandlers.java
          (revision 39000)
          +++
          common/src/main/java/org/glassfish/admingui/common/handlers/WebAppHandlers.java
          (working copy)
          @@ -81,6 +81,7 @@
          import org.glassfish.admingui.common.util.DeployUtil;
          import org.glassfish.admingui.common.util.TargetUtil;
          import org.glassfish.admingui.common.handlers.RestApiHandlers;
          +import org.glassfish.admingui.common.util.RestResponse;

          @@ -743,13 +744,16 @@
          //change to take into effect. refer to issue#8671
          @Handler(id = "EnsureDefaultWebModule",
          input =

          { - @HandlerInput(name = "vsObjStr", type = String.class, required = true), - @HandlerInput(name = "vsName", type = String.class, required = true) + @HandlerInput(name = "endpoint", type = String.class, required = true), + @HandlerInput(name = "vsName", type = String.class, required = true), + @HandlerInput(name = "instanceList", type=List.class, required=true) }

          )

          • public static void EnsureDefaultWebModule(HandlerContext handlerCtx) {
          • String vsObjStr = (String) handlerCtx.getInputValue("vsObjStr");
          • String webModule= (String) V3AMX.getAttribute(vsObjStr,
            "DefaultWebModule");
          • String vsName = (String) V3AMX.getAttribute(vsObjStr, "Name");
            + public static void EnsureDefaultWebModule(HandlerContext handlerCtx) throws
            Exception {
            + String endpoint = (String) handlerCtx.getInputValue("endpoint");
            + String vsName = (String) handlerCtx.getInputValue("vsName");
            + List instanceList = (List) handlerCtx.getInputValue("instanceList");
            + Map vsAttrs = RestApiHandlers.getAttributesMap(endpoint+"/" + vsName);
            + String webModule= (String) vsAttrs.get("DefaultWebModule");
            if (GuiUtil.isEmpty(webModule))
            return;
            String appName = webModule;
            @@ -757,16 +761,26 @@
            if (index != -1) { appName=webModule.substring(0, index); }
          • ApplicationRef appRef = V3AMX.getInstance().getApplicationRef("server",
            appName);
          • String vsStr = appRef.getVirtualServers();
          • List vsList = GuiUtil.parseStringList(vsStr, ",");
          • if (vsList.contains(vsName)){
          • return; //the default web module app is already deployed to this
            vs, no action needed
            + String serverEndPoint = GuiUtil.getSessionValue("REST_URL") +
            "/servers/server/";
            + for (Object serverName : instanceList)
            Unknown macro: {+ String apprefEndpoint = serverEndPoint + serverName +"/application-ref/" + appName;+ Map apprefAttrs =RestApiHandlers.getAttributesMap(apprefEndpoint+"/" + vsName);+ String vsStr = (String) apprefAttrs.get("VirtualServers");+ List vsList = GuiUtil.parseStringList(vsStr, ",");+ if (vsList.contains(vsName)){ + continue; //the default web module app is already deployed to this vs, no action needed + }+ //Add to the vs list of this application-ref, then restart the app.+ vsStr=vsStr+","+vsName;+ apprefAttrs.put("VirtualServers", vsStr);+ RestResponse response =RestApiHandlers.sendUpdateRequest(apprefEndpoint, apprefAttrs, null, null, null);+ if (!response.isSuccess()) { + GuiUtil.getLogger().severe("Update virtual server failed. parent=" + apprefEndpoint + "; attrsMap =" + apprefAttrs); + GuiUtil.handleError(handlerCtx, GuiUtil.getMessage("msg.error.checkLog")); + return; + }+ DeployUtil.restartApplication(appName, handlerCtx); }
          • //Add to the vs list of this application-ref, then restart the app.
          • vsStr=vsStr+","+vsName;
          • appRef.setVirtualServers(vsStr);
          • DeployUtil.restartApplication(appName, handlerCtx);
            }

          //getVsForDeployment(result="#

          {pageSession.vsList}

          ");
          @@ -783,25 +797,47 @@
          //We need to go through all the application-ref to see if the VS specified
          still exist. If it doesn't, we need to
          //remove that from the vs list.
          @Handler(id = "checkVsOfAppRef")

          • public static void checkVsOfAppRef(HandlerContext handlerCtx) {
          • Map<String, ApplicationRef> appRefMap =
            V3AMX.getInstance().getServer("server").getApplicationRef();
          • Map<String, VirtualServer> vsMap =
            V3AMX.getInstance().getConfig("server-config").getHttpService().getVirtualServer();
          • for(ApplicationRef appRef: appRefMap.values()){
          • String vsStr = appRef.getVirtualServers();
          • List<String> vsList = GuiUtil.parseStringList(vsStr, ",");
          • boolean changed = false;
          • String newVS = "";
          • for(String oneVs: vsList ){
          • if (! vsMap.containsKey(oneVs)){
          • changed = true;
          • continue;
            + public static void checkVsOfAppRef(HandlerContext handlerCtx) throws Exception{
            + String configUrl = GuiUtil.getSessionValue("REST_URL") + "/configs/config/";
            + List configs = RestApiHandlers.getChildrenNames(configUrl,"Name");
            + ArrayList vsList = new ArrayList();
            + for (Object cfgName : configs)
            Unknown macro: {+ String vsUrl = configUrl + cfgName + "/http-service/virtual-server";+ List vsNames = RestApiHandlers.getChildrenNames(vsUrl,"Name");+ for (Object str }

            + List servers =
            RestApiHandlers.getChildrenNames(GuiUtil.getSessionValue("REST_URL") +
            "/servers/server","Name");
            + for (Object svrName : servers) {
            + String serverEndpoint = GuiUtil.getSessionValue("REST_URL") +
            "/servers/server/" + svrName;
            + List appRefs = RestApiHandlers.getChildrenNames(serverEndpoint +
            "/application-ref","Name");
            + for (Object appRef : appRefs) {
            + String apprefEndpoint = serverEndpoint + "/application-ref/" +
            appRef;
            + Map apprefAttrs = RestApiHandlers.getAttributesMap(apprefEndpoint);
            + String vsStr = (String) apprefAttrs.get("VirtualServers");
            + List<String> lvsList = GuiUtil.parseStringList(vsStr, ",");
            + boolean changed = false;
            + String newVS = "";
            + for(String oneVs: lvsList )

            Unknown macro: {+ if (! vsList.contains(oneVs)){ + changed = true; + continue; + }+ newVS = newVS+","+oneVs; }
          • newVS = newVS+","+oneVs;
            + if (changed)
            Unknown macro: {+ newVS = newVS.substring(1);+ apprefAttrs.put("VirtualServers", vsStr);+ RestResponse response =RestApiHandlers.sendUpdateRequest(apprefEndpoint, apprefAttrs, null, null, null);+ if (!response.isSuccess()) { + GuiUtil.getLogger().severe("Update virtual server failed. parent=" + apprefEndpoint + "; attrsMap =" + apprefAttrs); + GuiUtil.handleError(handlerCtx, GuiUtil.getMessage("msg.error.checkLog")); + return; + }+ }

            }

          • if (changed) { - newVS = newVS.substring(1); - appRef.setVirtualServers(newVS); - }

            }
            }

          Index: web/src/main/resources/configuration/virtualServerAttrs.inc
          ===================================================================
          — web/src/main/resources/configuration/virtualServerAttrs.inc (revision 39000)
          +++ web/src/main/resources/configuration/virtualServerAttrs.inc (working copy)
          @@ -74,8 +74,8 @@
          labels="$pageSession

          {availableNetworkListeners}

          "
          selected="#

          {pageSession.selectedNetworkListeners}

          " >
          <!beforeCreate

          • getChildrenByType(parentObjectNameStr="amx:pp=/domain/configs/config[#

            {pageSession.configName}]/network-config,type=network-listeners"
            - type="network-listener"
            result="#{pageSession.networkListeners}");
            +
            gf.getChildrenNamesList(endpoint="#{sessionScope.REST_URL}/configs/config/#{pageSession.configName}

            /network-config/network-listeners/network-listener"
            + result="#

            {pageSession.networkListeners}");
            getListBoxOptions(
            availableList="#{pageSession.networkListeners}

            ",

          selectedCommaString="#

          {pageSession.valueMap['NetworkListeners']}

          ",
          Index: web/src/main/resources/configuration/virtualServerButtons.inc
          ===================================================================
          — web/src/main/resources/configuration/virtualServerButtons.inc
          (revision 39000)
          +++ web/src/main/resources/configuration/virtualServerButtons.inc (working
          copy)
          @@ -51,11 +51,21 @@
          mapPut(map="#

          {pageSession.valueMap}" key="SsoEnabled"
          value="#{requestScope.ssoGroup}");
          mapPut(map="#{pageSession.valueMap}

          "
          key="AccessLoggingEnabled" value="#

          {requestScope.accessLoggingFlagGp}

          ");

          • saveBeanAttributes(objectNameStr="#

            {pageSession.objectNameStr}"
            attrs="#{pageSession.valueMap}"
            + gf.createEntity(endpoint="#{pageSession.selfUrl}"
            + attrs="#{pageSession.valueMap}"
            skipAttrs="#{pageSession.skipAttrsList}"
            - convertToFalse="#{pageSession.convertToFalseList}"
            - );
            -
            EnsureDefaultWebModule(vsObjStr="#{pageSession.objectNameStr}

            ");
            + convertToFalse="#

            {pageSession.convertToFalseList}");
            + createMap(result="#{pageSession.statusAttrs}");
            + mapPut(map="#{pageSession.statusAttrs}" key="DEFAULT"
            value="#{pageSession.configName}" );
            + gf.callRestAndExtractMsgProps(
            + endpoint="#{sessionScope.REST_URL}/list-instances.xml"
            + attrs="#{pageSession.statusAttrs}"
            + method="GET"
            + keyList="#{requestScope.instanceList}"
            propsMap="#{requestScope.propsMap}");
            + if(#{pageSession.configName}=server-config){
            + listAdd(list="#{requestScope.instanceList}"
            value="server" index="0");
            + }
            +
            EnsureDefaultWebModule(endpoint="#{pageSession.selfUrl}",vsName="#{pageSession.valueMap['Id']}",instanceList="#{requestScope.instanceList}");

            getUIComponent(clientId="$pageSession{propertyTableRowGroupId}",
            component=>$attribute{tableRowGroup});

            getAllSingleMapRows(TableRowGroup="$attribute{tableRowGroup}",
            Rows=>$attribute{newList});

            setProxyProperties(objectNameStr="#{pageSession.objectNameStr}",
            propertyList="$attribute{newList}", systemProp="#{pageSession.systemProp}" );
            @@ -76,12 +86,21 @@
            skipAttrs="#{pageSession.skipAttrsList}"
            convertToFalse="#{pageSession.convertToFalseList}

            "
            onlyUseAttrs="#

            {pageSession.onlyUseAttrs}

            "

          • );
          • EnsureDefaultWebModule(vsObjStr="# {requestScope.objStr}

            ");
            + );
            + createMap(result="#

            {pageSession.statusAttrs}");
            + mapPut(map="#{pageSession.statusAttrs}

            " key="DEFAULT"
            value="#

            {pageSession.configName}" );
            + gf.callRestAndExtractMsgProps(
            + endpoint="#{sessionScope.REST_URL}/list-instances.xml"
            + attrs="#{pageSession.statusAttrs}"
            + method="GET"
            + keyList="#{requestScope.instanceList}"
            propsMap="#{requestScope.propsMap}");
            + if(#{pageSession.configName}

            =server-config){
            + listAdd(list="#

            {requestScope.instanceList}"
            value="server" index="0");
            + }
            +
            EnsureDefaultWebModule(endpoint="#{pageSession.selfUrl}",vsName="#{pageSession.valueMap['Id']}",instanceList="#{requestScope.instanceList}

            ");

          getUIComponent(clientId="$pageSession

          {propertyTableRowGroupId}

          ",
          component=>$attribute

          {tableRowGroup});

          getAllSingleMapRows(TableRowGroup="$attribute{tableRowGroup}

          ",
          Rows=>$attribute

          {newList});
          - setPageSessionAttribute(key="restObjStr"
          value="amx:pp=/domain/configs/config );
          - setAttribute(key="objStr",
          value="#{pageSession.restObjStr},name=#{pageSession.valueMap['Id']}");
          + setAttribute(key="objStr",
          value="amx:pp=/domain/configs/config[#{pageSession.configName}">{pageSession.configName}]/http-service,type=virtual-server"
          );
          - setAttribute(key="objStr",
          value="#{pageSession.restObjStr},name=#{pageSession.valueMap['Id']}");
          + setAttribute(key="objStr",
          value="amx:pp=/domain/configs/config[#{pageSession.configName}
          /http-service,type=virtual-server,name=#{pageSession.valueMap['Id']}");
          setProxyProperties(objectNameStr="$attribute{objStr}",
          propertyList="$attribute{newList}

          ", systemProp="#

          {pageSession.systemProp}

          " );
          gf.redirect(page="#

          {parentPage}

          ?configName=#

          {configName}

          ")
          />

          Sending
          common/src/main/java/org/glassfish/admingui/common/handlers/WebAppHandlers.java
          Sending web/src/main/resources/configuration/virtualServerAttrs.inc
          Sending web/src/main/resources/configuration/virtualServerButtons.inc
          Transmitting file data ...
          Committed revision 39006.

          Show
          srinik76 added a comment - Index: common/src/main/java/org/glassfish/admingui/common/handlers/WebAppHandlers.java =================================================================== — common/src/main/java/org/glassfish/admingui/common/handlers/WebAppHandlers.java (revision 39000) +++ common/src/main/java/org/glassfish/admingui/common/handlers/WebAppHandlers.java (working copy) @@ -81,6 +81,7 @@ import org.glassfish.admingui.common.util.DeployUtil; import org.glassfish.admingui.common.util.TargetUtil; import org.glassfish.admingui.common.handlers.RestApiHandlers; +import org.glassfish.admingui.common.util.RestResponse; @@ -743,13 +744,16 @@ //change to take into effect. refer to issue#8671 @Handler(id = "EnsureDefaultWebModule", input = { - @HandlerInput(name = "vsObjStr", type = String.class, required = true), - @HandlerInput(name = "vsName", type = String.class, required = true) + @HandlerInput(name = "endpoint", type = String.class, required = true), + @HandlerInput(name = "vsName", type = String.class, required = true), + @HandlerInput(name = "instanceList", type=List.class, required=true) } ) public static void EnsureDefaultWebModule(HandlerContext handlerCtx) { String vsObjStr = (String) handlerCtx.getInputValue("vsObjStr"); String webModule= (String) V3AMX.getAttribute(vsObjStr, "DefaultWebModule"); String vsName = (String) V3AMX.getAttribute(vsObjStr, "Name"); + public static void EnsureDefaultWebModule(HandlerContext handlerCtx) throws Exception { + String endpoint = (String) handlerCtx.getInputValue("endpoint"); + String vsName = (String) handlerCtx.getInputValue("vsName"); + List instanceList = (List) handlerCtx.getInputValue("instanceList"); + Map vsAttrs = RestApiHandlers.getAttributesMap(endpoint+"/" + vsName); + String webModule= (String) vsAttrs.get("DefaultWebModule"); if (GuiUtil.isEmpty(webModule)) return; String appName = webModule; @@ -757,16 +761,26 @@ if (index != -1) { appName=webModule.substring(0, index); } ApplicationRef appRef = V3AMX.getInstance().getApplicationRef("server", appName); String vsStr = appRef.getVirtualServers(); List vsList = GuiUtil.parseStringList(vsStr, ","); if (vsList.contains(vsName)){ return; //the default web module app is already deployed to this vs, no action needed + String serverEndPoint = GuiUtil.getSessionValue("REST_URL") + "/servers/server/"; + for (Object serverName : instanceList) Unknown macro: {+ String apprefEndpoint = serverEndPoint + serverName +"/application-ref/" + appName;+ Map apprefAttrs =RestApiHandlers.getAttributesMap(apprefEndpoint+"/" + vsName);+ String vsStr = (String) apprefAttrs.get("VirtualServers");+ List vsList = GuiUtil.parseStringList(vsStr, ",");+ if (vsList.contains(vsName)){ + continue; //the default web module app is already deployed to this vs, no action needed + }+ //Add to the vs list of this application-ref, then restart the app.+ vsStr=vsStr+","+vsName;+ apprefAttrs.put("VirtualServers", vsStr);+ RestResponse response =RestApiHandlers.sendUpdateRequest(apprefEndpoint, apprefAttrs, null, null, null);+ if (!response.isSuccess()) { + GuiUtil.getLogger().severe("Update virtual server failed. parent=" + apprefEndpoint + "; attrsMap =" + apprefAttrs); + GuiUtil.handleError(handlerCtx, GuiUtil.getMessage("msg.error.checkLog")); + return; + }+ DeployUtil.restartApplication(appName, handlerCtx); } //Add to the vs list of this application-ref, then restart the app. vsStr=vsStr+","+vsName; appRef.setVirtualServers(vsStr); DeployUtil.restartApplication(appName, handlerCtx); } //getVsForDeployment(result="# {pageSession.vsList} "); @@ -783,25 +797,47 @@ //We need to go through all the application-ref to see if the VS specified still exist. If it doesn't, we need to //remove that from the vs list. @Handler(id = "checkVsOfAppRef") public static void checkVsOfAppRef(HandlerContext handlerCtx) { Map<String, ApplicationRef> appRefMap = V3AMX.getInstance().getServer("server").getApplicationRef(); Map<String, VirtualServer> vsMap = V3AMX.getInstance().getConfig("server-config").getHttpService().getVirtualServer(); for(ApplicationRef appRef: appRefMap.values()){ String vsStr = appRef.getVirtualServers(); List<String> vsList = GuiUtil.parseStringList(vsStr, ","); boolean changed = false; String newVS = ""; for(String oneVs: vsList ){ if (! vsMap.containsKey(oneVs)){ changed = true; continue; + public static void checkVsOfAppRef(HandlerContext handlerCtx) throws Exception{ + String configUrl = GuiUtil.getSessionValue("REST_URL") + "/configs/config/"; + List configs = RestApiHandlers.getChildrenNames(configUrl,"Name"); + ArrayList vsList = new ArrayList(); + for (Object cfgName : configs) Unknown macro: {+ String vsUrl = configUrl + cfgName + "/http-service/virtual-server";+ List vsNames = RestApiHandlers.getChildrenNames(vsUrl,"Name");+ for (Object str } + List servers = RestApiHandlers.getChildrenNames(GuiUtil.getSessionValue("REST_URL") + "/servers/server","Name"); + for (Object svrName : servers) { + String serverEndpoint = GuiUtil.getSessionValue("REST_URL") + "/servers/server/" + svrName; + List appRefs = RestApiHandlers.getChildrenNames(serverEndpoint + "/application-ref","Name"); + for (Object appRef : appRefs) { + String apprefEndpoint = serverEndpoint + "/application-ref/" + appRef; + Map apprefAttrs = RestApiHandlers.getAttributesMap(apprefEndpoint); + String vsStr = (String) apprefAttrs.get("VirtualServers"); + List<String> lvsList = GuiUtil.parseStringList(vsStr, ","); + boolean changed = false; + String newVS = ""; + for(String oneVs: lvsList ) Unknown macro: {+ if (! vsList.contains(oneVs)){ + changed = true; + continue; + }+ newVS = newVS+","+oneVs; } newVS = newVS+","+oneVs; + if (changed) Unknown macro: {+ newVS = newVS.substring(1);+ apprefAttrs.put("VirtualServers", vsStr);+ RestResponse response =RestApiHandlers.sendUpdateRequest(apprefEndpoint, apprefAttrs, null, null, null);+ if (!response.isSuccess()) { + GuiUtil.getLogger().severe("Update virtual server failed. parent=" + apprefEndpoint + "; attrsMap =" + apprefAttrs); + GuiUtil.handleError(handlerCtx, GuiUtil.getMessage("msg.error.checkLog")); + return; + }+ } } if (changed) { - newVS = newVS.substring(1); - appRef.setVirtualServers(newVS); - } } } Index: web/src/main/resources/configuration/virtualServerAttrs.inc =================================================================== — web/src/main/resources/configuration/virtualServerAttrs.inc (revision 39000) +++ web/src/main/resources/configuration/virtualServerAttrs.inc (working copy) @@ -74,8 +74,8 @@ labels="$pageSession {availableNetworkListeners} " selected="# {pageSession.selectedNetworkListeners} " > <!beforeCreate getChildrenByType(parentObjectNameStr="amx:pp=/domain/configs/config[# {pageSession.configName}]/network-config,type=network-listeners" - type="network-listener" result="#{pageSession.networkListeners}"); + gf.getChildrenNamesList(endpoint="#{sessionScope.REST_URL}/configs/config/#{pageSession.configName} /network-config/network-listeners/network-listener" + result="# {pageSession.networkListeners}"); getListBoxOptions( availableList="#{pageSession.networkListeners} ", selectedCommaString="# {pageSession.valueMap['NetworkListeners']} ", Index: web/src/main/resources/configuration/virtualServerButtons.inc =================================================================== — web/src/main/resources/configuration/virtualServerButtons.inc (revision 39000) +++ web/src/main/resources/configuration/virtualServerButtons.inc (working copy) @@ -51,11 +51,21 @@ mapPut(map="# {pageSession.valueMap}" key="SsoEnabled" value="#{requestScope.ssoGroup}"); mapPut(map="#{pageSession.valueMap} " key="AccessLoggingEnabled" value="# {requestScope.accessLoggingFlagGp} "); saveBeanAttributes(objectNameStr="# {pageSession.objectNameStr}" attrs="#{pageSession.valueMap}" + gf.createEntity(endpoint="#{pageSession.selfUrl}" + attrs="#{pageSession.valueMap}" skipAttrs="#{pageSession.skipAttrsList}" - convertToFalse="#{pageSession.convertToFalseList}" - ); - EnsureDefaultWebModule(vsObjStr="#{pageSession.objectNameStr} "); + convertToFalse="# {pageSession.convertToFalseList}"); + createMap(result="#{pageSession.statusAttrs}"); + mapPut(map="#{pageSession.statusAttrs}" key="DEFAULT" value="#{pageSession.configName}" ); + gf.callRestAndExtractMsgProps( + endpoint="#{sessionScope.REST_URL}/list-instances.xml" + attrs="#{pageSession.statusAttrs}" + method="GET" + keyList="#{requestScope.instanceList}" propsMap="#{requestScope.propsMap}"); + if(#{pageSession.configName}=server-config){ + listAdd(list="#{requestScope.instanceList}" value="server" index="0"); + } + EnsureDefaultWebModule(endpoint="#{pageSession.selfUrl}",vsName="#{pageSession.valueMap['Id']}",instanceList="#{requestScope.instanceList}"); getUIComponent(clientId="$pageSession{propertyTableRowGroupId}", component=>$attribute{tableRowGroup}); getAllSingleMapRows(TableRowGroup="$attribute{tableRowGroup}", Rows=>$attribute{newList}); setProxyProperties(objectNameStr="#{pageSession.objectNameStr}", propertyList="$attribute{newList}", systemProp="#{pageSession.systemProp}" ); @@ -76,12 +86,21 @@ skipAttrs="#{pageSession.skipAttrsList}" convertToFalse="#{pageSession.convertToFalseList} " onlyUseAttrs="# {pageSession.onlyUseAttrs} " ); EnsureDefaultWebModule(vsObjStr="# {requestScope.objStr} "); + ); + createMap(result="# {pageSession.statusAttrs}"); + mapPut(map="#{pageSession.statusAttrs} " key="DEFAULT" value="# {pageSession.configName}" ); + gf.callRestAndExtractMsgProps( + endpoint="#{sessionScope.REST_URL}/list-instances.xml" + attrs="#{pageSession.statusAttrs}" + method="GET" + keyList="#{requestScope.instanceList}" propsMap="#{requestScope.propsMap}"); + if(#{pageSession.configName} =server-config){ + listAdd(list="# {requestScope.instanceList}" value="server" index="0"); + } + EnsureDefaultWebModule(endpoint="#{pageSession.selfUrl}",vsName="#{pageSession.valueMap['Id']}",instanceList="#{requestScope.instanceList} "); getUIComponent(clientId="$pageSession {propertyTableRowGroupId} ", component=>$attribute {tableRowGroup}); getAllSingleMapRows(TableRowGroup="$attribute{tableRowGroup} ", Rows=>$attribute {newList}); - setPageSessionAttribute(key="restObjStr" value="amx:pp=/domain/configs/config ); - setAttribute(key="objStr", value="#{pageSession.restObjStr},name=#{pageSession.valueMap['Id']}"); + setAttribute(key="objStr", value="amx:pp=/domain/configs/config[#{pageSession.configName}">{pageSession.configName}]/http-service,type=virtual-server" ); - setAttribute(key="objStr", value="#{pageSession.restObjStr},name=#{pageSession.valueMap['Id']}"); + setAttribute(key="objStr", value="amx:pp=/domain/configs/config[#{pageSession.configName} /http-service,type=virtual-server,name=#{pageSession.valueMap['Id']}"); setProxyProperties(objectNameStr="$attribute{objStr}", propertyList="$attribute{newList} ", systemProp="# {pageSession.systemProp} " ); gf.redirect(page="# {parentPage} ?configName=# {configName} ") /> Sending common/src/main/java/org/glassfish/admingui/common/handlers/WebAppHandlers.java Sending web/src/main/resources/configuration/virtualServerAttrs.inc Sending web/src/main/resources/configuration/virtualServerButtons.inc Transmitting file data ... Committed revision 39006.
          Hide
          srinik76 added a comment -

          Still PropertyTable conversion to be done.

          Show
          srinik76 added a comment - Still PropertyTable conversion to be done.
          Hide
          Anissa Lam added a comment -

          MS4

          Show
          Anissa Lam added a comment - MS4
          Hide
          srinik76 added a comment -

          Remaining property table conversion

          Show
          srinik76 added a comment - Remaining property table conversion
          Hide
          srinik76 added a comment -

          Property table conversion done.

          Sending virtualServerButtons.inc
          Sending virtualServerEdit.jsf
          Transmitting file data ..
          Committed revision 39932.

          Show
          srinik76 added a comment - Property table conversion done. Sending virtualServerButtons.inc Sending virtualServerEdit.jsf Transmitting file data .. Committed revision 39932.

            People

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

              Dates

              • Created:
                Updated:
                Resolved: