Changeset 418 for tapas/web


Ignore:
Timestamp:
03/19/12 13:41:13 (12 years ago)
Author:
vmipsl
Message:

gestion des pertes de login
redirection sur la page d'accueil pour chaque action

Location:
tapas/web
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • tapas/web/backoffice/user-script.jsp

    r416 r418  
    100100    handleSortUser: function( result ) 
    101101    { 
    102         this.jsonUsers = jQuery.parseJSON( result ).jSonUsers; 
    103         this.nbUsers = jQuery.parseJSON( result ).usersNumber; 
    104         this.displayUsers(); 
    105         this.clearAddOrModifyUserFields(); 
    106         this.updateAddUserButtonAndTitle(); 
     102        try 
     103        { 
     104            this.jsonUsers = jQuery.parseJSON( result ).jSonUsers; 
     105            this.nbUsers = jQuery.parseJSON( result ).usersNumber; 
     106            this.displayUsers(); 
     107            this.clearAddOrModifyUserFields(); 
     108            this.updateAddUserButtonAndTitle(); 
     109        } 
     110        catch( err ) 
     111        { 
     112            document.location.reload(); 
     113        } 
    107114    }, 
    108115 
  • tapas/web/backoffice/user.jsp

    r416 r418  
    185185            interfaceTexts["<%=UserRole.USER%>"] = '<spring:message code="label.role.user"/>'; 
    186186 
    187             interfaceTexts["<%=WebException.WebCode.USER_ALREADY_EXISTS%>"] = '<spring:message code="login.dataProtocol.alreadyExist"/>'; 
     187            interfaceTexts["<%=WebException.WebCode.USER_ALREADY_EXISTS%>"] = '<spring:message code="USER_ALREADY_EXISTS"/>'; 
    188188            interfaceTexts["<%=WebException.WebCode.ERROR_EMAIL_CANNOT_BE_SEND%>"] = '<spring:message code="bo.user.emailNotSend"/>'; 
    189189 
  • tapas/web/src/com/ether/ControllerBackoffice.java

    r416 r418  
    5050    /** *********************** CALLS ***************************** **/ 
    5151    /** *********************************************************** **/ 
    52     @ControllerMethod(jsonResult = true) 
     52    @ControllerMethod(jsonResult = true, backofficeMethod = true, defaultView = VIEW_BO_INDEX) 
    5353    public JSONObject addUser( @NotNull @ParamName(ParameterConstants.PARAMETER_NAME) final String lastName, 
    5454                               @Nullable @ParamName(ParameterConstants.PARAMETER_FIRST_NAME) final String firstName, 
     
    8888    } 
    8989 
    90     @ControllerMethod(jsonResult = true) 
     90    @ControllerMethod(jsonResult = true, backofficeMethod = true, defaultView = VIEW_BO_INDEX) 
    9191    public JSONObject removeUser( @NotNull @ParamName(ParameterConstants.PARAMETER_ID) final Integer userId ) 
    9292            throws WebException, ServiceException 
     
    9797    } 
    9898 
    99     @ControllerMethod(jsonResult = true) 
     99    @ControllerMethod(jsonResult = true, backofficeMethod = true, defaultView = VIEW_BO_INDEX) 
    100100    public JSONObject modifyUser( @NotNull @ParamName(ParameterConstants.PARAMETER_ID) final Integer userId, 
    101101                                  @NotNull @ParamName(ParameterConstants.PARAMETER_NAME) final String lastName, 
     
    146146    } 
    147147 
    148     @ControllerMethod(jsonResult = true) 
     148    @ControllerMethod(jsonResult = true, backofficeMethod = true, defaultView = VIEW_BO_INDEX) 
    149149    public JSONObject sortUser( @NotNull @ParamName("sort") final String sort, 
    150150                                @Nullable @ParamName("searchText") final String searchText, 
Note: See TracChangeset for help on using the changeset viewer.