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

contextMenu: request fired after every time menu called

    Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Priority: Critical
    • Resolution: Done
    • Affects Version/s: 3.1.3
    • Fix Version/s: 3.1.3, 3.2.0
    • Component/s: None
    • Labels:
      None
    • Affects:
      Interactive Demo/Tutorial

      Description

      <rich:contextMenu attached="false" id="menu" submitMode="ajax">
      <rich:menuItem value="Show Details">
      <a4j:actionparam name="current" value="Show Details" assignTo="#

      {ddmenu.current}"/>
      </rich:menuItem>
      <rich:menuGroup value="Actions">
      <rich:menuItem value="Put To Basket">
      <a4j:actionparam name="current" value="Put To Basket" assignTo="#{ddmenu.current}

      "/>
      </rich:menuItem>
      <rich:menuItem value="Read Comments">
      <a4j:actionparam name="current" value="Read Comments" assignTo="#

      {ddmenu.current}"/>
      </rich:menuItem>
      <rich:menuItem value="Go to {car} {model} site">
      <a4j:actionparam name="current" value="Go to #{car.make} #{car.model} site" assignTo="#{ddmenu.current}

      "/>
      </rich:menuItem>
      </rich:menuGroup>
      </rich:contextMenu>
      <rich:dataGrid value="#

      {dataTableScrollerBean.allCars}

      " var="car" columns="4" elements="12">
      <rich:panel id="panel">
      <rich:componentControl attachTo="panel" event="oncontextmenu" for=":form:menu" operation="doShow">
      <f:param value="#

      {car.model}" name="model"/>
      <f:param value="#{car.make}" name="car"/>
      </rich:componentControl>
      <f:facet name="header">
      <h:outputText value="#{car.make} #{car.model}

      "></h:outputText>
      </f:facet>
      <h:panelGrid columns="2">
      <h:outputText value="Price:" styleClass="label"></h:outputText>
      <h:outputText value="#

      {car.price}

      " />
      <h:outputText value="Mileage:" styleClass="label"></h:outputText>
      <h:outputText value="#

      {car.mileage}

      " />
      <h:outputText value="VIN:" styleClass="label"></h:outputText>
      <h:outputText value="#

      {car.vin}

      " />
      <h:outputText value="Stock:" styleClass="label"></h:outputText>
      <h:outputText value="#

      {car.stock}

      " />
      </h:panelGrid>
      </rich:panel>
      <f:facet name="footer">
      <rich:datascroller></rich:datascroller>
      </f:facet>
      </rich:dataGrid>

      After I perform right click - I'm able to see in Firebug that request was performed to load spacer.gif

        Gliffy Diagrams

          Activity

          Hide
          maksimkaszynski Maksim Kaszynski added a comment -

          Explore posibility to remove spacer.gif from template

          Show
          maksimkaszynski Maksim Kaszynski added a comment - Explore posibility to remove spacer.gif from template

            People

            • Assignee:
              ayanul Aleksej Yanul
              Reporter:
              ilya_shaikovsky Ilya Shaikovsky
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:

                Development