Thanks David! -------------- Original message -------------- From: [EMAIL PROTECTED]
> Author: dgeary > Date: Wed Feb 8 23:45:42 2006 > New Revision: 376215 > > URL: http://svn.apache.org/viewcvs?rev=376215&view=rev > Log: > Added an introduction to Clay and a segment on HTML Views in addition to > minor > tweaks to Clay.java and the Ajax use case. > > Added: > struts/shale/trunk/xdocs/images/login-clay-red.jpg (with props) > struts/shale/trunk/xdocs/images/login-clay.jpg (with props) > struts/shale/trunk/xdocs/images/login-html-red.jpg (with props) > struts/shale/trunk/xdocs/images/login-html.jpg (with props) > struts/shale/trunk/xdocs/images/login.jpg (with props) > Modified: > > struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/Clay.jav > > a > > struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/symbols/Registra > > tionForm.java > struts/shale/trunk/use-cases/src/web/ajax/zipCode.jsp > struts/shale/trunk/use-cases/src/web/symbols/home.jsp > struts/shale/trunk/use-cases/src/web/symbols/nameReuse.jsp > struts/shale/trunk/xdocs/features-reusable-views.xml > struts/shale/trunk/xdocs/index.xml > struts/shale/trunk/xdocs/navigation.xml > > Modified: > struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/Clay.jav > > a > URL: > http://svn.apache.org/viewcvs/struts/shale/trunk/clay-plugin/src/java/org/apache > > /shale/clay/component/Clay.java?rev=376215&r1=376214&r2=376215&view=diff > ============================================================================== > > --- > struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/Clay.jav > > a (original) > +++ > struts/shale/trunk/clay-plugin/src/java/org/apache/shale/clay/component/Clay.jav > > a Wed Feb 8 23:45:42 2006 > @@ -45,6 +45,10 @@ > import org.apache.shale.clay.config.beans.ConfigBeanFactory; > import org.apache.shale.util.Messages; > > +/** > + * This component grafts a subview onto the current JSF view. > + * > + */ > public class Clay extends UINamingContainer { > > /** > @@ -326,7 +330,7 @@ > } > > // Recursively build the subtree and fixup references. The root > - // of the subview will be assinged to the child private property. > + // of the subview will be assigned to the child private property. > > ClayContext clayContext = new ClayContext(); > clayContext.setChild(null); > @@ -337,8 +341,7 @@ > Map symbolTable = new TreeMap(); > symbolTable.putAll(getDisplayElementRoot().getSymbols()); > symbolTable.putAll(getSymbols()); > - clayContext.setSymbols(symbolTable); > - > + clayContext.setSymbols(symbolTable); > > clayContext.setRootElement(getDisplayElementRoot()); > clayContext.setParent(this); > @@ -393,7 +396,7 @@ > > /** > * > - * Calls to super and adds some trace logging. > + * Called by JSF, this method delegates to [EMAIL PROTECTED] > recursiveRenderChildren}. > * > */ > public void encodeChildren(FacesContext context) throws IOException { > @@ -407,8 +410,8 @@ > > /** > * > - * Calls to super and invokes the rendering of the sub component tree if > the > - * parent component doesn't render it's children. > + * Called by JSF, this method simply emits a logging statement > + * if tracing is enabled. > * > */ > public void encodeEnd(FacesContext context) throws IOException { > @@ -416,7 +419,7 @@ > if (log.isTraceEnabled()) > log.trace("encodeEnd(FacesContext)"); > > - } > + } > > /** > * > @@ -478,10 +481,8 @@ > > /** > * Returns true indicating that this > - * component will render it's children. This will > - * indicate to a parent component that renders children > - * not to recursively render Clay's children - > - * simply invoke encodeChildren(FacesContext). > + * component renders it's children. That means JSF will > + * invoke encodeChildren() method. > */ > public boolean getRendersChildren() { > return true; > > Modified: > struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/symbols/Registra > > tionForm.java > URL: > http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/java/org/apache/s > > hale/usecases/symbols/RegistrationForm.java?rev=376215&r1=376214&r2=376215&view= > > diff > ============================================================================== > > --- > struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/symbols/Registra > > tionForm.java (original) > +++ > struts/shale/trunk/use-cases/src/java/org/apache/shale/usecases/symbols/Registra > > tionForm.java Wed Feb 8 23:45:42 2006 > @@ -30,10 +30,10 @@ > public class RegistrationForm extends AbstractViewController { > > /** > - * This view controller is scoped in the request. The init method > - * is invoked each request and the page's state is handle using > - * session scoped backing beans. The dialog for these session scoped > - * backing beans are managed through this stateless controller. > + * This view controller is scoped in the request. The init method > + * is invoked for each request and the page's state is stored in > + * session scoped beans. The dialog for these session scoped > + * beans are managed through this stateless controller. > * This separation of view model data and action controller is similar > * to Struts Action 1.x. > */ > > Modified: struts/shale/trunk/use-cases/src/web/ajax/zipCode.jsp > URL: > http://svn.apache.org/viewcvs/struts/shale/trunk/use-cases/src/web/ajax/zipCode. > > jsp?rev=376215&r1=376214&r2=376215&view=diff > ============================================================================== > > --- struts/shale/trunk/use-cases/src/web/ajax/zipCode.jsp (original) > +++ struts/shale/trunk/use-cases/src/web/ajax/zipCode.jsp Wed Feb 8 23:45:42 > 2006 > @@ -29,13 +29,13 @@ >