[JBoss JIRA] Created: (RF-8620) Performance problem with rich panel menu in Internet Explorer
by Marius Seiceanu (JIRA)
Performance problem with rich panel menu in Internet Explorer
-------------------------------------------------------------
Key: RF-8620
URL: https://jira.jboss.org/jira/browse/RF-8620
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: performance
Affects Versions: 3.3.3.Final, 3.3.2.GA
Environment: Windows XP, IE7
Firefox 3.5.9
Reporter: Marius Seiceanu
We have an application which shows a menu (rich:panelMenu mode="client") with 275 entries. Entries are structured on 4 levels using rich:panelMenuGroup and rich:panelMenuItem).
The problem is that loading of menu takes 6seconds in IE7 on a computer with 1.6GHz CPU.
CPU is highly used during load of menu.
In FireFox load of menu takes less than 2sec.
Same tests on a different computer with 2.0 GHz CPU:
- IE8 - 3sec
- FF3.5.9 - 1.1sec
--
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
14 years, 8 months
[JBoss JIRA] Created: (RF-8607) Regression in context menu on trees
by Lukas Krejci (JIRA)
Regression in context menu on trees
-----------------------------------
Key: RF-8607
URL: https://jira.jboss.org/jira/browse/RF-8607
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-menu, component-tree
Affects Versions: 3.3.3.Final
Reporter: Lukas Krejci
The following code snippet illustrates how we use a context menu that is dynamically loaded on the oncontextmenu event. This works in 3.3.0.GA but stopped working in the later versions (I tried 3.3.1.GA, 3.3.2.GA, 3.3.3.CR1 and 3.3.3.Final).
<h:form>
<rich:contextMenu attached="false" id="resourceMenu"
binding="#{ResourceTreeContextMenuUIBean.menu}"
disableDefaultMenu="false" style="z-index: 50;"
submitMode="ajax" />
</h:form>
<h:form>
<rich:tree style="width: 100%; height: 100%; min-width: 100%; min-height: 100%" switchType="ajax"
componentState="#{ResourceTreeStateAdvisor.treeState}"
stateAdvisor="#{ResourceTreeStateAdvisor}"
status="commonStatus"
var="treeNode"
icon="/images/icn_tree_Platform.gif"
id="leftNavTree"
preserveDataInRequest="false"
adviseNodeSelected="#{ResourceTreeStateAdvisor.adviseNodeSelected}"
changeExpandListener="#{ResourceTreeStateAdvisor.changeExpandListener}"
nodeSelectListener="#{ResourceTreeStateAdvisor.nodeSelectListener}"
ajaxSubmitSelection="true"
showConnectingLines="false"
nodeFace="#{treeNode.data.class.simpleName}"
eventsQueue="resourceTreeQueue"
ignoreDupResponses="true">
<rich:recursiveTreeNodesAdaptor roots="#{ResourceTreeModelUIBean.roots}"
var="resourceTreeItem"
nodes="#{resourceTreeItem.children}" />
<rich:treeNode type="Resource"
icon="/images/icons/folder_closed_#{resourceTreeItem.data.currentAvailability.availabilityType == 'DOWN' ? 'down' : 'up'}_16.png"
iconCollapsed="/images/icons/dir_closed.png"
iconExpanded="/images/icons/dir_open.png"
iconLeaf="/images/icons/Service_#{resourceTreeItem.data.currentAvailability.availabilityType == 'DOWN' ? 'down' : 'up'}_16.png">
<a4j:support event="oncontextmenu" reRender="resourceMenu" timeout="5000"
disableDefault="true" status="commonStatus" limitToList="true"
ajaxSingle="true">
<f:param name="contextResourceId" value="#{resourceTreeItem.data.id}"/>
<rich:componentControl disableDefault="true" event="oncomplete" for="resourceMenu"
operation="show" />
</a4j:support>
<h:outputText value="#{resourceTreeItem}"
styleClass="resourceLink" title="Right-click for more options."/>
</rich:treeNode>
</rich:tree>
</h:form>
The strange thing is that the backend code is called and fills in the intended contex menu component successfully and even the AJAX response is returned to the browser with what seems to be a correct javascript representation of the context menu. But the context menu is then not shown.
--
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
14 years, 8 months
[JBoss JIRA] Created: (RF-8519) Can't create combo box with list of enums
by Leonid Sokolin (JIRA)
Can't create combo box with list of enums
-----------------------------------------
Key: RF-8519
URL: https://jira.jboss.org/jira/browse/RF-8519
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component
Affects Versions: 3.3.1
Environment: Windows, JBoss 4.2.2.GA
Reporter: Leonid Sokolin
I am trying to use a combo box, which would show the list of objects of the enum class, but it throws the exception below as I open the page.
I am able to use to the same list for shuttle list though. Could anybody help?
11:47:05,140 ERROR [[Faces Servlet]] Servlet.service() for servlet Faces Servlet threw exception
java.lang.ClassCastException: com.nb.pi.processor.beans.TrailingPeriods
at org.richfaces.renderkit.ComboBoxBaseRenderer.encodeItems(ComboBoxBaseRenderer.java:96)
at org.richfaces.renderkit.html.ComboBoxRenderer.doEncodeEnd(ComboBoxRenderer.java:558)
at org.richfaces.renderkit.html.ComboBoxRenderer.doEncodeEnd(ComboBoxRenderer.java:587)
at org.ajax4jsf.renderkit.RendererBase.encodeEnd(RendererBase.java:134)
at javax.faces.component.UIComponentBase.encodeEnd(UIComponentBase.java:836)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:279)
at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:242)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:271)
at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:117)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:271)
at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:242)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
at javax.faces.render.Renderer.encodeChildren(Renderer.java:137)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:271)
at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:242)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:271)
at com.sun.faces.renderkit.html_basic.GroupRenderer.encodeChildren(GroupRenderer.java:117)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
at com.sun.faces.renderkit.html_basic.HtmlBasicRenderer.encodeRecursive(HtmlBasicRenderer.java:271)
at com.sun.faces.renderkit.html_basic.GridRenderer.encodeChildren(GridRenderer.java:242)
at javax.faces.component.UIComponentBase.encodeChildren(UIComponentBase.java:812)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:886)
at javax.faces.component.UIComponent.encodeAll(UIComponent.java:892)
at com.sun.facelets.FaceletViewHandler.renderView(FaceletViewHandler.java:592)
at org.ajax4jsf.application.ViewHandlerWrapper.renderView(ViewHandlerWrapper.java:100)
at org.ajax4jsf.application.AjaxViewHandler.renderView(AjaxViewHandler.java:176)
at com.sun.faces.lifecycle.RenderResponsePhase.execute(RenderResponsePhase.java:106)
at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:251)
at com.sun.faces.lifecycle.LifecycleImpl.render(LifecycleImpl.java:144)
at javax.faces.webapp.FacesServlet.service(FacesServlet.java:245)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:510)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.ajax4jsf.webapp.BaseXMLFilter.doXmlFilter(BaseXMLFilter.java:178)
at org.ajax4jsf.webapp.BaseFilter.handleRequest(BaseFilter.java:290)
at org.ajax4jsf.webapp.BaseFilter.processUploadsAndHandleRequest(BaseFilter.java:368)
at org.ajax4jsf.webapp.BaseFilter.doFilter(BaseFilter.java:495)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:230)
at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175)
at org.jboss.web.tomcat.security.SecurityAssociationValve.invoke(SecurityAssociationValve.java:179)
at org.jboss.web.tomcat.security.JaccContextValve.invoke(JaccContextValve.java:84)
at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:127)
at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102)
at org.jboss.web.tomcat.service.jca.CachedConnectionValve.invoke(CachedConnectionValve.java:157)
at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109)
at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:262)
at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844)
at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583)
at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:446)
at java.lang.Thread.run(Thread.java:595)
--
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
14 years, 8 months