Questions tagged as 'jsf-2.2'

0
answers

algaworks JSF Primefaces does not have void methods

I'm studying PrimeFaces with CDI for some video lessons I've been watching but something strange is happening. I have a bean gestaoEmpresas There are two methods, a void consultar() and a List<Empresas> todasEmpresas...
asked by 21.05.2015 / 19:19
0
answers

Error message Method not found: class Bean

This is the error message apprehended; mai 25, 2015 3:40:55 PM com.sun.faces.context.SessionMap put ADVERTÊNCIA: JSF1063: AVISO! Definindo valor de atributo não serializável em HttpSession (chave: produtoMB, classe do valor: managedBean.Produt...
asked by 25.05.2015 / 21:27
0
answers

How to use inheritance in ManagedBeans?

Considering: public abstract class Usuario { public Usuario(String login, String senha) { this.login = login; this.senha = senha; } private String login; private String senha; } public class Professor extends Us...
asked by 20.03.2015 / 02:50
0
answers

Change method to insert image - JSF

How do I change the method to be able to insert the image? public Produto gravarImagem(Produto produto) { Session sessao = HibernateUtil.getSessionFactory().openSession(); Produto produtos = null; try { Query inseri_ima...
asked by 20.05.2015 / 19:42
0
answers

DAO Method Can not Save Image

My bean class is already able to save the image in my specific directory, I know this because I did a test, but only it fails to save the String which is the name of the file that makes FileUpload in the database I'm going to show part of the...
asked by 19.05.2015 / 20:51
1
answer

Primeface uploadFile + graphicImage: Upload image and display without refresh

I'm starting to program the jsf + primefaces . A long time ago I worked with JSP (java 1.4) and I'm kind of lost. I want to upload an image and have it displayed right below it. images.xhtml <?xml version="1.0" encoding="UTF-8"?&...
asked by 10.03.2015 / 15:59
2
answers

How to change Jumbotron tag in bootstrap in google chrome browser?

Look closely at the image; Nowtakealookatthecode<!--jumbotron--><divclass="jumbotron"> <div class="container text-center"> <h1>JWB Tecnologia</h1> <p>Este portal foi criado para auxilia...
asked by 24.08.2015 / 12:51
1
answer

Friendly URL with JSF, Facelets and Bootstrap is it possible?

I'm using in a JSF project with Facelets and Bootstrap. How to leave it with friendly URL? Example: After login the URL looks like this: example.com/public/home.xhtml When you click on an item from the menu the URL changes to: example.com/...
asked by 07.07.2015 / 22:23
1
answer

p: editor primefaces tabindex does not work

In a .xhtml view I use p: firstfaces editor <p:editor id="idDescription" tabidex="2" > ... When the tab key is pressed, after being in field 1, tabindex="1", it will not go to the next one of the sequence, in that case it is idDescr...
asked by 26.10.2016 / 17:34
1
answer

Component ui: JSF composition does not work

I'm creating an example template but when the page opens it is blank, the template and page that tries to pull the template follows: master-template.xhtml: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DT...
asked by 15.10.2015 / 03:17