[
https://issues.jboss.org/browse/RF-11968?page=com.atlassian.jira.plugin.s...
]
Brian Leathem updated RF-11968:
-------------------------------
Fix Version/s: 4.Future
(was: 4.2.1.CR1)
Workaround Description:
Declare the contextMenu component before the dynamically rendered div, as in:
{code}
<rich:extendedDataTable
id="mytable" value="#{bean.someList}"
var="var"
selection="#{bean.selectedRow}"
selectionMode="single">
<a4j:ajax render="panelAjaxTarget"
event="selectionchange"
listener="#{bean.doRowSelect}"/>
...
</rich:extendedDataTable>
<rich:contextMenu target="mytable" mode="ajax">
<rich:menuItem label="Test"
onclick="alert('hello');"/>
</rich:contextMenu>
<h:panelGroup id="panelAjaxTarget">
<rich:panel rendered="#{bean.selectedDepartment !=
null}">
...
</rich:panel>
</h:panelGroup>
{code}
This way, the dynamic rendering of the panel div does not affect the position of the
contextMenu
was:None tested.
Workaround description updated, further resolution of this issue will continue when the
positioning jQuery plugin has adequate Qunit tests.
4.2.0.CR1 contextMenu positioning incorrect when dynamically
rendering on row select
------------------------------------------------------------------------------------
Key: RF-11968
URL:
https://issues.jboss.org/browse/RF-11968
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-menu
Affects Versions: 4.2.0.CR1
Environment: Chrome browser Glassfish 3.1.1 Mojarra 2.1.6
Reporter: Brendan Healey
Assignee: Brian Leathem
Fix For: 4.Future
Attachments: contextMenuWrongPositioning.png
There's a positioning error with contextMenu in the following scenario.
I have an extendedDataTable which renders a rich:panel when a row in the
table is selected. Initially no row is selected and the rich:panel is not
rendered. I right click in the table and the menuItem appears way below
the row I right clicked.
{code}
<rich:extendedDataTable
id="mytable" value="#{bean.someList}"
var="var"
selection="#{bean.selectedRow}"
selectionMode="single">
<a4j:ajax render="panelAjaxTarget"
event="selectionchange"
listener="#{bean.doRowSelect}"/>
...
</rich:extendedDataTable>
<h:panelGroup id="panelAjaxTarget">
<rich:panel rendered="#{bean.selectedDepartment !=
null}">
...
</rich:panel>
</h:panelGroup>
<rich:contextMenu target="mytable" mode="ajax">
<rich:menuItem label="Test"
onclick="alert('hello');"/>
</rich:contextMenu>
{code}
{code}
public void doRowSelect(...) {
selectedDepartment = ... (usual stuff);
}
{code}
Also tried with contextMenu mode="client" with the same result.
Regards,
Brendan.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira