Skip to content

IllegalArgumentException for f:selectItem #31

@glassfishrobot

Description

@glassfishrobot

I've got IllegalArgumentException when I tried to use <f:selectItem.../> inside <h:selectOneMenu...>

<h:selectOneMenu value="#

{pageSession.in}

">
<f:selectItem itemValue="red" itemLabel="red"/>
</h:selectOneMenu>

I looked into com.sun.jsftemplating.component.factory.ri package, and saw only 3 f: factories there:
f:loadBundle f:validator f:param

I don't know it's possible, that there is another (generic) factory that is supposed to create the rest of them,
but as I said it doesn't work for me. Maybe, it's mapped to a different prefix?

List of f: (jsf core) tags:
f:actionListener f:attribute f:convertDateTime f:converter f:convertNumber f:facet f:loadBundle f:param f:selectItem
f:selectItems f:subview f:validateDoubleRange f:validateLength f:validateLongRange f:validator f:valueChangeListener
f:verbatim f:view

java.lang.IllegalArgumentException: ComponentType 'f:selectItem' not defined!
com.sun.jsftemplating.layout.template.TemplateReader.createLayoutComponent(TemplateReader.java:333)
com.sun.jsftemplating.layout.template.BaseProcessingContext.beginComponent(BaseProcessingContext.java:56)
com.sun.jsftemplating.layout.template.TemplateReader.process(TemplateReader.java:292)
com.sun.jsftemplating.layout.template.BaseProcessingContext.beginComponent(BaseProcessingContext.java:79)
com.sun.jsftemplating.layout.template.TemplateReader.process(TemplateReader.java:292)
com.sun.jsftemplating.layout.template.BaseProcessingContext.beginComponent(BaseProcessingContext.java:79)
com.sun.jsftemplating.layout.template.TemplateReader.process(TemplateReader.java:292)
com.sun.jsftemplating.layout.template.TemplateReader.readLayoutDefinition(TemplateReader.java:169)
com.sun.jsftemplating.layout.template.TemplateReader.read(TemplateReader.java:127)
com.sun.jsftemplating.layout.template.TemplateLayoutDefinitionManager.getLayoutDefinition(TemplateLayoutDefinitionManager.java:168)
com.sun.jsftemplating.layout.LayoutDefinitionManager.getLayoutDefinition(LayoutDefinitionManager.java:147)
com.sun.jsftemplating.layout.LayoutViewRoot.getLayoutDefinition(LayoutViewRoot.java:287)
com.sun.jsftemplating.layout.LayoutViewHandler.createView(LayoutViewHandler.java:188)
com.sun.faces.lifecycle.RestoreViewPhase.execute(RestoreViewPhase.java:203)
com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:117)
com.sun.faces.extensions.avatar.lifecycle.PartialTraversalLifecycle.execute(PartialTraversalLifecycle.java:80)
javax.faces.webapp.FacesServlet.service(FacesServlet.java:244)

Environment

Operating System: All
Platform: All

Affected Versions

[.unkown]

Metadata

Metadata

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions