Re: 2.3.16.3 Color in error message ( Authenticate Login )

2014-06-04 Thread Chris
Hello, Thank You, I found also the tag in the  http://struts.apache.org/development/2.x/docs/form-validation.html Styling The Error Messages The Struts 2 s:head tag can be used to provide CSS that includes a style for the error message. Add to register.jsp before the closing HTML tag.  Re

RE: 2.3.16.3 Color in error message ( Authenticate Login )

2014-06-04 Thread Martin Gainty
stylesheet.css: .errClass { font-family: Verdana, Helvetica, Garamond, sans-serif; /* font-size: 0.7em; */ background-color: red; border: 1px solid #afafaf; position: absolute; z-index: 1000; overflow: auto; cursor: default; } public void validate() { if (u

Re: 2.3.16.3 Color in error message ( Authenticate Login )

2014-06-04 Thread Chris
Request closed. I found it in http://struts.apache.org/development/2.x/docs/form-validation.html It's the  Regards, Chris Le Mercredi 4 juin 2014 18h27, Chris a écrit : In the screen, with struts2examples/form_validation the dynamics tag are : First name is required. First name:

Re: How to Use JavaScript in Struts2

2014-06-04 Thread Dave Newton
It's not clear to me what the underlying question is. If you have a lot of dynamic elements on the page you'll probably want to look at the S2 jQuery library: https://code.google.com/p/struts2-jquery/ It makes simple usecases drop-dead easy, and might be enough to serve your needs--although usin

Re: How to Use JavaScript in Struts2

2014-06-04 Thread Dave Newton
I don't even know what any of this has to do with anything the OP asked. Beyond being difficult to read because of the poor formatting, you're also pointing the OP at a deprecated library. On Wed, Jun 4, 2014 at 6:42 AM, Martin Gainty wrote: > > > > > > From: nijo...@gmail.com > > Date: Wed,

Re: 2.3.16.3 Color in error message ( Authenticate Login )

2014-06-04 Thread Chris
In the screen, with struts2examples/form_validation the dynamics tag are : First name is required. First name: a écrit : Hello, I don't find in the strutsexamples ( 6 form_validation, 7 message_ressource...etc) where I could write red color when error message is displayed in loginFo

2.3.16.3 Color in error message ( Authenticate Login )

2014-06-04 Thread Chris
Hello, I don't find in the strutsexamples ( 6 form_validation, 7 message_ressource...etc) where I could write red color when error message is displayed in loginForm.jsp First the validator LoginAction-validation.xml works fine with required fields. Then the authentication with LoginAction

Re: Do properties written in an external file need ApplicationAware ?

2014-06-04 Thread Chris
Hello Antonios, Thanks. I'll try it and see how I can manage it. Chris Le Mardi 3 juin 2014 13h35, Antonios Gkogkakis a écrit : Hi Chris, I'm not sure if struts has a feature that would read property files and put them in the Application scope for you automatically. You can have a look

Re: Struts2 iterator twice for select tag

2014-06-04 Thread Matt Williams
I ended up overriding the 'evaluateExtraParams()' method and performing the exact same logic that is in the ListUIBean.evaluateExtraParams() to set a new parameter called 'listCopy' to use in the extra iterator. Code: @Override public void evaluateExtraParams() {     super.eva

RE: How to Use JavaScript in Struts2

2014-06-04 Thread Martin Gainty
> From: nijo...@gmail.com > Date: Wed, 4 Jun 2014 10:50:14 +0530 > Subject: How to Use JavaScript in Struts2 > To: user@struts.apache.org > > Hi, > I'm developing an an application to conduct Online Exa

Re: Struts 2 get custom action anotation in interceptors

2014-06-04 Thread Lukasz Lenart
Take a look on com.opensymphony.xwork2.util.AnnotationUtils 2014-06-03 19:37 GMT+02:00 Alireza Fattahi : > Consider below action class with three action mappings. Two of them are > annotated with a custom annotation `@AjaxAction` > > public class MyAction extends ActionSupport{ > > @Act

Re: Struts2 iterator twice for select tag

2014-06-04 Thread Lukasz Lenart
2014-06-03 19:17 GMT+02:00 Matt Williams : > > I am using struts 2.1.8. I am extending the > "org.apache.struts2.components.Select" tag and writing my own "select.ftl" > (freemarker template). > > I need to iterate over the parameter "parameters.list" twice. > > Example: > <@s.iterator value="pa

Re: How to Use JavaScript in Struts2

2014-06-04 Thread Christoph Nenning
> Hi, > I'm developing an an application to conduct Online Examinations. Lots of > table displays are used in every module. for example Questions, Exam, > Results, etc, > I have a form which saves a question to db. > > My Scenario is Following I Have three types of Questions > 1. Single choice > 2