Re: Change the background color of each element in the dropdown list

2015-02-27 Thread Christoph Nenning
> I have a dropdown search box which includes All, Open, Closed. > > I want to make the background color changes based on the element > selected from the list. Background is green if 'Open' is > selected, blue - 'All, red - 'Closed'. Could you please

Change the background color of each element in the dropdown list

2015-02-26 Thread Lilylove toshop
I have a dropdown search box which includes All, Open, Closed. I want to make the background color changes based on the element selected from the list.  Background is green if 'Open' is selected, blue - 'All, red - 'Closed'.  Could you please help how to do this usi

RE: Select multiple values from a dropdown

2015-02-22 Thread Martin Gainty
> Date: Sun, 22 Feb 2015 09:11:58 -0500 > Subject: RE: Select multiple values from a dropdown > From: lilylove2s...@yahoo.com.INVALID > To: user@struts.apache.org > > Our application has a form on the right pane where user can create a request > and submit it. After the

RE: Select multiple values from a dropdown

2015-02-22 Thread lilylove2shop
will be populated in the form on the right pane.  These data will be displayed in uneditable mode until user selects the 'OPEN' request button. The issue we have is that the values in the dropdown box display the whole list, instead of highlighting the selected values which user

RE: Select multiple values from a dropdown

2015-02-21 Thread Martin Gainty
MG>the dropdown list is populated from pets collection located inside the petDao class MG>each value presented is based on unique id value of %{petDao.pets.{id}} MG>*if* you want the dropdown to dropdown you can hang a click handler for dropdown on your submit button MG>I

Re: Select multiple values from a dropdown

2015-02-20 Thread Lilylove toshop
Thanks Muralidhar.  I was able to do that.  The dropdown is a part of the request form.  Another question is how do I keep the selected values displayed in the dropdown when the user views the saved request? On Friday, February 20, 2015 11:21 PM, Yaragalla Muralidhar wrote: the

Re: Select multiple values from a dropdown

2015-02-20 Thread Yaragalla Muralidhar
> How do I select and display more than one value from a dropdown and > display them in jsp using struts2? > > Thanks > > > >

Select multiple values from a dropdown

2015-02-20 Thread lilylove2shop
Hi all, How do I select and display more than one value from a dropdown and display them in jsp using struts2?  Thanks

Re: Struts1.x, populate dropdown from array of strings

2014-01-10 Thread Dave Newton
That's a scriptlet, and scriptlet var != JSP-exposed var. Use JSP EL. Dave On Fri, Jan 10, 2014 at 9:43 AM, A. Lotfi wrote: > Hi, > I have an action that sent an array of strings : > private static final String METADATA_ATTRIBUTE_TYPES = "icTypes"; > > > request.setAttribute(METAD

Struts1.x, populate dropdown from array of strings

2014-01-10 Thread A. Lotfi
Hi, I have an action that sent an array of strings :  private static final String METADATA_ATTRIBUTE_TYPES = "icTypes";  request.setAttribute(METADATA_ATTRIBUTE_TYPES, icTypesList);  return mapping.findForward(SUCCESS); in my jsp file I did : Transfer Type                            

Re: s:select dropdown box problem: cannot locate list

2011-04-05 Thread Kushan Jayathilake
When you invoking the page through the browser, you will be typing something similar to this right? *http://localhost:/app_name/action_name* So it will be as *http://localhost:/app_name/Register.* and i'm not sure whether mentioning *method="{1}"* will call the *populate *method there. try by p

s:select dropdown box problem: cannot locate list

2011-04-05 Thread Jeff Huang
Hi All, I need urgent help on this! help greatly appreciated..been stuck on this for a LONG time! it is not able to locate conditionList Servlet.service() for servlet jsp threw exception tag 'select', field 'list', name 'bookCondition': The requested list key 'conditionList' could not be resolv

RE: RE: loading Dropdown dynamically from database

2011-03-16 Thread Biesbrock, Kevin
I feel like this should be added to the documentation, too. ::snicker:: Sorry, OT. Beez -Original Message- From: Dave Newton [mailto:davelnew...@gmail.com] Sent: Wednesday, March 16, 2011 9:43 AM To: Struts Users Mailing List Cc: JavaNoobie87 Subject: Re: RE: loading Dropdown

Re: RE: loading Dropdown dynamically from database

2011-03-16 Thread Dave Newton
p posting tiny little pieces of the puzzle. If you don't understand why it's important to tell the details, please read the following two resources: http://www.coderanch.com/how-to/java/TellTheDetails http://catb.org/~esr/faqs/smart-questions.html We don't know how you're ret

Re: RE: loading Dropdown dynamically from database

2011-03-16 Thread JavaNoobie87
Guess that didnt load properly. Heres the pastebin for that snippet. http://struts.1045723.n5.nabble.com/file/n3779718/ajms2KeY.txt snippet.txt -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3779718.html Sent from the

Re: RE: loading Dropdown dynamically from database

2011-03-16 Thread JavaNoobie87
View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3779623.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-u

Re: RE: loading Dropdown dynamically from database

2011-03-16 Thread JOSE L MARTINEZ-AVIAL
list="dtList" >listValue="listbean.code" >listValue="listbean.dt_oid" >name="listbean.domainType" > onchange="function1(this)" > />. > I'm not sure how far

Re: RE: loading Dropdown dynamically from database

2011-03-16 Thread JavaNoobie87
I'm not sure how far this is effective though as the drop down form the jsp is empty . Even though the source shows the various options. Also I dont understand what you mean by creating the ids,could you please explain? -- View this message in context:

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
ning > all records of that particular domain(hence the iterator tag ). I also > intend to be able to edit ,update and save the individual records in a > domain .Thanks for replying > > > -- > View this message in context: > http://struts.1045723.n5.nabble.com/l

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JavaNoobie87
ing all records of that particular domain(hence the iterator tag ). I also intend to be able to edit ,update and save the individual records in a domain .Thanks for replying -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dyn

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
-- > View this message in context: > http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3758519.html > Sent from the Struts - User mailing list archive at Nabble.com. > > - > To u

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JavaNoobie87
/XK3DkNCG.txt Bean.txt http://struts.1045723.n5.nabble.com/file/n3758519/jWjVuV7W.txt jspfile.txt -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3758519.html Sent from the Struts - User mailing list archive at Nabble.com

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
pastebin . I'm not sure > if this is the answer to the question you are asking , but the tag (if you > meant the drop down) is being used to populate a dropdown box from the > database . setDomainType takes a string as a parameter. The snippet for the > same is below. > &g

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JavaNoobie87
> any custom type converters? > > Dave > Well , Sorry I thought code had to be pasted using pastebin . I'm not sure if this is the answer to the question you are asking , but the tag (if you meant the drop down) is being used to populate a dropdown box from the database . set

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JavaNoobie87
x27;, is it possible that it's receving an array? > to > what should it try to convert it? > > > The point is that I think im just trying to use domainType to store the value of the selected value from the dropdown, and hence I used as a string type -- View this messag

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread Dave Newton
2011 at 12:42 AM, JavaNoobie87 wrote: > The domaintype is of type string .Im using it to store the domain type that > is selected from the master table (domain table) obtained through the jsp > (ie from the user ) after he selects values from the dropdown . The jsp > snippet for the same

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JavaNoobie87
The domaintype is of type string .Im using it to store the domain type that is selected from the master table (domain table) obtained through the jsp (ie from the user ) after he selects values from the dropdown . The jsp snippet for the same is placed below http://struts.1045723.n5.nabble.com

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
Well, you are right, but I didn't say that that was the error :D. I just pointed to that because AFAIK a setter is needed for the parameterinterceptor to work, right?. Any case, and looking at the error '[Ljava.lang.String;@aea710', is it possible that it's receving an array? to what should it try

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread Dave Newton
On Wed, Mar 16, 2011 at 12:27 AM, JOSE L MARTINEZ-AVIAL wrote: > In the action there is no setDomainType. (Just for completeness, that's not necessarily correct; this error may occur under some type conversion conditions.) Dave

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
In the action there is no setDomainType. Is it suppoused to be a parameter received from the user? where is it used? 2011/3/16 Dave Newton > On Wed, Mar 16, 2011 at 12:12 AM, mv wrote: > > SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception > caught > > setting 'domainType' on

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread Dave Newton
On Wed, Mar 16, 2011 at 12:12 AM, mv wrote: > SEVERE: ParametersInterceptor - [setParameters]: Unexpected Exception caught > setting 'domainType' on 'class com.vivek.struts2.action.DomainAction1: Error > setting expression 'domainType' with value '[Ljava.lang.String;@aea710' I'd say you're trying

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JavaNoobie87
vocation.invoke(DefaultActionInvocation.java:229) at com.opensymphon.. http://struts.1045723.n5.nabble.com/file/n3756079/d6XF5wUN.txt Action Class.txt http://struts.1045723.n5.nabble.com/file/n3756079/VtZEa16s.txt DAO.txt -- View this message in context: http://struts.1045723.n5.nabble.com/

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
cation. > > > -- > View this message in context: > http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3710504.html > Sent from the Struts - User mailing list archive at Nabble.com. > >

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JavaNoobie87
Im aware of the documentation .My question was how parameters interceptor would be of use to me , for this particular application. -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3710504.html Sent from the Struts - User

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
the same ? > > > > -- > > View this message in context: > http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3710199.html > > Sent from the Struts - User mailing list archive at Nabble.com. > > > > --

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
before) and how do I implement >> the >> ParamsInterceptor and whats the use of the same ? >> >> -- >> View this message in context: >> http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-fro

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
p://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3710199.html > Sent from the Struts - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: user-unsubscr...@s

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread Dave Newton
, JavaNoobie87 wrote: > devmode is disabled (I have never used it before) and how do I implement the > ParamsInterceptor and whats the use of the same ? > > -- > View this message in context: > http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp35

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JavaNoobie87
devmode is disabled (I have never used it before) and how do I implement the ParamsInterceptor and whats the use of the same ? -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3710199.html Sent from the Struts - User

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JOSE L MARTINEZ-AVIAL
http://struts.1045723.n5.nabble.com/file/n3690012/interfacejsp.txt JSP > > -- > View this message in context: > http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3690012.html &g

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread JavaNoobie87
/file/n3690012/DomainDAO.txt DAOClass.txt http://struts.1045723.n5.nabble.com/file/n3690012/interfacejsp.txt JSP -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3690012.html Sent from the Struts - User mailing list archi

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread jlmagc
Just to comment that Struts2 will populate the parameter from the request if you aure using the corresponding interceptor, or the default stack. --Mensaje original-- De: Yo Para: Struts Users Mailing List Responder a: Yo Asunto: Re: RE: loading Dropdown dynamically from database Enviado

Re: RE: loading Dropdown dynamically from database

2011-03-15 Thread jlmagc
the action is called and maybe we can help you. --Mensaje original-- De: JavaNoobie87 Para: user@struts.apache.org Responder a: Struts Users Mailing List Asunto: RE: RE: loading Dropdown dynamically from database Enviado: 15 Mar, 2011 03:10 Is there any way that i can set the value of one a

Re: loading Dropdown dynamically from database

2011-03-15 Thread Brian Thompson
5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3683230.html > Sent from the Struts - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For

Re: loading Dropdown dynamically from database

2011-03-15 Thread JavaNoobie87
Following changes? I didnt get what you meant. i dont see any code :S -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3683230.html Sent from the Struts - User mailing list archive at Nabble.com

Re: loading Dropdown dynamically from database

2011-03-15 Thread Brian Thompson
Try making the following changes to your Java code -- the output should give you some clues about what's going wrong. -Brian On Sun, Mar 13, 2011 at 11:52 PM, JavaNoobie87 wrote: > Hi All, > Im developing a Crud example using Struts 2 where im in the need to load > values for

RE: RE: loading Dropdown dynamically from database

2011-03-15 Thread JavaNoobie87
Is there any way that i can set the value of one attribute that i obtain from the database in this case objid as given in the loaddomaintype ()method DAO class , to dt_oid , through the jsp Please advise -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown

RE: RE: loading Dropdown dynamically from database

2011-03-14 Thread JavaNoobie87
Yes the value of dt_oid is null at that point. Im trying to figure out how i can populate it at that point . -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3672845.html Sent from the Struts - User mailing list archive at

RE: RE: loading Dropdown dynamically from database

2011-03-14 Thread Lee Clemens
I think Eclipse auto-compiles by default. What is this? DomainDAO.listDomain(dt_oid) Is dt_oid null at this point? (Add a debugging statement) Have you posted code for DomainDAO? I apologize if I've missed it. - To unsubscrib

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread JavaNoobie87
Ive cleaned the project and restarted eclipse Yet it still throws the NPE -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3669127.html Sent from the Struts - User mailing list archive at Nabble.com

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread Maurizio Cucchiara
my IDE -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3666711.html Sent from the Struts - User mailing list archive at Nabble.com. ---...

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread JavaNoobie87
Yes, very much .In fact, I copied the code directly from my IDE -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3666711.html Sent from the Struts - User mailing list archive at Nabble.com

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread Maurizio Cucchiara
e in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3664225.html > Sent from the Struts - User mailing list archive at Nabble.com. > > - > To unsubscribe, e-mail: user-unsubsc

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread JavaNoobie87
Im using the same version , as ive pasted for the DAO class. -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3664225.html Sent from the Struts - User mailing list archive at Nabble.com

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread Maurizio Cucchiara
http://struts.1045723.n5.nabble.com/file/n3663281/2vG8DAsH.txt 2vG8DAsH.txt -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3663281.html Sent from the Struts - User mailing list archive at Nabble.com. ---...

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread JavaNoobie87
.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3663281.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread Maurizio Cucchiara
; at com.opensymphony.x > http://http://pastebin.com/zKRb7va6 Action Class > http://struts.1045723.n5.nabble.com/file/n3661499/m1pbXyiJ.txtm1pbXyiJ.txt > DAO class > > -- > View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-d

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread JavaNoobie87
) at com.opensymphony.x http://http://pastebin.com/zKRb7va6 Action Class http://struts.1045723.n5.nabble.com/file/n3661499/m1pbXyiJ.txt m1pbXyiJ.txt DAO class -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3661499

Re: RE: loading Dropdown dynamically from database

2011-03-14 Thread Maurizio Cucchiara
etDtList() { > return dtList; > } > > Ive also uploaded the entire action class. > http://struts.1045723.n5.nabble.com/file/n3555946/DomainAction1.txt > DomainAction1.txt > > -- > View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from

RE: loading Dropdown dynamically from database

2011-03-14 Thread Jose Luis Martinez Avial
Can you put the chunck of your struts.xml in which the action is defined? -Original Message- From: JavaNoobie87 [mailto:vivek...@enzentech.com] Sent: Monday, March 14, 2011 2:59 AM To: user@struts.apache.org Subject: RE: loading Dropdown dynamically from database Yes there is a method

RE: loading Dropdown dynamically from database

2011-03-13 Thread JavaNoobie87
.nabble.com/file/n3555946/DomainAction1.txt DomainAction1.txt -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database-tp3555885p3555946.html Sent from the Struts - User mailing list archive at Nabble.com

RE: loading Dropdown dynamically from database

2011-03-13 Thread Jose Luis Martinez Avial
Is there a public List getDtList in the Action? You didn't put it in the code. -Original Message- From: JavaNoobie87 [mailto:vivek...@enzentech.com] Sent: Monday, March 14, 2011 12:57 AM To: user@struts.apache.org Subject: Re: loading Dropdown dynamically from database Th

Re: loading Dropdown dynamically from database

2011-03-13 Thread JavaNoobie87
The jsp corresponding to the dropdown didnt show up im attaching it to the below file. http://struts.1045723.n5.nabble.com/file/n3555886/jsp_snippet.txt jsp_snippet.txt -- View this message in context: http://struts.1045723.n5.nabble.com/loading-Dropdown-dynamically-from-database

loading Dropdown dynamically from database

2011-03-13 Thread JavaNoobie87
Hi All, Im developing a Crud example using Struts 2 where im in the need to load values for a dropdown box dynamically from a database . However im just getting a empty dropdown now . The JSP code snippet is as below. The action class and DAO for the same

loading Dropdown dynamically from database

2011-03-13 Thread JavaNoobie87
Hi All, Im developing a Crud example using Struts 2 where im in the need to load values for a dropdown box dynamically from a database . However im just getting a empty dropdown now . The JSP code snippet is as below. DomainType

AW: Dynamic dropDown List

2011-01-21 Thread mre...@4sxs.de
, but the page 3 with dynamic dropDown List is not working: Somebody know if it is possible to do that?? Thanks and regards, Matthieu -Ursprüngliche Nachricht- Von: Dave Newton [mailto:davelnew...@gmail.com] Gesendet: Donnerstag, 20. Januar 2011 19:39 An: Struts

Re: Dynamic dropDown List

2011-01-20 Thread Dave Newton
On Thu, Jan 20, 2011 at 12:10 PM, mre...@4sxs.de wrote: > And in my bean I have the variable " private String[] answers;" with getter > and setters... > You'd probably want a map, no? > But it is not working and the variable " quest.questionId" is not > replaced by the value. > Try with a

AW: Dynamic dropDown List

2011-01-20 Thread mre...@4sxs.de
value. Other ideas? Thanks and regards, Mat -Ursprüngliche Nachricht- Von: Dave Newton [mailto:davelnew...@gmail.com] Gesendet: Donnerstag, 20. Januar 2011 17:49 An: Struts Users Mailing List Betreff: Re: Dynamic dropDown List On Thu, Jan 20, 2011 at 11:08 AM, mre...@4sxs.de wrote:

Re: Dynamic dropDown List

2011-01-20 Thread Dave Newton
On Thu, Jan 20, 2011 at 11:08 AM, mre...@4sxs.de wrote: > > ? Dave

AW: Dynamic dropDown List

2011-01-20 Thread mre...@4sxs.de
Hello, I used the normal and tag and built the form by hand. But on this way, I lost all the save mechanisms from struts (if the page is reloaded all the dropdown value are lost). I didn't find a working solution... So I tried again with the struts tag, and

Re: Dynamic dropDown List

2011-01-18 Thread Chris Pratt
an 18, 2011 at 12:37 AM, mre...@4sxs.de wrote: > Hi Chris, > > Thank you for your reply, I had already try with the iterator but I had two > problem: >- I would like to put the <:property value="name"> in a dropdown > List () >- the answerList

AW: Dynamic dropDown List

2011-01-18 Thread mre...@4sxs.de
Hi Chris, Thank you for your reply, I had already try with the iterator but I had two problem: - I would like to put the <:property value="name"> in a dropdown List () - the answerList from the second iterator, depends from the current item from the first list

Re: Dynamic dropDown List

2011-01-17 Thread Chris Pratt
tly developing a Portlet for Liferay using Struts 2, it is > working good and I am often surprised with all the possibilities from > Struts2. > Unfortunately I have a blocker ! > I would like to design a form with a survey thanks to dropDown List and > would like to get all the content from

Dynamic dropDown List

2011-01-17 Thread mre...@4sxs.de
Hello, I am currently developing a Portlet for Liferay using Struts 2, it is working good and I am often surprised with all the possibilities from Struts2. Unfortunately I have a blocker ! I would like to design a form with a survey thanks to dropDown List and would like to get all the content

Dynamic dropDown List

2011-01-17 Thread mre...@4sxs.de
with a survey thanks to dropDown List and would like to get all the content from a database. In the database, there are a table question (questionId, questionName) and a table answer (answerId, answerName, questionId) and I would like to generate all the dropdown from these table... While

Dropdown box fetch values from JS.

2010-11-22 Thread Rajesh
Hi All,     Actually I have a requirement, which fetch the drop down values from JS and show it in jsp.     I have to use ajax auto completer  to achieve this.     Here the issue is, i can able to enter any value in the auto completer box and pass that value to datab

RE: creating list in dropdown using struts

2009-04-20 Thread Muthu Velappan
of the selected name. If John is selected, it will be "1|John", split that content u will get both id and name of selected option. This is crooked but works fine for small apps. Hope this helps you. ~Muthu -Original Message- From: kunla [mailto:manish.mnit1...@gmail.com] Se

creating list in dropdown using struts

2009-04-19 Thread kunla
creating list in dropdown using struts : In action class list.add(new LabelValueBean("ID","Name")); In Jsp * Select Item Select In Form : getter and setter for selectedItem. query : Now I want to retrieve ID and Name both in action class.I am able to retri

Re: How to get dropdown list value even if validation intercetor intercepts

2009-02-20 Thread sheva j
or, please notify the sender > immediately by return e-mail and securely discard this message. > > > > -Original Message- > From: sheva j [mailto:shee...@gmail.com] > Sent: Thursday, February 19, 2009 10:38 AM > To: Struts Users Mailing List > Subject: How to get

Re: How to get dropdown list value even if validation intercetor intercepts

2009-02-19 Thread Greg Lindholm
s for any other field. > > My issue is: > > When I first enter into the page, I am able to get the dropdown value, > > When I submit the page with out entering some mandatory fields, the list > box > is cleared, > > Once I enter all the mandatory fields and submit

Re: How to get dropdown list value even if validation intercetor intercepts

2009-02-19 Thread Felipe Fraga
struts is populating > the list box correctly for all the time, except when the validation error > occurs for any other field. > > My issue is: > > When I first enter into the page, I am able to get the dropdown value, > > When I submit the page with out entering some manda

RE: How to get dropdown list value even if validation intercetor intercepts

2009-02-18 Thread Seshagiri V
securely discard this message. -Original Message- From: sheva j [mailto:shee...@gmail.com] Sent: Thursday, February 19, 2009 10:38 AM To: Struts Users Mailing List Subject: How to get dropdown list value even if validation intercetor intercepts Hi, I am using struts 2.0.11. I am using tag

How to get dropdown list value even if validation intercetor intercepts

2009-02-18 Thread sheva j
Hi, I am using struts 2.0.11. I am using tag, struts is populating the list box correctly for all the time, except when the validation error occurs for any other field. My issue is: When I first enter into the page, I am able to get the dropdown value, When I submit the page with out entering

RE: Want to make dropdown () readonly without making it disabled

2008-10-17 Thread Kawczynski, David
I forgot, my corp pays for me. Sorry about that. Here are some suggestions from that page: - while loading file, create one hidden input type[field] and assign dropdown selected value to this hidden input type. When you will submit the page, extract value from this hidden filed

Re: Want to make dropdown () readonly without making it disabled

2008-10-17 Thread Mead Lai
JSP/Q_23 > > 689617.html > > > > -Original Message- > > From: arunabh [mailto:[EMAIL PROTECTED] > > Sent: Thursday, October 16, 2008 10:13 AM > > To: user@struts.apache.org > > Subject: Want to make dropdown () readonly without making it > > di

RE: Want to make dropdown () readonly without making it disabled

2008-10-16 Thread arunabh
one of the suggestions from here: > http://www.experts-exchange.com/Programming/Languages/Java/J2EE/JSP/Q_23 > 689617.html > > -Original Message- > From: arunabh [mailto:[EMAIL PROTECTED] > Sent: Thursday, October 16, 2008 10:13 AM > To: user@struts.apache.org > Subject

RE: Want to make dropdown () readonly without making it disabled

2008-10-16 Thread Kawczynski, David
dropdown () readonly without making it disabled Hi, I'm using struts2. I want to make a drop down () as a read only element. If I use disabled attribute the data would be lost upon submission. So I can't use disabled. How do I make it read only without losing the data while submissio

Want to make dropdown () readonly without making it disabled

2008-10-16 Thread arunabh
in context: http://www.nabble.com/Want-to-make-dropdown-%28%3Cs%3Aselect%3E%29-readonly-without-making-it-disabled-tp20014436p20014436.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-ma

Re: dropdown values getting lost in validation

2008-02-27 Thread Dave Newton
--- John Menke <[EMAIL PROTECTED]> wrote: > it seems my dropdown collections on my bean are not getting > repopulated when i use the validator interceptor. What is the > best practice for repopulating dropdowns? Where should this > logic be placed? It may depend on how you

dropdown values getting lost in validation

2008-02-27 Thread John Menke
it seems my dropdown collections on my bean are not getting repopulated when i use the validator interceptor. What is the best practice for repopulating dropdowns? Where should this logic be placed?

Re: Simple dropdown box population

2008-02-13 Thread Al Sutton
uot;Struts Users Mailing List" Sent: Thursday, February 14, 2008 4:59 AM Subject: Re: Simple dropdown box population Suppose you declare list of companies as: private List companies = new ArrayList(); Now you got to have getter for this property as: public List getCompanies(){ return compani

Re: Simple dropdown box population

2008-02-13 Thread Prashant Khanal
will have to override prepare method as: public void prepare() throws Exception { companies =//use data access methods or whatever you have to fetch the companies } you can use following tag to display the dropdown box: you can fetch the selected company as id declaring a property as

RE: Simple dropdown box population

2008-02-13 Thread Jack Haynes
Hi, I have a list of objects in my action. Each object in the list represents a Company. I want to populate my dropdown box, in my jsp, with company names. When a companyName is selected in the dropdown box, the companyID (which corresponds to the companyName) will be sent upon form

Re: Populating dropdown

2008-02-11 Thread Jorge Martín Cuervo
Hi, Maybe you can divide your options in categories and use several dropdowns with an ajax loading. >From the user point of view, large data in dropdowns are not very usefull. El lun, 11-02-2008 a las 06:01 -0800, Jayaveeran escribió: > Hi all, > > I am populating a dropdown in

Re: Populating dropdown

2008-02-11 Thread Roger Varley
On Monday 11 February 2008 12:01, Jayaveeran wrote: > Hi all, > > I am populating a dropdown in my jsp which has more than 10,000 elements in > it. Since the record size is very huge the time taken for the JSP to load > is very high. I am using the folowing snippet to populate the d

Re: Populating dropdown

2008-02-11 Thread Dave Newton
--- Jayaveeran <[EMAIL PROTECTED]> wrote: > I am populating a dropdown in my jsp which has more > than 10,000 elements in it. That's your first problem. > Since the record size is very huge the time taken for the JSP to load > is very high. I am using the folowing

Re: Populating dropdown

2008-02-11 Thread Rushikesh Thakkar
Better option would be: using *autocompleter* instead of select. On Feb 11, 2008 3:01 PM, Jayaveeran <[EMAIL PROTECTED]> wrote: > > Hi all, > > I am populating a dropdown in my jsp which has more than 10,000 elements > in > it. Since the record size is very huge the t

how do i auto resize the dropdown part of s:select in IE

2007-11-27 Thread Vijay SM
how do i auto resize the dropdown part of s:select in IE because its wrking file in Mozilla but in IE the dropdowns parts cuts the records I am usibf the following code : Fast help will be appreciated -- View this message in context: http://www.nabble.com/how-do-i-auto-resize-the-dropdown

Re: S2 : loading dropdown from resource bundle

2007-08-24 Thread j alex
Resending... In S1, we used to have a servlet that loads the properties into VOs on startup, and we use that in the JSP. I'm thinking if we can get rid of this step completely and directly load the properties using S2 tags. Also, can we reload the properties without restarting the app? On 8/2

S2 : loading dropdown from resource bundle

2007-08-20 Thread j alex
Hi, Can anyone please help me with loading a tag with a OGNL list that's been configured in globalMessages.properties as follows : list.states = 'AL':'Alabama', 'AK':'Alaska' In the JSP, i'm having : but this doesnt show me the list, but renders a single with the list coming up as a String

  1   2   >