Questions tagged as 'jsf'

1
answer

Refresh page re-inserts

I'm starting web development with java and I'm doing some testing and I came across the following situation, I created a form that loads a list based on every click of the button, however, when I refresh the page I still load the list with the l...
asked by 26.08.2016 / 18:56
1
answer

How to redirect page in JSF?

I have a system with a form where you can edit or remove items. There is a link to redirect another page. What form can I redirect a page to in JSF?     
asked by 29.09.2017 / 17:20
2
answers

Replace jquery with pure javascript

I have a jquery script to remove a class from a div automatically if browser javascript is enabled. <script type="text/javascript"> $("#scriptT").removeClass("noscript"); </script> But for this I need to import jquer...
asked by 29.01.2018 / 00:30
2
answers

NullPointer Exception Help

Before the data goes to the bank I have a nullpointer that I've debugged and I can not find where the problem is. Below my classes: package br.com.pokemax.controle; import java.io.Serializable; import java.util.logging.Logger; import...
asked by 04.06.2016 / 17:58
1
answer

Search bank using JSF

I'm programming an application in JSF, my application manages to do Record and Change with no problem, however as I'm using Java web technology I'm now finding it rather difficult to perform a search and bring the data to a DataTable , would any...
asked by 30.09.2014 / 12:23
1
answer

Problems with if not managedbean

I have a login form with the registration and password fields. I'm trying to validate this login where only the registration "92018" can log in the system, but when the logar method is called, it does not pass through if, even if I typed the cor...
asked by 13.10.2018 / 04:08
1
answer

Method being called several times in the change event of a p: ajax

I have a table with a p:inputText with a p:ajax inside, it has the change event, when I fill that inputText with a value a query and some validations are performed. The problem is that when I put a value inside that...
asked by 10.05.2017 / 17:00
2
answers

Validate text before going to the screen

I have the following dataTable : <p:dataTable id="tabela" var="c" value="#{geracaomb.lista}" paginator="true" rows="10" rendered="#{not empty geracaomb.lista}" paginatorPosition="top"> <p:...
asked by 16.11.2016 / 16:23
1
answer

ArrayList repeating itself

I have an array that whenever I refresh my page, it doubles. I did some testing to see if it was not duplicating in JavaScript, but I did not find anything. This is JavaScript: <script src="https://ajax.googleapis.com/ajax/libs/jquery/3....
asked by 07.02.2017 / 19:45
3
answers

JSF - Select Item of a Set

I want to make an xhtml that returns a list of users and on the side a button will appear to select a certain user. Something like this: + ---------------------------- + | ID | User | (Button) + ---------------------------- + My questio...
asked by 03.05.2016 / 07:30