[richfaces-issues] [JBoss JIRA] (RF-11968) 4.2.0.CR1 contextMenu positioning incorrect when dynamically rendering on row select

Juraj Huska (JIRA) jira-events at lists.jboss.org
Wed Feb 15 10:21:36 EST 2012


    [ https://issues.jboss.org/browse/RF-11968?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12666795#comment-12666795 ] 

Juraj Huska commented on RF-11968:
----------------------------------

I *was able to reproduce it* on Mojarra 2.1.3(shipped with Glassfish 3.1.1) on both Chrome 17 and Firefox 10.0.1. Please see also the screenshot.
[This|https://github.com/jhuska/richfaces-sanbox/tree/RF-11968] is the sample, where I reproduced it.
The rendering is however misplaced only for the *first invocation after refresh*, then it is rendered under the mouse pointer as expected.

I was not able to force Glassfish to use bundled Mojarra 2.1.6, therefore I have not tested on it, should I continue with trying to do so ?

I reproduced it also on JBoss AS 7.0.2.Final and JBoss AS 7.1.0.CR1b.
                
> 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: Juraj Huska
>
> 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

        


More information about the richfaces-issues mailing list