@Override
public Contact getAsObject (final FacesContext context, final UIComponent component, final String submittedValue) {
- // Is the instance there?
- if (null == CONTACT_LIST_CONTROLLER) {
- // Get bean from CDI directly
- CONTACT_LIST_CONTROLLER = CDI.current().select(JobsContactListWebViewBean.class).get();
- }
-
// Is the value null or empty?
if ((null == submittedValue) || (submittedValue.trim().isEmpty())) {
- // Warning message
- // @TODO Not working with JNDI (no remote interface) this.loggerBeanLocal.logWarning(MessageFormat.format("{0}.getAsObject(): submittedValue is null or empty - EXIT!", this.getClass().getSimpleName())); //NOI18N
-
// Return null
return null;
}
// Init instance
Contact contact = null;
+ // Is the instance there?
+ if (null == CONTACT_LIST_CONTROLLER) {
+ // Get bean from CDI directly
+ CONTACT_LIST_CONTROLLER = CDI.current().select(JobssContactListWebViewBean.class).get();
+ }
+
try {
// Try to parse the value as long
final Long contactId = Long.valueOf(submittedValue);