Questions tagged as 'jsf'

1
answer

What is the use of adding / faces / in the web.xml?

I need to clarify this doubt. I hope you help me. <?xml version="1.0" encoding="UTF-8"?> <web-app version="3.1" xmlns="http://xmlns.jcp.org/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http:...
asked by 05.06.2018 / 18:31
1
answer

How to take the last element of a list in java?

I have the following list listNivelesPersona2 = nivelesPersonaService.findNivelesPersonaConsultaHorario(cvePersona); I want to recover the last record of the time of entry and exit, I do the following for (NivelesPersona nivelesPerson...
asked by 09.04.2018 / 20:23
1
answer

p: autocomplete primefaces update

I have the following primefaces component: <p:autoComplete widgetVar="instalacion_w" size="52" dropdown="true" id="instalacion" scrollHeight="300" maxResults="100" value="#{facturacionView.filters.instalacion}" completeMethod="#{facturacion...
asked by 13.03.2018 / 14:16
1
answer

how to give horizontal spaces between inputs with css?

I was using &nbsp; to separate my components and it worked for me, but apart from that it occupied many, which I did not like as much as it looked, in my xhtml they added the following <!DOCTYPE html> <ui:composition...
asked by 07.02.2018 / 00:33
1
answer

How to add a row to a Primefaces table?

I have a table in primefaces to which I already add some columns, Now what I want is to add rows, and I have the following but it only shows text in the columns and it does not show what I have in the outputLabel, or in what way is it done? &l...
asked by 24.01.2018 / 17:56
1
answer

how to clean the fields of a form in jsf?

Hi, I have my form in jsf with primefaces what I want to know is how to clean the data once I fill them and I gave in submit button because if I go back in, it paints me the data that I had already entered, I do not know if it is from the view o...
asked by 09.11.2017 / 17:22
1
answer

how to convert this date format Tue Jan 10 00:00:00 CST 1984 to format 10/01/1984 in jsf?

I have my variable DateNacimiento of Type Date to which I pass a date that comes from a WS of type XMLGregorianCalendar fechaNacimiento = DateUtils.convertXMLCalenarIntoDate(datosProbatorios.getDatosPersonales().getFxNacimiento()); but when...
asked by 26.12.2017 / 19:11
1
answer

How to deploy my hosting site without losing the links?

I deployed my Java site with JSF and Primefaces in DailyRazor using the tomcat Manager but it remains in a folder behind the context and I can not make it look direct from the main domain www.misitio.com. I must use www.misitio.com/contexto/f...
asked by 23.10.2017 / 05:00
1
answer

Java - Place text between list values

I am using the StrSubtitutor to create parts of a document that will be previewed in a window with ckeditor. The question is that I need to use some lists of objects for some data and must have some texts in between, explain with an example:...
asked by 05.01.2018 / 17:54
3
answers

At the time of executing a NamedQuery it returns data type object [] instead of Java Class type

I have a NamedQuery that only brings certain columns, the problem is that in my method public List<T> NewEncontarSqlArmado(Map parametros, Asignaturas asignatura) throws ConsultarException { try { Iterator it = parametros.ent...
asked by 29.09.2017 / 18:05