|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.component.UIComponent javax.faces.component.UIComponentBase edu.nrao.sss.webapp.faces.component.IfUIComponent
public class IfUIComponent
The If component isn't really a UI component so much as a flow control component.
It only accepts an attribute named "test". If the value of test
resolves
to true (either the string "true", "1" or a boolean value of true), then the body
of the tag is rendered. Otherwise, it is not.
IfTag
Constructor Summary | |
---|---|
IfUIComponent()
|
Method Summary | |
---|---|
void |
encodeBegin(FacesContext context)
Empty implementation. |
void |
encodeChildren(FacesContext context)
|
void |
encodeEnd(FacesContext context)
Empty implementation. |
String |
getFamily()
This method is only important if you're developing your own component family. |
boolean |
getRendersChildren()
|
Boolean |
getTest()
|
void |
restoreState(FacesContext context,
Object state)
|
Object |
saveState(FacesContext context)
|
void |
setTest(Boolean test)
|
Methods inherited from class javax.faces.component.UIComponentBase |
---|
addFacesListener, broadcast, decode, findComponent, getAttributes, getChildCount, getChildren, getClientId, getFacesContext, getFacesListeners, getFacet, getFacets, getFacetsAndChildren, getId, getParent, getRenderer, getRendererType, getValueBinding, isRendered, isTransient, processDecodes, processRestoreState, processSaveState, processUpdates, processValidators, queueEvent, removeFacesListener, restoreAttachedState, saveAttachedState, setId, setParent, setRendered, setRendererType, setTransient, setValueBinding |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public IfUIComponent()
Method Detail |
---|
public String getFamily()
getFamily
in class UIComponent
public boolean getRendersChildren()
getRendersChildren
in class UIComponentBase
public void encodeChildren(FacesContext context) throws IOException
encodeChildren
in class UIComponentBase
IOException
public void encodeBegin(FacesContext context) throws IOException
encodeBegin
in class UIComponentBase
IOException
public void encodeEnd(FacesContext context) throws IOException
encodeEnd
in class UIComponentBase
IOException
public Boolean getTest()
public void setTest(Boolean test)
public Object saveState(FacesContext context)
saveState
in interface StateHolder
saveState
in class UIComponentBase
public void restoreState(FacesContext context, Object state)
restoreState
in interface StateHolder
restoreState
in class UIComponentBase
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |