org.apache.myfaces.orchestra.dynaForm.jsf.component
Class DynaForm.AddComponentToTable

java.lang.Object
  extended by org.apache.myfaces.orchestra.dynaForm.jsf.component.DynaForm.AddComponentToTable
All Implemented Interfaces:
NewComponentListener
Enclosing class:
DynaForm

protected static class DynaForm.AddComponentToTable
extends Object
implements NewComponentListener

Create a UIColumn component to wrap a (label, value) pair of JSF components that represent a single persistent property. This class is used when the DynaForm is generating a "row per object" layout for a list of persistent objects.

TODO: before writing out the component, look for an existing component with that fieldname inside the parent. If it exists, then just skip the component creation. This allows the user to do custom layout for some of the fields. This might also make the @UIComponent annotation obsolete.


Constructor Summary
protected DynaForm.AddComponentToTable()
           
 
Method Summary
 boolean containsComponent(javax.faces.component.UIComponent destCmp, String id)
          check if the component has been added already
 void newComponent(javax.faces.component.UIComponent destCmp, MetaField field, String fieldName, javax.faces.component.UIComponent label, javax.faces.component.UIComponent component)
          the new component and its label
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DynaForm.AddComponentToTable

protected DynaForm.AddComponentToTable()
Method Detail

newComponent

public void newComponent(javax.faces.component.UIComponent destCmp,
                         MetaField field,
                         String fieldName,
                         javax.faces.component.UIComponent label,
                         javax.faces.component.UIComponent component)
Description copied from interface: NewComponentListener
the new component and its label

Specified by:
newComponent in interface NewComponentListener

containsComponent

public boolean containsComponent(javax.faces.component.UIComponent destCmp,
                                 String id)
Description copied from interface: NewComponentListener
check if the component has been added already

Specified by:
containsComponent in interface NewComponentListener


Copyright © 2012 The Apache Software Foundation. All Rights Reserved.