Posts by Raphão Torres • 313 points
16 posts
-
1
votes1
answer232
viewsA: Google Chart Geochart does not work in Java
managed to solve part of the problem by changing var Otions{}, and it is not possible to see by city, only by state. <script type='text/javascript'…
-
0
votes2
answers599
viewsA: Update primefaces table
In selectOneMenu, try to change your ajax by adding the change: <p:ajax event="change" update="tabLeisMunicipais" />
-
0
votes1
answer42
viewsA: Time to update - JSF
you can use the p:pool of the primefaces. <p:poll interval="60" listener="#{meuBean.funcao}" update="idDaTabelaFormEtc" /> interval defines the seconds.…
-
1
votes1
answer232
viewsQ: Google Chart Geochart does not work in Java
Hello, I have a problem running a Google Chart Geochart map in Java... If it’s in a normal . html file, it works, but inside my xhtml project it doesn’t work. Code in html: <html> <head>…
-
0
votes1
answer38
viewsA: Problems inserting an OBJ into a LIST
Voce forgot to create Autorvo = new Autorvo(); inside while
-
6
votes2
answers25412
viewsA: Using WHERE with INNER JOIN
can add the WHERE clause before or after Inner Join SELECT CodCli, NomeCli FROM tbvendas INNER JOIN tbclientes ON tbvendas.CodCli = tbclientes.AutoCod WHERE status = 'debitado' to add the WHERE…
-
1
votes2
answers253
viewsA: Check and edit a List
You can use the datatable rowStyleClass and create a method to format or treat words. <p:dataTable value="#{ManagedBeam.lista}" var="item" rowStyleClass="#{ManagedBean.tratarPalavra(item)}" and…
-
1
votes2
answers95
viewsA: Validate text before going to the screen
in your outputText you can set a variable with already formatted text... In your bean you create a String textFormated. uses the same logic as the checkTipo pro string value method then outputText…
-
0
votes1
answer87
viewsA: Charts Primefaces
chartSeries.set receives 2 parameters: ChartSeries chartSeries = new ChartSeries; chartSeries.set("Qtd usuarios", valor); chartSeries.set("Trans Ativas", valor); chartSeries.set("Trans Alocadas",…
-
0
votes1
answer57
viewsA: Problems saving with selectOneMenu.
you need to popular the Rd in the save method before sending to the DAO.
-
0
votes2
answers1234
viewsA: Compare Two List
When you compare with the comments.equals(commentsSP) method, you are comparing the memory address in which the list is allocated. using the List equals() you compare the values themselves.…
-
2
votes1
answer338
viewsA: Dynamically update a primefaces table
Hello, you can add an event that updates the table from both in so long. <p:poll interval="10" listener="#{tabelaBean.carregarTabela}" update="idDaTabela"/> with this function, your table will…
-
2
votes3
answers110
viewsA: JSF panelGrid does not work
the elements must be inside the tag and for a better nesting, use the 'for'. example <h:outputLabel for="txt" value="texto1"/> <h:inputText id="txt value="#{seuBeam.texto1}"/> it is also…
-
0
votes1
answer112
viewsQ: How to update an <h:form> every 30 seconds JAVA WEB
I’m trying to create a panel showing the sales results on a screen in my company. I need to time the panel every 30 seconds so that the results are always up to date. I have no idea how to do, all…
-
-2
votes1
answer154
viewsQ: Chart primefaces does not take Selectonemenu variable
I am trying to pass a Selectonemenu variable to a Chart of the first faces and I believe the program updates the Chart before passing the variable. <p:outputLabel for="listagem"…
-
-1
votes1
answer89
viewsQ: How to create a list with Months to change the Datatable result?
I have a dataTable that brings the data of a specific month set in DAO. I would like to create a field where I select the month and it updates the table with the selected month. You have to use…