Re: Mutliple select list

2008-10-01 Thread jamespeter

 list of pre-selected values for an  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
http://www.fastrealestate.net FSBO 
-- 
View this message in context: 
http://www.nabble.com/Mutliple-select-list-tp1939097p19764007.html
Sent from the ECS - User mailing list archive at Nabble.com.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Mutliple select list

2005-12-14 Thread Peter Tlholoe \(P\)

Thanx Tom, After you mentioned that there is nothing between my
 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:[EMAIL PROTECTED]
Sent: 14 December 2005 04:43 PM
To: Peter Tlholoe (P)
Cc: ECS Users List; [EMAIL PROTECTED]
Subject: RE: Mutliple select list


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

Tom


>

> Thanx here is the code from the view source
>
>
>
> 
> 
>
>
>
>  action="/hello/populateList.do">   rowspan='5'> multiple> value='Holla2'> value='Holla1'> rowspan='5'> value='>>'> value='<<'> multiple>[] 
> 
> 
> 
>
>
> -----Original Message-----
> From: Thomas J. Harris [mailto:[EMAIL PROTECTED]
> 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
>
>
> 
>
>>
>
>> 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"%>  
>> > property="leftList" type="java.util.Set"/>  id="rightListBean"
>> name="populateListForm" property="rightList" type="java.util.Set"/>

>>  
>> > rightList="<%=rightListBean%>"/>  
>>  
>>
>>
>>
>> MY TLD
>> 
>> multipleSelect
>> peter.oshima.CustomSelectTag
>> Creating multiple sleect custom tag 
>> leftList true
>> true  
>> rightList true
>> true  
>>
>>
>>
>> -Original Message-
>> From: Thomas J. Harris [mailto:[EMAIL PROTECTED]
>> Sent: 14 December 2005 03:18 PM
>> To: ECS Users List
>> Cc: ecs-user@jakarta.apache.org
>> Subject: Re: Mutliple select list
>>
>>
>>
>>
>> Can you include a snippet from the "view source"?
>>
>>
>>
>> Tom
>>
>>
>>
>> 
>>
>>
>>>
>>
>>> 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 - [EMAIL PROTECTED] !
>> !   ... in Astoria, New York ...  !
>> !~!
>>
>>
>>
>>
>>
>>
>
-
>
>> To unsubscribe, e-mail: [EMAIL PROTECTED]
>> For additional commands, e-mail: [EMAIL PROTECTED]
>>
>>
>>
>>
>> ~~
>> This e

RE: Mutliple select list

2005-12-14 Thread Thomas J. Harris

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

Tom


>

> Thanx here is the code from the view source
>
>
>
> 
> 
>
>
>
>  action="/hello/populateList.do"> 
>  multiple> value='Holla2'> value='Holla1'> rowspan='5'> value='>>'> value='<<'> multiple>[] 
> 
> 
> 
>
>
> -Original Message-
> From: Thomas J. Harris [mailto:[EMAIL PROTECTED]
> 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
>
>
> 
>
>>
>
>> 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"%>  
>> > property="leftList" type="java.util.Set"/>  id="rightListBean"
>> name="populateListForm" property="rightList" type="java.util.Set"/>
>>  
>> > rightList="<%=rightListBean%>"/> 
>> 
>> 
>> 
>>
>>
>>
>> MY TLD
>> 
>> multipleSelect
>> peter.oshima.CustomSelectTag
>> Creating multiple sleect custom tag 
>> leftList true
>> true  
>> rightList true
>> true  
>>
>>
>>
>> -Original Message-
>> From: Thomas J. Harris [mailto:[EMAIL PROTECTED]
>> Sent: 14 December 2005 03:18 PM
>> To: ECS Users List
>> Cc: ecs-user@jakarta.apache.org
>> Subject: Re: Mutliple select list
>>
>>
>>
>>
>> Can you include a snippet from the "view source"?
>>
>>
>>
>> Tom
>>
>>
>>
>> 
>>
>>
>>>
>>
>>> 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 - [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
>> 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
> 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]



RE: Mutliple select list

2005-12-14 Thread 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"%>


 
 
 
 
  
 




MY TLD
 
  multipleSelect
  peter.oshima.CustomSelectTag
  Creating multiple sleect custom tag
  
leftList
true
true
  
  
rightList
true
true
  
 

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


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

Tom


>

> 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 - [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
http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
~~

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Mutliple select list

2005-12-14 Thread Peter Tlholoe (P)

Thanx here is the code from the view source






 
 
  []
 




-Original Message-
From: Thomas J. Harris [mailto:[EMAIL PROTECTED]
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


>

> 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"%>  
>  property="leftList" type="java.util.Set"/>  name="populateListForm" property="rightList" type="java.util.Set"/>
>  
>  rightList="<%=rightListBean%>"/>
> 
> 
> 
> 
>
>
> MY TLD
> 
> multipleSelect
> peter.oshima.CustomSelectTag
> Creating multiple sleect custom tag 
> leftList true
> true  
> rightList true
> true  
>
>
> -Original Message-
> From: Thomas J. Harris [mailto:[EMAIL PROTECTED]
> Sent: 14 December 2005 03:18 PM
> To: ECS Users List
> Cc: ecs-user@jakarta.apache.org
> Subject: Re: Mutliple select list
>
>
>
> Can you include a snippet from the "view source"?
>
>
> Tom
>
>
> 
>
>>
>
>> 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 - [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
> 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
http://www.telkom.co.za/TelkomEMailLegalNotice.PDF
~~

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Mutliple select list

2005-12-14 Thread Thomas J. Harris

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


>

> 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"%>
> 
> 
>  property="leftList" type="java.util.Set"/>  name="populateListForm" property="rightList" type="java.util.Set"/>
> 
> 
>  leftList="<%=leftListBean%>" rightList="<%=rightListBean%>"/>
> 
> 
> 
> 
>
>
> MY TLD
> 
> multipleSelect
> peter.oshima.CustomSelectTag
> Creating multiple sleect custom tag
> 
> leftList
> true
> true
> 
> 
> rightList
> true
> true
> 
> 
>
>
> -Original Message-
> From: Thomas J. Harris [mailto:[EMAIL PROTECTED]
> Sent: 14 December 2005 03:18 PM
> To: ECS Users List
> Cc: ecs-user@jakarta.apache.org
> Subject: Re: Mutliple select list
>
>
>
> Can you include a snippet from the "view source"?
>
>
> Tom
>
>
> 
>
>>
>
>> 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 - [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
> 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]



Re: Mutliple select list

2005-12-14 Thread Thomas J. Harris

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

Tom


>

> 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 - [EMAIL PROTECTED] !
!   ... in Astoria, New York ...  !
!~!



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]