Change style by javascript after loading

2009-07-14 Thread Felipe Fraga
Hello all, I would like to change struts templates, so I can add some Javascript after an action is loaded and result put in some div. Problem is that I can't seem to find the template or javascript file for that. I am aware of the afterLoading attribute, but since it is deprecated I don't want

AJAX loading

2009-06-16 Thread Felipe Fraga
considered changing the templates that show the loading text to print an img. Is this the only way? I am using Struts 2.0.14. Thanks a lot. Felipe Fraga - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional

Adding dynamic parameters to s:url

2009-06-02 Thread Felipe Fraga
Greetings to all. I am trying to store dynamic parameters through requests. So, I have a class like this: public class WebParameter { private String name; private String value; } and in my Action class I have: private ListWebParameter webParameters; then I would like to do

Re: Validation - Simple Theme

2009-04-15 Thread Felipe Fraga
if fancy errors above each field is not needed, it can simply add the following to the JSP, and it will render the errors and messages. s:if test=hasErrors() s:fielderror/ s:actionerror/ /s:if s:if test=hasActionMessages() s:actionmessage / /s:if On Wed, Apr 15, 2009 at

Re: Participem da minha vaquinha! - Vakinha.com.br

2009-03-04 Thread Felipe Fraga
Since this is a spam/mistake thread after all to clarify: Vaquinha (spelled vakinha for some weird marketing thing probably) is a brazillian portuguese expression. Someone do a vaquinha when they need money for something and wants their friends to cheap in. The site, aparently, is an online

Re: Preserving Action Messages during redirect action

2009-02-27 Thread Felipe Fraga
Glindholm solved this with an interceptor. http://glindholm.wordpress.com/2008/07/02/preserving-messages-across-a-redirect-in-struts-2/ Best regards, Felipe On Fri, Feb 27, 2009 at 1:12 PM, Sundararaman, Anand anand.sundarara...@ps.net wrote: Hi,   I want to redirect to another action but

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

2009-02-19 Thread Felipe Fraga
My guess is you are not populating the list in the prepare() method of the action. After validation error, prepare() of Preparable classes is called so the lists are repopulated. Felipe On Thu, Feb 19, 2009 at 5:07 AM, sheva j shee...@gmail.com wrote: Hi, I am using struts 2.0.11. I am using

Re: submitting a form without a submit button ajax-style

2009-02-11 Thread Felipe Fraga
:text/html, method: POST }); } If you suppress the url, the form action is used instead. Regards, Felipe Fraga On Wed, Feb 11, 2009 at 2:55 PM, mitch gorman mgor...@shadowtv.biz wrote: ulf n wrote: Thanks for all the input on this one! alas the form.submit(), causes

Re: getText did not return value in s:submit

2009-02-05 Thread Felipe Fraga
Pretty straight forward tutorial: http://t.wits.sg/2008/06/23/howto-struts-2-i18n/ Best regards, Felipe Fraga On Thu, Feb 5, 2009 at 5:29 PM, Emi Lu em...@encs.concordia.ca wrote: Hi Dave, (3) but I do not know how jsp can recognize package.properties? You're mis-understanding how

Re: validation with simple theme

2009-01-31 Thread Felipe Fraga
Hi, It is possible to create a new theme extending the one you are using, overriding the template for the fielderror tag. http://struts.apache.org/2.0.14/docs/extending-themes.html Or, you can override the fielderror for the theme without creating a new one. You just need to create a

Re: Struts 2 Validation Problem

2008-12-31 Thread Felipe Fraga
Hello, I don't see this happening in 2.0.14. Are you using any custom validators? Any custom stack? Felipe Fraga On Wed, Dec 31, 2008 at 5:42 AM, Windy Hung windy_h...@yahoo.com wrote: Hi I use action field validation for my form. When I press submit button multiple times to test a field

Re: Properties lost after input result (S2)

2008-12-28 Thread Felipe Fraga
Use hidden fields to also store the properties, this way they are sent with the request and so repopulated onde the jsp returns from the validator. Felipe Fraga On Sun, Dec 28, 2008 at 2:45 PM, Marsman mars@gmx.de wrote: Hi! I got an action to provide some properties (simple types

Div listen topics registers topic multiple times on page loads

2008-12-27 Thread Felipe Fraga
? Thx to all, Felipe Fraga - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org

Re: Notify Listen Topics dynamics

2008-12-26 Thread Felipe Fraga
of the submit and div Struts 2 tag libs. Hope this can make it clearer. Thanks a lot. Felipe Fraga On Fri, Dec 26, 2008 at 6:21 AM, MyAshok takumar@gmail.com wrote: hi, Did you wrote any javascript for your notify topics. With regards, Ashok Felipe Fraga wrote: Greetings all

Re: [S2] Calling action class method from jsp

2008-12-26 Thread Felipe Fraga
regards, Felipe Fraga On Fri, Dec 26, 2008 at 12:39 PM, Milan Milanovic milanmilanov...@yahoo.com wrote: Hi, I have iterator in my jsp which iterate through list of objects. I want to call action call method for every object which is iterated, but also to pass this object's id to that method

Re: Notify Listen Topics dynamics

2008-12-26 Thread Felipe Fraga
to /updateOperatorsListing and it started behaving as expected. Refreshing once before the calling action, and once again after it. I think I must have missed something from the docs, but can anyone tell me why the lack of the slash in the topic name causes this behavior? Thx for the help. Felipe Fraga

Notify Listen Topics dynamics

2008-12-25 Thread Felipe Fraga
a lot. Felipe Fraga - To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org