[JBoss JIRA] Created: (RF-6739) Context menu reappears when menu item is clicked
by Nils ten Hoeve (JIRA)
Context menu reappears when menu item is clicked
------------------------------------------------
Key: RF-6739
URL: https://jira.jboss.org/jira/browse/RF-6739
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Environment: Win XP, Java 6, Apache Tomcat 6, IE7
Reporter: Nils ten Hoeve
I have a tree that shows a context menu that is triggered by the onclick event of a tree node. The context menu reappears on the location where a menu item is clicked (unwanted behavior). It works fine when using the oncontextmenu event. The problem is that I need a left-click to trigger the context menu.
<rich:tree switchType="client" selectedClass="active" toggleOnClick="true">
<rich:recursiveTreeNodesAdaptor roots="#{menu.rootNode}" var="node" nodes="#{node.children}">
<rich:treeNode>
<h:outputText value="#{node.class.simpleName}" />
<rich:contextMenu event="onclick" submitMode="ajax">
<rich:menuItem value="Test" actionListener="#{menu.test}"></rich:menuItem>
</rich:contextMenu>
</rich:treeNode>
</rich:recursiveTreeNodesAdaptor>
</rich:tree>
--
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, 5 months
[JBoss JIRA] Created: (RF-7013) orderingList: Dead list, items cannot be selected, column headers are correct width
by Mike Hanafey (JIRA)
orderingList: Dead list, items cannot be selected, column headers are correct width
-----------------------------------------------------------------------------------
Key: RF-7013
URL: https://jira.jboss.org/jira/browse/RF-7013
Project: RichFaces
Issue Type: Bug
Components: component
Affects Versions: 3.3.0
Reporter: Mike Hanafey
An orderingList page invoked via an a4j:commandLink may be in a zombie state -- nothing is selectable, and the column headers are not formatted correctly. The behaviour is totally reproducible via the following fragment (this fragment is a left column menu similar to the demo app):
<rich:panel styleClass="C-panelMenu" headerClass="C-mainSideSection" bodyClass="C-mainSideBody">
<f:facet name="header">Vocabulary</f:facet>
<table class="C-stdTable" style="width:100%">
<tbody>
<tr>
<td><h:graphicImage url="/images/bullet_menu-16x16.gif"/></td>
<td class="#{MainToolBar.ipAdminMenu.countryCodeEditorStyle}">
<a4j:commandLink id="cce" value="Country Codes" reRender="C-main,C-menu" styleClass="C-menuLink"
action="#{MainToolBar.ipAdminMenu.actionCountryCodeEditor}" />
</td>
</tr>
<tr>
<td><h:graphicImage url="/images/bullet_menu-16x16.gif"/></td>
<td class="#{MainToolBar.ipAdminMenu.countryCodeEditorStyle}">
<h:commandLink id="cce2" value="Country Codes 2" styleClass="C-menuLink"
action="#{MainToolBar.ipAdminMenu.actionCountryCodeEditor}" />
</td>
</tr>
</tbody>
</table>
</rich:panel>
The orderingList is just standard:
<h:form id="sectionForm">
<rich:orderingList id="listOrder" value="#{CountryCodeEditor.vocabulary}" listHeight="600" listWidth="500" var="x"
converter="#{CountryCodeEditor.vocabWordConverter}" selection="#{CountryCodeEditor.selected}">
<rich:column width="64">
<f:facet name="header">
<h:outputText value="Code"/>
</f:facet>
<h:outputText value="#{x.word}"/>
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="Country Name"/>
</f:facet>
<h:outputText value="#{x.phrase}"/>
</rich:column>
<a4j:support event="onclick"/>
</rich:orderingList>
</h:form>
The only difference is a4j:commandLink vs. h:commandLink, the latter works, the former does not.
The a4j link produces a fully populated list but the column headers are not the same size as the columns, and no items can be selected. The h link works just as expected.
The ajax log follows:
debug[11:01:34,896]: Have Event [object Object] with properties: target: http://localhost:9090/lt/ip/admin/countryCodeEditor.jsf#, srcElement: undefined, type: click
debug[11:01:34,897]: Query preparation for form 'ipAdmin' requested
debug[11:01:34,898]: Append hidden control ipAdmin with value [ipAdmin] and value attribute [ipAdmin]
debug[11:01:34,898]: Append hidden control javax.faces.ViewState with value [j_id7] and value attribute [j_id7]
debug[11:01:34,898]: parameter ipAdmin:cce with value ipAdmin:cce
debug[11:01:34,898]: Look up queue with default name
debug[11:01:34,899]: NEW AJAX REQUEST !!! with form: ipAdmin
debug[11:01:34,899]: Start XmlHttpRequest
debug[11:01:34,899]: Reqest state : 1
debug[11:01:34,900]: QueryString: AJAXREQUEST=_viewRoot&ipAdmin=ipAdmin&javax.faces.ViewState=j_id7&ipAdmin%3Acce=ipAdmin%3Acce&
debug[11:01:34,902]: Reqest state : 1
...
debug[11:01:35,135]: Reqest state : 4
debug[11:01:35,135]: Reqest end with state 4
debug[11:01:35,135]: Response with content-type: application/xhtml+xml;charset=UTF-8
debug[11:01:35,136]: Full response content: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd" > <html xmlns="http://www.w3.org/1999/xhtml" id="C-html"> <head> <title>IP:Country Code Editor </title> <script src="/lt/a4j/g/3_3_0.GA/org/ajax4jsf/framework.pack.js.jsf"
...
</script> </body> </html>
debug[11:01:35,138]: Header Ajax-Response not found, search in <meta>
debug[11:01:35,138]: search for elements by name 'meta' in element #document
debug[11:01:35,139]: Header Ajax-Expired not found, search in <meta>
debug[11:01:35,139]: search for elements by name 'meta' in element #document
warn[11:01:35,140]: No ajax response header
debug[11:01:35,140]: Header Location not found, search in <meta>
debug[11:01:35,140]: search for elements by name 'meta' in element #document
debug[11:01:35,144]: replace all page content with response
debug[11:01:35,199]: exception during write page content undefined
debug[11:01:35,233]: response has parsed as DOM documnet.
debug[11:01:35,246]: append new node in document
debug[11:01:35,247]: append new node in document
debug[11:01:35,355]: page content has been replaced
--
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, 5 months
[JBoss JIRA] Created: (RF-5474) Javascript error in ui.pack.js
by hello All (JIRA)
Javascript error in ui.pack.js
------------------------------
Key: RF-5474
URL: https://jira.jboss.org/jira/browse/RF-5474
Project: RichFaces
Issue Type: Bug
Components: portal
Affects Versions: 3.2.2
Environment: Richfaces - 3.2.2.GA (also tested with 3.3.0Beta)
JBoss Portal - 2.7.0 CR1
Jboss App - 4.2.2.GA
IE version 7
Windows OS
Ajax4JSF
Reporter: hello All
I am using RichFaces tree and on click of a node, I get a javascript error - Object doesn't support this property or method. The error occurs in ie version 7 and not in Firefox. On debugging, the javascript error is thrown in the while statement in ui.pack.js :
Code:
var C=0;
while(D&&Element.isChildOf(D,this.element)){C+=D.offsetTop;
D=D.offsetParent
}D=F;
Here is my tree code:
<rich:tree style="width:230px" switchType="client"
value="#{reportCenterMgr.projectsTreeNode}" id="projectNamesTree"
var="item2" bypassUpdates="true" nodeFace="#{item2.type}">
<rich:treeNode highlightedClass="myClass" selectedClass="myClass"
type="#{item2.type}" icon="/images/#{item2.icon}" iconLeaf="/images/#{item2.icon}">
<h:outputText value="#{reportCenterMgr.selectedProjectName}" style="font-weight: bold;color: white;" rendered="#{reportCenterMgr.singleProjectAccessible}"/>
<a4j:commandLink value="#{item2.name}" rendered="#{!reportCenterMgr.singleProjectAccessible}"
actionListener="#{reportCenterMgr.projectNameClicked}"
event="onclick" reRender="sharedReportsTreePanel,myReportsTreePanel">
<f:param name="projectName" value="#{item2.name}" />
<f:param name="projectId" value="#{item2.id}" />
</a4j:commandLink>
</rich:treeNode>
</rich:tree>
--
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, 5 months
[JBoss JIRA] Created: (RF-6482) ExtendedDataTable reRendered even if out a4j:region with renderRegionOnly=true
by Nicolas Gaudin (JIRA)
ExtendedDataTable reRendered even if out a4j:region with renderRegionOnly=true
------------------------------------------------------------------------------
Key: RF-6482
URL: https://jira.jboss.org/jira/browse/RF-6482
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.0
Environment: Windows XP PRO SP2
Glassfish V2 UR2
JSF 1.2_09
JSP, Not using Facelets
Affects: FF and IE
Reporter: Nicolas Gaudin
Hi all,
I have several a4j:include all in one page :
- TREE: one for a tree of folders (not system folders, but categories of items)
- EDT: one for a list of items belonging to a particular category (the EDT)
- ITEM: one containing the detail of each item (rerendered when clicking on a row of the EDT)
so when clicking on a treeNode of TREE, the list of items is reRendered via a4j:support with reRender="dataTable" : this is working OK
BUT, when I do operation on the tree (ex:DnD, deletion of a node via contextmenu, etc...each time an ajax request is sent (via a4j:support mainly), EDT is reRendered in BACKEND.
I mean by "backend" that it is not visual on the UI but I see it occurs in my log.
This impacts a lot the performance of my application.
ALSO, when user changes the details of a selected item (ITEM include) and use a suggestionbox (for instance), again i see in the log that the EDT is Rerendered.
ITEM include (not like the TREE that needs to actually rerender the EDT or the EDT that needs to actually rerender the ITEM) has nothing to do (no rerender interaction) with the TREE or the EDT.
So, I tried to encapsulate ITEM include in a4j:region with attribute renderRegionOnly set to TRUE.
Nothing seems to work..
This only thing i can say is that it has perhaps something to do with EDT tablestate???? because i see it in the log (having logged getTableState in managed bean) at the beginning AND at the end of this weird rerendering thing
Do you have any idea on this, any quick workaround?
Many thanks in advance for your answers
Nicog
--
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, 5 months
[JBoss JIRA] Created: (RF-2029) Modal Panel: top and left ="aout" do not influence to MP in FF
by Ilya Shaikovsky (JIRA)
Modal Panel: top and left ="aout" do not influence to MP in FF
--------------------------------------------------------------
Key: RF-2029
URL: http://jira.jboss.com/jira/browse/RF-2029
Project: RichFaces
Issue Type: Bug
Environment: FF
Reporter: Ilya Shaikovsky
Assigned To: Nick Belaevski
modal panel opens in top left corner of the screen in FF
<rich:modalPanel id="_panel" autosized="true" minHeight="550"
minWidth="200" moveable="true" style="overflow: true;" top="auto" left="auto" showWhenRendered="true">
<f:facet name="header">
<h:outputText value="Events..." />
</f:facet>
<f:facet name="controls">
<h:outputLink value="#"
onclick="Richfaces.hideModalPanel('_panel'); return false;" >
X
</h:outputLink>
</f:facet>
<h:outputText value="Eventsaaaaaaaaaaaaaaaa ..." />
</rich:modalPanel>
--
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, 5 months