Author: mvitenkov
Date: 2008-07-09 10:56:49 -0400 (Wed, 09 Jul 2008)
New Revision: 9490
Modified:
trunk/test-applications/facelets/src/main/java/contextMenu/ContextMenu.java
trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenu.xhtml
trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenuProperty.xhtml
Log:
Modified: trunk/test-applications/facelets/src/main/java/contextMenu/ContextMenu.java
===================================================================
--- trunk/test-applications/facelets/src/main/java/contextMenu/ContextMenu.java 2008-07-09
14:23:47 UTC (rev 9489)
+++ trunk/test-applications/facelets/src/main/java/contextMenu/ContextMenu.java 2008-07-09
14:56:49 UTC (rev 9490)
@@ -5,7 +5,10 @@
import javax.faces.context.FacesContext;
import javax.faces.event.ActionEvent;
+import org.richfaces.component.UIContextMenu;
+
import rich.RichBean;
+import util.componentInfo.ComponentInfo;
public class ContextMenu {
private String info;
@@ -20,7 +23,22 @@
private boolean rendered;
private boolean disamble;
private boolean attached;
+ private UIContextMenu htmlContextMenu;
+ public UIContextMenu getHtmlContextMenu() {
+ return htmlContextMenu;
+ }
+
+ public void setHtmlContextMenu(UIContextMenu htmlContextMenu) {
+ this.htmlContextMenu = htmlContextMenu;
+ }
+
+ public String addHtmlContextMenu(){
+ ComponentInfo info = ComponentInfo.getInstance();
+ info.addField(htmlContextMenu);
+ return null;
+ }
+
public boolean isAttached() {
return attached;
}
Modified: trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenu.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenu.xhtml 2008-07-09
14:23:47 UTC (rev 9489)
+++
trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenu.xhtml 2008-07-09
14:56:49 UTC (rev 9490)
@@ -5,7 +5,7 @@
<h:outputText value="panel with contextMenu(DEFAULT)" />
<f:verbatim><br /></f:verbatim>
<h:outputText value="testing events" />
<rich:contextMenu id="contextMenuDefaultID" submitMode="ajax"
disableDefaultMenu="#{contextMenu.disableDefaultMenu}"
style="#{style.style}" styleClass="#{style.styleClass}"
disabledItemClass="#{style.disabledItemClass}"
disabledItemStyle="#{style.disabledItemStyle}"
itemClass="#{style.itemClass}" itemStyle="#{style.itemStyle}"
selectItemStyle="#{style.selectItemStyle}"
selectItemClass="#{style.selectItemClass}"
- oncollapse="#{event.oncollapse}" onexpand="#{event.onexpand}"
ongroupactivate="#{event.ongroupactivate}"
onitemselect="#{event.onitemselect}"
onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}"
onmouseover="#{event.onmouseover}">
+ oncollapse="#{event.oncollapse}" onexpand="#{event.onexpand}"
ongroupactivate="#{event.ongroupactivate}"
onitemselect="#{event.onitemselect}"
onmousemove="#{event.onmousemove}" onmouseout="#{event.onmouseout}"
onmouseover="#{event.onmouseover}"
binding="#{contextMenu.htmlContextMenu}">
<rich:menuItem icon="/pics/header.png" value="abc"
reRender="cmInfoID" style="#{style.styleA}"
styleClass="#{style.styleClassA}">
<f:param name="cmdParam" value="abc" />
</rich:menuItem>
Modified:
trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenuProperty.xhtml
===================================================================
---
trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenuProperty.xhtml 2008-07-09
14:23:47 UTC (rev 9489)
+++
trunk/test-applications/facelets/src/main/webapp/ContextMenu/ContextMenuProperty.xhtml 2008-07-09
14:56:49 UTC (rev 9490)
@@ -12,7 +12,7 @@
<h:commandButton action="submit();" value="submit();" />
<h:commandButton action="submit();" immediate="true"
value="immediate submit();" />
-
+ <h:commandButton action="#{contextMenu.addHtmlContextMenu}" value="add
test" />
<h:panelGrid columns="2" style="top">
<h:outputText value="event:" />
<h:selectOneMenu value="#{contextMenu.event}"
onchange="submit();">
Show replies by date