我正在尝试注入 @ManagedProperty(value = "#{ticketDataBean}")。我能够做到这一点,但现在我已经声明了一个构造函数,从那时起它就失败了。请指导。我的代码片段
@ManagedProperty(value = "#{ticketDataBean}")
private TicketDataBean ticketDataBean;
public class TicketDataBean extends CreateTicketData implements Serializable {
private static final long serialVersionUID = 1L;
private String category;
private TicketingService service;
private static final transient Logger LOGGER = LoggerFactory.getLogger(TicketDataBean.class);
public TicketDataBean(final TicketingService service) {
final net.atos.portlet.ticketing.model.UserInfo originalUser;
this.service = service;
originalUser = service.getDefaultReceiver();
receiverId = originalUser != null ? originalUser.getId() : null;
LOGGER.info("Reciever id in ticketdatabean---->" + receiverId);
}