Re: Object field validation

2006-06-30 Thread Truong Xuan Tinh
Try form name=TASKMANAGERform field property=taskDefinition.domain depends=integer arg position=0 key=TASKMANAGERform.taskDefinition.domain/ /field /form Hope this may help. Halgurt Mustafa Ali wrote: Hi

Re: Time validator

2006-06-28 Thread Truong Xuan Tinh
=/ /field Truong Xuan Tinh wrote: Hi there, here is my implementation on the client side, it's validate time against the pattern HH:mm, you can customize against HH:mm:ss with ease: validator name=time classname=MyValidatorClass method=validateTime

Re: [HELP] I use struts + Velocity, I couldn't submit 1 form with unicode information! :(

2006-06-21 Thread Truong Xuan Tinh
:( thanks all, - Original Message - From: Truong Xuan Tinh [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Tuesday, June 20, 2006 10:23 PM Subject: Re: [HELP] I use struts + Velocity, I couldn't submit 1 form with unicode information! :( Hi Tuan, Did you set

Re: [HELP] I use struts + Velocity, I couldn't submit 1 form with unicode information! :(

2006-06-21 Thread Truong Xuan Tinh
; charset=UTF-8 but there's no effect :( - Original Message - From: Truong Xuan Tinh [EMAIL PROTECTED] To: Struts Users Mailing List user@struts.apache.org Sent: Wednesday, June 21, 2006 1:56 PM Subject: Re: [HELP] I use struts + Velocity, I couldn't submit 1 form with unicode

Re: textarea

2006-06-21 Thread Truong Xuan Tinh
You have to write a javascript function to check in the following event: onFocus, onChange and onKeyUp of the textarea. Regards, Abhimanyu Koul wrote: how can i set the maximum number of chars in a textarea. i can only set columns and rows. Regards, Abhimanyu Koul FinEng Solutions (P)

Re: Struts Validator: form value1 form value2

2006-06-21 Thread Truong Xuan Tinh
Hi there, You can write a custom validator in Struts to do that, it's rather easy, both client-side and server-side. Open the jar of commons-validator to see some script for existed validation rule should help. Regards. Tinh Jeremy Nix wrote: How can I use the Struts Validator to enforce the

Re: [HELP] I use struts + Velocity, I couldn't submit 1 form with unicode information! :(

2006-06-20 Thread Truong Xuan Tinh
Hi Tuan, Did you set the page encoding to UTF-8? And one more thing, set the characterEncoding of your request to UTF-8 before it hit your action (ie, in a filter or something like that). PS: I've found a bug in Tomcat with when encoding data to UTF-8 with the GET method (the POST method is

Re: Time validator

2006-06-15 Thread Truong Xuan Tinh
Hi there, here is my implementation on the client side, it's validate time against the pattern HH:mm, you can customize against HH:mm:ss with ease: validator name=time classname=MyValidatorClass method=validateTime methodParams=java.lang.Object,

Re: multibox not works when all checkboxes are unselected!

2006-06-09 Thread Truong Xuan Tinh
I dont' have such a sequence like that, but you can get the same when you read the source code of the RequestProcessor class. starki78 wrote: Thanks for this great explanations I already solved this problem and now 'm quite close to understand it! It would be great to have a sequence diagramm

response.sendRedirect() doesn't work!

2006-06-08 Thread Truong Xuan Tinh
Hi every body, I've have a problem with the response.sendRedirect called in a jsp file, I've used Tile in my project. I've set the autoFlush=false and set the bufferSize to a big number (bufferSize=2048kB) in the master page (of Tile) and in the *child* jsp file where the response.sendRedirect()

Re: ActionForm and EJB

2006-06-08 Thread Truong Xuan Tinh
chamal desilva wrote: Hi, I read few articles on struts. They recommend not to send action form class to EJBs as data holders. They recommend we should use general classes for holding data to decople web tier with EJBs. That's right. What they say must be correct but I still have few

Re: response.sendRedirect() doesn't work!

2006-06-08 Thread Truong Xuan Tinh
-Original Message- From: Truong Xuan Tinh [mailto:[EMAIL PROTECTED] Sent: Thursday, June 08, 2006 12:20 PM To: Struts Users Mailing List Subject: response.sendRedirect() doesn't work! Hi every body, I've have a problem with the response.sendRedirect called in a jsp file, I've used Tile

Re: How to terminate the uploading process of Struts?

2006-06-07 Thread Truong Xuan Tinh
To: Struts Users Mailing List Subject: Re: How to terminate the uploading process of Struts? On 6/4/06, Truong Xuan Tinh [EMAIL PROTECTED] wrote: Hi experts, Can we terminate the uploading process of Struts when the uploaded data size is exceeded the max file size configured

Re: focus on first error

2006-06-07 Thread Truong Xuan Tinh
Hi, you can use validation framework of Struts, it's a plugin of Struts, remember to set the property stopOnFirstError to true, this make the first error field focused. marcus biel (innoWake gmbh) wrote: Hi, I've got a form, that focuses on the first textbox when the page is loaded. When an

Re: AW: focus on first error

2006-06-07 Thread Truong Xuan Tinh
Hi, AFAIK, Struts validation doesn't support this kind of behavior. It will: 1. Display all the errors (grouped by category) and focus the last error field. 2. Display the first error, focused on the first error field and stop validation. PS: You can make the error field's selected, just modify

How to terminate the uploading process of Struts?

2006-06-04 Thread Truong Xuan Tinh
Hi experts, Can we terminate the uploading process of Struts when the uploaded data size is exceeded the max file size configured in the controller of Struts. It seems that Struts upload the file completely and then check it file size against the maxFileSize. Thank you very much for your reply.