> > 2. a class "widgets-class" is defined in "/wd:form/wd:widgets". what
> > does  row-path="*"  mean? what is its different with "row-path-insert"?
> >
>
> similar: row-path is where the existing elements that need to match a
> repeater-row are to be found in the xml
>

you mean here, any element in /wd:form/wd:widgets will be matched for a
repeater row???
then in the flowing code, where is the "matching process"???
what  are the two values that are to be matched? an element name and???

<wb:context
  xmlns:wb="http://apache.org/cocoon/woody/binding/1.0";
  xmlns:wd="http://apache.org/cocoon/woody/definition/1.0";
  path="/wd:form"
  lenient="true">

  <wb:new id="widgets-class"/>

  <wb:class id="widgets-class">
    <wb:temp-repeater id="widgets"
      parent-path="wd:widgets"
      row-path="*" row-path-insert="."
      virtual-rows="true">
      <wb:on-bind>
        <wb:new id="widget-row-class"/>
      </wb:on-bind>
    </wb:temp-repeater>
  </wb:class>

  <wb:class id="widget-row-class">
    <wb:javascript id="type" path=".">
      <wb:load-form>
        var node = jxpathPointer.getNode().getFirstChild();
        widget.setValue(node.getLocalName());
      </wb:load-form>
      <wb:save-form>
      </wb:save-form>
    </wb:javascript>
    <wb:union id="union" path=".">
      <wb:new id="action-class"/>
      <wb:new id="aggregatefield-class"/>
      <wb:new id="booleanfield-class"/>
      <wb:new id="class-class"/>
      <wb:new id="field-class"/>
      <wb:new id="new-class"/>
      <wb:new id="output-class"/>
      <wb:new id="repeater-class"/>
      <wb:new id="row-action-class"/>
      <wb:new id="struct-class"/>
      <wb:new id="submit-class"/>
      <wb:new id="union-class"/>
    </wb:union>
  </wb:class>

  <wb:class id="action-class">
    <wb:case id="action" path=".">
      <wb:insert-node>
        <wd:action/>
      </wb:insert-node>
      <wb:struct id="action" path="wd:action">
        <wb:value id="label" path="wd:label"/>
        <wb:value id="id" path="@id"/>
      </wb:struct>
    </wb:case>
  </wb:class>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to