Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Validator id is not registered

Tags:

eclipse

jsf

jsf-2

i am getting this warning in eclipse:

Validator id is not registered

on the line:

<f:validator validatorId="confirmPasswordValidator" />

i am using JSF 2, and tomcat 6

and my el-impl library is org.glassfish.web

any ideas why ? and how to solve it ?

like image 323
Mahmoud Saleh Avatar asked Sep 27 '11 15:09

Mahmoud Saleh


1 Answers

Ignore and run it. Eclipse is relying on it being present as <validator> declaration in faces-config.xml the JSF 1.x way. It does by default not recognize @FacesValidator and likes yet and therefore don't see it already being registered by new JSF 2.x annotations. The upcoming newer Eclipse versions will.

You could consider to turn off JSF validation in Eclipse preferences, it will only lead to more confusion and annoyances. The upcoming JBoss Tools plugin 3.3 (currently still in beta) will support JSF annotations like @FacesValidator, @ManagedBean, etc.

Note that this is in no way related to EL. You aren't using #{} anywhere.

like image 172
BalusC Avatar answered Jan 03 '23 23:01

BalusC



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!