[JBoss JIRA] Created: (RF-4498) EndlessLoop in CssCompressor
by andreas_back (JIRA)
EndlessLoop in CssCompressor
----------------------------
Key: RF-4498
URL: https://jira.jboss.org/jira/browse/RF-4498
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: Browser independent
Reporter: andreas_back
When starting our application under RF 3.2.2 GA Tomcat consumes (on a Quad-Core-Processor) 25 % of the overall CPU performance, if the first page of the application is requested.
After adding
set CATALINA_OPTS="-Dcom.sun.management.jmxremote"
to the startup.bat and starting jconsole it was found the time is consumed in line 41 of CssCompressor.java,
see the code fragment.
sb = new StringBuffer(srcsb.toString());
while ((startIndex = sb.indexOf("/*")) >= 0) {
endIndex = sb.indexOf("*/", startIndex + 2);
if (endIndex >= startIndex + 2)
sb.delete(startIndex, endIndex + 2);
}
A simple code analysis shows that the code starts an endless loop for example for
the string
/*/
If the parameter org.ajax4jsf.COMPRESS_STYLE is set to false
then the endless loop disappears.
It could be noted that the single string in the CssCompressorTest class
does not contain the comment /* or */.
--
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
15 years, 9 months
[JBoss JIRA] Created: (RF-2613) ListShuttle: JS API
by Tsikhon Kuprevich (JIRA)
ListShuttle: JS API
-------------------
Key: RF-2613
URL: http://jira.jboss.com/jira/browse/RF-2613
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.0
Environment: 3.2.0.CR3
Reporter: Tsikhon Kuprevich
Assigned To: Nick Belaevski
Priority: Critical
<a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.doHide()" value="Hide"></a4j:commandLink>
<a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.doShow()" value="Show"></a4j:commandLink>
<a4j:commandLink onclick="alert($('formID:listShuttleSubviewID:listShuttleID').component.isShown)" value="isShown"></a4j:commandLink>
<a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.Enable()" value="Enable"></a4j:commandLink>
<a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.Disable()" value="Disable"></a4j:commandLink>
<a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.isEnabled()" value="isEnabled"></a4j:commandLink>
<a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.moveUp" value="moveUp"></a4j:commandLink>
<a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.moveDown" value="moveDown"></a4j:commandLink>
<a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.moveTop" value="moveTop"></a4j:commandLink>
<a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.moveBottom" value="moveBottom"></a4j:commandLink>
<a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.copy" value="copy"></a4j:commandLink>
<a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.remove" value="remove"></a4j:commandLink>
<a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.copyAll" value="copyAll"></a4j:commandLink>
<a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.removeAll" value="removeAll"></a4j:commandLink>
<a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.getSelection" value="getSelection"></a4j:commandLink>
<a4j:commandLink onclick="$('formID:listShuttleSubviewID:listShuttleID').component.getItems" value="getItems"></a4j:commandLink>
The next functions - isEnabled, Disable, doShow, Enable, doHide - cause the next JS error:
$("formID:listShuttleSubviewID:listShuttleID").component.doHide is not a function
other functions has no effect.
--
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
15 years, 9 months
[JBoss JIRA] Created: (RF-3855) ModalPanel: "controls" facet is disabled if manual skin is applied.
by Alexander Dubovsky (JIRA)
ModalPanel: "controls" facet is disabled if manual skin is applied.
-------------------------------------------------------------------
Key: RF-3855
URL: http://jira.jboss.com/jira/browse/RF-3855
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Reporter: Alexander Dubovsky
Attachments: 3.png, dubser-1.0-SNAPSHOT.jar
# create new skin and apply it
# create modal panel, e.g.:
<rich:modalPanel id="eventInfoID" autosized="true" minHeight="550" minWidth="200" moveable="true" style="overflow: true;">
<f:facet name="header">
<h:outputText value="Events ..."/>
</f:facet>
<f:facet name="controls">
<h:commandLink value="Close" onclick="Richfaces.hideModalPanel('eventInfoID');"/>
</f:facet>
<jsp:include page="/pages/Action/EventInfo.jsp"/>
</rich:modalPanel>
<a4j:commandButton value="Show event" onclick="Richfaces.showModalPanel('eventInfoID');return false;"></a4j:commandButton>
# show modal panel and try to hide it
Result: controls are disabled - see screen shot. Tested skin is attached.
--
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
15 years, 9 months
[JBoss JIRA] Created: (RF-3697) Integration with rich:calender and tiny_mce breaks rich text editor
by FlaxSeed (JIRA)
Integration with rich:calender and tiny_mce breaks rich text editor
-------------------------------------------------------------------
Key: RF-3697
URL: http://jira.jboss.com/jira/browse/RF-3697
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.1
Environment: JSF 1.2, RF 3.2.1, TinyMCE 3.0.9, Tomcat 6
Reporter: FlaxSeed
I have a specific use case whereby if you have a rich:calendar (seems to be specific to this component) above a tiny_mce textarea that is inside a tab panel, the tiny_mce editor will not show. Move the rich calendar below, works fine. Have a look at the attached application to see the problem. It uses Maven 2, so you can use maven to build it to obtain the dependencies.
Basically, run the application and click the tab 2: what should be a tiny_mce RTE is just a regular textarea.
--
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
15 years, 9 months