コード例 #1
0
  public void selectAndReturn(ActionEvent event) {

    AccessModuleRowData row = (AccessModuleRowData) JsfUtils.resolveVariable("row");
    AccessModule accessModule = (AccessModule) row.getEntity();

    Map map = new HashMap();
    map.put(UserManagementConstants.SELECTED_ACCESSMODULE_OBJECT_NAME, accessModule);

    RequestContext.getCurrentInstance().returnFromDialog(accessModule.getTitle(), map);
  }
コード例 #2
0
 public String select() {
   AccessModuleRowData selectedRow = (AccessModuleRowData) JsfUtils.resolveVariable("row");
   if (selectedRow != null) {
     AccessModule accessModule = (AccessModule) selectedRow.getEntity();
     HashMap returnValue = new HashMap<String, AccessModule>();
     returnValue.put(Constants.KEY_RETURN_FROM_DIALOG, accessModule);
     RequestContext.getCurrentInstance().returnFromDialog(accessModule.getTitle(), returnValue);
   }
   return null;
 }