docroot/WEB-INF/src/it/infn/ct/g_hmmer_portlet.java
@Override
    public void doEdit(RenderRequest request,RenderResponse response)
    throws PortletException,IOException {
        response.setContentType("text/html");
        _log.info("Calling doEdit ...");
        
        // Get current preference values
        getPreferences(null,request);
        
        // Get the current infrastructure and the number of infrastructure
        int currInfra         =appPreferences.getCurrPaneInfrastructure();
        int numInfrastructures=appPreferences.getNumInfrastructures();

        // ActionURL and the current preference value will be passed to the edit.jsp
        PortletURL pref_actionURL = response.createActionURL();
        request.setAttribute("pref_actionURL",pref_actionURL.toString());        
        
        // Send preference values
        request.setAttribute("pref_logLevel"          ,""+appPreferences.getLogLevel              ());        
        request.setAttribute("pref_numInfrastructures",""+appPreferences.getNumInfrastructures    ()); 
        request.setAttribute("pref_currInfrastructure",""+appPreferences.getCurrPaneInfrastructure());
        request.setAttribute("pref_gridOperationId"   ,""+appPreferences.getGridOperationId       ());
        request.setAttribute("pref_gridOperationDesc" ,""+appPreferences.getGridOperationDesc     ());
        // Send Infrastructure specific data        
        if(   0<= currInfra
           &&     currInfra <= numInfrastructures) {            
          request.setAttribute("pref_enableInfrastructure" ,appPreferences.getEnableInfrastructure (currInfra-1));
          request.setAttribute("pref_nameInfrastructure"   ,appPreferences.getNameInfrastructure   (currInfra-1));
          request.setAttribute("pref_acronymInfrastructure",appPreferences.getAcronymInfrastructure(currInfra-1));
          request.setAttribute("pref_bdiiHost"             ,appPreferences.getBdiiHost             (currInfra-1));
          request.setAttribute("pref_wmsHosts"             ,appPreferences.getWmsHosts             (currInfra-1));
          request.setAttribute("pref_pxServerHost"         ,appPreferences.getPxServerHost         (currInfra-1));
          request.setAttribute("pref_pxServerPort"         ,appPreferences.getPxServerPort         (currInfra-1));
          request.setAttribute("pref_pxServerSecure"       ,appPreferences.getPxServerSecure       (currInfra-1));
          request.setAttribute("pref_pxRobotId"            ,appPreferences.getPxRobotId            (currInfra-1));
          request.setAttribute("pref_pxRobotVO"            ,appPreferences.getPxRobotVO            (currInfra-1));
          request.setAttribute("pref_pxRobotRole"          ,appPreferences.getPxRobotRole          (currInfra-1));
          request.setAttribute("pref_pxRobotRenewalFlag"   ,appPreferences.getPxRobotRenewalFlag   (currInfra-1));
          request.setAttribute("pref_pxUserProxy"          ,appPreferences.getPxUserProxy          (currInfra-1));
          request.setAttribute("pref_softwareTags"         ,appPreferences.getSoftwareTags         (currInfra-1));
        } // if paneInfrastructure > 0
        request.setAttribute("pref_jobRequirements"   ,appPreferences.getJobRequirements());
        request.setAttribute("pref_pilotScript"       ,appPreferences.getPilotScript    ());
                     
        // The edit.jsp will be the responsible to show/edit the current preference values
        PortletRequestDispatcher dispatcher=getPortletContext().getRequestDispatcher("/edit.jsp");
        dispatcher.include(request, response);
    }
/**
     * This method is responsible to retrieve the current Application preference settings
     * and then show the edit.jsp page where the user can edit the Application preferences
     * This methods prepares an actionURL that will be used by edit.jsp file into a <input ...> form
     * As soon the user press the action button the processAction will be called going in EDIT mode
     * This method is equivalent to the doView method
     * 
     * @param request Render request object instance 
     * @param response Render response object isntance
     * 
     * @throws PortletException
     * @throws IOException 
     * 
     */
This method is responsible to retrieve the current Application preference settings
and then show the edit.jsp page where the user can edit the Application preferences
This methods prepares an actionURL that will be used by edit.jsp file into a  form
As soon the user press the action button the processAction will be called going in EDIT mode
This method is equivalent to the doView method

@param request Render request object instance
@param response Render response object isntance


This method is responsible to retrieve the current Application preference settings and then show the edit . jsp page where the user can edit the Application preferences This methods prepares an actionURL that will be used by edit . jsp file into a form As soon the user press the action button the processAction will be called going in EDIT mode This method is equivalent to the doView method @param request Render request object instance @param response Render response object isntance
@Override
    public void doEdit(RenderRequest request,RenderResponse response)
    throws PortletException,IOException {
        response.setContentType("text/html");
        _log.info("Calling doEdit ...");
        getPreferences(null,request);
        int currInfra         =appPreferences.getCurrPaneInfrastructure();
        int numInfrastructures=appPreferences.getNumInfrastructures();
        PortletURL pref_actionURL = response.createActionURL();
        request.setAttribute("pref_actionURL",pref_actionURL.toString());        
        request.setAttribute("pref_logLevel"          ,""+appPreferences.getLogLevel              ());        
        request.setAttribute("pref_numInfrastructures",""+appPreferences.getNumInfrastructures    ()); 
        request.setAttribute("pref_currInfrastructure",""+appPreferences.getCurrPaneInfrastructure());
        request.setAttribute("pref_gridOperationId"   ,""+appPreferences.getGridOperationId       ());
        request.setAttribute("pref_gridOperationDesc" ,""+appPreferences.getGridOperationDesc     ());
        if(   0<= currInfra
           &&     currInfra <= numInfrastructures) {            
          request.setAttribute("pref_enableInfrastructure" ,appPreferences.getEnableInfrastructure (currInfra-1));
          request.setAttribute("pref_nameInfrastructure"   ,appPreferences.getNameInfrastructure   (currInfra-1));
          request.setAttribute("pref_acronymInfrastructure",appPreferences.getAcronymInfrastructure(currInfra-1));
          request.setAttribute("pref_bdiiHost"             ,appPreferences.getBdiiHost             (currInfra-1));
          request.setAttribute("pref_wmsHosts"             ,appPreferences.getWmsHosts             (currInfra-1));
          request.setAttribute("pref_pxServerHost"         ,appPreferences.getPxServerHost         (currInfra-1));
          request.setAttribute("pref_pxServerPort"         ,appPreferences.getPxServerPort         (currInfra-1));
          request.setAttribute("pref_pxServerSecure"       ,appPreferences.getPxServerSecure       (currInfra-1));
          request.setAttribute("pref_pxRobotId"            ,appPreferences.getPxRobotId            (currInfra-1));
          request.setAttribute("pref_pxRobotVO"            ,appPreferences.getPxRobotVO            (currInfra-1));
          request.setAttribute("pref_pxRobotRole"          ,appPreferences.getPxRobotRole          (currInfra-1));
          request.setAttribute("pref_pxRobotRenewalFlag"   ,appPreferences.getPxRobotRenewalFlag   (currInfra-1));
          request.setAttribute("pref_pxUserProxy"          ,appPreferences.getPxUserProxy          (currInfra-1));
          request.setAttribute("pref_softwareTags"         ,appPreferences.getSoftwareTags         (currInfra-1));
        } 
        request.setAttribute("pref_jobRequirements"   ,appPreferences.getJobRequirements());
        request.setAttribute("pref_pilotScript"       ,appPreferences.getPilotScript    ());
        PortletRequestDispatcher dispatcher=getPortletContext().getRequestDispatcher("/edit.jsp");
        dispatcher.include(request, response);
    }
@ Override public void doEdit ( RenderRequest request , RenderResponse response ) throws PortletException , IOException { response . setContentType ( "text/html" ) ; _log . info ( "Calling doEdit ..." ) ; getPreferences ( null , request ) ; int currInfra = appPreferences . getCurrPaneInfrastructure ( ) ; int numInfrastructures = appPreferences . getNumInfrastructures ( ) ; PortletURL pref_actionURL = response . createActionURL ( ) ; request . setAttribute ( "pref_actionURL" , pref_actionURL . toString ( ) ) ; request . setAttribute ( "pref_logLevel" , "" + appPreferences . getLogLevel ( ) ) ; request . setAttribute ( "pref_numInfrastructures" , "" + appPreferences . getNumInfrastructures ( ) ) ; request . setAttribute ( "pref_currInfrastructure" , "" + appPreferences . getCurrPaneInfrastructure ( ) ) ; request . setAttribute ( "pref_gridOperationId" , "" + appPreferences . getGridOperationId ( ) ) ; request . setAttribute ( "pref_gridOperationDesc" , "" + appPreferences . getGridOperationDesc ( ) ) ; if ( 0 <= currInfra && currInfra <= numInfrastructures ) { request . setAttribute ( "pref_enableInfrastructure" , appPreferences . getEnableInfrastructure ( currInfra - 1 ) ) ; request . setAttribute ( "pref_nameInfrastructure" , appPreferences . getNameInfrastructure ( currInfra - 1 ) ) ; request . setAttribute ( "pref_acronymInfrastructure" , appPreferences . getAcronymInfrastructure ( currInfra - 1 ) ) ; request . setAttribute ( "pref_bdiiHost" , appPreferences . getBdiiHost ( currInfra - 1 ) ) ; request . setAttribute ( "pref_wmsHosts" , appPreferences . getWmsHosts ( currInfra - 1 ) ) ; request . setAttribute ( "pref_pxServerHost" , appPreferences . getPxServerHost ( currInfra - 1 ) ) ; request . setAttribute ( "pref_pxServerPort" , appPreferences . getPxServerPort ( currInfra - 1 ) ) ; request . setAttribute ( "pref_pxServerSecure" , appPreferences . getPxServerSecure ( currInfra - 1 ) ) ; request . setAttribute ( "pref_pxRobotId" , appPreferences . getPxRobotId ( currInfra - 1 ) ) ; request . setAttribute ( "pref_pxRobotVO" , appPreferences . getPxRobotVO ( currInfra - 1 ) ) ; request . setAttribute ( "pref_pxRobotRole" , appPreferences . getPxRobotRole ( currInfra - 1 ) ) ; request . setAttribute ( "pref_pxRobotRenewalFlag" , appPreferences . getPxRobotRenewalFlag ( currInfra - 1 ) ) ; request . setAttribute ( "pref_pxUserProxy" , appPreferences . getPxUserProxy ( currInfra - 1 ) ) ; request . setAttribute ( "pref_softwareTags" , appPreferences . getSoftwareTags ( currInfra - 1 ) ) ; } request . setAttribute ( "pref_jobRequirements" , appPreferences . getJobRequirements ( ) ) ; request . setAttribute ( "pref_pilotScript" , appPreferences . getPilotScript ( ) ) ; PortletRequestDispatcher dispatcher = getPortletContext ( ) . getRequestDispatcher ( "/edit.jsp" ) ; dispatcher . include ( request , response ) ; }
This method is responsible to retrieve the current Application preference settings
 and then show the edit.jsp page where the user can edit the Application preferences
 This methods prepares an actionURL that will be used by edit.jsp file into a <input ...> form
 As soon the user press the action button the processAction will be called going in EDIT mode
 This method is equivalent to the doView method
This method is responsible to retrieve the current Application preference settings and then show the edit . jsp page where the user can edit the Application preferences This methods prepares an actionURL that will be used by edit . jsp file into a <input ... > form As soon the user press the action button the processAction will be called going in EDIT mode This method is equivalent to the doView method
// Get current preference values // Get the current infrastructure and the number of infrastructure // ActionURL and the current preference value will be passed to the edit.jsp // Send preference values // Send Infrastructure specific data         // if paneInfrastructure > 0 // The edit.jsp will be the responsible to show/edit the current preference values