contextMenu in dataGrid
-
- Prime
- Posts: 18616
- Joined: 05 Jan 2009, 00:21
- Location: Cybertron
- Contact:
ContextMenu integration with data components are due 3.0.
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
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
-
- Information
-
Who is online
Users browsing this forum: No registered users and 30 guests