Olá, tudo bem? No post de hoje veremos como tratar o famoso erro LazyInitializationException. Vamos ver 4 modos de evitar que esse erro aconteça, a vantagem e a desvantagem de cada abordagem e ao final, veremos comentários sobre o modo de como o EclipseLink trata essa situação. Para simular e [ Read More ]
Hello, how are you? In the post today we will talk about the common LazyInitializationException error. We will see four ways to avoid this error, the advantage and disadvantage of each approach and in the end of this post, we will talk about how the EclipseLink handles this exception. To [ Read More ]
Olá, tudo bem? Existem diversos tutoriais na internet e, que inclusive aqui no blog, mostram como realizar diversas tarefas com JPA. Vejo diversas pessoas em fóruns com dúvidas sobre Queries em JPA e são necessários diversos links para mostrar uma solução sobre o assunto. Até hoje não encontrei nenhum post [ Read More ]
Hello, how are you? There are several JPAs “how to” that we can find on the internet, here in this blog, that teaches how to do several tasks with JPA. Usually I see some people asking questions about Queries with JPA; usually to answer this kind of questions several links [ Read More ]
Olá, tudo bem? Vamos ver hoje como fazer uma paginação de um datatable JSF utilizando o modelo lazy em um managed bean de view scope. Quantos termos complicados em uma frase apenas. Existem diversos frameworks JSF hoje no mercado que nos fornecem datatables prontos com paginação, ordenação e outras mais [ Read More ]
Hello, how are you? Today we will do JSF datatable pagination with a Lazy List with a view scoped managed bean. What all those words/expressions mean? There are several JSF frameworks today that provide datatables with a ready pagination, columns sorter and others functionalities. Today we will use the Primefaces [ Read More ]
Olá pessoal, bom dia. Hoje vai ser o maior post que eu já fiz! Vamos ver uma aplicação completa. Ela será feita com tecnologias mais novas, mas darei dicas de como adaptar algumas partes para alguma tecnologia mais antiga assim que possível. Ao final desse post você irá encontrar o [ Read More ]
Hello, how are you? This post will be the biggest so far in my blog! We will see a full web application. It will be done will the newest technologies (until today), but I will give some hints to show how to adapt this post to older technologies. In the [ Read More ]
Olá tudo bem? Como utilizar passagem de parâmetros via URL utilizando JSF? Creio que será o menor post aqui do blog, pois é muito simples. Ao final do post você irá encontrar o link para download do código de hoje. Os outros posts sobre JSF são: JSF Exemplos Simples com [ Read More ]
Hello, how are you? How can we pass parameters through a URL using JSF 2.0? I believe this will be smallest post here. At the end of this post you will find the link to download the created source code. The other posts about JSF/Web Applications you can find in [ Read More ]