Re: xml validation with indexed properties.

2017-08-02 Thread Christoph Nenning
> I'm using struts and got issue with their xml validation framework. I have > form with some indexed properties where element is just plain String. And I > need make validation for it. I tried to use indexedListProperty for this > case, but it doesn't work and as I read in

xml validation with indexed properties.

2017-08-01 Thread Constantine Schokk
I'm using struts and got issue with their xml validation framework. I have form with some indexed properties where element is just plain String. And I need make validation for it. I tried to use indexedListProperty for this case, but it doesn't work and as I read in 'Struts in A

Re: OGNL Indexed and Object Indexed Properties

2014-05-20 Thread foo bar
blic void setFieldMap(MyMap map) { > > } > > > > private Long index = 1L; > > > > public Long getIndex() { > > System.out.println(">> getIndex()"); > > return index; > > } > > > > public void setIndex(Long index) { > >

Re: OGNL Indexed and Object Indexed Properties

2014-05-20 Thread Christoph Nenning
t; setIndex(" + index + ")"); > this.index = index; > } > > On my jsp > > > > > > > Result is > > During get > > >> getIndex() > >> getIndex() > >> getFieldMap() > my...@1.get(1) > my...@2.get(1) &g

Re: OGNL Indexed and Object Indexed Properties

2014-05-20 Thread foo bar
getValue() I think since it implements a map, ".value" get interpreted as get("value"); During set >> getFieldMap() my...@1.get(1) my...@2.get(1) This I can't work with since setValue() isn't called anywhere. On Tue, May 20, 2014 at 3:02 PM, Christoph Nenni

Antwort: OGNL Indexed and Object Indexed Properties

2014-05-20 Thread Christoph Nenning
> Question: > According to OGNL ( > http://commons.apache.org/proper/commons-ognl/language-guide.html) under > heading JavaBeans Indexed Properties and OGNL Object Indexed Properties, > getFieldWithIndex(int index) should be called, but it isn't, same goes with > getFieldW

OGNL Indexed and Object Indexed Properties

2014-05-20 Thread foo bar
OGNL Indexed and Object Indexed Properties Hi, I'm wondering why this code is not working. I'm using struts 2.3.16.1 and ognl 3.0.6. In my action class I have this public String[] getFieldArray() { System.out.println(">> getFieldArray()"); return null; } public

Re: Validation of indexed properties

2010-02-26 Thread hugh111111
invalid property when i have a ArrayList in the >> in the >> > >> Any idea? >> Thanks and your help is appreciated. >> Silpa >> >> hugh11 wrote: >>> >>> I've got a problem relating to the validation of indexed properties in >>> St

Re: Validation of indexed properties

2010-02-26 Thread hugh111111
gt; > Any idea? > Thanks and your help is appreciated. > Silpa > > hugh11 wrote: >> >> I've got a problem relating to the validation of indexed properties in >> Struts 1.1 >> I get the following error message when I try to a

Re: Validation of indexed properties

2010-02-25 Thread Cielpa
Hey, I have a similar problem with DynaValidatorActionForm. It says that invalid property when i have a ArrayList in the in the > I've got a problem relating to the validation of indexed properties in > Struts 1.1 > I get the following error message when I try to access a

Validation of indexed properties

2010-02-07 Thread hugh111111
I've got a problem relating to the validation of indexed properties in Struts 1.1 I get the following error message when I try to access an ArrayList of students in my DynaValidatorForm root cause java.lang.IndexOutOfBoundsException: Index: 1, Size: 0 java.util.ArrayList.RangeCheck(Un

Re: Multiple Logic iterate tags and setting indexed properties

2009-04-16 Thread thanuja
t; class BookInfoForm extends ActionForm{ >> >>ArrayList bookLists; >> >> >> >>public BookList getBookl(int index){ >> >>return bookLists.get(index); >> >>} >> >>public void

Re: Multiple Logic iterate tags and setting indexed properties

2009-04-15 Thread Nikhil Walvekar
Lists.set(index, element); > >>} > >>public Book getBook(int index){ > >> > >>return bookLists.get(?).getBooks().get(index); > >>} > >>public void setBook(int index,Book element){ > >> > >&g

Re: Multiple Logic iterate tags and setting indexed properties

2009-04-14 Thread thanuja
getBook(int index){ >> >>return bookLists.get(?).getBooks().get(index); >>} >>public void setBook(int index,Book element){ >> >>bookLists.get(?).getBooks().set(index,element); >>} >

Re: Multiple Logic iterate tags and setting indexed properties

2009-04-13 Thread Nikhil Walvekar
oks().get(index); >} >public void setBook(int index,Book element){ > >bookLists.get(?).getBooks().set(index,element); >} > > > } > > indexId="i"> > > > /> > > > > > > > Thanks in advance,

Multiple Logic iterate tags and setting indexed properties

2009-04-13 Thread thanuja
ltiple-Logic-iterate-tags-and-setting-indexed-properties-tp23031690p23031690.html Sent from the Struts - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional

Re: Indexed properties in forms

2009-02-10 Thread Dave Newton
s1 to struts2 and I am not sure if struts2 supports indexed/mapped value properties. After reading OGNL docs I see that indexed properties are supported both with ints and objects. I guess they refer just to "red" de properties, not to set them in the action... so I am trying: Where i

Indexed properties in forms

2009-02-10 Thread Ignacio de Córdoba
Hi there, I am trying to migrate a form population module from struts1 to struts2 and I am not sure if struts2 supports indexed/mapped value properties. After reading OGNL docs I see that indexed properties are supported both with ints and objects. I guess they refer just to "red" de

Radio button default checked with Indexed properties

2008-11-14 Thread danipruebas
Hi, How can I get a radio button checked by default using indexed properties? I read in forums to do it in the reset method of the ActionForm, but dont know exactly how to do it... In my jsp I render X radio buttons, where X is the number of questions saved in the request Bean "choice

Re: Problems with Indexed Properties, Hidden Values and Logic Iterate Tag

2008-09-22 Thread cacodemon79
Anyone can help me, please? Thanks. cacodemon79 wrote: > > Hi to all. > I'm using Struts 1.3, Tomcat 6.0 and Eclipse. > > I have a problem with Indexed Properties. > I have a jsp that should save hidden values and pass it to the linked > Action. > > I show

Problems with Indexed Properties, Hidden Values and Logic Iterate Tag

2008-09-21 Thread cacodemon79
Hi to all. I'm using Struts 1.3, Tomcat 6.0 and Eclipse. I have a problem with Indexed Properties. I have a jsp that should save hidden values and pass it to the linked Action. I show you my code. JSP

RE: Struts 2 Indexed Properties

2008-07-15 Thread YAQ
0300 - 222(Ext) ll * ( + 91 ) 9731209330ll > > Tavant Technologies Inc., > > www.tavant.com > > PEOPLE :: PASSION :: EXCELLENCE > > > -Original Message- > From: YAQ [mailto:[EMAIL PROTECTED] > Sent: Monday, July 14, 2008 4:05 PM > To: user@struts.apache.org

RE: Struts 2 Indexed Properties

2008-07-14 Thread Jishnu Viswanath
:: EXCELLENCE -Original Message- From: YAQ [mailto:[EMAIL PROTECTED] Sent: Monday, July 14, 2008 4:05 PM To: user@struts.apache.org Subject: Struts 2 Indexed Properties Hi, I'm having problem with Struts2 and indexed properties. The list in my action is not being updated. My JSP is some

Struts 2 Indexed Properties

2008-07-14 Thread YAQ
Hi, I'm having problem with Struts2 and indexed properties. The list in my action is not being updated. My JSP is something like: ].key" name="questionnaireInputVO.coverTypesList[].key" value=""

Struts 2 Indexed Properties

2008-07-14 Thread YAQ
Hi, I'm having problem with Struts2 and indexed properties. The list in my action is not being updated. My JSP is something like: ].key" name="questionnaireInputVO.coverTypesList[].key" value=""

Re: [S2] Indexed properties, Type Conversion and Validation

2008-01-07 Thread jimkski
sanctioned way for getting at the KeyParameter information based on existing APIs? -- View this message in context: http://www.nabble.com/-S2--Indexed-properties%2C-Type-Conversion-and-Validation-tp14654165p14676430.html Sent

[S2] Indexed properties, Type Conversion and Validation

2008-01-06 Thread jimkski
ion file defined for the action with the visitor validator defined within it: true Has anyone successfully got declarative validation working with indexed properties? Can anyone suggest what I might be doing wrong here? -- View this message in cont

Re: S1 Indexed Properties question

2007-10-19 Thread Fitzwilliam . Aaron
In that case, i think you need mapped properties instead of indexed properties. read this: http://struts.apache.org/1.2.9/faqs/indexedprops.html Mapped properties and javascript need to cooperate together in order to solve the problem. Wish this would help. On 10/20/07, Pavel Sapozhnikov

S1 Indexed Properties question

2007-10-19 Thread Pavel Sapozhnikov
Hi I have a question so I need to have a form that will be able to create dynamic text boxes. I heard this can be done using indexed properties in struts 1. Basically what I need is like a button that will say Add A Person then when u click on that button two text boxes will come up in one row

Re: [S2] Indexed properties

2007-10-11 Thread Gabriel Belingueres
You are not the only one that thinks so. There are some OGNL expression issues involved that are confusing too: in the s:param: won't work (the same expression as the textfield) But s:param evaluates the expression in a different way when placing it as a child: referidos[%{#stat

[S2] Indexed properties

2007-10-10 Thread Jake Robb
Okay, so I figured out the right syntax for the question I posted yesterday (subject: List properties in Struts 2). Let's say I have a List of key-value pairs and I want to render the entire list to the user as a form. In Struts 1.x, here's the JSP snippet: But in S2, I have to

RE: Iterate and write indexed properties in place using logic:iterate

2007-03-26 Thread Karr, David
-brainer" list of dependencies. Without it, your code will be messier and harder to maintain. > -Original Message- > From: Francesco Pretto [mailto:[EMAIL PROTECTED] > Sent: Sunday, March 25, 2007 7:53 AM > To: user@struts.apache.org > Subject: Iterate and write indexed proper

Re: Iterate and write indexed properties in place using logic:iterate

2007-03-25 Thread Francesco Pretto
Hey, nested tags should be actually cited, at least in the 1.3.5 faqs at http://struts.apache.org/1.3.5/struts-taglib/indexedprops.html ! However, found a very simple solution that works perfectly! Thanks with nabble.com and it's powerful search function :-) Bye, Francesco

Iterate and write indexed properties in place using logic:iterate

2007-03-25 Thread Francesco Pretto
Hi! What i'm trying to obtain is somewhat described in the faqs here, http://struts.apache.org/1.2.9/faqs/indexedprops.html , using the struts EL extension. This is the problem: i have an ArrayList of objects, called "list", all of type "Type". I want to individually write on the field "field1" o

RE: Indexed Properties with nested Tags

2007-01-29 Thread Raghu
behind. Feel free to write for any doubt.. Raghuveer -Original Message- From: nagesh.kumar [mailto:[EMAIL PROTECTED] Sent: Monday, January 29, 2007 2:57 PM To: [EMAIL PROTECTED] Subject: RE: Indexed Properties with nested Tags Hi raghu, Iam also using the same issue .. Ho u r

RE: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS on REQUEST scope!" TRUE or NOT TRUE?

2006-12-08 Thread Strachan, Paul
tribute as "indexedBean" - but if there was struts could instantiate it and populate the property (sort of how LazyValidatorForm works). Paul From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Sat 9/12/2006 3:52 AM To: Struts Users Mailing L

Re: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS on REQUEST scope!" TRUE or NOT TRUE?

2006-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, Strachan, Paul wrote: >> Have you tried calling yourFormBean.get("yourArrayList") and >> checking to see what it inside of it? > > not sure what you mean - the action method is never called as the > RequestProcessor cant populate the DynaForm f

RE: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS on REQUEST scope!" TRUE or NOT TRUE?

2006-12-08 Thread Strachan, Paul
2006 3:24 AM To: Struts Users Mailing List Subject: Re: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS on REQUEST scope!" TRUE or NOT TRUE? -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, Strachan, Paul wrote: > Chris, In my DynForm I'm actually using a jav

Re: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS on REQUEST scope!" TRUE or NOT TRUE?

2006-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, Strachan, Paul wrote: > Chris, In my DynForm I'm actually using a java.util.ArrayList > (contains my bean objects). So, you have type="java.util.ArrayList" in your form bean definition? Are you sure that Struts knows how to handle that? It migh

RE: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS on REQUEST scope!" TRUE or NOT TRUE?

2006-12-08 Thread Strachan, Paul
there a recommended solution? From: Strachan, Paul [mailto:[EMAIL PROTECTED] Sent: Sat 9/12/2006 2:54 AM To: Struts Users Mailing List Subject: RE: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS on REQUEST scope!" TRUE or NOT TRUE? Ch

RE: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS on REQUEST scope!" TRUE or NOT TRUE?

2006-12-08 Thread Strachan, Paul
variable number of http request parameters? Thanks, Paul From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Sat 9/12/2006 1:27 AM To: Struts Users Mailing List Subject: Re: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS on REQ

Re: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS on REQUEST scope!" TRUE or NOT TRUE?

2006-12-08 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Paul, Strachan, Paul wrote: > A request scoped "out of the box" DynaValidatorForm is also unable to > handle indexed properties e.g. throws IndexOutOfBoundsException in > DynaActionForm.get(string, int) I've never used get

RE: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS on REQUEST scope!" TRUE or NOT TRUE?

2006-12-08 Thread Strachan, Paul
Hi, I've only recently started putting my forms on request scope, and encountered this issue with DynaValidatorForm. A request scoped "out of the box" DynaValidatorForm is also unable to handle indexed properties e.g. throws IndexOutOfBoundsException in DynaActionForm.get(s

Re: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS on REQUEST scope!" TRUE or NOT TRUE?

2006-12-08 Thread Martin Gainty
I did'nt see your code in your posting but if you're looking for an example for using Indexed Properties please reference http://struts.apache.org/1.x/struts-taglib/indexedprops.html M- --- This e-mail message

FW: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS on REQUEST scope!" TRUE or NOT TRUE?

2006-12-08 Thread Urso Wieske
List' Onderwerp: Struts1: CHALLENGE "Indexed Properties can not be used with FORMS on REQUEST scope!" TRUE or NOT TRUE? Hi folks, Very low reactions on my posting about indexed properties, form, beanutils and request scope. I therefore impose the following CHALLENGE STATEMENT: "Index

Re: Struts1: Indexed Properties, BeanUtils populate, Form on REQUEST scope

2006-12-07 Thread Niall Pemberton
TECTED] Verzonden: donderdag 7 december 2006 14:16 Aan: Struts Users Mailing List Onderwerp: Re: Struts1: Indexed Properties, BeanUtils populate, Form on REQUEST scope On 12/7/06, Urso Wieske <[EMAIL PROTECTED]> wrote: > Hi Niall, > > Thanks for the reply! Apparantly this problem

RE: Struts1: Indexed Properties, BeanUtils populate, Form on REQUEST scope

2006-12-07 Thread Urso Wieske
Guys, Girls, Help. -Oorspronkelijk bericht- Van: Urso Wieske Verzonden: donderdag 7 december 2006 14:29 Aan: Struts Users Mailing List Onderwerp: RE: Struts1: Indexed Properties, BeanUtils populate, Form on REQUEST scope I completely agree with you about how HTTP handles

RE: Struts1: Indexed Properties, BeanUtils populate, Form on REQUEST scope

2006-12-07 Thread Urso Wieske
-Oorspronkelijk bericht- Van: Niall Pemberton [mailto:[EMAIL PROTECTED] Verzonden: donderdag 7 december 2006 14:16 Aan: Struts Users Mailing List Onderwerp: Re: Struts1: Indexed Properties, BeanUtils populate, Form on REQUEST scope On 12/7/06, Urso Wieske <[EMAIL PROTECTED]> wrote: > Hi

Re: Struts1: Indexed Properties, BeanUtils populate, Form on REQUEST scope

2006-12-07 Thread Niall Pemberton
ttp://wiki.apache.org/struts/StrutsCatalogLazyList Niall Any hints? Kind regards, Urso Wieske -Oorspronkelijk bericht- Van: Niall Pemberton [mailto:[EMAIL PROTECTED] Verzonden: donderdag 7 december 2006 9:40 Aan: Struts Users Mailing List Onderwerp: Re: Struts1: Indexed Propertie

Struts1: CHALLENGE "Indexed Properties can not be used with FORMS on REQUEST scope!" TRUE or NOT TRUE?

2006-12-07 Thread Urso Wieske
Hi folks, Very low reactions on my posting about indexed properties, form, beanutils and request scope. I therefore impose the following CHALLENGE STATEMENT: "Indexed Properties can not be used with FORMS on REQUEST scope!" I am curious to know who is able to support or reject this

RE: Struts1: Indexed Properties, BeanUtils populate, Form on REQUEST scope

2006-12-07 Thread Urso Wieske
---Oorspronkelijk bericht- Van: Niall Pemberton [mailto:[EMAIL PROTECTED] Verzonden: donderdag 7 december 2006 9:40 Aan: Struts Users Mailing List Onderwerp: Re: Struts1: Indexed Properties, BeanUtils populate, Form on REQUEST scope So what BeanUtils exception are you getting? Your jsp should be

Re: Struts1: Indexed Properties, BeanUtils populate, Form on REQUEST scope

2006-12-07 Thread Niall Pemberton
ECTED]> wrote: Hi folks, I have problem with the scenario "Indexed Properties, BeanUtils and Form on REQUEST scope". When I select a a value from (1 or 2) from the dropdownlist and submit the form, I get an exception from BeanUtils.populate method about some getter which can be

RE: Struts1: Indexed Properties, BeanUtils populate, Form on REQUEST scope

2006-12-06 Thread Urso Wieske
Aan: user@struts.apache.org Onderwerp: Struts1: Indexed Properties, BeanUtils populate, Form on REQUEST scope Hi folks, I have problem with the scenario "Indexed Properties, BeanUtils and Form on REQUEST scope". When I select a a value from (1 or 2) from the dropdownlist and submit

Struts1: Indexed Properties, BeanUtils populate, Form on REQUEST scope

2006-12-06 Thread Urso Wieske
Hi folks, I have problem with the scenario "Indexed Properties, BeanUtils and Form on REQUEST scope". When I select a a value from (1 or 2) from the dropdownlist and submit the form, I get an exception from BeanUtils.populate method about some getter which can be found!?? IF change

Re: Indexed Properties

2006-11-24 Thread WongTseng
Just think If the struts dosen't set these indexed properties from the lower bound to the upper bound in a ascending order, an outofbound exception will occur. -- Wong Tseng 王曾

Re: Indexed Properties

2006-11-24 Thread WongTseng
I think it's the getResultsPage method that causes your problem. If the results is none, and the parameter index equels any value that is large than 0, an OutOfBound Exception will occur. 2006/11/18, Adam K <[EMAIL PROTECTED]>: public Product getResultsPage(int index) { if(this

Re: Indexed Properties

2006-11-23 Thread Adam K
Just thought that I would say that the following will be incredibly helpful to anyone working on indexed properties in the future: (It has a complete working example) http://saloon.javaranch.com/cgi-bin/ubb/ultimatebb.cgi?ubb=get_topic&f=58&t=009880 thanks to everyone for all of the hel

Re: Indexed Properties

2006-11-23 Thread Puneet Lakhina
ceeded. > > Nested Tags is the real power of Struts... > > > Regards > Raghu > > > > > > -Original Message- > From: Adam K [mailto:[EMAIL PROTECTED] > Sent: Saturday, November 18, 2006 2:55 AM > To: Struts Users Mailing List > Subject: Re: Indexed P

RE: Indexed Properties with nested Tags

2006-11-22 Thread Raghu
rsday, November 23, 2006 9:47 AM To: 'Adam K' Cc: 'Struts Users Mailing List' Subject: RE: Indexed Properties with nested Tags I am 100% sure. I have extensively used these futures and successful. Using Nested Tags will decrease the Lines of Code,Easy Maintenance..

RE: Indexed Properties with nested Tags

2006-11-22 Thread Raghu
P is submitted you will have latest data in arlResults collection in actionform. Regards, Raghu -Original Message- From: Adam K [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 22, 2006 10:16 PM To: [EMAIL PROTECTED] Cc: Struts Users Mailing List Subject: Re: Indexed Prope

Re: Indexed Properties with nested Tags

2006-11-22 Thread Adam K
Alright, I guess I should have thought that. I was worried that my fundamental understanding for this was wrong. For debugging I am putting my information into a String which is not being iterated (it for some reason always works, but those that are iterated over don't for some reason. I have no

RE: Indexed Properties with nested Tags

2006-11-22 Thread Dave Newton
From: Adam K [mailto:[EMAIL PROTECTED] > What is the purpose of the System.out.println that you have at the end > of your action ? Debugging? Dave - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

Re: Indexed Properties with nested Tags

2006-11-22 Thread Adam K
quot; and "lazyList". I've done it with both ActionForm and > > > DynaActionForm. > > > > > > Hubert > > > > > > [1] http://struts.apache.org/mail.html > > > > > > On 11/17/06, Adam K <[EMAIL PROTECTED]> wr

Re: Indexed Properties with nested Tags

2006-11-22 Thread Adam K
ystem.out.println("prodSelectionForm="+prodSelectionForm); Regards Raghu -Original Message- *From:* Adam K [mailto:[EMAIL PROTECTED] *Sent:* Wednesday, November 22, 2006 3:06 AM *To:* [EMAIL PROTECTED] *Cc:* Struts Users Mailing List *Subject:* Re: Indexed Properties If you might

RE: Indexed Properties with nested Tags

2006-11-21 Thread Raghuveer
Regards Raghu -Original Message- From: Adam K [mailto:[EMAIL PROTECTED] Sent: Wednesday, November 22, 2006 3:06 AM To: [EMAIL PROTECTED] Cc: Struts Users Mailing List Subject: Re: Indexed Properties If you might be able to provide a sample I would be very greatful. As it stan

RE: Indexed Properties

2006-11-21 Thread Raghuveer
ted Tags is the real power of Struts... Regards Raghu -Original Message- From: Adam K [mailto:[EMAIL PROTECTED] Sent: Saturday, November 18, 2006 2:55 AM To: Struts Users Mailing List Subject: Re: Indexed Properties Thanks for the suggestion I'll keep trying things and see what I

Re: Indexed Properties

2006-11-21 Thread Adam K
[mailto:[EMAIL PROTECTED] Sent: Saturday, November 18, 2006 2:55 AM To: Struts Users Mailing List Subject: Re: Indexed Properties Thanks for the suggestion I'll keep trying things and see what I can get from it. On 11/17/06, Hubert Rabago <[EMAIL PROTECTED]> wrote: > > Lots of peopl

Re: Indexed Properties

2006-11-17 Thread Adam K
a valid collection. (Throw in the setResultsPage() that > > accepts a collection as well.) > > > > Hubert > > > > On 11/17/06, Adam K <[EMAIL PROTECTED]> wrote: > > > This has been driving me nuts for the past little bit. > > > I have a page t

Re: Indexed Properties

2006-11-17 Thread Hubert Rabago
; Try adding a getResultsPage() that doesn't take params and always > returns a valid collection. (Throw in the setResultsPage() that > accepts a collection as well.) > > Hubert > > On 11/17/06, Adam K <[EMAIL PROTECTED]> wrote: > > This has been driving me nuts f

Re: Indexed Properties

2006-11-17 Thread Adam K
> I have a page that is populated using indexed properties. The prepopulation > works fine, and I get the results as I would expect them, but trying to > submit the form I get an index out of bounds exception. I know that it is > being caused because the page doesn't have

Re: Indexed Properties

2006-11-17 Thread Hubert Rabago
have a page that is populated using indexed properties. The prepopulation works fine, and I get the results as I would expect them, but trying to submit the form I get an index out of bounds exception. I know that it is being caused because the page doesn't have the arrayList to use in the in

RE: Indexed Properties

2006-11-17 Thread Juan Espinosa
Hi to all i have two questions... First question... is possible to remove spring dependecies in struts2 or spring stuff (jars, applicationContext.xml and ContextLoadListener) are neccesary to run struts2 Second question or advise... i want to give a try to ajax, i want some parts of me site to

Indexed Properties

2006-11-17 Thread Adam K
This has been driving me nuts for the past little bit. I have a page that is populated using indexed properties. The prepopulation works fine, and I get the results as I would expect them, but trying to submit the form I get an index out of bounds exception. I know that it is being caused

multi level indexed properties

2006-11-06 Thread Sébastien LABEY
Hi all, I need to display and submit a form with 3 levels of indexed properties. The 3 indexed properties are not constant in size. I have a form with a MyObject1[] array with getters and setters for indexed properties. MyObject1 object has a List of MyObject2 objects and MyObject2 has a List of

Re: DynaActionForm indexed properties

2006-11-03 Thread Niall Pemberton
On 11/3/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote: On 11/3/06, Niall Pemberton <[EMAIL PROTECTED]> wrote: > > On 11/2/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote: > > Hi, > > This is the first time I am trying to use indexed properties with > > DynaA

Re: DynaActionForm indexed properties

2006-11-03 Thread Puneet Lakhina
On 11/3/06, Niall Pemberton <[EMAIL PROTECTED]> wrote: On 11/2/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote: > Hi, > This is the first time I am trying to use indexed properties with > DynaActionForm. Now the number of fields that I will have is not certain. So > d

Re: DynaActionForm indexed properties

2006-11-02 Thread Niall Pemberton
On 11/2/06, Puneet Lakhina <[EMAIL PROTECTED]> wrote: Hi, This is the first time I am trying to use indexed properties with DynaActionForm. Now the number of fields that I will have is not certain. So does that mean I cant use DynaActionForm. And i don't have normal strings in my lis

Re: DynaActionForm indexed properties

2006-11-02 Thread Ed Griebel
irst time I am trying to use indexed properties with DynaActionForm. Now the number of fields that I will have is not certain. So does that mean I cant use DynaActionForm. And i don't have normal strings in my list. I have a custom object. so what i have currently is something like this

DynaActionForm indexed properties

2006-11-02 Thread Puneet Lakhina
Hi, This is the first time I am trying to use indexed properties with DynaActionForm. Now the number of fields that I will have is not certain. So does that mean I cant use DynaActionForm. And i don't have normal strings in my list. I have a custom object. so what i have currently is some

Re: Indexed Properties

2006-10-23 Thread Niall Pemberton
EMAIL PROTECTED]> wrote: Hi, I have some objects in an Array List which I want to fetch using indexed properties. So basically in my array list I have objects of type Product, which has properties like name,number etc. with appropriate getter and setter methods. What I am unable to figure

Indexed Properties

2006-10-23 Thread Puneet Lakhina
Hi, I have some objects in an Array List which I want to fetch using indexed properties. So basically in my array list I have objects of type Product, which has properties like name,number etc. with appropriate getter and setter methods. What I am unable to figure out is the following. The

Re: Indexed Properties in Struts

2006-10-12 Thread Aftab Vhora
Hi Yadav, have a look at below link u'll find something of ur intrest ... http://www.developer.com/java/ejb/article.php/2233591 http://www.developer.com/java/ejb/article.php/10931_3321521_1 Thanks & Regards, Aftab Vhora Barun Kumar Yadav wrote: Hi I'm using Indexed Properti

Indexed Properties in Struts

2006-10-12 Thread Barun Kumar Yadav
Hi I'm using Indexed Properties with Struts and am attempting to over-ride the getter method of a List while trying to retrieve data. I have an example where I use the tag to retrieve contents of a List And this code effectively calls the Getter function shown below public O

DynaForm and Indexed properties

2006-10-04 Thread Strachan, Paul
Hi All, I'm already familiar with the basic process of using DynaForm with String properties (to capture the HTTP request params) and then copying the DynaForm values to a business object. Now I want to use indexed properties (eg multi-row edit screen). So my DynaForm looks some

Indexed Properties in validation Framework help?

2006-09-25 Thread Mallik
HI friends, i have form which need indexed properties technique...(by net surfing i came to know) i need a full length tutorial on this topic ,or some code snipats help me please ur's Mallik -- View this message in context: http://www.nabble.com/Indexed-Properties-in-validation-Fram

RE: Indexed Properties. Maintaining Order

2006-09-21 Thread Strachan, Paul
nother row I do a submit (no validate) and simply add an empty object into my List and forward back to the page. On 9/22/06, Puneet Lakhina [mailto:[EMAIL PROTECTED] wrote: > > Could you please give an example of how you manage lists with indexed > properties, that would reall

Re: Indexed Properties. Maintaining Order

2006-09-21 Thread Puneet Lakhina
On 9/21/06, Niall Pemberton <[EMAIL PROTECTED]> wrote: As you found out there is no way of knowing the order the browser/client will submit request parameters, so if you want to use indexed properties in this way you need to "grow" the list to accomodate the size of the indexe

Re: Indexed Properties. Maintaining Order

2006-09-21 Thread Puneet Lakhina
On 9/21/06, Strachan, Paul <[EMAIL PROTECTED]> wrote: A List is an ordered collection so it doesnt make sense that the order changes. Also, depending on which Map implementation you use ordering may not be guaranteed. I would basically have the index in case of indexed properties as

RE: Indexed Properties. Maintaining Order

2006-09-21 Thread Strachan, Paul
A List is an ordered collection so it doesnt make sense that the order changes. Also, depending on which Map implementation you use ordering may not be guaranteed. I frequently use indexed properties with List and have not experienced this problem. You may need to check the generated html

Re: Indexed Properties. Maintaining Order

2006-09-21 Thread Niall Pemberton
As you found out there is no way of knowing the order the browser/client will submit request parameters, so if you want to use indexed properties in this way you need to "grow" the list to accomodate the size of the indexed property being set. So you could do something like the

Indexed Properties. Maintaining Order

2006-09-21 Thread Puneet Lakhina
Hi, I have a no. of fields in a form arranged in a table of rows. I am using indexed properties for these fields. The number of these fields isn't known to me at the time of page loading for which I have used some DHTML to properly add the fields. And all the values are getting submitted. N

Re: exception java.lang.IllegalArgumentException: No bean specified while using indexed properties

2006-08-25 Thread Puneet Lakhina
On 8/25/06, krishan rathi <[EMAIL PROTECTED]> wrote: Hi all I am getting following exception java.lang.IllegalArgumentException: No bean specified while using indexed properties in struts. MyForm Bean is public class ReportItemForm extends ActionForm { FormItem [] formIte

exception java.lang.IllegalArgumentException: No bean specified while using indexed properties

2006-08-25 Thread krishan rathi
Hi all I am getting following exception java.lang.IllegalArgumentException: No bean specified while using indexed properties in struts. MyForm Bean is public class ReportItemForm extends ActionForm { FormItem [] formItem=null; public void setItem(int index, FormItem formItem

Getiing java.lang.IllegalArgumentException: No bean specified while using indexed properties in struts

2006-08-23 Thread krishan rathi
Hi all i am getting following exception java.lang.IllegalArgumentException: No bean specified while using indexed properties in struts. MyForm Bean is public class ReportItemForm extends ActionForm { FormItem [] formItem=null; public void setItem(int index

Struts - dynaforms and indexed properties

2006-07-25 Thread Gallagher, Damien
Hello I have a struts dynaform set up that takes an array of expense beans as a parameter When I submit 1 expense bean all works well but when I submit more than 1 expense bean the system returns a BeanUtils.populate error I am initializing my bean in the action. Any suggestions out there?

having problem Using Indexed properties with Multi select inside logic iterate

2006-06-27 Thread krishan rathi
) { selectedBooks.put(key,value); } but which is throwing an illegelargumenttype exception. Can anybody suggest how should i use indexed properties to tackle a group of multi select boxes. please help. thanks in advance. krishan

having problem Using Indexed properties with Multi select inside logic iterate

2006-06-27 Thread Krishan Rathi
Hi i am trying to use a multi select box in logic iterate in this way in the form bean i have following code. private Map selectedBooks; public Object getBookMapped(String index) { return selectedBooks.get(key); } public void setBookMapped(Stri

RE: newbie question on indexed properties and validation

2006-06-23 Thread Givler, Eric
Thanks, this is very much appreciated. Is this something that is going to make it into a Struts Base release? -Original Message- From: Niall Pemberton [mailto:[EMAIL PROTECTED] Sent: Thursday, June 22, 2006 11:15 AM To: Struts Users Mailing List Subject: Re: newbie question on indexed

Re: newbie question on indexed properties and validation

2006-06-22 Thread Niall Pemberton
You can do this: http://www.niallp.pwp.blueyonder.co.uk/strutsvalidatorextends.html Niall On 6/15/06, Givler, Eric <[EMAIL PROTECTED]> wrote: I was following this article (MS Powerpoint presentation by James Turner) here: http://www.strutskickstart.com/IndexedPropertiesandValidation.ppt When,

RE: newbie question on indexed properties and validation

2006-06-16 Thread Givler, Eric
lto:[EMAIL PROTECTED] Sent: Friday, June 16, 2006 8:32 AM To: Struts Users Mailing List Subject: RE: newbie question on indexed properties and validation I can provide a zip of the workspace I was doing for this if that would help. I just can't seem to get the multiple errors. Can th

  1   2   3   >