users@javaserverfaces-spec-public.java.net

[jsr344-experts mirror] [jsr344-experts] Re: Re: Fwd: Error handling in case of illegal JSF tag attributes

From: Andy Bosch <andy.bosch_at_jsf-forum.de>
Date: Wed, 5 Sep 2012 21:14:52 +0200

Hi Frank,

 

I would really love to see a warning in those cases.

I am sure that it will help people a lot if they get error messages or at
least warnings

if they use wrong attributes.

 

Ciao,

Andy B.

 

Von: Frank Caputo [mailto:frank_at_frankcaputo.de]
Gesendet: Freitag, 31. August 2012 20:09
An: jsr344-experts_at_javaserverfaces-spec-public.java.net
Betreff: [jsr344-experts] Re: Fwd: Error handling in case of illegal JSF tag
attributes

 

Hi Kito,

 

I love the flexibility of adding custom attributes to any component. IMO it
is no error, if you have an illegal attribute, because JSF simply ignores
it. Maybe we should add a warning in development mode (but I'd like the
option to disable the warning).

 

Ciao Frank

 

Am 31.08.2012 um 15:01 schrieb Kito Mann:





Hello everyone,

This is one thing that's been bothering me for a while; with JSP tags we had
this feature, but we lost it with Facelets. I know there are probably lots
of apps that take advantage of the ability to add random attributes in
specific cases, but most of the time it would cut down on errors if the tag
would complain about illegal attributes.

Thoughts?
___


Kito D. Mann | @kito99 | Author, JSF in Action
Virtua, Inc. | http://www.virtua.com <http://www.virtua.com/> | JSF/Java EE
training and consulting
http://www.JSFCentral.com <http://www.JSFCentral.com/> - JavaServer Faces
FAQ, news, and info | @jsfcentral
+1 203-404-4848 x246

* Listen to the latest headlines in the JSF and Java EE newscast:
http://blogs.jsfcentral.com/JSFNewscast/

* Sign up for the JSFCentral Newsletter: http://oi.vresp.com/?fid=ac048d0e17





---------- Forwarded message ----------
From: Uwe Seimet <Uwe.Seimet_at_seimet.de>
Date: Thu, Aug 30, 2012 at 5:33 PM
Subject: Error handling in case of illegal JSF tag attributes
To: users_at_javaserverfaces.java.net


Hi all,

I wonder if there is any way to enable a better error handling if an illegal
JSF tag attribute was specified. In this fragment (taken from a Facelet
page):

<h:panelGroup abc="xyz">
</h:panelGroup>

the attribute 'abc' is obviously illegal. Nevertheless Mojarra 2.1.x
does not report any problem. Is there any way to tell Mojarra not to
silently ignore errors like this?

Regards

Uwe

--
-----------------------------------------------------------------------
  Dr. Uwe Seimet                                http://www.seimet.de/