Uploaded image for project: 'JBoss Portal'
  1. JBoss Portal
  2. JBPORTAL-2409

Unable to delete property without value in portal admin interface

    Details

      Description

      This bug is present in at least three places:
      -Manage properties for all portals
      -Properties of each portal
      -Dashboards

      in these interfaces it is possible to add values with custom names. when the property is added, it's default value is blank. when a property with blank value is to be deleted (clicking on the delete icon next to the property) nothing will happen. if some value is added to the property, it can be deleted. If you delete the value of some existing property, it can't be deleted.

      after clicking on delete button (page is reloaded) for property without a value, you cannot even delete properties with values until you set values to the blank fields.

      excerpt from the log:
      14:07:45,694 ERROR [STDERR] Jun 9, 2009 2:07:45 PM javax.faces.component.UIInput updateModel
      SEVERE: /jsf/common/editProperties.xhtml @108,130 value="#

      {prop.value}": Error writing 'value' on type org.jboss.portal.core.admin.ui.PropertyBean
      java.lang.NullPointerException
      at org.jboss.portal.faces.gui.ManagedBean.getLocalizedType(ManagedBean.java:131)
      at org.jboss.portal.faces.gui.ManagedBean.checkNameValidity(ManagedBean.java:85)
      at org.jboss.portal.faces.gui.ManagedBean.checkNameValidity(ManagedBean.java:75)
      at org.jboss.portal.core.admin.ui.PropertyBean.setValue(PropertyBean.java:108)
      at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
      at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
      .........
      14:07:45,918 INFO [lifecycle] WARNING: FacesMessage(s) have been enqueued, but may not have been displayed.
      sourceId=_AdminPortletWindow:j_id132:common-manage-prop-form:prop-data-table:0:prop-value-input[severity=(ERROR 2), summary=(/jsf/common/editProperties.xhtml @108,130 value="#{prop.value}

      ": Error writing 'value' on type org.jboss.portal.core.admin.ui.PropertyBean), detail=(/jsf/common/editProperties.xhtml @108,130 value="#

      {prop.value}

      ": Error writing 'value' on type org.jboss.portal.core.admin.ui.PropertyBean)]

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                claprun Chris Laprun
                Reporter:
                vrockai Viliam Rockai
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: