aspose file tools*
The moose likes JSP and the fly likes JSF 1.0 and output_errors Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSP
Bookmark "JSF 1.0 and output_errors" Watch "JSF 1.0 and output_errors" New topic
Author

JSF 1.0 and output_errors

Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

I am trying to figure out what the <hutput_errors/> has been replaced with in the 1.0 final. I tried <hutputErrors/> but I get an error
No tag "outputErrors" defined in tag library imported with prefix "h"
Which I assume means this tag doesn't exist. I have added <f:validateLength...> to my login username and password fields. Now I just need to spit out the errors if data is not entered correctly.
Thanks.
[ March 04, 2004: Message edited by: Gregg Bolinger ]

GenRocket - Experts at Building Test Data
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Ok, I figured out that <h:messages/> does what I want. Sort of...
I need to figure out how to make it say specifically what field didn't validate. Off to the spec PDF again....
If anyone has any insight, that would be great.
Bill Dudney
Author
Ranch Hand

Joined: Sep 05, 2003
Posts: 234
Hi Greg,
Threw me too...
singular error messages...
<h:message for=... />
all errors
<h:messages/>
Hope this helps!


TTFN,<br /> <br />-bd-<br /> <br /><a href="http://www.amazon.com/exec/obidos/ASIN/0471449156/qid=1064343733/sr=2-1/ref=sr_2_1/002-8375300-3666449" target="_blank" rel="nofollow">Jakarta Pitfalls</a> | <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0471146153/qid=1064343733/sr=1-2/ref=sr_1_2/002-8375300-3666449?v=glance&s=books" target="_blank" rel="nofollow">J2EE AntiPatterns</a> | <a href="http://www.amazon.com/exec/obidos/tg/detail/-/0471462071/qid=1064343733/sr=1-3/ref=sr_1_3/002-8375300-3666449?v=glance&s=books" target="_blank" rel="nofollow">Mastering JavaServer Faces</a> | <a href="http://bill.dudney.net/roller/page/bill" target="_blank" rel="nofollow">Blog</a> | <a href="http://www.jroller.com/page/BillDudney" target="_blank" rel="nofollow">Eclipse Blog</a> | <a href="http://www.sourcebeat.com/TitleAction.do?id=2" target="_blank" rel="nofollow">Eclipse 3 Live</a>
Gregg Bolinger
GenRocket Founder
Ranch Hand

Joined: Jul 11, 2001
Posts: 15299
    
    6

Originally posted by Bill Dudney:
Hi Greg,
Threw me too...
singular error messages...
<h:message for=... />
all errors
<h:messages/>
Hope this helps!

Ahhhhh, the h:message for=.. is exactly what I need. Thanks.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
 
subject: JSF 1.0 and output_errors