cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <o...@wlkp.org>
Subject Re: JXPath usage problem
Date Tue, 23 Sep 2003 22:56:59 GMT
On Tue, Sep 23, 2003 at 08:15:44AM -0700, Christopher Oliver wrote:
> What output do you get (if any)? 
I get the select filled with all options of which none has the selected
attribute set 

> And what type of object is "typeList"?
it is ScriptableRowSet.rows (Database.js and helper classes)

> >><select style="width: 147" name="Dev_DtId">
> >>	<t:forEach select="#{typeList}">
> >>		<t:choose>
> >>			<t:when test="#{/pocket/Dev_DtId = Dt_DtId}">
> >>				<option value="#{Dt_DtId}" 
> >>				selected="">#{Dt_Type}</option>
> >>			</t:when>
> >>			<t:otherwise>
> >>				<option 
> >>				value="#{Dt_DtId}">#{Dt_Type}</option>
> >>			</t:otherwise>
> >>		</t:choose>
> >>	</t:forEach>
> >></select>
> >>   
> >>
> >Hmm ... I forgot to write that I've tried this also, but to be sure I tried
> >again now - still does not work.

-- 
            __
         | /  \ |        Leszek Gawron            //  \\
        \_\\  //_/       ouzo@wlkp.org           _\\()//_
         .'/()\'.     Phone: +48(501)720812     / //  \\ \
          \\  //  recursive: adj; see recursive  | \__/ |


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


Mime
View raw message