|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.component.UIComponent
javax.faces.component.UIComponentBase
org.zkoss.jsf.zul.impl.AbstractComponent
org.zkoss.jsf.zul.impl.LeafComponent
org.zkoss.jsf.zul.impl.BranchComponent
org.zkoss.jsf.zul.impl.BaseCommand
org.zkoss.jsf.zul.Menuitem
public class Menuitem
Menuitem is a JSF component implementation for Menuitem.
This class also implements ActionSource.
That means you can use action and actionListener features on this component.
To use those features, you must declare a namespace of "http://java.sun.com/jsf/core"
with a prefix (say 'f' in below example), add attribute of those feature with this namespace
(for example f:required="true")in you jsf page.
For more detail of ActionSource features of JSF, you can refer to http://java.sun.com/products/jsp/
<z:menuitem id="menu" label="submit" f:action="#{CommandBean.actionPerform}"/>
Example of actionListener :
<z:menuitem id="menu" label="submit" f:actionListener="#{CommandBean.onActionPerform}"/>
In some application server which doesn't support attribute namespace you can use attribute prefix 'f_' to replace attribute namespace
<z:menuitem f_action="#{CommandBean.actionPerform}"/>
This component should be declared nested under Page.
To know more ZK component features you can refer to http://www.zkoss.org/
| Field Summary |
|---|
| Fields inherited from class org.zkoss.jsf.zul.impl.LeafComponent |
|---|
_compAttrMap, _composer |
| Fields inherited from class javax.faces.component.UIComponent |
|---|
bindings |
| Constructor Summary | |
|---|---|
Menuitem()
|
|
| Method Summary | |
|---|---|
protected void |
loadZULTree(org.zkoss.zk.ui.Page page,
java.io.StringWriter writer)
Call by RootComponent or BranchComponent to load zk stuff and all it's children |
| Methods inherited from class org.zkoss.jsf.zul.impl.BaseCommand |
|---|
addActionListener, broadcast, decode, getAction, getActionListener, getActionListeners, getJSSubmitMethodName, getJSSubmitScript, hasListener, isImmediate, queueEvent, removeActionListener, restoreState, saveState, setAction, setActionListener, setImmediate |
| Methods inherited from class org.zkoss.jsf.zul.impl.LeafComponent |
|---|
addZULDynamicAttribute, afterZULComponentComposed, encodeBegin, encodeChildren, encodeEnd, evaluateDynaAttributes, getAttributeValue, getComponentDefName, getComponentInfo, getForward, getRendersChildren, getUse, getZULComponent, setAttributeValue, setForward, setId, setUse, setZULDynamicAttribute |
| Methods inherited from class org.zkoss.jsf.zul.impl.AbstractComponent |
|---|
findAncestorWithClass, getBodyContent, getFacesContext, getFamily, getIf, getUnless, isEffective, isSuppressed, restoreAttachedMapState, saveAttachedMapState, setBodyContent, setIf, setSuppressed, setUnless |
| Methods inherited from class javax.faces.component.UIComponentBase |
|---|
addFacesListener, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesListeners, getFacet, getFacetCount, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getValueBinding, invokeOnComponent, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, removeFacesListener, restoreAttachedState, saveAttachedState, setParent, setRendered, setRendererType, setTransient, setValueBinding |
| Methods inherited from class javax.faces.component.UIComponent |
|---|
encodeAll, getContainerClientId, getValueExpression, setValueExpression |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Menuitem()
| Method Detail |
|---|
protected void loadZULTree(org.zkoss.zk.ui.Page page,
java.io.StringWriter writer)
throws java.io.IOException
BranchComponent
loadZULTree in class BranchComponentjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||