[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-4030) Javascript errors after redirect
by Michael Heinen (JIRA)
Javascript errors after redirect
--------------------------------
Key: RF-4030
URL: https://jira.jboss.org/jira/browse/RF-4030
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.1.5
Environment: myFaces 1.1.5
tomahawk 1.1.5
Reporter: Michael Heinen
I use a ServletFilter for all requests to check whether user is still logged in, his session is still valid and whether backend system are available.
If anything is wrong I redirect the current (Ajax) request to another page which can be outside of my application.
In this szenario Javascript errors occur in function A4J.AJAX.replacePage
All access to LOG has to be checked after following line:
window.document.write(req.getResponseText());
Logging debug output should not result in javascript errors.
Therefore the existence of LOG has to be checked after the response is inserted into the current document.
I found 7 occurrences
e.g.
if (window.LOG){LOG.debug("...");}
--
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-3686) listShuttle and s:entityConverter
by Marcell Barbacena (JIRA)
listShuttle and s:entityConverter
----------------------------------
Key: RF-3686
URL: http://jira.jboss.com/jira/browse/RF-3686
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: JBoss 4.2 GA, Seam 2.0.2.SP1
Reporter: Marcell Barbacena
Using s:entityConverter with listShuttle is losing managed entity having to do lots of queries after ajax event. Code:
<rich:listShuttle id="selectionId" sourceValue="#{someAction.objectAvaliable}"
targetValue="#{bean.selected}" var="obj"
copyControlLabel="Copy" removeControlLabel="Remove"
copyAllControlLabel="Copy All" removeAllControlLabel="Remove All"
orderControlsVisible="false" fastOrderControlsVisible="false"
sourceCaptionLabel="Avaliable" targetCaptionLabel="Selected" >
<s:convertEntity />
<rich:column>
<f:facet name="header">
Number
</f:facet>
<h:outputText value="#{obj.numero}" />
</rich:column>
<a4j:support event="onlistchanged" reRender="counter" action="#{someAction.touch}" />
</rich:listShuttle>
--
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