Questions tagged as 'jsf'

1
answer

Rendered of primefaces giving error when retrieving entity boolean

Does anyone know why rendered graphic image is giving error? <p:dataGrid columns="3" value="#{projetistaBean.listaDeProjetistas}" var="projetista" styleClass="ui-datagrid" > <h:commandLink>...
asked by 05.08.2014 / 17:11
2
answers

___ ___ erkimt error occurs when performing resource injection in Bean ______ qstntxt ___

Bean:

%pre%

Page:

%pre%

Exception:

  

javax.servlet.ServletException: An error occurred when performing resource injection on managed bean MBfabricantes       javax.faces.webapp.FacesServlet.service (FacesServlet.java:659)       org.apache.tomcat.websocket.server.WsFilter.doFilter (WsFilter.java:52)

    
______ ___ azszpr28385

The resolution of this was:

In the factory connections, specifically in the method, I put the following command (although my Java version is 7):

%pre%     
______ azszpr31582 ___

An additional to your own answer (This should be a comment, but strangely in some questions I am unable to comment (I am a new user)).

You make DriverManager.registerDriver (Driver driver) redundant. What was happening is that your application's DriverManager was not being notified to register the driver. See the static startup section of the com.mysql.jdbc.Driver class:

%pre%

Not that this is important, but it's the way JDBC Drivers work (they only need to be triggered once to be automatically registered). To avoid a strong direct coupling of your class with the driver, choose to do

%pre%

Usually on an application server, this code snippet is not required.

    
___

Bean: package br.com.drogaria.bean; import java.sql.SQLException; import java.util.ArrayList; import javax.annotation.PostConstruct; import javax.faces.bean.ManagedBean; import javax.faces.bean.ViewScoped; import javax.faces.model.ListDataMode...
asked by 07.08.2014 / 07:08
1
answer

How to only change the visible checkboxes of a datatable?

Problem situation, suppose we have a datatable in primefaces with the following characteristics: The first column instead of the title has a checkbox with the label all . All lines in this first column also have a checkbox (and this check...
asked by 09.06.2014 / 03:26
2
answers

Simple authentication example with level without hibernate and spring

I would like a simple example of user authentication. I already have the table in the database, which contains the user data and the level (Administrator, common user). As I'm running out of time to tinker with Hibernate and Spring, I want...
asked by 21.05.2014 / 04:59
1
answer

Send a ListEntity in Redirect

I have a List and I need to send it to another page to fill a table, how much the redirect ends the page loads but the table does not fill because the List has been emptied, how do I keep it with the information? MinhaBean @ManagedBean(name...
asked by 06.11.2014 / 16:22
1
answer

Run JSF on Jetty 9

I'm having trouble running JSF on Jetty 9. Is there any specific jar within the application or some configuration in Jetty?     
asked by 14.05.2014 / 14:49
1
answer

Javadoc from JSF not found in Netbeans

I use Netbeans 7.2.1 and wanted to know why only the Javadoc of Java objects (java.lang, java.io, etc) are shown. All other (javax. *) Shows something like:    javax. faces. context       public abstract class FacesContext extends Object...
asked by 11.03.2014 / 18:50
1
answer

Paypal IPN for canceling recurring payment

I obtained the following code from PayPal's git hub. I am making recurring payments and would like to receive notification on the system when canceling. This could block the provision of my services if the user cancels. I have the servlet code,...
asked by 29.09.2014 / 16:53
1
answer

Problems with data modeling with Persistence.xml

I created a college application to create automatic tables by Hibernate with JPA but it gave some error in some tables, which were these; Catalog OrderDAO ProductDAO but is generating the following error, When I click on Catalo...
asked by 25.09.2014 / 01:13
2
answers

Overwrite component CSS CSS in Richfaces

I'm using a calendar component but only the date (omitting the time), and overwriting CSS to reduce the screen size. Follow below: <rich:calendar value="#{_sessao.dtSessao}" showFooter="false" enableManualInput="true" locale="pt_BR" dat...
asked by 30.09.2014 / 17:41