|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjavax.faces.render.Renderer
org.apache.myfaces.custom.dynaForm.component.dynaForm.DynaFormRenderer
public class DynaFormRenderer
the dynaForm renderer
regardles what the component told you, this is where the work happens ;-)
| Nested Class Summary | |
|---|---|
protected static class |
DynaFormRenderer.AddComponentSimple
|
| Field Summary | |
|---|---|
static java.lang.String |
CONTEXT_GUI_BUILDER
|
| Constructor Summary | |
|---|---|
DynaFormRenderer()
|
|
| Method Summary | |
|---|---|
protected void |
addComponents(javax.faces.context.FacesContext context,
DynaForm dynaForm,
javax.faces.component.UIComponent layoutComponent,
ViewType viewType)
create and add the components to the layout component |
protected void |
collectInputComponents(java.util.List<javax.faces.component.UIInput> components,
javax.faces.component.UIComponent baseComponent)
collect all input components recursiv starting with component |
protected JsfGuiBuilder |
createGuiBuilder(javax.faces.context.FacesContext facesContext)
|
void |
encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
on create view or in development mode this will build the component tree |
void |
encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
|
protected javax.faces.component.UIComponent |
findComponentEx(javax.faces.component.UIComponent base,
java.lang.String id)
find a component "by id" by simply traversing the tree |
protected javax.faces.component.UIComponent |
findLayoutComponent(DynaForm dynaForm)
|
boolean |
getRendersChildren()
|
protected java.lang.String |
getValueBindingPrefix(DynaForm dynaForm,
javax.faces.component.UIComponent layoutComponent)
|
protected ViewType |
getViewType(javax.faces.component.UIComponent startComponent)
determine the current view type "list" means: the layout component "is a" or "is embedded in an" list component (UIData) "form" means: anything else |
protected boolean |
processPreviouslyAdded(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent root)
check if we already added components to the layout component. if this is the case then: keep them cached and avoid readd |
| Methods inherited from class javax.faces.render.Renderer |
|---|
convertClientId, decode, encodeEnd, getConvertedValue |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String CONTEXT_GUI_BUILDER
| Constructor Detail |
|---|
public DynaFormRenderer()
| Method Detail |
|---|
public boolean getRendersChildren()
getRendersChildren in class javax.faces.render.Renderer
public void encodeBegin(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws java.io.IOException
encodeBegin in class javax.faces.render.Rendererjava.io.IOExceptionprotected ViewType getViewType(javax.faces.component.UIComponent startComponent)
protected javax.faces.component.UIComponent findLayoutComponent(DynaForm dynaForm)
protected javax.faces.component.UIComponent findComponentEx(javax.faces.component.UIComponent base,
java.lang.String id)
protected void collectInputComponents(java.util.List<javax.faces.component.UIInput> components,
javax.faces.component.UIComponent baseComponent)
component
protected void addComponents(javax.faces.context.FacesContext context,
DynaForm dynaForm,
javax.faces.component.UIComponent layoutComponent,
ViewType viewType)
protected java.lang.String getValueBindingPrefix(DynaForm dynaForm,
javax.faces.component.UIComponent layoutComponent)
protected JsfGuiBuilder createGuiBuilder(javax.faces.context.FacesContext facesContext)
protected boolean processPreviouslyAdded(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent root)
public void encodeChildren(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
throws java.io.IOException
encodeChildren in class javax.faces.render.Rendererjava.io.IOException
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||