[JBoss JIRA] Created: (RF-9925) Panel menu: The form component needs to have a UIForm in its ancestry
by Pavol Pitonak (JIRA)
Panel menu: The form component needs to have a UIForm in its ancestry
---------------------------------------------------------------------
Key: RF-9925
URL: https://jira.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
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
15 years
[JBoss JIRA] Created: (RF-9978) rich:tab rendered wrong
by wojtek k (JIRA)
rich:tab rendered wrong
-----------------------
Key: RF-9978
URL: https://jira.jboss.org/browse/RF-9978
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-panels-layout-themes
Affects Versions: 4.0.0.Milestone4
Environment: all
Reporter: wojtek k
<rich:tabPanel id="tp" switchType="server">
<rich:tab name="1" header="1">
tab1
</rich:tab>
<rich:tab name="2" header="2">
tab2
</rich:tab>
<rich:tab name="3" header="3">
tab3
</rich:tab>
</rich:tabPanel>
html output
<div class="rf-tb" id="j_idt28:j_idt29"><div id="j_idt28:j_idt29:content" class="rf-tb-cnt">
tab1
</div><script type="text/javascript">new RichFaces.ui.Tab("j_idt28:j_idt29",{"index":0,"togglePanelId":"j_idt28:tp","switchMode":"server","disabled":false,"name":"1"} )</script></div>
<div class="rf-tb" id="j_idt28:j_idt31"><div style="display: none;" id="j_idt28:j_idt31:content" class="rf-tb-cnt">
tab2
</div><script type="text/javascript">new RichFaces.ui.Tab("j_idt28:j_idt31",{"index":1,"togglePanelId":"j_idt28:tp","switchMode":"server","disabled":false,"name":"2"} )</script></div>
<div class="rf-tb" id="j_idt28:j_idt33"><div style="display: none;" id="j_idt28:j_idt33:content" class="rf-tb-cnt">
tab3
</div><script type="text/javascript">new RichFaces.ui.Tab("j_idt28:j_idt33",{"index":2,"togglePanelId":"j_idt28:tp","switchMode":"server","disabled":false,"name":"3"} )</script></div>
when switchType=server only selected rich:tab should be rendered
not sure in case ajax (append new, refresh selected)?
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
15 years