-
1. Re: Help! how to add pop up menu in the table head?
ilya_shaikovsky Nov 5, 2009 6:11 AM (in response to kanxg)<f:facet name="header"> <a4j:outputPanel layout="block"> <rich:contextMenu id="menu" event="oncontextmenu" submitMode="ajax"> <rich:menuItem ajaxSingle="true"> <h:outputText value="#{messages.a}"/> </rich:menuItem> </rich:contextMenu> <a4j:outputPanel/> </f:facet>
-
2. Re: Help! how to add pop up menu in the table head?
kanxg Nov 5, 2009 11:28 PM (in response to kanxg)Thank you very much! ilya_shaikovsky
-
3. Re: Help! how to add pop up menu in the table head?
kanxg Nov 6, 2009 2:09 AM (in response to kanxg)Hi, ilya_shaikovsky .
it throw below error:
Error Parsing /test.xhtml: Error Traced[line: 14] The prefix "a4j" for element "a4j:outputPanel" is not bound.
my code is same with yours:
<f:facet name="header">
<a4j:outputPanel layout="block">
<rich:contextMenu id="menu" event="oncontextmenu" submitMode="ajax"> <rich:menuItem ajaxSingle="true">
<h:outputText value="test"/>
</rich:menuItem>
</rich:contextMenu>
<a4j:outputPanel/>
could you help me? -
4. Re: Help! how to add pop up menu in the table head?
kanxg Nov 6, 2009 3:55 AM (in response to kanxg)o . the reason is my lib conf is:
xmlns:a="http://richfaces.org/a4j"
. but even i change it to a4j=. the code doesn't work. no error. no pop up menu. -
5. Re: Help! how to add pop up menu in the table head?
ilya_shaikovsky Nov 6, 2009 5:16 AM (in response to kanxg)not sure that understand the latest problem please show new actual code and the result.
-
6. Re: Help! how to add pop up menu in the table head?
kanxg Nov 8, 2009 8:57 PM (in response to kanxg)the result is the table could be shown,but right click on table head, no pop up menu.
code is:
<rich:dataTable id="table"
var="_testvar"
value="#{testvares}"
rows="#{testvar.pageSize}"
rowClasses="lightRow,darkRow">
<f:facet name="header">
<a4j:outputPanel layout="block">
<rich:contextMenu id="menu" event="oncontextmenu" submitMode="ajax">
<rich:menuItem ajaxSingle="true">
<h:outputText value="#{messages.a}"/>
</rich:menuItem>
</rich:contextMenu>
<a4j:outputPanel/>
<rich:columnGroup>
<rich:column rowspan="2">
<h:outputText value="#{messages.test1}"/>
</rich:column>
<rich:column rowspan="2">
<h:outputText value="#{messages.test2}"/>
</rich:column>
<rich:column rowspan="2">
<h:outputText value="#{messages.test3}"/>
</rich:column>
...... -
7. Re: Help! how to add pop up menu in the table head?
ilya_shaikovsky Nov 9, 2009 4:06 AM (in response to kanxg)so context menu defined only in header.. and it will be shown only in header.
-
8. Re: Help! how to add pop up menu in the table head?
kanxg Nov 9, 2009 4:08 AM (in response to kanxg)Yes,It should only shown in header, but when I click the head column, nothing happen.