Re: How to display 2 textfield while still being to use XML validation

2012-06-17 Thread Łukasz Lenart
2012/6/18 Nguyen Ngoc Hai (FSU17.BU2) :
> Yes I am using Spring and also Hibernate.
> I am so sorry for replying late. I am using my company's email that I can't 
> check at home.
> Could you show me where I can add scope="prototype", I added it into my 
> applicationContext.xml, but it would not run.
>
> 
> 

Which version of Spring ?


Regards
-- 
Łukasz
mobile +48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



RE: How to display 2 textfield while still being to use XML validation

2012-06-17 Thread Nguyen Ngoc Hai (FSU17.BU2)
Yes I am using Spring and also Hibernate.
I am so sorry for replying late. I am using my company's email that I can't 
check at home.
Could you show me where I can add scope="prototype", I added it into my 
applicationContext.xml, but it would not run.




Thanks & best regards,

NGUYễN NGỌC HẢI (MR.)
Developer
Business Unit No2

FPT  Software Strategic Unit No.17
Add: 8th Floor, FPT Building, Pham Hung Road, Cau Giay Dist, Hanoi, Vietnam
E-mail: hai...@fsoft.com.vn
Cell: 0169.808.9435




-Original Message-
From: Łukasz Lenart [mailto:lukasz.len...@googlemail.com] 
Sent: Friday, June 15, 2012 6:02 PM
To: Struts Users Mailing List
Subject: Re: How to display 2 textfield while still being to use XML validation

Do you use Spring ? If so, action must have scope="prototype"


Regards
--
Łukasz
mobile +48 606 323 122 http://www.lenart.org.pl/ Warszawa JUG conference - 
Confitura http://confitura.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org


Re: Validation Help

2012-06-17 Thread Łukasz Lenart
2012/6/17 Paul Mefford :
> Can anyone give me some advice on how to fix the .xml loader so it finds a
> xml file using the wildcard in sturts.xml?  Or has anyone done this a
> different way with validation?

Struts 2 version ? App Sever ?

You can implement your own logic how to handle validation using
ActionValidatorManager interface - there are two known implementations
- AnnotationActionValidatorManager (used by Struts 2) and
DefaultActionValidatorManager (used be XWork when running without
Struts 2).

If you want to implement your Manager, to enable it just add the line
below to your struts.xml



You can also try to debug your application and see what's going on in
AnnotationActionValidatorManager#loadFile()


Regards
-- 
Łukasz
mobile +48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org



Re: How to display 2 textfield while still being to use XML validation

2012-06-17 Thread Paul Mefford
I found the default themes not full featured enough to use out of the box.
My recommendation is write your own theme using xhtml as a starting point.
If you don't want to do that use the xhtml theme as it is the most complete
with it you get limited ability to design a nice form because of all the
table elements that come with it.



On Fri, Jun 15, 2012 at 5:02 AM, Łukasz Lenart  wrote:

> Do you use Spring ? If so, action must have scope="prototype"
>
>
> Regards
> --
> Łukasz
> mobile +48 606 323 122 http://www.lenart.org.pl/
> Warszawa JUG conference - Confitura http://confitura.pl/
>
> -
> To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
> For additional commands, e-mail: user-h...@struts.apache.org
>
>


Re: How to repopulate data on s:textfield after validation error

2012-06-17 Thread Łukasz Lenart
2012/6/15 Omar Ngarigari :
> The default value is list value. For example, my code is as follow:
>
> 
> 
> What I want is on validation error to repopulated data that user entered not
> the one that comes with list from database.

But as I said, it must be something wrong with your code. When
validation error happened, the values entered by user are put on top
of the stack. Looks like you override them.


Regards
-- 
Łukasz
mobile +48 606 323 122 http://www.lenart.org.pl/
Warszawa JUG conference - Confitura http://confitura.pl/

-
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org