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
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
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
-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
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
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
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
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 :
>
>> 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
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?
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?
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
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
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
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
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
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]
>&
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
>
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
>
>
>
>
>
>
>
>
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
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
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
>
>
>
>
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
- 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
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
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
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
--- 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
">
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
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
--- 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'
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
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
--- 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
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
--- Ryan <[EMAIL PROTECTED]> wrote:
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
>
> Problem is the listoflists property is accessed each
> time an element is accessed (
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
--- 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'
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
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
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
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
--- 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.
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
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
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
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
47 matches
Mail list logo