Hi Richard,
Thanks for the sanity check, I'll stick to using JSTL to generate my select
fields until this is resolved.
-Peter
> -----Original Message-----
> From: [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED] On
> Behalf Of Fred Lamuette
> Sent: Thursday, November 20, 2003 3:33 AM
> To: [EMAIL PROTECTED]
> Subject: RE: [OS-webwork] Select tag confusion...
>
> Nope, I think it's related to the problem i submitted yesterday :
>
> One of the symptoms : you have empty values in your drop-down list.
>
> Adding $webwork.htmlEncode to rewrite some values brings a
> serious problem.
> For instance, when you call $!webwork.htmlEncode($itemKey) in
> the select.vm template, you seem to think $itemKey is
> inevitably a string when you have written the htmlEncode
> method. That's not the case, what about an Integer or a Long result ?
> The problem could be resolved by
> - changing the htmlEncode method signature, like this :
> htmlEncode(Object
> value)
> - making the neccessary string conversion by calling
> XWorkConverter.getInstance().convertValue(null,null,null,null,
> value,Str
> ing.class)
>
> And no, you are not alone Peter. :-))
>
> Richard HALLIER
> Chef de projet
> [EMAIL PROTECTED]
> 01.40.12.41.52
> www.uniclick.org
> UNICLICK
>
> -----Message d'origine-----
> De : [EMAIL PROTECTED]
> [mailto:[EMAIL PROTECTED]
> la part de jun cai Envoye : jeudi 20 novembre 2003 10:44 A :
> [EMAIL PROTECTED]
> Objet : Re: [OS-webwork] Select tag confusion...
>
>
> I think your ui is wrong.
>
> <ww:select label="class" name="newsClassId"
> value="newsClassId" list="newsClassList"
> listKey="className" listValue="id"/>
>
>
>
> --- Peter White <[EMAIL PROTECTED]> wrote:
> > My action class has an ArrayList of POJOs for dropdown
> population. If
> > I use the following ww:select tag, the dropdown label populates
> > correctly but the value is empty. However, the following JSTL code
> > works perfectly. Are ww:select fields working fine for
> everyone else
> > or is it just me? For the record, I'm using WW2Beta2. Thanks!
> >
> > <tr><ww:select label="'Asset Category'"
> > name="'model.category.id'"
> > list="categories" listKey="['id']"
> > listValue="['label']"/></tr>
> >
> >
> > <tr>
> > <td align="right">Asset Category:</td>
> > <td>
> > <select name="model.category.id">
> > <c:forEach var="cat" items="${categories}"
> > <option value='<c:out value="${cat.id}"/>'><c:out
> > value="${cat.label}"/>
> > </c:forEach>
> > </select>
> > </td>
> > </tr>
> >
>
>
> =====
> Welcome to acai's blog (<a
> href="http://acai.ejb.cn/blog">阿菜的家</a>)
>
> __________________________________
> Do you Yahoo!?
> Free Pop-Up Blocker - Get it now
> http://companion.yahoo.com/
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us
> help YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: SF.net Giveback Program.
> Does SourceForge.net help you be more productive? Does it
> help you create better code? SHARE THE LOVE, and help us
> help YOU! Click Here: http://sourceforge.net/donate/
> _______________________________________________
> Opensymphony-webwork mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork
>
-------------------------------------------------------
This SF.net email is sponsored by: SF.net Giveback Program.
Does SourceForge.net help you be more productive? Does it
help you create better code? SHARE THE LOVE, and help us help
YOU! Click Here: http://sourceforge.net/donate/
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork