cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Antonio Gallardo" <agalla...@agsoftware.dnsalias.com>
Subject Re: Woody <wb:repeater> as the only widget inside a <wb:form>
Date Thu, 23 Oct 2003 07:54:51 GMT
Hi:

I forgot the binding file. Here is the binding definition file:

<wb:context
  xmlns:wb="http://apache.org/cocoon/woody/binding/1.0"
  path="/areasList">
    <wb:repeater id="transaction" parent-path="."
      row-path="." unique-row-id="are_id" unique-path="@are_id">

        <wb:on-bind>
            <wb:value id="are_id" path="are_id"/>
            <wb:value id="are_nombre" path="are_nombre"/>
        </wb:on-bind>

        <!-- executed when a repeater row has been deleted -->
        <wb:on-delete-row>
            <wb:delete-node/>
        </wb:on-delete-row>

        <wb:on-insert-row>
            <wb:insert-node/>
         <wb:insert-bean classname="test.Areas" addmethod="addAreas"/>
        </wb:on-insert-row>
    </wb:repeater>
</wb:context>

if we set <wb:context path"/"> and <wb:repeater row-path="areasList"> the
result is the same:

The flow does not continue and I don't see any error message in flow.log
or woody.log. It just send again a continuation.

The "areasList" is a Bean that just contain a "java.util.Vector". Here is
the definition:

public class AreasList
{
    private Vector vAreas;

    public AreasList(){
        vAreas = new Vector();
    }
    /* Methods */
    public boolean addAreas(Areas a) { return vAreas.add(a); }

	public Vector getAreasList() { return vAreas; }
}

I think it shoud work. But it looks like woody does not want to return and
the continuations always continue.

Please help.

Best Regards,

Antonio Gallardo



Mime
View raw message