quinta-feira, 28 de janeiro de 2016
Java EE + Hibernate Lazy load exception
http://stackoverflow.com/questions/10579608/java-ee-6-hibernate-lazy-load-exception
Java SE + JAVA EE
http://uaihebert.com/quatro-solucoes-para-lazyinitializationexception/7/
quarta-feira, 13 de janeiro de 2016
Atualizar title usando JSF 2 e AJX / Render page title using jsf 2 and AJAX
<h:form id="titleForm">
<title>#{loginMB.title}</title>
</h:form>
<a4j:poll interval="60000" render="titleForm" status="ajaxStatus">
<f:setPropertyActionListener value="LpcSys (#{bean.baixasPendentes})" target="#{loginMB.title}"/>
</a4j:poll>
Fonte: http://stackoverflow.com/questions/11153010/updating-title-text-in-javaserver-faces-2-primefaces-3-3-1
segunda-feira, 11 de janeiro de 2016
Hibernate - A collection with cascade=”all-delete-orphan” was no longer referenced by the owning entity instance
public void save(ActionEvent event) {
dao = new InboxFinanceiroDao<Inbox>(HibernateUtil.getSession(),Inbox.class);
desativarTab = false;
try {
dao.save(inbox);
dao.refresh(inbox); // Adicione essa linha após persistir o objeto.
} catch (Exception e) {
}
}
Assinar:
Postagens (Atom)