You can access the values in loginBean by injecting the loginBean into dettaglioBean and not the other way round, since it is the values in loginBean that you need in dettaglioBean.
@ManagedProperty("#{loginBean}")
private LoginBean loginBean;
When the JSF implementation comes across the EL, it searches for the bean object in the various scope maps and when it finds it, injects it into your dettaglioBean.