Select component problem

"Vitaliy Ryumshyn" <rumshin-S0/[email protected]> Wed, 26 Nov 2003 13:45:28 +0100
Newsgroups gmane.comp.java.tapestry.contrib
Message-ID <[email protected]>
This is a multi-part message in MIME format.

------=_NextPart_000_0137_01C3B423.8D8DC780
Content-Type: text/plain;
	charset="koi8-r"
Content-Transfer-Encoding: quoted-printable

Hi,
I'm new in Tapestry and have faced a one problem:

I have a one select component in my template it uses @Foreach and =
@Options components to produce
my multiselect element, everythings is Ok, but I cannot manage the =
values attributes of option element, it always generate numeric values:

<select name=3D"$Select" multiple=3D"multiple">
<option value=3D"0">Test1</option>
<option value=3D"1">Test2</option>
<option value=3D"2">Test3</option>

but I need for example:

<select name=3D"$Select" multiple=3D"multiple">
<option value=3D"T1">Test1</option>
<option value=3D"T2">Test2</option>
<option value=3D"T3">Test3</option>

Using PropertySelection allows to connect IPropertySelectionModel and =
manage values, but not in multiple select...
Is there the right way to do what I want?

Best Regards, Vitali
------=_NextPart_000_0137_01C3B423.8D8DC780
Content-Type: text/html;
	charset="koi8-r"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=3DContent-Type content=3D"text/html; charset=3Dkoi8-r">
<META content=3D"MSHTML 6.00.2800.1170" name=3DGENERATOR>
<STYLE></STYLE>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT face=3DArial size=3D2>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D224483208-21112003>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D224483208-21112003>I'm =
new in Tapestry=20
and have faced a one problem:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D224483208-21112003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D224483208-21112003>I have =
a one select=20
component in my template it uses @Foreach and @Options components to=20
produce</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D224483208-21112003>my =
multiselect=20
element, everythings is Ok, but I cannot manage the values attributes of =
option=20
element, it always generate numeric values:</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN=20
class=3D224483208-21112003></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D224483208-21112003>&lt;select=20
name=3D"$Select" multiple=3D"multiple"&gt;</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D224483208-21112003>&lt;option=20
value=3D"0"&gt;Test1&lt;/option&gt;</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D224483208-21112003><SPAN=20
class=3D224483208-21112003>&lt;option=20
value=3D"1"&gt;Test2&lt;/option&gt;</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D224483208-21112003><SPAN=20
class=3D224483208-21112003><SPAN class=3D224483208-21112003>&lt;option=20
value=3D"2"&gt;Test3&lt;/option&gt;</SPAN></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D224483208-21112003><SPAN=20
class=3D224483208-21112003><SPAN=20
class=3D224483208-21112003></SPAN></SPAN></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D224483208-21112003><SPAN=20
class=3D224483208-21112003><SPAN class=3D224483208-21112003>but I need =
for=20
example:</SPAN></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D224483208-21112003><SPAN=20
class=3D224483208-21112003><SPAN=20
class=3D224483208-21112003></SPAN></SPAN></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D224483208-21112003><SPAN=20
class=3D224483208-21112003><SPAN class=3D224483208-21112003>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D224483208-21112003>&lt;select=20
name=3D"$Select" multiple=3D"multiple"&gt;</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN =
class=3D224483208-21112003>&lt;option=20
value=3D"T1"&gt;Test1&lt;/option&gt;</SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D224483208-21112003><SPAN=20
class=3D224483208-21112003>&lt;option=20
value=3D"T2"&gt;Test2&lt;/option&gt;</SPAN></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D224483208-21112003><SPAN=20
class=3D224483208-21112003><SPAN class=3D224483208-21112003>&lt;option=20
value=3D"T3"&gt;Test3&lt;/option&gt;</SPAN></SPAN></SPAN></FONT></DIV></S=
PAN></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D224483208-21112003><SPAN=20
class=3D224483208-21112003><SPAN=20
class=3D224483208-21112003></SPAN></SPAN></SPAN></FONT>&nbsp;</DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D224483208-21112003><SPAN=20
class=3D224483208-21112003><SPAN class=3D224483208-21112003>Using =
PropertySelection=20
allows to connect IPropertySelectionModel and manage values, but not in =
multiple=20
select...</SPAN></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D224483208-21112003><SPAN=20
class=3D224483208-21112003><SPAN class=3D224483208-21112003>Is there the =
right way=20
to do what I want?</SPAN></SPAN></SPAN></FONT></DIV>
<DIV><FONT face=3DArial size=3D2><SPAN class=3D224483208-21112003><SPAN=20
class=3D224483208-21112003><SPAN=20
class=3D224483208-21112003></SPAN></SPAN></SPAN></FONT>&nbsp;</DIV>
<DIV><SPAN class=3D224483208-21112003><FONT face=3DArial size=3D2>Best =
Regards,=20
Vitali</FONT></SPAN></DIV></FONT></DIV></BODY></HTML>

------=_NextPart_000_0137_01C3B423.8D8DC780--




-------------------------------------------------------
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/