Questions tagged as 'jsf'

2
answers

JSF Primefaces And html input

For reasons of requirement, I have to combine components of primefaces and an input file in pure html. Now my question is, can I have the html input inside a JSF form? And that practically the whole view is with PrimeFaces and from a bean to pro...
asked by 23.05.2016 / 19:13
2
answers

Call JavaScript in a bean

What I want to do is the following. When a request is registered in the database in the interface a message of successful registration is shown, the message that I must put is one of SweetAlert . I use JavaServer Faces and I want to k...
asked by 24.05.2016 / 15:10
2
answers

redirect from my public void method to an xhtml

I did a validation in a method of type boolean . How is it made from método public void to redirect? I know that a string method with return is enough but I do not know in a signature method void Method: public vo...
asked by 04.05.2016 / 17:48
1
answer

java.lang.IndexOutOfBoundsException: Index: 0, Size: 0 JSF

I have this xhtml code: <div class="row"> <div class="col-lg-5 col-md-5 col-sm-12 col-xs-12"> <div class="input-group"> <h:inputText p:placeholder="Nro Documento" class="form-control" value="#{BeanP...
asked by 15.06.2016 / 16:01
0
answers

Problem. It does not show data from MySQL Database

I am starting a Java Web application with Java SE Development 64 bit (Version 8, compilation 1.8.0)  with JSF, JPA, Maven in Eclipse Version: Oxygen.3a Release (4.7.3a.) Spring  Database in MySQL Workbench 8.0 CE. Apache Tomcat v8.5 Server. A...
asked by 04.01.2019 / 06:52
1
answer

How can I hide a f: selectItem from a p: selectOneRadio in JSF?

Here is the code portion of component p: selectOneRadio <p:selectOneRadio id="console" value="#{archivamientoView.archivamientoDTO.tipoProcesoArchiva}"> <f:selectItem itemLabel="Denuncia" itemValue="...
asked by 19.12.2018 / 17:08
1
answer

how to perform a mathematical operation in the same input, using javaserver faces?

Code xhtml <html xmlns="http://www.w3.org/1999/xhtml" xmlns:h="http://xmlns.jcp.org/jsf/html" xmlns:p="http://primefaces.org/ui"> <h:head> <title></title> </h:head> <h:body> <p:layoutUnit p...
asked by 13.12.2018 / 17:33
2
answers

autocomplete paste multiple elements

I have a component of primefaces p:autocomplete my question is if it is possible to paste several elements at the same time. The component: <p:autoComplete dropdown="true" id="instalacion" maxResults="100" value="#{principa...
asked by 24.10.2018 / 18:00
1
answer

Bean does not show parameters sent from DTO

I am programming a mini form, the question is that I have 2 user and institute beans, the user logs in and enters an index where he has to fill out a form, in index I want to show both the user's name and the institute that it logs both in an o...
asked by 12.09.2018 / 21:35
0
answers

Tomcat does not process my xhtml

I'm doing a project with sprig-boot, jsf, tomcat and maven, when I run the app with the command mvn-spring-boot:run works perfectly with my embedded tomcat, but when I go to my tomcat on the server, I charge my war and it I give in deploy...
asked by 31.08.2018 / 00:06