Questions tagged as 'jsf'

1
answer

How to make a form with JSF with a field that can have as many values as needed?

Considering the following entity class: import java.io.Serializable; import java.util.List; import javax.persistence.Entity; import javax.persistence.GeneratedValue; import javax.persistence.GenerationType; import javax.persistence.Id; import...
asked by 22.08.2016 / 20:59
1
answer

Format word if it's in a datatable

Given my datatable: Notice the word Atack . Is it possible to create a check that if this word is in the datatable it gets a different formatting? Ex: Make bold and the color is Blue.     
asked by 10.06.2016 / 20:58
2
answers

How to update row in dataTable? (Primefaces)

Hey guys? Please, can some ninja javeiro help me with this case? I have a dataTable and I need to know how to give an update in a single row after some event, such as a click on a commandButton. I studied a bit about 'omnifaces' before anyone...
asked by 03.06.2016 / 20:06
1
answer

JSF - how to send information to another page

I have orderList for the operator to select the client name. After selecting it, I need to direct it to another page with the client data. How do I pass information from the client that was selected to another xhtml page? What is the rati...
asked by 04.05.2016 / 13:38
1
answer

Best organization of my project [closed]

My project has the following packages in its structure: br.com.xxxx.model : Which contains the entities. br.com.xxxx.business : That contains the DAO interface together with the classes that implement it. br.com.xxxx.controle : Contai...
asked by 29.09.2016 / 13:50
1
answer

Primefaces component not rendered as expected

As you can see in the image below, the text input field is not in the firstfaces layout. Does anyone know how I can resolve? Belowisnowmy.xhtmlfile:<!DOCTYPEhtmlPUBLIC"-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/D...
asked by 20.05.2016 / 17:06
1
answer

Rendering problem

On my registration screen I have 2 buttons: Save and Back . If I'm editing a record, the New button is enabled. My problem is when I click this New button the screen gives the refresh but what I want is to clear the data for a new one. A...
asked by 09.06.2016 / 03:13
1
answer

I can not save to the database, nor does it show error logs in the hibernate project

In the project I use hibernate , and when I try to save a new client, it only shows the validation message of the CadastroClienteService class. The strange thing is that all fields are filled in form, it seems null pointer , b...
asked by 20.03.2016 / 19:27
3
answers

currency mask jquery

In my xhtml I have 2 input value 1 and value 2. The first input perfectly works the jquery currency mask. More in the 2 input that is in a modal the currency mask is not working. currency function function configurarMoeda() { $(".moe...
asked by 13.05.2016 / 03:22
1
answer

Put words in capital letters

I have an input and I would like that when the user types in the letters they are getting in a capital letter because of the javascript effect. Without the form I can, but when I put the form does not work. ' <ui:define name="content">...
asked by 12.03.2016 / 19:35