[
https://issues.jboss.org/browse/RF-9925?page=com.atlassian.jira.plugin.sy...
]
Pavol Pitonak commented on RF-9925:
-----------------------------------
I fixed Metamer and I can still see the bug. I think it's a bug in Mojarra 2.1 because
I cannot reproduce with 2.0.2-b05. I deployed it to Glassfish 3.1-nightly with Mojarra
2.1.0 (FCS b10) and bug can be reproduced with following page:
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:rich="http://richfaces.org/rich" >
<h:head/>
<h:body>
<h:form id="form">
<rich:panelMenu id="panelMenu" activeItem="item11"
>
<rich:panelMenuGroup id="group1" label="Group
1">
<rich:panelMenuItem id="item11" label="Item
1.1"/>
<rich:panelMenuItem id="item12" label="Item
1.2"/>
</rich:panelMenuGroup>
<rich:panelMenuGroup id="group2" label="Group
2">
<rich:panelMenuItem id="item21" label="Item
2.1"/>
<rich:panelMenuItem id="item22" label="Item
2.2"/>
</rich:panelMenuGroup>
</rich:panelMenu>
</h:form>
</h:body>
</html>
Panel menu: The form component needs to have a UIForm in its
ancestry
---------------------------------------------------------------------
Key: RF-9925
URL:
https://issues.jboss.org/browse/RF-9925
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-output
Affects Versions: 4.0.0.Milestone4
Environment: RichFaces 4.0.0-SNAPSHOT r.20396
Metamer 4.0.0-SNAPSHOT r.20398
Mojarra 2.1.0-SNAPSHOT
GlassFish Server Open Source Edition 3.1-SNAPSHOT
OpenJDK Runtime Environment 1.6.0_20-b20 @ Linux
Chrome 8.0.552.215 @ Linux x86_64
Reporter: Pavol Pitonak
Assignee: Lukas Fryc
Fix For: 4.0.0.CR1
A page with rich:panelMenu shows the following message:
* The form component needs to have a UIForm in its ancestry. Suggestion: enclose the
necessary components within <h:form>
<?xml version="1.0" encoding="UTF-8" ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:rich="http://richfaces.org/rich" >
<h:head/>
<h:body>
<h:form id="form">
<rich:panelMenu id="panelMenu"
activeItem="#{richPanelMenuBean.attributes['activeItem'].value}" >
<rich:panelMenuGroup id="group1" label="Group
1">
<rich:panelMenuItem id="item11" label="Item
1.1">
<f:param name="current" value="Item 1.1"
/>
</rich:panelMenuItem>
<rich:panelMenuItem id="item12" label="Item
1.2">
<f:param name="current" value="Item 1.2"
/>
</rich:panelMenuItem>
</rich:panelMenuGroup>
<rich:panelMenuGroup id="group2" label="Group
2">
<rich:panelMenuItem id="item21" label="Item
2.1">
<f:param name="current" value="Item 2.1"
/>
</rich:panelMenuItem>
<rich:panelMenuItem id="item22" label="Item
2.2">
<f:param name="current" value="Item 2.2"
/>
</rich:panelMenuItem>
</rich:panelMenuGroup>
</rich:panelMenu>
</h:form>
</h:body>
</html>
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira