cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Joe Latty" <joe.la...@tias.com.au>
Subject Re: Selecting the correct value in a selection-list
Date Thu, 27 Nov 2003 23:44:27 GMT
OK I have the spinning tie on and I'm having a good laugh at myself.

I had:

    // depPorts being a list I obtained from a SOAP call
 depPortList = new Array(depPorts.length);   for( var i=0; i <
depPorts.length; i++ ) {
    // What should have been
      depPortList[i] = { key : depPorts[i]  };
    // Was
      depPortList[i] = { value : depPorts[i]  };
 }

// Therefore
form.getWidget("repeaterWidget").getRow(0).getWidget("depPort").setValue("SY
D");
// Would not work

I am off to have an expresso and a piece of Humble Pie.

Thanks for your help Bruno.

----- Original Message ----- 
From: "Bruno Dumon" <bruno@outerthought.org>
To: <users@cocoon.apache.org>
Sent: Friday, November 28, 2003 3:04 AM
Subject: Re: Selecting the correct value in a selection-list


> On Thu, 2003-11-27 at 04:16, Joe Latty wrote:
> > Bruno,
> >
> > Ok I think I over simplified things so as to explain my problem
> >
> > I have a repeater with a select-list in each row, I wish to select the
"AK"
> > value in the select-list of the first row.
> >
> >
form.getWidget("myRepeaterWidget").getRow(0).getWidget("myStateDropDown").se
> > tValue("AK");
> >
> > This does not work (for me).
>
> I see no reason it wouldn't work. Could you create a minimal testcase
> (form definition, template & flowscript) to illustrate the problem?
>
> -- 
> 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
>


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


Mime
View raw message