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

oncontextmenu treeNode attribute wont work

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Major
    • Resolution: Done
    • Affects Version/s: 3.1.1, 3.1.2
    • Fix Version/s: 3.1.3, 3.2.0
    • Component/s: None
    • Labels:
      None
    • Environment:
      firefox and IE
    • Workaround:
      Workaround Exists
    • Workaround Description:
      Hide

      Well currently I've managed to get this working by putting a 'div' inside of treeNode and using oncontextmenu of that div element.

      Show
      Well currently I've managed to get this working by putting a 'div' inside of treeNode and using oncontextmenu of that div element.

      Description

      in this sample code oncontextmenu wotn work

      <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
      xmlns="http://www.w3.org/1999/xhtml"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:rich="http://richfaces.ajax4jsf.org/rich"
      xmlns:a4j="https://ajax4jsf.dev.java.net/ajax"
      xmlns:comp="http://www.exigen.com/test/jsf"
      xmlns:t="http://myfaces.apache.org/tomahawk">
      <ui:composition>

      <h:form id="testForm">

      <rich:tree value="#

      {dsProvider.data}

      " var="item"
      nodeFace="#

      {item.type}

      " switchType="ajax" id="Tree">

      <rich:treeNode type="folder"
      oncontextmenu="alert('test');return false;" id="table1">
      <h:outputText value="#

      {item.name}

      " id="table1FolderName"
      styleClass="text8pt" />
      </rich:treeNode>
      </rich:tree>

      </h:form>
      </ui:composition>
      </jsp:root>

        Gliffy Diagrams

          Activity

          Hide
          nbelaevski Nick Belaevski added a comment -

          Resolved

          Show
          nbelaevski Nick Belaevski added a comment - Resolved
          Hide
          ilya_shaikovsky Ilya Shaikovsky added a comment -

          fix for 3.1.x pelase and resolve to both versions

          Show
          ilya_shaikovsky Ilya Shaikovsky added a comment - fix for 3.1.x pelase and resolve to both versions

            People

            • Assignee:
              afrancuzov Alexander Francuzov
              Reporter:
              deniss.parhomenko Deniss Parhomenko
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development