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
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
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 :
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
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
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
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
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
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 ;
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
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
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
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
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
, 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
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 .
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
.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
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
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:
>
&
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
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
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 ###
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
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]>
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
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
/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
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
29 matches
Mail list logo