[S2] Problems with client side validation

2007-05-30 Thread Olivier THIERRY
Hi, I try the client side validation with Struts 2. The validation is well done, but I have many problems : - For each datetimepicker field in my form, I have the following Javascript error, which displays in a pop up : "TypeError: row.cells has no properties" - Another problem with datetimepicke

Re: [S2] How to set an action as input result ?

2007-05-29 Thread Olivier THIERRY
Didin't finish what I wanted to say ! I wanted to say it's a very elegant method ;) 2007/5/29, Olivier THIERRY <[EMAIL PROTECTED]>: And I have to say it's a very

Re: [S2] How to set an action as input result ?

2007-05-29 Thread Olivier THIERRY
I couldn't find this in the docs. Where could I find it please ? Anyway, I finally succeeded. I had already tried the Prepare interceptor but could'nt make it work as I wanted. But this time it works ! And I have to say it's a very So I configured the actions as following :

Re: [S2] How to set an action as input result ?

2007-05-29 Thread Olivier THIERRY
Well, I don't see how it can solve my problem ... If the input result is a JSP page, when will this prepare metho be called ? 2007/5/29, Dave Newton <[EMAIL PROTECTED]>: --- Olivier THIERRY <[EMAIL PROTECTED]> wrote: > Anyone knows how to set an action as an input result

[S2] How to set an action as input result ?

2007-05-29 Thread Olivier THIERRY
Hi, I need to do something that looks very simple to me : - a form with a select list - the data in the list comes from database - when submitting the form, I want to validate datas. If it doesn't validate, I display the form again I configured two actions : - An "init" action, that loads data f

Re: [s2] Validation does not work in Struts 2 basic project

2007-05-29 Thread Olivier THIERRY
So what should i do to execute validation for addNew and Update method? Please Help me to solve this problem. Vijay Prajapati On 5/29/07, Olivier THIERRY <[EMAIL PROTECTED]> wrote: > > I think you have to add validation interceptor to your ac

Re: [s2] Validation does not work in Struts 2 basic project

2007-05-29 Thread Olivier THIERRY
I think you have to add validation interceptor to your action. Try something like that : Menu /jsp/Logon.jsp Hope it helps ;) 2007/5/29, robinbajaj <[EMAIL PROTECTED]>: I am a Struts 2 newbie. The validation p

Re: [S2] Can't make validation work

2007-05-28 Thread Olivier THIERRY
Well, in my JSP I have lists (s:select tag) that are filled by the init method of my action. So when I redirect to the JSP, it crashes because the lists in my action have not been initialized. Can the prepare method be used to do this ? 2007/5/28, Dave Newton <[EMAIL PROTECTED]>: --- O

Re: [S2] Can't make validation work

2007-05-28 Thread Olivier THIERRY
t;Journée"); return "success"; } But I have a 404 error, it can't find the url "/absences/initCreerDemandeAbsence.action" URL, while it works when I type this URL in my browser. Maybe I do it the wrong way to "initialize" my form ? Thanks ;

Re: [S2] Can't make validation work

2007-05-28 Thread Olivier THIERRY
I still can't make it work :( Anyone has an idea why it doesn't work ? Thanks in advance Olivier 2007/5/9, Olivier THIERRY <[EMAIL PROTECTED]>: So it should work with valdidate="false" ... But it doesn't ... So there's still something wrong in my configu

Re: [S2] A bug in documentation for validation

2007-05-28 Thread Olivier THIERRY
Thanks Dave ;) 2007/5/28, Dave Newton <[EMAIL PROTECTED]>: --- Olivier THIERRY <[EMAIL PROTECTED]> wrote: > http://struts.apache.org/2.0.6/docs/basic-validation.html http://struts.apache.org/2.x/docs/basic-val

Re: [S2] A bug in documentation for validation

2007-05-28 Thread Olivier THIERRY
On 5/9/07, Olivier THIERRY <[EMAIL PROTECTED]> wrote: > > Hi, > > I'm not sure this is the right mailing list to talk about it, but I think > there is a bug in the validation documentation on the struts website. > When I open this url : > > http://struts.ap

[S2] A bug in documentation for validation

2007-05-09 Thread Olivier THIERRY
Hi, I'm not sure this is the right mailing list to talk about it, but I think there is a bug in the validation documentation on the struts website. When I open this url : http://struts.apache.org/2.0.6/docs/basic-validation.html There's an error in the step 3 so you can't see the end of the pag

Re: [S2] Can't make validation work

2007-05-09 Thread Olivier THIERRY
So it should work with valdidate="false" ... But it doesn't ... So there's still something wrong in my configuration ... What is strange is that I can see validation errors in the logs. So it looks like Struts keeps on running the request while there are validation errors and so it should stop and

Re: [S2] Can't make validation work

2007-05-09 Thread Olivier THIERRY
, Guillaume Carré <[EMAIL PROTECTED]>: 2007/5/9, Olivier THIERRY <[EMAIL PROTECTED]>: > Well, it still doesn't work :( > A few questions : > - Do I have to put the xxx-validation.xml files in a specific directory ? I > put them in the WEB-INF/classes directory ... you have t

Re: [S2] Can't make validation work

2007-05-09 Thread Olivier THIERRY
ction class name ? I didn't find it clear in the documentation ... 2007/5/9, Guillaume Carré <[EMAIL PROTECTED]>: 2007/5/9, Olivier THIERRY <[EMAIL PROTECTED]>: > Hi, > > I try to validate a form, but I can't make it work, and I don't understand > why .

[S2] Can't make validation work

2007-05-09 Thread Olivier THIERRY
Hi, I try to validate a form, but I can't make it work, and I don't understand why ... So I have the following form in a JSP : My struts.xml file is as following (the action class is Spring managed) : /jsp/absences/confirmerCreationDeman

Re: CSS styles for Table Tags

2007-05-04 Thread Olivier THIERRY
.org/extremesite/index.jsp Nice too. No problem using this with struts2. -- Olivier -Message d'origine- De : Olivier THIERRY [mailto:[EMAIL PROTECTED] Envoyé : vendredi 4 mai 2007 09:25 À : Struts Users Mailing List Objet : Re: CSS styles for Table Tags Thanks, displaytag looks mo

Re: CSS styles for Table Tags

2007-05-04 Thread Olivier THIERRY
t; > library (http://displaytag.sourceforge.net/11/index.html) over Table > > Tags. The latter offers better Struts and FreeMarker integration, but > > Display Tag is far more evolved from an API perspective and abstracts > away a > > lot of lower-level plumbing (like sorting) th

Re: CSS styles for Table Tags

2007-05-03 Thread Olivier THIERRY
Yes, the s:table tag is deprecated, but this is not what I use. I use the Table Tags plugin : http://cwiki.apache.org/S2PLUGINS/table-tags.html 2007/5/3, Felipe Rodrigues <[EMAIL PROTECTED]>: Isn't it deprecated? Just to make sure. Regards, Felipe Olivier THIERRY wrote: > &

CSS styles for Table Tags

2007-05-03 Thread Olivier THIERRY
Hi, I use the Table Tags plugin, but I can't find a way to apply CSS classes to table or thead tags generated by the plugin since there is no cssClass or similar attribute. Does anyone have an idea about this ? Olivier

Re: How to fill a div from an Ajax call when a onchange event is fired ?

2007-04-27 Thread Olivier THIERRY
As some people asked me by private message, a few words to explain how I could make it work. I hope it will help other Struts users ;) The original need : when the user types an elmployee code, I want to retrieve his name and firstname and display it in a div. My action class is as followin (it

Re: how to test the 1st and last iteration ?

2007-04-27 Thread Olivier THIERRY
De rien lol For what I know, the tag can only compare with a constant value. So you have to use a scriptlet :( Try this : Olivier 2007/4/27, piloupy GOTTAPIL <[EMAIL PROTECTED]>: >> To Olivier : Here's what I've done : ### CODE : begin ### , , ### CODE : end ###

Re: How to fill a div from an Ajax call when a onchange event is fired ?

2007-04-27 Thread Olivier THIERRY
g/2.x/docs/alias-interceptor.html musachy On 4/27/07, Olivier THIERRY <[EMAIL PROTECTED]> wrote: > > Thanks Musachy, your advices were very helpful. > > I succeeded in doing what I wanted, but there is still a detail that > upsets > me with your solution and I'm not to

Re: how to test the 1st and last iteration ?

2007-04-27 Thread Olivier THIERRY
Use tag to have the collection's length ;) 2007/4/27, piloupy GOTTAPIL <[EMAIL PROTECTED]>: Thanks for the answer, but how I can get the collection's length ? I try to avoid any use of scriptlet if possible. piloupy On 4/27/07, Olivier THIERRY <[EMAIL PROTECTED]>

Re: How to fill a div from an Ajax call when a onchange event is fired ?

2007-04-27 Thread Olivier THIERRY
Thanks Musachy, your advices were very helpful. I succeeded in doing what I wanted, but there is still a detail that upsets me with your solution and I'm not totally happy with the solution. The drawback of the solution is that the the parameter I can get in my action has the name of the text fi

Re: how to test the 1st and last iteration ?

2007-04-27 Thread Olivier THIERRY
You have an indexId attribute on the logic:iterate tag. This indexId attribute sets the name of a JSP scope variable that will contain the index in the loop. Then you can test the value of this variable with the logic:equal. Olivier 2007/4/27, piloupy GOTTAPIL <[EMAIL PROTECTED]>: Hi, What I

Re: How to fill a div from an Ajax call when a onchange event is fired ?

2007-04-26 Thread Olivier THIERRY
/26/07, Olivier THIERRY <[EMAIL PROTECTED]> wrote: > > Hi, > > I used to use Struts 1.x and I just begin to use Struts 2.x > I am very interested with the Ajax feature, but I can't make it work ... > > What I need to do looks very classical to me : > - The user type

How to fill a div from an Ajax call when a onchange event is fired ?

2007-04-26 Thread Olivier THIERRY
Hi, I used to use Struts 1.x and I just begin to use Struts 2.x I am very interested with the Ajax feature, but I can't make it work ... What I need to do looks very classical to me : - The user types an employee code in a text box - When the onchange event is fired, I call a Struts action with