contextMenu in dataGrid

UI Components for JSF
Post Reply
eldjon
Posts: 14
Joined: 13 Mar 2011, 11:00

19 Mar 2011, 10:41

does anyone know how to access an element of the dataGrid from a contextMenu?
Primefaces 3.0.M3
JSF 2.0
Glassfish 3.1

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

19 Mar 2011, 13:32

ContextMenu integration with data components are due 3.0.

diuk
Posts: 3
Joined: 19 Oct 2012, 13:45

19 Oct 2012, 13:49

I am using primefaces 3.3

I use the code below for contextMenu in dataGrid:

<p:contextMenu for="componentId" >
<p:menuitem value="View" />
</p:contextMenu>

<p:dataGrid var="result" value="#{bean.results}"
columns="2" id="componentId" rows="12" paginator="true"
paginatorTemplate="{CurrentPageReport} {FirstPageLink} {PreviousPageLink} {PageLinks} {NextPageLink} {LastPageLink} {RowsPerPageDropdown}"
rowsPerPageTemplate="9,12,15">

<h:panelGrid columns="1">
Data
</h:panelGrid>
</p:dataGrid>

Unortunately it does not seem to be working.

Any ideas on that?

Cheers,

diuk

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 30 guests