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

IllegarlArgumentException when there is a dot "." in name of portlet instance created using admin ui

    Details

      Description

      Thanks Mike Harvey and Jirka for finding this bug.

      If you create new protlet instance and put the dot in the name (probably also other special char), then the GUI creates the record in database but the portlet name i s invalid and the GUI (config portlet) does not work anymore. To fix this you have to go to db and rename the instance manually there. There should be a validator to chack that only valid name was entered.

      In 2.7, the exception is

      java.lang.IllegalArgumentException: prabhat.jha
      at javax.faces.component.UIComponentBase.validateId(UIComponentBase.java:555)
      at javax.faces.component.UIComponentBase.setId(UIComponentBase.java:351)
      at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:151)
      at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      at com.sun.facelets.tag.jstl.core.ForEachHandler.apply(ForEachHandler.java:175)
      at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:314)
      at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:169)

      In 2.6, the exception is

      java.lang.IllegalArgumentException: Subsequent characters of component identifier must be a letter, a digit, an underscore ('_'), or a dash ('-')! But component identifier contains "."
      at javax.faces.component.UIComponentBase.isIdValid(UIComponentBase.java:1053)
      at javax.faces.component.UIComponentBase.setId(UIComponentBase.java:277)
      at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:147)
      at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      at com.sun.facelets.tag.jstl.core.ForEachHandler.apply(ForEachHandler.java:174)
      at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:164)
      at com.sun.facelets.tag.jstl.core.IfHandler.apply(IfHandler.java:54)
      at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      at com.sun.facelets.tag.ui.DefineHandler.apply(DefineHandler.java:58)
      at com.sun.facelets.tag.ui.CompositionHandler.apply(CompositionHandler.java:128)
      at com.sun.facelets.impl.DefaultFaceletContext$TemplateClientMomento.apply(Unknown Source)
      at com.sun.facelets.impl.DefaultFaceletContext.includeDefinition(Unknown Source)
      at com.sun.facelets.tag.ui.InsertHandler.apply(InsertHandler.java:63)
      at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      at com.sun.facelets.tag.ui.DefineHandler.apply(DefineHandler.java:58)
      at com.sun.facelets.tag.ui.DecorateHandler.apply(DecorateHandler.java:116)
      at com.sun.facelets.impl.DefaultFaceletContext$TemplateClientMomento.apply(Unknown S

        Gliffy Diagrams

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  claprun Chris Laprun
                  Reporter:
                  prabhat.jha Prabhat Jha
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  0 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: