Uploaded image for project: 'RichFaces'
  1. RichFaces
  2. RF-12488

detached contextmenu menu fails

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 4.2.2.Final
    • Fix Version/s: 4.5.9
    • Component/s: component-menu
    • Labels:
      None
    • Environment:

      fails both on server tomee 1.1 (myfaces 2.1.8) and server Glassfish 3.x (mojarra 2.1)

      Description

      Context menu can be used "attached" or not, the code below creates 2 buttons, the 1rt one "attached" works as expected but the 2nd one "detached" doesnt. The context menu appears in a wrong place (myfaces) or not at all (mojarra).

      <h:form >
      
      	
      	<h:button id="ass" value="attached menu ok" onclick="return false;">
      
      	</h:button>
      	
      	<rich:contextMenu id="contextMenu" target="ass" showEvent="click">
      
      
      		<rich:menuItem label="Edit this" />
      	</rich:contextMenu>
      <br/><br/><br/>
       	<h:button value="detached menu error" onclick="return false;">
      <rich:componentControl event="click"  target="contextMenu2" operation="show"/>
      	</h:button>
      	
      	<rich:contextMenu  mode="client" attached="false"   id="contextMenu2" >
      
      
      		<rich:menuItem label="Edit this" />
      	</rich:contextMenu>
      </h:form>
      

        Gliffy Diagrams

          Attachments

            Activity

              People

              • Assignee:
                michpetrov Michal Petrov
                Reporter:
                emmanueldufour emmanuel dufour
              • Votes:
                1 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: