[JBoss JIRA] Created: (RF-2302) Component control generates unnecessary JavaScript on page when attachTo attribute is not defined
by Michael Case (JIRA)
Component control generates unnecessary JavaScript on page when attachTo attribute is not defined
-------------------------------------------------------------------------------------------------
Key: RF-2302
URL: http://jira.jboss.com/jira/browse/RF-2302
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.4
Environment: jboss-4.2.2.GA
Reporter: Michael Case
Priority: Minor
Per the Component Control docs (http://livedemo.exadel.com/richfaces-demo/richfaces/componentControl.jsf?...) when the attachTo attribute is not defined the event is attached to the parent component. While this behavior does work correctly it still appends the "Richfaces.componentControl.attachEvent........." JavaScript code which is completely unnecessary.
Example Source:
<h:outputLink value="#">
My Link
<rich:componentControl for="myModalPanel" operation="show" event="onclick" disableDefault="true"/>
</h:outputLink>
Example Expected Result:
<a href="#" onclick="Richfaces.componentControl.performOperation(event,'#myModalPanel','show',{},true)">My Link</a>
Example Actual Result:
<a href="#" onclick="Richfaces.componentControl.performOperation(event,'#myModalPanel','show',{},true)">My Link<script type="text/javascript">//<![CDATA[
{
Richfaces.componentControl.attachEvent(
'#', 'onclick', '#myModalPanel', 'show', {}, true );
}
//]]></script></a>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months
[JBoss JIRA] Created: (RF-6554) dropDownMenu: labelClass attribute doesn't work
by Inna Shchibrya (JIRA)
dropDownMenu: labelClass attribute doesn't work
-----------------------------------------------
Key: RF-6554
URL: https://jira.jboss.org/jira/browse/RF-6554
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Environment: FF-3, IE6, IE7, Opera, Safari
Tomcat 6.0
sun RI 1.2.10
jsp
Reporter: Inna Shchibrya
Assignee: Nick Belaevski
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%>
<%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%>
<%@ taglib uri="http://richfaces.org/rich" prefix="rich"%>
<html>
<head>
<title>Custom Component</title>
<style>
.labelClass1{
color:red;
}</style>
</head>
<body>
<f:view>
<h:form>
<h:panelGrid columns="2">
<rich:spacer width="400px" height="400px"></rich:spacer>
<rich:panel>
<rich:dropDownMenu id="ddmId" value="DropDownMenu" labelClass="labelClass1">
<rich:menuItem>
<h:outputText value="Item2" />
</rich:menuItem>
<rich:menuItem icon="#{dDMenu.icon}">
<h:outputText value="Item3" />
</rich:menuItem>
<rich:menuItem>
<h:outputLink value="http://www.jboss.com/"><f:verbatim>Link</f:verbatim></h:outputLink>
</rich:menuItem>
<rich:menuSeparator/>
<rich:menuItem icon="/pics/info.gif" value="action" action="#{dDMenu.act}" reRender="cmInfoID">
</rich:menuItem>
<rich:menuItem icon="/pics/info.gif" value="actionListener" actionListener="#{dDMenu.actListener}" reRender="cmInfoID">
</rich:menuItem>
</rich:dropDownMenu>
</rich:panel>
</h:panelGrid>
</h:form>
</f:view>
</body>
</html>
Actual result: labelClass1 doesn't apply and labelClass is absent in View Source of the page.
Expected result: labelClass1 should apply and labelClass should be present in View Source of the page.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
16 years, 11 months