cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Bruno Dumon <br...@outerthought.org>
Subject Re: Flow : Accessing Repeater Rows value in Flow
Date Tue, 03 Aug 2004 08:15:26 GMT
On Mon, 2004-08-02 at 17:21, oceatoon wrote:
> Hi  
> 
> I found a post "POPUALTING SELECTIONLISTS INA REPEATER FROM FLOW " where a
> similar question was asked but I can't seem to get Joergs technique(getRow
> before getting the value) to function. 
> 
> my repeater only contains an upload widget (minimum one so Row(0) allways
> exists, with add and delete). Then in my Flow, I need to retreive the value
> of the uploaded file from the widget to move it around.
> 
> wid = handleForm("masterform", "forms/", document);
> 
> //I'd like to retreive the value 
> wid.houseuploads.getRow(0).getValue();
> 
>  But this doesn't seem to work???? allways returns "null"

>>From the wid.houseuploads notation I'd assume you're using the
javascript-wrapped variant of the widget tree, which has a different
API.

> Also, do I have run through the whole repeater or is there a size or length
> method associated to now how many entries have been submitted?

For the java API, this can be retrieved with the method getSize() of the
repeater.

I think you can find the javascript-equivalents of these in the samples.

-- 
Bruno Dumon                             http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
bruno@outerthought.org                          bruno@apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message