Author: chris.laprun(a)jboss.com
Date: 2011-03-03 12:47:15 -0500 (Thu, 03 Mar 2011)
New Revision: 5961
Modified:
components/wsrp/branches/2.0.x/producer/src/main/java/org/gatein/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java
Log:
- GTNWSRP-204: JSF sends empty String if no validator is passed so dealt with that case.
Modified:
components/wsrp/branches/2.0.x/producer/src/main/java/org/gatein/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java
===================================================================
---
components/wsrp/branches/2.0.x/producer/src/main/java/org/gatein/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java 2011-03-03
15:59:11 UTC (rev 5960)
+++
components/wsrp/branches/2.0.x/producer/src/main/java/org/gatein/wsrp/producer/config/impl/ProducerRegistrationRequirementsImpl.java 2011-03-03
17:47:15 UTC (rev 5961)
@@ -397,7 +397,7 @@
{
log.debug("Using default registration policy: " +
DEFAULT_POLICY_CLASS_NAME);
RegistrationPropertyValidator validator;
- if (validatorClassName != null &&
!DEFAULT_VALIDATOR_CLASS_NAME.equals(validatorClassName))
+ if (validatorClassName != null && validatorClassName.length() > 0
&& !DEFAULT_VALIDATOR_CLASS_NAME.equals(validatorClassName))
{
log.debug("Using registration property validator: " +
validatorClassName);
ClassLoader loader = Thread.currentThread().getContextClassLoader();
Show replies by date