public String getParamSelectedType() { String item = super.getParamSelectedType(); if (CmsStringUtil.isEmptyOrWhitespaceOnly(item)) {
public String getParamSelectedType() { String item = super.getParamSelectedType(); if (CmsStringUtil.isEmptyOrWhitespaceOnly(item)) {
/** * @see org.opencms.workplace.list.A_CmsListResourceTypeDialog#getParamSelectedType() */ @Override public String getParamSelectedType() { String item = super.getParamSelectedType(); if (CmsStringUtil.isEmptyOrWhitespaceOnly(item)) { // determine resource type id of resource to change try { CmsResource res = getCms().readResource(getParamResource(), CmsResourceFilter.ALL); return Integer.toString(res.getTypeId()); } catch (CmsException e) { // do nothing } } return item; }
/** * @see org.opencms.workplace.list.A_CmsListResourceTypeDialog#getParamSelectedType() */ @Override public String getParamSelectedType() { String item = super.getParamSelectedType(); if (CmsStringUtil.isEmptyOrWhitespaceOnly(item)) { // determine resource type id of resource to change try { CmsResource res = getCms().readResource(getParamResource(), CmsResourceFilter.ALL); return Integer.toString(res.getTypeId()); } catch (CmsException e) { // do nothing } } return item; }
/** * @see org.opencms.workplace.list.A_CmsListDialog#actionDialog() */ @Override public void actionDialog() throws JspException, ServletException, IOException { // set selected type I_CmsListDirectAction action = getList().getMetadata().getColumnDefinition(LIST_COLUMN_SELECT).getDirectAction( LIST_ACTION_SEL); if (action != null) { String selected = getParamSelectedType(); if (selected != null) { ((CmsListItemSelectionAction)action).setSelectedItemId(selected); } } super.actionDialog(); }
/** * @see org.opencms.workplace.list.A_CmsListDialog#actionDialog() */ @Override public void actionDialog() throws JspException, ServletException, IOException { // set selected type I_CmsListDirectAction action = getList().getMetadata().getColumnDefinition(LIST_COLUMN_SELECT).getDirectAction( LIST_ACTION_SEL); if (action != null) { String selected = getParamSelectedType(); if (selected != null) { ((CmsListItemSelectionAction)action).setSelectedItemId(selected); } } super.actionDialog(); }