RE: Mutliple select list
"Peter Tlholoe \(P\)" <[email protected]> Wed, 14 Dec 2005 16:23:40 +0200
| Newsgroups | gmane.comp.jakarta.ecs.user |
|---|---|
| Message-ID | <B31AC65084645347A668AF64D11C56E8A23A79@PRTRRA06-XCS01.telkom.co.za> |
Thanx here is the code from the view source=0D
<html>
<body>
=0D
=0D
<form name=3D"populateListForm" method=3D"post"
action=3D"/hello/populateList.do">
<table>
<tr><td><table><tr><td rowspan=3D'5'><select size=3D'15'
multiple><option value=3D'Holla3'></option><option
value=3D'Holla2'></option><option value=3D'Holla0'></option><option
value=3D'Holla1'></option></select></td><td
rowspan=3D'5'><table><tr><td><input type=3D'submit'
value=3D'>>'></td></tr><tr><td><input type=3D'submit' value=3D' >
'></td></tr><tr><td><input type=3D'SUBMIT'
value=3D'<<'></td></tr><tr><td><input type=3D'SUBMIT' value=3D' <
'></td></tr></table></td><td rowspan=3D'5'><select size=3D'15'
multiple>[]</select></td></tr></table></td></tr>
</table>
</form>
</body>
</html>
-----Original Message-----
From: Thomas J. Harris [mailto:[email protected]]=0D
Sent: 14 December 2005 04:18 PM
To: ECS Users List
Cc: ECS Users List; [email protected]
Subject: RE: Mutliple select list
Ok. So, your problem is probably coming from your customm tag code.
But, I asked for a snippet from the "View Source" in the browser.
Tom
<quote who=3D"Peter Tlholoe \(P\)">
>
> I've got a Set property in my ActionForm (populateListForm) that is=0D
> populated by my Struts Action class, then its defined within the
page=0D
> so it can be refernced. leftListBean ans rightListBean are=0D
> java.util.Set properties containing LabelValueBean objects.
>
>
> <%@ taglib uri=3D"/WEB-INF/mytaglib.tld" prefix=3D"telkom"%> <%@ taglib=0D
> uri=3D"/WEB-INF/struts-html.tld" prefix=3D"html"%> <%@ taglib=0D
> uri=3D"/WEB-INF/struts-bean.tld" prefix=3D"bean"%> <html> <body>=0D
> <bean:define id=3D"leftListBean" name=3D"populateListForm"
> property=3D"leftList" type=3D"java.util.Set"/> <bean:define
id=3D"rightListBean"
> name=3D"populateListForm" property=3D"rightList" type=3D"java.util.Set"/>=
=0D
> <html:form action=3D"/populateList.do"> <table>=0D
> <tr><td><telkom:multipleSelect leftList=3D"<%=3DleftListBean%>"=0D
> rightList=3D"<%=3DrightListBean%>"/></td></tr>
> </table>
> </html:form>
> </body>
> </html>
>
>
> MY TLD
> <tag>
> <name>multipleSelect</name>
> <tagclass>peter.oshima.CustomSelectTag</tagclass>
> <info>Creating multiple sleect custom tag</info> <attribute>=0D
> <name>leftList</name> <required>true</required>=0D
> <rtexprvalue>true</rtexprvalue> </attribute> <attribute>=0D
> <name>rightList</name> <required>true</required>=0D
> <rtexprvalue>true</rtexprvalue> </attribute> </tag>
>
>
> -----Original Message-----
> From: Thomas J. Harris [mailto:[email protected]]
> Sent: 14 December 2005 03:18 PM
> To: ECS Users List
> Cc: [email protected]
> Subject: Re: Mutliple select list
>
>
>
> Can you include a snippet from the "view source"?
>
>
> Tom
>
>
> <quote who=3D"Peter Tlholoe \(P\)">
>
>>
>
>> Hello world,
>> I've got an html multiple select control on my jsp page,that I
>>
> passed
>> a LabelValueBean.getLabel();, the problems is when I render the
page
>
>> those options are not there, but when I do View Source I can see
> those
>> options there but they are not added to the List as options. can=0D
>> anyone help ? Here is my code snippet Select leftSelect =3Dnew
> Select();
>
>> leftSelect.setMultiple(true); leftSelect.setSize(15); for (Iterator
>> objects leftList.iterator();objects.hasNext();) { LabelValueBean
>> labelValueBean2 (LabelValueBean) objects.next();=0D
>> leftSelect.addElement(new Option(labelValueBean2.getLabel())); }
>>
>>
>>
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> This e-mail and its contents are subject to the Telkom SA Limited=0D
>> e-mail legal notice available at=0D
>> http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>>
>>
>
>
> !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
> ! Thomas J. Harris - [email protected] !
> ! ... in Astoria, New York ... !
> !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
>
>
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> This e-mail and its contents are subject to the Telkom SA Limited=0D
> e-mail legal notice available at=0D
> http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>
>
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
! Thomas J. Harris - [email protected] !
! ... in Astoria, New York ... !
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This e-mail and its contents are subject to the Telkom SA Limited
e-mail legal notice available at=0D
http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~