import javax.faces.convert.FacesConverter;
import org.mxchange.jcontactsbusiness.exceptions.opening_time.OpeningTimeNotFoundException;
import org.mxchange.jcontactsbusiness.model.opening_time.OpeningTime;
-import org.mxchange.jjobs.beans.business.opening_time.JobsOpeningTimeWebRequestBean;
-import org.mxchange.jjobs.beans.business.opening_time.JobsOpeningTimeWebRequestController;
+import org.mxchange.jjobs.beans.business.opening_time.list.JobsOpeningTimeListWebViewBean;
+import org.mxchange.jjobs.beans.business.opening_time.list.JobsOpeningTimeListWebViewController;
/**
* Converter for opening time id <-> instance
/**
* Opening time backing bean
*/
- private static JobsOpeningTimeWebRequestController OPENING_TIMES_LIST_CONTROLLER;
+ private static JobsOpeningTimeListWebViewController OPENING_TIMES_LIST_CONTROLLER;
@Override
public OpeningTime getAsObject (final FacesContext context, final UIComponent component, final String submittedValue) {
final Long openingTimeId = Long.valueOf(submittedValue);
// Is the instance there?
- if (null == OPENING_TIME_LIST_CONTROLLER) {
+ if (null == OPENING_TIMES_LIST_CONTROLLER) {
// Get bean from CDI directly
- OPENING_TIME_LIST_CONTROLLER = CDI.current().select(FinancialsOpeningTimeListWebViewBean.class).get();
+ OPENING_TIMES_LIST_CONTROLLER = CDI.current().select(JobsOpeningTimeListWebViewBean.class).get();
}
// Try to get user instance from it
- openingTime = OPENING_TIME_LIST_CONTROLLER.findOpeningTimeById(openingTimeId);
+ openingTime = OPENING_TIMES_LIST_CONTROLLER.findOpeningTimeById(openingTimeId);
} catch (final NumberFormatException ex) {
// Throw again
throw new ConverterException(ex);