RE: Iterator tag and enumeration

2011-05-13 Thread Matthieu.Marc
Great, it nearly solve my problem. Thanks, Matthieu MARC -Message d'origine- De : Biesbrock, Kevin [mailto:biesbrock.ke...@aoins.com] Envoyé : vendredi 13 mai 2011 16:18 À : Struts Users Mailing List Objet : RE: Iterator tag and enumeration This peaked my interest so a colleag

RE: [OT] Re: Iterator tag and enumeration

2011-05-13 Thread Biesbrock, Kevin
Touché. I've only been speaking English my whole life... Beez > -Original Message- > From: Dave Newton [mailto:davelnew...@gmail.com] > Sent: Friday, May 13, 2011 10:20 AM > To: Struts Users Mailing List > Subject: [OT] Re: Iterator tag and enumeration > &g

[OT] Re: Iterator tag and enumeration

2011-05-13 Thread Dave Newton
On Fri, May 13, 2011 at 10:17 AM, Biesbrock, Kevin wrote: > This peaked my interest [...] Piqued, piqued. Dave - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache

RE: Iterator tag and enumeration

2011-05-13 Thread Biesbrock, Kevin
-Original Message- > From: Steven Yang [mailto:kenshin...@gmail.com] > Sent: Thursday, May 12, 2011 9:03 PM > To: Struts Users Mailing List > Subject: Re: Iterator tag and enumeration > > I dont quite get what exactly you want > > if your getListLocalization has all t

RE: Iterator tag and enumeration

2011-05-12 Thread Matthieu.Marc
getListLocalization() is a method of my Enum, not of my Action class. Matthieu MARC -Message d'origine- De : Steven Yang [mailto:kenshin...@gmail.com] Envoyé : vendredi 13 mai 2011 03:03 À : Struts Users Mailing List Objet : Re: Iterator tag and enumeration I dont quite get

Re: Iterator tag and enumeration

2011-05-12 Thread Steven Yang
ieu MARC > > > -Message d'origine- > De : Steven Yang [mailto:kenshin...@gmail.com] > Envoyé : jeudi 12 mai 2011 12:34 > À : Struts Users Mailing List > Objet : Re: Iterator tag and enumeration > > try > > > On Thu, May 12, 2011 at 3:3

RE: Iterator tag and enumeration

2011-05-12 Thread Matthieu.Marc
igine- De : Steven Yang [mailto:kenshin...@gmail.com] Envoyé : jeudi 12 mai 2011 12:34 À : Struts Users Mailing List Objet : Re: Iterator tag and enumeration try On Thu, May 12, 2011 at 3:33 PM, wrote: > Hi, > > I have an enumeration 'Localization' : > > public enum

Re: Iterator tag and enumeration

2011-05-12 Thread Steven Yang
try On Thu, May 12, 2011 at 3:33 PM, wrote: > Hi, > > I have an enumeration 'Localization' : > > public enum Localization { > >AIX("Aix-en-provence"), >ANGERS("Angers") ; > } > > And I want to put a form select in a jsp using s:select tag with all > Localization items, like : >

Re: Iterator: field errors.

2010-12-12 Thread Li Ying
>> Since after validation fails the iterator grid also empty I think, you need separate the field names by list index -- since your data model is a list--, to indicate which [textfield] should be captured by which POJO element. And also, you need separate the field name of validation error, t

Re: Iterator: field errors.

2010-12-10 Thread Satheesh Kannan A B
Return false; } } Thanks and Regards, Satheesh Kannan A B -Original Message- From: Li Ying [mailto:liying.cn.2...@gmail.com] Sent: Friday, December 10, 2010 5:35 AM To: Struts Users Mailing List Subject: Re: Iterator: field errors. What is the data type of objectList?

RE: Iterator: field errors.

2010-12-09 Thread Satheesh Kannan A B
Return false; } } Thanks and Regards, Satheesh Kannan A B -Original Message- From: Li Ying [mailto:liying.cn.2...@gmail.com] Sent: Friday, December 10, 2010 5:35 AM To: Struts Users Mailing List Subject: Re: Iterator: field errors. What is the data type of objectList?

Re: Iterator: field errors.

2010-12-09 Thread Li Ying
What is the data type of objectList? How did you execute the validation, and how did you add the field error? - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.o

Re: iterator and radio struts2

2009-10-13 Thread Odelya YomTov
hi! the problem was that i didn't have a get method for id and content. Now my question is: when i run the page, the source code writes the radio buttons like this: what i need it to save the answer for each question. how can i do it? what variable do i have to declare in the action class and h

RE: iterator and radio struts2

2009-10-13 Thread Lee Clemens
It looks like you may be able to nest tags to achieve this. --Lee -Original Message- From: Odelya YomTov [mailto:ode...@jpost.com] Sent: Tuesday, October 13, 2009 6:09 PM To: 'Struts Users Mailing List' Subject: iterator and radio struts2 Hi! I ha

Re: iterator tag: how to interpret the property value which are html

2009-10-06 Thread samsun
lue stack, that's expected.  If you want java >>> in bold tags, put it in bold tags. >>> >>> Regarding the normal JSP behavior you cited: >>> that's a mystery.  Scripting variables don't >>> magically just decide to surround themselves >&g

Re: iterator tag: how to interpret the property value which are html

2009-10-06 Thread Musachy Barroso
s a mystery.  Scripting variables don't >> magically just decide to surround themselves >> with bold tags.  ;) >> >> >>> -Original Message- >>> From: samsun [mailto:greg.zh...@barcap.com] >>> Sent: Tuesday, October 06, 2009 12:26

RE: iterator tag: how to interpret the property value which are html

2009-10-06 Thread samsun
t; > Regarding the normal JSP behavior you cited: > that's a mystery. Scripting variables don't > magically just decide to surround themselves > with bold tags. ;) > > >> -Original Message- >> From: samsun [mailto:greg.zh...@barcap.com] >&

RE: iterator tag: how to interpret the property value which are html

2009-10-06 Thread Kawczynski, David
magically just decide to surround themselves with bold tags. ;) > -Original Message- > From: samsun [mailto:greg.zh...@barcap.com] > Sent: Tuesday, October 06, 2009 12:26 PM > To: user@struts.apache.org > Subject: Re: iterator tag: how to interpret the property >

Re: iterator tag: how to interpret the property value which are html

2009-10-06 Thread samsun
i got < b > java < / b> back samsun wrote: > > I would like put my question simply like this: > > in jsp, > > <%! String test="java"; %> > <%=test%> > i got bold Java > > try to have same thing from struts2 > > > i got > java back,which is not what i want > > > > > > > >

Re: iterator tag: how to interpret the property value which are html

2009-10-06 Thread Musachy Barroso
hint: check the documentation of the "property" tag On Tue, Oct 6, 2009 at 7:12 AM, samsun wrote: > > I have to iterate thru a list of strings, some of the string element include > html tag > like Copmany Names:   it print out litterlly like this >  Copmany Names:, not the bolded word Comp

Re: iterator tag: how to interpret the property value which are html

2009-10-06 Thread samsun
I would like put my question simply like this: in jsp, <%! String test="java"; %> <%=test%> i got bold Java try to have same thing from struts2 i got java back,which is not what i want samsun wrote: > > > > samsun wrote: >> >> I have to iterate thru a list of string

Re: iterator tag: how to interpret the property value which are html

2009-10-06 Thread samsun
samsun wrote: > > I have to iterate thru a list of strings, some of the string element > include html tag > like Copmany Names: it print out litterlly like this > Copmany Names:, not the bolded word Company Names: > > here is what the iterate tag look like > > > >

Re: iterator tag: how to set iterate step?

2009-09-24 Thread Dale Newfield
Tommy Pham wrote: arrays {1,2,3,4,5} 1 2 3 4 5 What about That s:if should also make sure you're not on the last iteration, otherwise you'll end up with an empty row. -Dale - To unsu

Re: iterator tag: how to set iterate step?

2009-09-24 Thread Tommy Pham
- Original Message > From: Musachy Barroso > To: Struts Users Mailing List > Sent: Thursday, September 24, 2009 10:19:55 AM > Subject: Re: iterator tag: how to set iterate step? > > no way i know of in 2.1.6. There will be one in the next release > > mus

Re: iterator tag: how to set iterate step?

2009-09-24 Thread Musachy Barroso
no way i know of in 2.1.6. There will be one in the next release musachy On Thu, Sep 24, 2009 at 9:28 AM, samsun wrote: > > I have array to iterate through using iterator tag, for each loop i want to > print out pair of array's element > the last row could have only one element if the array leng

Re: Iterator cannot populate param tag inside URL

2009-09-20 Thread Paweł Wielgus
Hi David, You are nesting tags, which is not possible/permitted. Try to do something like < s:param name="name" value="value"/> inside an iterator. Should work. Best greetings, Pawel Wielgus. 2009/9/20, David Rocks : > > Here is an interesting one, I have a collection of params I wish to inject

Re: Iterator index: how to index html elements? count works, but status doesn't

2008-07-28 Thread Jim Kiley
The version of IteratorStatus found in version 2.0.11 of the docs [1] has a getIndex() method; has it subsequently been vaporized? [1] http://struts.apache.org/2.0.11/struts2-core/apidocs/index.html?org/apache/struts2/views/jsp/IteratorStatus.html jk On Mon, Jul 28, 2008 at 4:28 AM, holod <[EMAI

Re: Iterator index: how to index html elements?

2008-07-28 Thread Dave Newton
--- On Mon, 7/28/08, holod <[EMAIL PROTECTED]> wrote: > "> > Some content > > > Is there any issues with status of iterator? None that I'm aware of; I use it all the time. I'd strongly recommend not naming your status variable "document", since it's not a document. It's a status. It wouldn't

Re: Iterator index: how to index html elements? count works, but status doesn't

2008-07-28 Thread holod
"> works fine. It just starts from 1, not from 0 Why? I can't understand what has happened to index. count is not so bad, thanks for you help and cooperation! -- View this message in context: http://www.nabble.com/Problem-accessing-iterated-object-%28%3Cs%3Aiterator%29-tp18614028p18686074.html

Re: Iterator index: how to index html elements?

2008-07-28 Thread holod
That's not valid JSP; you can't nest tags like that. > Any suggestions, please, can't understand mistake. That's not what is for; it's for parameterizing other tags. ">bar You could use to create the ID if you don't want to create it on-the-fly. "> Some content When I inspect source of g

Re: Iterator index: how to index html elements?

2008-07-28 Thread Dave Newton
--- On Mon, 7/28/08, holod <[EMAIL PROTECTED]> wrote: > [...] but I want to set id attribute for them: > some content > [...] > > I use this code: > > value="attachedMainDocRow value="document.index"/>"/> That's not valid JSP; you can't nest tags like that. > Any suggestions, please, can'

Re: Iterator index: how to index html elements?

2008-07-28 Thread Joachim Ansorg
Hi, I use this code: "/> some content For this I usually do something like (untested): ... Btw, you can't use OGNL expression in non-struts tags (you tried to use it in tr). There's a tabletags taglib for struts2, which might be useful for you. Hope

Re: Iterator action setObject param

2008-02-20 Thread crappycrumpet
newton.dave wrote: > > > One way to implement this functionality is to simply the > desired page; your "note" object will be on the top of the stack, and can > be > accessed appropriately. > > Yeah I ended up doing using in the end. Was wondering if iterator passing object into action sho

Re: Iterator action setObject param

2008-02-20 Thread Dave Newton
--- crappycrumpet <[EMAIL PROTECTED]> wrote: > Now I have a method in NoteAction called setNote(Note value) which sets the > note field to the value. I also have getModel which returns a new note > object if it's null. I however keep encountering the following error: > ERROR [com.opensymphony.xwork

RE: iterator tag

2007-08-10 Thread Wesley Wannemacher
First off, do you have a 'public List getFiles()' in your action? The iterator tag looks for a getter that returns an object implementing java.util.List. For troubleshooting, I would put something static in your iterator tag just to see if the loop even starts (of course, sans getFiles(), you wi

Re: iterator question

2007-07-15 Thread Dave Newton
--- Ryan <[EMAIL PROTECTED]> wrote: > > > > > > > > > > > > > > > > > > > > Problem is the listoflists property is accessed each > time an element is accessed (

Re: iterator question

2007-07-15 Thread Manos Batsis
Ryan wrote: Hello All, I'm trying to create a table that has different classes for each column by iterating across a list of lists. Problem is the listoflists property is accessed each time an e

Re: Iterator Problem: how to get the changed values ?

2007-04-04 Thread Dave Newton
--- Syed Ibrahim <[EMAIL PROTECTED]> wrote: > I am using iterator to list some values in textfilds > in tabular format, following way. > > > > > > How can I achieve that in Struts 2 ? You should be able to just make myList be something List-y (and if you use generics I don'

Re: Iterator item and Action getter methods collide [S2]

2007-03-26 Thread Adam Ruggles
Oh looks like I read it backwards I thought the iterator variable is what you were after. Here is a link that might be useful. The very bottom of the page specifically. http://cwiki.apache.org/WW/ognl-basics.html It looks like the [1].top is the recommended method (at least it was for webw

Re: Iterator item and Action getter methods collide [S2]

2007-03-26 Thread Eric Rank
Thanks Adam, I hadn't tried getting the property without the pound sign. That syntax does work to get the value of the current item in the iteration. However, getting the current item in the iteration isn't a problem. My problem is that I need to access the method on the action when in an

Re: Iterator item and Action getter methods collide [S2]

2007-03-26 Thread Eric Rank
Thanks Dave, I was hoping that I wouldn't have to resort to specification of an index in the array of the ValueStack, but it works for now '-] Thanks for the tip, Eric Rank On Mar 26, 2007, at 7:05 PM, Dave Newton wrote: --- Eric Rank <[EMAIL PROTECTED]> wrote: Unfortunately, that doesn

Re: Iterator item and Action getter methods collide [S2]

2007-03-26 Thread Adam Ruggles
I just realized I got the syntax wrong. It should be value="top.user.username" /> without the pound sign, of course I'm sure you tried that as well. Eric Rank wrote: Thanks Adam, Unfortunately, that doesn't work. Are there other implicit objects in the OGNL value stack that might give a more

Re: Iterator item and Action getter methods collide [S2]

2007-03-26 Thread Dave Newton
--- Eric Rank <[EMAIL PROTECTED]> wrote: > Unfortunately, that doesn't work. Are there other > implicit objects in the OGNL value stack that might > give a more direect reference to the action? This isn't that, but there is the direct stack reference method, like [0].username, [1].username, etc.

Re: Iterator item and Action getter methods collide [S2]

2007-03-26 Thread Eric Rank
Thanks Adam, Unfortunately, that doesn't work. Are there other implicit objects in the OGNL value stack that might give a more direect reference to the action? Eric. On Mar 26, 2007, at 5:10 PM, Adam Ruggles wrote: have you tried Eric Rank wrote: Hi Everyone, I'm having an interestin

Re: Iterator item and Action getter methods collide [S2]

2007-03-26 Thread Adam Ruggles
have you tried Eric Rank wrote: Hi Everyone, I'm having an interesting experience with the use of the iterator tag (Struts 2.0.6). I have an action with getter method signature which is the same as the getter of an iterator item. As such when I'm within an iterator loop, and I call the g

RE: ITERATOR

2006-10-27 Thread Juan Espinosa
I could do the task i use -Mensaje original- De: James Mitchell [mailto:[EMAIL PROTECTED] Enviado el: Viernes, 27 de Octubre de 2006 08:43 a.m. Para: Struts Users Mailing List Asunto: Re: ITERATOR What tag library are you using? "s:" could be anything. -- Jame

Re: ITERATOR

2006-10-27 Thread James Mitchell
What tag library are you using? "s:" could be anything. -- James Mitchell 678.910.8017 On Oct 25, 2006, at 3:12 PM, Juan Espinosa wrote: hi anyone know how to iterato over a object that is in the application object (not in the session) im using s:iterate, im searching for a parameter like