- Timestamp:
- 03/19/12 13:41:13 (12 years ago)
- Location:
- tapas/web
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
tapas/web/backoffice/user-script.jsp
r416 r418 100 100 handleSortUser: function( result ) 101 101 { 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 } 107 114 }, 108 115 -
tapas/web/backoffice/user.jsp
r416 r418 185 185 interfaceTexts["<%=UserRole.USER%>"] = '<spring:message code="label.role.user"/>'; 186 186 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"/>'; 188 188 interfaceTexts["<%=WebException.WebCode.ERROR_EMAIL_CANNOT_BE_SEND%>"] = '<spring:message code="bo.user.emailNotSend"/>'; 189 189 -
tapas/web/src/com/ether/ControllerBackoffice.java
r416 r418 50 50 /** *********************** CALLS ***************************** **/ 51 51 /** *********************************************************** **/ 52 @ControllerMethod(jsonResult = true )52 @ControllerMethod(jsonResult = true, backofficeMethod = true, defaultView = VIEW_BO_INDEX) 53 53 public JSONObject addUser( @NotNull @ParamName(ParameterConstants.PARAMETER_NAME) final String lastName, 54 54 @Nullable @ParamName(ParameterConstants.PARAMETER_FIRST_NAME) final String firstName, … … 88 88 } 89 89 90 @ControllerMethod(jsonResult = true )90 @ControllerMethod(jsonResult = true, backofficeMethod = true, defaultView = VIEW_BO_INDEX) 91 91 public JSONObject removeUser( @NotNull @ParamName(ParameterConstants.PARAMETER_ID) final Integer userId ) 92 92 throws WebException, ServiceException … … 97 97 } 98 98 99 @ControllerMethod(jsonResult = true )99 @ControllerMethod(jsonResult = true, backofficeMethod = true, defaultView = VIEW_BO_INDEX) 100 100 public JSONObject modifyUser( @NotNull @ParamName(ParameterConstants.PARAMETER_ID) final Integer userId, 101 101 @NotNull @ParamName(ParameterConstants.PARAMETER_NAME) final String lastName, … … 146 146 } 147 147 148 @ControllerMethod(jsonResult = true )148 @ControllerMethod(jsonResult = true, backofficeMethod = true, defaultView = VIEW_BO_INDEX) 149 149 public JSONObject sortUser( @NotNull @ParamName("sort") final String sort, 150 150 @Nullable @ParamName("searchText") final String searchText,
Note: See TracChangeset
for help on using the changeset viewer.