[JBoss JIRA] Created: (RF-4351) rich:tree ampersand is sometimes not escaped properly causing parse error
by Mikael (JIRA)
rich:tree ampersand is sometimes not escaped properly causing parse error
-------------------------------------------------------------------------
Key: RF-4351
URL: https://jira.jboss.org/jira/browse/RF-4351
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: Seam 2.0.1.GA, Facelets 1.1.14, jsf mojarra 1.2_07-b03-FCS
Reporter: Mikael
Hi
My nodes in my tree may contain ampersand and other crazy German characters.
Currently I'm getting an XML parse error pointing to the ampersand.
Had a look at the generated source and discovered that the node content is used as part of the element id. Mostly the ampersand is escaped properly but in at least one place it isn't which is causing a parse error on the client side.
Using the NEKO parser.
The forum link contains more information, especially the a4j log.
--
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
[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