[OT] Re: displaying a field as bold

2006-05-23 Thread Dave Newton
I HARIKRISHNA wrote:
> What is the need for validation if the field is nonmandatory 

Just because a field isn't mandatory doesn't mean that it shouldn't be
validated if it _is_ entered.

Dave



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: displaying a field as bold

2006-05-23 Thread Hanmay Udgiri

Hi
let me put the code which we are using


 
   
  mask
  ^[0-9, a-zA-Z]*$

 
   field[0]
   region
   
   
   fieldTest[0]
   EQUAL
   
   
   fieldValue[0]
   LAC
   
   
   field[1]
   addressCheckHidden
   
   
   fieldTest[1]
   EQUAL
   
   
   fieldValue[1]
   on
   

 
 


  minlength
  1


  maxlength
  25




here the field is mandatory if the region is EMEA/LAC,and optional for any
other region.
And even if it is optional We have to still check if he enters correct data
for that field.

So in JSP based on these condition we are currently displaying like




We are not using property files bze the same field can be mandatory for same
region based on certain condition.


Thanks and Regards
Hanmayya Udgiri

On 5/23/06, I HARIKRISHNA <[EMAIL PROTECTED]> wrote:


What is the need for validation if the field is nonmandatory and if it  is
required then how will you do in Struts>?>>???

[EMAIL PROTECTED] wrote:  Hi,

The best way to display mandatory is give your mandatory text field a
color or put (*).
Yes you have struts implementation for both mandatory & non-mandatory
fields.
even validation.

Cheers,

Kind regards,

Rakesh Bhat


-Original Message-
From: Hanmay Udgiri [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23, 2006 3:35 PM
To: user@struts.apache.org
Subject: displaying a field as bold
Importance: Low

Hi
We have two requirements like this.
1.In my JSP page I have around 50 fields and these fields could be
mandatory,optional or just plane read only fields based on some
condition.
Now the requirement is when the JSP is displayed,which way is good to
display the field in bold if mandatory,non-bold if optional and just
label
if read only.
Should we user any custom implementation for this or struts has any
facilities for this.
2.Another is if the field is required,it should do a mandatory
validation.
And if optional,it should to a optional validation.
In struts do have any implementation.
I have around 50 field and having a indictor for each field will
increase
the
form bean parameters.

Thanks and Regards
Hanmayya Udgiri



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
Ring'em or ping'em. Make  PC-to-phone calls as low as 1¢/min with Yahoo!
Messenger with Voice.



RE: displaying a field as bold

2006-05-23 Thread I HARIKRISHNA
What is the need for validation if the field is nonmandatory and if it  is 
required then how will you do in Struts>?>>???

[EMAIL PROTECTED] wrote:  Hi,

The best way to display mandatory is give your mandatory text field a
color or put (*).
Yes you have struts implementation for both mandatory & non-mandatory
fields.
even validation.

Cheers,

Kind regards,

Rakesh Bhat 


-Original Message-
From: Hanmay Udgiri [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 23, 2006 3:35 PM
To: user@struts.apache.org
Subject: displaying a field as bold
Importance: Low

Hi
We have two requirements like this.
1.In my JSP page I have around 50 fields and these fields could be
mandatory,optional or just plane read only fields based on some
condition.
Now the requirement is when the JSP is displayed,which way is good to
display the field in bold if mandatory,non-bold if optional and just
label
if read only.
Should we user any custom implementation for this or struts has any
facilities for this.
2.Another is if the field is required,it should do a mandatory
validation.
And if optional,it should to a optional validation.
In struts do have any implementation.
I have around 50 field and having a indictor for each field will
increase
the
form bean parameters.

Thanks and Regards
Hanmayya Udgiri



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




-
Ring'em or ping'em. Make  PC-to-phone calls as low as 1¢/min with Yahoo! 
Messenger with Voice.

Re: displaying a field as bold

2006-05-23 Thread Hanmay Udgiri

Hi
Let me explain in more details
We have a field Social Security Number this field could be mandatory if the
user enters US account number or optional if he enters a Canada account
number.
We are using same JSP.
So instead of having logic tags in JSP,do we any generic framework where in
JSP it can reduce the no of lines.
The same applies for validation in validation.xml(We have required and
requiredif in Struts.
But here we need a condition for each field.And we have around 100 field and
the same field can be mandatory or optional based on condition.If I have to
use requiredif then I have to have 100 extra field saying the field in
mandatory).Do we have any other type of implementation
I guess I have explained it properly

Thanks and Regards
Hanmayya Udgiri

On 5/23/06, [EMAIL PROTECTED] <[EMAIL PROTECTED]>
wrote:


Hi,

The best way to display mandatory is give your mandatory text field a
color or put (*).
Yes you have struts implementation for both mandatory & non-mandatory
fields.
even validation.

Cheers,

Kind regards,

Rakesh Bhat


-Original Message-
From: Hanmay Udgiri [mailto:[EMAIL PROTECTED]
Sent: Tuesday, May 23, 2006 3:35 PM
To: user@struts.apache.org
Subject: displaying a field as bold
Importance: Low

Hi
We have two requirements like this.
1.In my JSP page I have around 50 fields and these fields could be
mandatory,optional or just plane read only fields based on some
condition.
Now the requirement is when the JSP is displayed,which way is good to
display the field  in bold if mandatory,non-bold if optional and just
label
if read only.
Should we user any custom implementation for this or struts has any
facilities for this.
2.Another is if the field is required,it should do a mandatory
validation.
And if optional,it should to a optional validation.
In struts do have any implementation.
I have around 50 field and having a indictor for each field will
increase
the
form bean parameters.

Thanks and Regards
Hanmayya Udgiri



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




RE: displaying a field as bold

2006-05-23 Thread Rakesh.Bhat
Hi,

The best way to display mandatory is give your mandatory text field a
color or put (*).
Yes you have struts implementation for both mandatory & non-mandatory
fields.
even validation.

Cheers,
 
Kind regards,
 
Rakesh Bhat 


-Original Message-
From: Hanmay Udgiri [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, May 23, 2006 3:35 PM
To: user@struts.apache.org
Subject: displaying a field as bold
Importance: Low

Hi
We have two requirements like this.
1.In my JSP page I have around 50 fields and these fields could be
mandatory,optional or just plane read only fields based on some
condition.
Now the requirement is when the JSP is displayed,which way is good to
display the field  in bold if mandatory,non-bold if optional and just
label
if read only.
Should we user any custom implementation for this or struts has any
facilities for this.
2.Another is if the field is required,it should do a mandatory
validation.
And if optional,it should to a optional validation.
In struts do have any implementation.
I have around 50 field and having a indictor for each field will
increase
the
form bean parameters.

Thanks and Regards
Hanmayya Udgiri



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]