Mutliple select list

View: New views
8 Messages — Rating Filter:   Alert me  

Mutliple select list

by Peter Tlholoe (P) :: Rate this Message:

| View Threaded | Show Only this Message


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
anyone help ?
Here is my code snippet
                          Select leftSelect =new Select();
                  leftSelect.setMultiple(true);
             leftSelect.setSize(15);
             for (Iterator objects =
leftList.iterator();objects.hasNext();) {
                  LabelValueBean labelValueBean2 =
(LabelValueBean) objects.next();
                  leftSelect.addElement(new
Option(labelValueBean2.getLabel()));
               }


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This e-mail and its contents are subject to the Telkom SA Limited
e-mail legal notice available at
http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Re: Mutliple select list

by Tom Harris-2 :: Rate this Message:

| View Threaded | Show Only this Message


Can you include a snippet from the "view source"?

Tom

<quote who="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 anyone help ? Here
> is my code snippet Select leftSelect =new Select();
> leftSelect.setMultiple(true); leftSelect.setSize(15); for (Iterator objects
> leftList.iterator();objects.hasNext();) { LabelValueBean labelValueBean2
> (LabelValueBean) objects.next();
> leftSelect.addElement(new Option(labelValueBean2.getLabel()));
> }
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> This e-mail and its contents are subject to the Telkom SA Limited
> e-mail legal notice available at
> http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>


!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
! Thomas J. Harris - tom@... !
!       ... in Astoria, New York ...          !
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!



---------------------------------------------------------------------
To unsubscribe, e-mail: ecs-user-unsubscribe@...
For additional commands, e-mail: ecs-user-help@...


Parent Message unknown RE: Mutliple select list

by Peter Tlholoe (P) :: Rate this Message:

| View Threaded | Show Only this Message


I've got a Set property in my ActionForm (populateListForm) that is
populated by my Struts Action class, then its defined within the page
so it can be refernced.
leftListBean ans rightListBean are java.util.Set properties containing
LabelValueBean objects.

<%@ taglib uri="/WEB-INF/mytaglib.tld" prefix="telkom"%>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<html>
    <body>
         <bean:define id="leftListBean" name="populateListForm"
property="leftList"
                       type="java.util.Set"/>
         <bean:define id="rightListBean" name="populateListForm"
property="rightList"
                      type="java.util.Set"/>
         <html:form action="/populateList.do">
         <table>
              <tr><td><telkom:multipleSelect
leftList="<%=leftListBean%>"
rightList="<%=rightListBean%>"/></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>
            <name>leftList</name>
            <required>true</required>
            <rtexprvalue>true</rtexprvalue>
      </attribute>
      <attribute>
            <name>rightList</name>
            <required>true</required>
            <rtexprvalue>true</rtexprvalue>
      </attribute>
   </tag>  

-----Original Message-----
From: Thomas J. Harris [mailto:tom@...]
Sent: 14 December 2005 03:18 PM
To: ECS Users List
Cc: ecs-user@...
Subject: Re: Mutliple select list


Can you include a snippet from the "view source"?

Tom

<quote who="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
> anyone help ? Here is my code snippet Select leftSelect =new
Select();

> leftSelect.setMultiple(true); leftSelect.setSize(15); for (Iterator
> objects
> leftList.iterator();objects.hasNext();) { LabelValueBean
> labelValueBean2
> (LabelValueBean) objects.next();
> leftSelect.addElement(new Option(labelValueBean2.getLabel()));
> }
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> This e-mail and its contents are subject to the Telkom SA Limited
> e-mail legal notice available at
> http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>


!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
! Thomas J. Harris - tom@... !
!       ... in Astoria, New York ...          !
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!



---------------------------------------------------------------------
To unsubscribe, e-mail: ecs-user-unsubscribe@...
For additional commands, e-mail: ecs-user-help@...


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This e-mail and its contents are subject to the Telkom SA Limited
e-mail legal notice available at
http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---------------------------------------------------------------------
To unsubscribe, e-mail: ecs-user-unsubscribe@...
For additional commands, e-mail: ecs-user-help@...


RE: Mutliple select list

by Tom Harris-2 :: Rate this Message:

| View Threaded | Show Only this Message


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="Peter Tlholoe \(P\)">
>

> I've got a Set property in my ActionForm (populateListForm) that is
> populated by my Struts Action class, then its defined within the page so it
> can be refernced. leftListBean ans rightListBean are java.util.Set
> properties containing LabelValueBean objects.
>
>
> <%@ taglib uri="/WEB-INF/mytaglib.tld" prefix="telkom"%>
> <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html"%>
> <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
> <html>
> <body>
> <bean:define id="leftListBean" name="populateListForm"
> property="leftList" type="java.util.Set"/> <bean:define id="rightListBean"
> name="populateListForm" property="rightList" type="java.util.Set"/>
> <html:form action="/populateList.do">
> <table>
> <tr><td><telkom:multipleSelect
> leftList="<%=leftListBean%>" rightList="<%=rightListBean%>"/></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>
> <name>leftList</name>
> <required>true</required>
> <rtexprvalue>true</rtexprvalue>
> </attribute>
> <attribute>
> <name>rightList</name>
> <required>true</required>
> <rtexprvalue>true</rtexprvalue>
> </attribute>
> </tag>
>
>
> -----Original Message-----
> From: Thomas J. Harris [mailto:tom@...]
> Sent: 14 December 2005 03:18 PM
> To: ECS Users List
> Cc: ecs-user@...
> Subject: Re: Mutliple select list
>
>
>
> Can you include a snippet from the "view source"?
>
>
> Tom
>
>
> <quote who="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 anyone
>> help ? Here is my code snippet Select leftSelect =new
> Select();
>
>> leftSelect.setMultiple(true); leftSelect.setSize(15); for (Iterator
>> objects leftList.iterator();objects.hasNext();) { LabelValueBean
>> labelValueBean2 (LabelValueBean) objects.next();
>> leftSelect.addElement(new Option(labelValueBean2.getLabel())); }
>>
>>
>>
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> This e-mail and its contents are subject to the Telkom SA Limited
>> e-mail legal notice available at
>> http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>>
>>
>
>
> !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
> ! Thomas J. Harris - tom@... !
> !       ... in Astoria, New York ...          !
> !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ecs-user-unsubscribe@...
> For additional commands, e-mail: ecs-user-help@...
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> This e-mail and its contents are subject to the Telkom SA Limited
> e-mail legal notice available at
> http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ecs-user-unsubscribe@...
> For additional commands, e-mail: ecs-user-help@...
>
>
>


!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
! Thomas J. Harris - tom@... !
!       ... in Astoria, New York ...          !
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!



---------------------------------------------------------------------
To unsubscribe, e-mail: ecs-user-unsubscribe@...
For additional commands, e-mail: ecs-user-help@...


Parent Message unknown RE: Mutliple select list

by Peter Tlholoe (P) :: Rate this Message:

| View Threaded | Show Only this Message


Thanx here is the code from the view source


<html>
    <body>
       
       
         <form name="populateListForm" method="post"
action="/hello/populateList.do">
         <table>
              <tr><td><table><tr><td rowspan='5'><select size='15'
multiple><option value='Holla3'></option><option
value='Holla2'></option><option value='Holla0'></option><option
value='Holla1'></option></select></td><td
rowspan='5'><table><tr><td><input type='submit'
value='>>'></td></tr><tr><td><input type='submit' value=' >
'></td></tr><tr><td><input type='SUBMIT'
value='<<'></td></tr><tr><td><input type='SUBMIT' value=' <
'></td></tr></table></td><td rowspan='5'><select size='15'
multiple>[]</select></td></tr></table></td></tr>
         </table>
        </form>
    </body>
</html>

-----Original Message-----
From: Thomas J. Harris [mailto:tom@...]
Sent: 14 December 2005 04:18 PM
To: ECS Users List
Cc: ECS Users List; tom@...
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="Peter Tlholoe \(P\)">
>

> I've got a Set property in my ActionForm (populateListForm) that is
> populated by my Struts Action class, then its defined within the
page
> so it can be refernced. leftListBean ans rightListBean are
> java.util.Set properties containing LabelValueBean objects.
>
>
> <%@ taglib uri="/WEB-INF/mytaglib.tld" prefix="telkom"%> <%@ taglib
> uri="/WEB-INF/struts-html.tld" prefix="html"%> <%@ taglib
> uri="/WEB-INF/struts-bean.tld" prefix="bean"%> <html> <body>
> <bean:define id="leftListBean" name="populateListForm"
> property="leftList" type="java.util.Set"/> <bean:define
id="rightListBean"

> name="populateListForm" property="rightList" type="java.util.Set"/>
> <html:form action="/populateList.do"> <table>
> <tr><td><telkom:multipleSelect leftList="<%=leftListBean%>"
> rightList="<%=rightListBean%>"/></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>
> <name>leftList</name> <required>true</required>
> <rtexprvalue>true</rtexprvalue> </attribute> <attribute>
> <name>rightList</name> <required>true</required>
> <rtexprvalue>true</rtexprvalue> </attribute> </tag>
>
>
> -----Original Message-----
> From: Thomas J. Harris [mailto:tom@...]
> Sent: 14 December 2005 03:18 PM
> To: ECS Users List
> Cc: ecs-user@...
> Subject: Re: Mutliple select list
>
>
>
> Can you include a snippet from the "view source"?
>
>
> Tom
>
>
> <quote who="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
>> anyone help ? Here is my code snippet Select leftSelect =new
> Select();
>
>> leftSelect.setMultiple(true); leftSelect.setSize(15); for (Iterator

>> objects leftList.iterator();objects.hasNext();) { LabelValueBean
>> labelValueBean2 (LabelValueBean) objects.next();
>> leftSelect.addElement(new Option(labelValueBean2.getLabel())); }
>>
>>
>>
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> This e-mail and its contents are subject to the Telkom SA Limited
>> e-mail legal notice available at
>> http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>>
>>
>
>
> !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
> ! Thomas J. Harris - tom@... !
> !       ... in Astoria, New York ...          !
> !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
>
>
>
>
>
---------------------------------------------------------------------

> To unsubscribe, e-mail: ecs-user-unsubscribe@...
> For additional commands, e-mail: ecs-user-help@...
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> This e-mail and its contents are subject to the Telkom SA Limited
> e-mail legal notice available at
> http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>
>
---------------------------------------------------------------------
> To unsubscribe, e-mail: ecs-user-unsubscribe@...
> For additional commands, e-mail: ecs-user-help@...
>
>
>


!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
! Thomas J. Harris - tom@... !
!       ... in Astoria, New York ...          !
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!



---------------------------------------------------------------------
To unsubscribe, e-mail: ecs-user-unsubscribe@...
For additional commands, e-mail: ecs-user-help@...


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This e-mail and its contents are subject to the Telkom SA Limited
e-mail legal notice available at
http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---------------------------------------------------------------------
To unsubscribe, e-mail: ecs-user-unsubscribe@...
For additional commands, e-mail: ecs-user-help@...


RE: Mutliple select list

by Tom Harris-2 :: Rate this Message:

| View Threaded | Show Only this Message


There's no text between the <option> and </option> tags, so nothing shows
up in the select box. There needs to be something in-between the tags to
display.

Tom

<quote who="Peter Tlholoe \(P\)">
>

> Thanx here is the code from the view source
>
>
>
> <html>
> <body>
>
>
>
> <form name="populateListForm" method="post"
> action="/hello/populateList.do"> <table>
> <tr><td><table><tr><td rowspan='5'><select size='15'
> multiple><option value='Holla3'></option><option
> value='Holla2'></option><option value='Holla0'></option><option
> value='Holla1'></option></select></td><td
> rowspan='5'><table><tr><td><input type='submit'
> value='>>'></td></tr><tr><td><input type='submit' value=' >
> '></td></tr><tr><td><input type='SUBMIT'
> value='<<'></td></tr><tr><td><input type='SUBMIT' value=' <
> '></td></tr></table></td><td rowspan='5'><select size='15'
> multiple>[]</select></td></tr></table></td></tr> </table>
> </form>
> </body>
> </html>
>
>
> -----Original Message-----
> From: Thomas J. Harris [mailto:tom@...]
> Sent: 14 December 2005 04:18 PM
> To: ECS Users List
> Cc: ECS Users List; tom@...
> 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="Peter Tlholoe \(P\)">
>
>>
>
>> I've got a Set property in my ActionForm (populateListForm) that is
>> populated by my Struts Action class, then its defined within the
> page
>> so it can be refernced. leftListBean ans rightListBean are java.util.Set
>> properties containing LabelValueBean objects.
>>
>>
>> <%@ taglib uri="/WEB-INF/mytaglib.tld" prefix="telkom"%> <%@ taglib
>> uri="/WEB-INF/struts-html.tld" prefix="html"%> <%@ taglib
>> uri="/WEB-INF/struts-bean.tld" prefix="bean"%> <html> <body>
>> <bean:define id="leftListBean" name="populateListForm"
>> property="leftList" type="java.util.Set"/> <bean:define
> id="rightListBean"
>> name="populateListForm" property="rightList" type="java.util.Set"/>
>> <html:form action="/populateList.do"> <table>
>> <tr><td><telkom:multipleSelect leftList="<%=leftListBean%>"
>> rightList="<%=rightListBean%>"/></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>
>> <name>leftList</name> <required>true</required>
>> <rtexprvalue>true</rtexprvalue> </attribute> <attribute>
>> <name>rightList</name> <required>true</required>
>> <rtexprvalue>true</rtexprvalue> </attribute> </tag>
>>
>>
>>
>> -----Original Message-----
>> From: Thomas J. Harris [mailto:tom@...]
>> Sent: 14 December 2005 03:18 PM
>> To: ECS Users List
>> Cc: ecs-user@...
>> Subject: Re: Mutliple select list
>>
>>
>>
>>
>> Can you include a snippet from the "view source"?
>>
>>
>>
>> Tom
>>
>>
>>
>> <quote who="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
>>> anyone help ? Here is my code snippet Select leftSelect =new
>> Select();
>>
>>
>>> leftSelect.setMultiple(true); leftSelect.setSize(15); for (Iterator
>
>>> objects leftList.iterator();objects.hasNext();) { LabelValueBean
>>> labelValueBean2 (LabelValueBean) objects.next();
>>> leftSelect.addElement(new Option(labelValueBean2.getLabel())); }
>>>
>>>
>>>
>>>
>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>> This e-mail and its contents are subject to the Telkom SA Limited
>>> e-mail legal notice available at
>>> http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>
>>>
>>>
>>>
>>
>>
>> !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
>> ! Thomas J. Harris - tom@... !
>> !       ... in Astoria, New York ...          !
>> !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
>>
>>
>>
>>
>>
>>
> ---------------------------------------------------------------------
>
>> To unsubscribe, e-mail: ecs-user-unsubscribe@...
>> For additional commands, e-mail: ecs-user-help@...
>>
>>
>>
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> This e-mail and its contents are subject to the Telkom SA Limited
>> e-mail legal notice available at
>> http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>>
>>
>>
> ---------------------------------------------------------------------
>
>> To unsubscribe, e-mail: ecs-user-unsubscribe@...
>> For additional commands, e-mail: ecs-user-help@...
>>
>>
>>
>>
>
>
> !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
> ! Thomas J. Harris - tom@... !
> !       ... in Astoria, New York ...          !
> !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: ecs-user-unsubscribe@...
> For additional commands, e-mail: ecs-user-help@...
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> This e-mail and its contents are subject to the Telkom SA Limited
> e-mail legal notice available at
> http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>


!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
! Thomas J. Harris - tom@... !
!       ... in Astoria, New York ...          !
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!



---------------------------------------------------------------------
To unsubscribe, e-mail: ecs-user-unsubscribe@...
For additional commands, e-mail: ecs-user-help@...


Parent Message unknown RE: Mutliple select list

by Peter Tlholoe (P) :: Rate this Message:

| View Threaded | Show Only this Message


Thanx Tom, After you mentioned that there is nothing between my
<option></option> tag, I managed to sort it out, I passed an array of
String options to my "list" thru the "addElement(java.lang.String[]
value)" method,which it used to create a list of Options.

-----Original Message-----
From: Thomas J. Harris [mailto:tom@...]
Sent: 14 December 2005 04:43 PM
To: Peter Tlholoe (P)
Cc: ECS Users List; tom@...
Subject: RE: Mutliple select list


There's no text between the <option> and </option> tags, so nothing
shows up in the select box. There needs to be something in-between the
tags to display.

Tom

<quote who="Peter Tlholoe \(P\)">
>

> Thanx here is the code from the view source
>
>
>
> <html>
> <body>
>
>
>
> <form name="populateListForm" method="post"
> action="/hello/populateList.do"> <table> <tr><td><table><tr><td
> rowspan='5'><select size='15'
> multiple><option value='Holla3'></option><option
> value='Holla2'></option><option value='Holla0'></option><option
> value='Holla1'></option></select></td><td
> rowspan='5'><table><tr><td><input type='submit'
> value='>>'></td></tr><tr><td><input type='submit' value=' >
> '></td></tr><tr><td><input type='SUBMIT'
> value='<<'></td></tr><tr><td><input type='SUBMIT' value=' <
> '></td></tr></table></td><td rowspan='5'><select size='15'
> multiple>[]</select></td></tr></table></td></tr> </table>
> </form>
> </body>
> </html>
>
>
> -----Original Message-----
> From: Thomas J. Harris [mailto:tom@...]
> Sent: 14 December 2005 04:18 PM
> To: ECS Users List
> Cc: ECS Users List; tom@...
> 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="Peter Tlholoe \(P\)">
>
>>
>
>> I've got a Set property in my ActionForm (populateListForm) that is

>> populated by my Struts Action class, then its defined within the
> page
>> so it can be refernced. leftListBean ans rightListBean are
>> java.util.Set properties containing LabelValueBean objects.
>>
>>
>> <%@ taglib uri="/WEB-INF/mytaglib.tld" prefix="telkom"%> <%@ taglib

>> uri="/WEB-INF/struts-html.tld" prefix="html"%> <%@ taglib
>> uri="/WEB-INF/struts-bean.tld" prefix="bean"%> <html> <body>
>> <bean:define id="leftListBean" name="populateListForm"
>> property="leftList" type="java.util.Set"/> <bean:define
> id="rightListBean"
>> name="populateListForm" property="rightList" type="java.util.Set"/>

>> <html:form action="/populateList.do"> <table>
>> <tr><td><telkom:multipleSelect leftList="<%=leftListBean%>"
>> rightList="<%=rightListBean%>"/></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>
>> <name>leftList</name> <required>true</required>
>> <rtexprvalue>true</rtexprvalue> </attribute> <attribute>
>> <name>rightList</name> <required>true</required>
>> <rtexprvalue>true</rtexprvalue> </attribute> </tag>
>>
>>
>>
>> -----Original Message-----
>> From: Thomas J. Harris [mailto:tom@...]
>> Sent: 14 December 2005 03:18 PM
>> To: ECS Users List
>> Cc: ecs-user@...
>> Subject: Re: Mutliple select list
>>
>>
>>
>>
>> Can you include a snippet from the "view source"?
>>
>>
>>
>> Tom
>>
>>
>>
>> <quote who="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
>>> anyone help ? Here is my code snippet Select leftSelect =new
>> Select();
>>
>>
>>> leftSelect.setMultiple(true); leftSelect.setSize(15); for
(Iterator

>
>>> objects leftList.iterator();objects.hasNext();) { LabelValueBean
>>> labelValueBean2 (LabelValueBean) objects.next();
>>> leftSelect.addElement(new Option(labelValueBean2.getLabel())); }
>>>
>>>
>>>
>>>
>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>> This e-mail and its contents are subject to the Telkom SA Limited
>>> e-mail legal notice available at
>>> http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
>>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>>
>>>
>>>
>>>
>>
>>
>> !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
>> ! Thomas J. Harris - tom@... !
>> !       ... in Astoria, New York ...          !
>> !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
>>
>>
>>
>>
>>
>>
>
---------------------------------------------------------------------

>
>> To unsubscribe, e-mail: ecs-user-unsubscribe@...
>> For additional commands, e-mail: ecs-user-help@...
>>
>>
>>
>>
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> This e-mail and its contents are subject to the Telkom SA Limited
>> e-mail legal notice available at
>> http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>>
>>
>>
>
---------------------------------------------------------------------

>
>> To unsubscribe, e-mail: ecs-user-unsubscribe@...
>> For additional commands, e-mail: ecs-user-help@...
>>
>>
>>
>>
>
>
> !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
> ! Thomas J. Harris - tom@... !
> !       ... in Astoria, New York ...          !
> !~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
>
>
>
>
>
---------------------------------------------------------------------

> To unsubscribe, e-mail: ecs-user-unsubscribe@...
> For additional commands, e-mail: ecs-user-help@...
>
>
>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> This e-mail and its contents are subject to the Telkom SA Limited
> e-mail legal notice available at
> http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>
>


!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!
! Thomas J. Harris - tom@... !
!       ... in Astoria, New York ...          !
!~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~!



~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
This e-mail and its contents are subject to the Telkom SA Limited
e-mail legal notice available at
http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

---------------------------------------------------------------------
To unsubscribe, e-mail: ecs-user-unsubscribe@...
For additional commands, e-mail: ecs-user-help@...


Re: Mutliple select list

by jamespeter :: Rate this Message:

| View Threaded | Show Only this Message

 list of pre-selected values for an <s:select> tag when using the "multiple=true" option ... "multiple=true" option. It works fine when I use ...
www.nabble.com/Problem-with-creating-default-selection-values-in-multiple-select-td19224732.html
=========================================================================
jamespeter
FSBO