]
Chris Laprun resolved JBPORTAL-2259.
------------------------------------
Resolution: Done
Assignee: Chris Laprun (was: Wesley Hales)
Should be fixed now.
IllegarlArgumentException when there is a dot "." in name
of portlet instance created using admin ui
----------------------------------------------------------------------------------------------------
Key: JBPORTAL-2259
URL:
https://jira.jboss.org/jira/browse/JBPORTAL-2259
Project: JBoss Portal
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: Portal Core
Affects Versions: 2.6.7 Final, 2.7.0 Final
Reporter: Prabhat Jha
Assignee: Chris Laprun
Fix For: 2.7.1 Final, 2.6.8 Final
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
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: