Posts by Roknauta • 2,811 points
221 posts
-
0
votes2
answers75
viewsA: Is there an error in these command lines?
The error occurs because the files are not in the directory where you are running the script. One of the alternatives is inside your script you enter the folder where the files or the file are:…
-
0
votes1
answer223
viewsQ: Change style Facesmessages
As shown in the figure, the FacesMessages has the following standard formatting: It is possible to change the background and font styles ?…
-
3
votes1
answer579
viewsA: Git bug help me please
When you use the command git clone <url> a folder is created with the same name as the project present on the server. You can only use the commands from git inside this folder or pointing to…
-
1
votes1
answer366
viewsQ: Pass parameter in Bundle
My application uses message internationalization, etc. I would like to know how to pass parameters when passing a key that will fetch a value in the file .properties. Ex: My crud screens will always…
-
0
votes1
answer74
viewsQ: Convert classes
I have studied programming in JSF, I read that for objects to be transformed into String you need a Convert to the entity. Is there a class already ready and we adapt our Entities? How it works ?…
-
0
votes6
answers2011
views -
10
votes5
answers1033
viewsQ: What is the definition of each css selector combination
The . css files that are used follow a pattern: seletor{ atributo: valor } The attributes and values part I understand, but in some examples I see these selectors being separated with ',' or with a…
-
1
votes1
answer217
viewsQ: Better organization of my project
My project has the following packages in its structure: br.com.xxxx.model: Which contains the entities. br.com.xxxx.negocio: That contains the DAO interface along with the implementing classes.…
-
4
votes1
answer94
viewsQ: Better formatting of xhtml files
Given the excerpt from my archive .xhtml: <h:panelGrid id="camposPesquisa" columns="2"> <h:outputLabel value="#{msg['nome']}: " /> <p:inputText value="#{naturemb.arg}" />…
-
1
votes0
answers126
viewsQ: Call properties in java
I created a file .properties to organize my texts, etc. I can use normally calling the key from a .xhtml. But I can’t call from a code .java. My files are below: package br.com.pokemax.util; import…
-
0
votes1
answer82
viewsQ: Check for UK before creating a
I have the following query: alter table FINALIDADE_OPERACAO_MODAL add constraint UK_t127pwh154arjh5whq0g4dlrm unique (NOME); As I create a function that checks if it exists before, and if it does…
-
1
votes1
answer309
viewsQ: Error in field validation
I have the following class: package br.com.pokemax.modelo; import java.util.Collection; import javax.persistence.Column; import javax.persistence.Entity; import javax.persistence.FetchType; import…
-
1
votes1
answer692
viewsQ: File . properties in java code
My JSF application I’m using a file. properties to store the texts, etc. I already use calling the keys inside the .xhtml. file How do I call the keys in the code . java ? My class Util: package…
-
1
votes1
answer1624
viewsQ: Difference between process and immediate
in JSF, what is the difference between immediate and process attributes? In my view both seem to have similar functions.
-
0
votes1
answer208
views -
1
votes1
answer625
viewsQ: Do I need to put the hidden files from the Eclipse project into the repository?
I would first like to know if these of the hidden image files (.somemacoisa) need to go to the repository, since I work on the same project on more than one computer. My other question is whether…
-
1
votes3
answers1043
viewsA: Delete registration form, JSF Primefaces
To simplify, you can set the user to null, as in the example below and change your update to xhtml: public void limpar() { usuario = null; } <p:commandButton value="Limpar" action=…
-
0
votes2
answers1255
viewsQ: Update datatable after deleting record
after deleting a record in my datatable, I want it to be reloaded, I’m not getting it. Someone gives a help? <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML…
-
1
votes1
answer16
viewsQ: How to use 2 values in a css property
Good afternoon, I want my String to be formatted as Bold and Italic. In my css file it looks like this: font-style: italic bold; It doesn’t work. I’ve tried several ways and I can’t. Can someone…
-
1
votes1
answer173
views -
1
votes1
answer154
viewsA: Chart primefaces does not take Selectonemenu variable
Next, when you use the <p:selectOneMenu use the value instead of itemValue to receive the value that will be selected in the drop. In his <f:selectItem you already pass a value to him…
-
2
votes2
answers254
viewsQ: Unzipping files with space in name
I’m trying to unpack a large mass of files on linux and I’m trying to use a for that looks like this: for z in *.zip; do unzip $z ; done but I get the following message: unzip: cannot find or open…
-
1
votes1
answer2047
viewsQ: Change time in sql server 2014
Good morning, as can be seen in the image below, I made a select to get the current date and the same is +3. How can I change this date/time?…
-
0
votes1
answer152
viewsQ: Calling a method via datatable lines
Given my datatable below: <p:dataTable id="tabela" var="linha" value="#{naturemb.lista}" paginator="true" rows="10" rendered="#{not empty naturemb.lista}" > <p:column…
-
1
votes1
answer25
viewsQ: Symbols of the ternary operation appear on the screen
As can be seen in the line below, I am using a ternary condition on my screen: <h:outputText value="#{naturemb.nature.id == null} ? #{msg['cadastrando.nature']} :…
-
0
votes1
answer235
viewsA: Error in properties file configuration
After breaking my head a lot and testing here and there, I left in my faces-config.xml the chunk of the file path so: <base-name>properties.mensagens</base-name> Didn’t need to pass the…
-
1
votes1
answer83
viewsQ: Format word if it is in a datatable
Given my datatable: Mark the word Atack. Is it possible to create a check that if this word is in the datatable it gets a different format? Ex: Bold and the color is Blue.…
-
3
votes2
answers677
views -
1
votes1
answer30
viewsA: Problem in rendering
Solved. There were 2 problems: Mb’s name was wrong. In the method novo() needed to instantiate the object at the end. public void new() { if (Nature == null) { Nature = new Nature(); } Else { Nature…
-
1
votes1
answer30
viewsQ: Problem in rendering
In my registration screen I have 2 buttons: Save and Come back. In case I am editing some record, the button is enabled New. My problem is when I click this button New the screen gives the refresh…
-
0
votes1
answer235
viewsQ: Error in properties file configuration
I am trying to set up a properties file. I followed some tutorials but unsuccessfully. I am with the following error: Caused by: java.util.Missingresourceexception: Can’t find Bundle for base name…
-
1
votes1
answer546
viewsA: Edit datatable record
Solved. The problem was that I didn’t set the new values for the object. I set and solved :). setHabilidade(dao.find(id));
-
0
votes1
answer546
viewsQ: Edit datatable record
Next person: On my datatable when I click the edit button, you are not opening the screen for editing. Can anyone help me where I am missing? page: <h:form id="pesquisa"> <p:panel…
-
0
votes1
answer62
viewsQ: What does "@" mean in JSF?
What does this @ on JSF pages mean? ex: process="@this" update="@form"
-
0
votes2
answers112
viewsA: Help in Nullpointer Exception
I found out what it was, watching the debug, I noticed that the dao was null, so I used the injection on it instead of instantiating it, making it work. @Inject HabilidadeDAO dao;…
-
-1
votes2
answers112
viewsQ: Help in Nullpointer Exception
Before the data goes to the bank I’m with a nullpointer that already debugged and I can’t find where the problem is. Down with my classes: package br.com.pokemax.controle; import…
-
0
votes1
answer152
viewsQ: Hibernate shows ddl but does not create tables in the database
When starting wildfly I expected the tables to be created in the database but in the console shows a log of create Tables but nothing happens in the database. Below I show it: 14:15:00,462 INFO…
-
0
votes1
answer1413
viewsQ: Change theme of the first faces
I’m trying to change the theme of primefaces, downloaded all available themes using Maven and my web.xml file was like this: <?xml version="1.0" encoding="UTF-8"?> <web-app…
-
0
votes1
answer929
viewsQ: Use external css file in JSF
given my template page: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"…
-
1
votes1
answer81
viewsQ: Error with Hibernate when running server
When running wildfly I have the following error snippet in the log: 15:46:18,297 ERROR [org.jboss.msc.service.fail] (MSC service thread 1-1) MSC000001: Failed to start service…
-
0
votes1
answer70
viewsQ: Error trying to save register in bank
After filling the form and clicking Save, the error below occurs: mai 20, 2016 7:14:52 PM com.sun.faces.context.AjaxExceptionHandlerImpl handlePartialResponseError GRAVE:…
-
0
votes1
answer786
viewsQ: Render component after clicking button
I have a Yes/No button.I would like to have an element rendered below by clicking Yes. As follows in the example of my page: <?xml version="1.0" encoding="UTF-8" ?> <!DOCTYPE html PUBLIC…
-
1
votes1
answer102
viewsQ: Primefaces component did not render as expected
As you can see in the image below, the input field is not in the layout of the primefaces. Does anyone know how I can solve? Below now follows my file . xhtml: <!DOCTYPE html PUBLIC "-//W3C//DTD…
-
2
votes1
answer164
viewsA: Script that erases files by Spellnumber
The basic syntax is this: if "%variavel%" == "XD" ( Comandos a serem executados ) ELSE ( Comandos a serem executados ) Now you need to adapt to your script.…
-
2
votes1
answer354
viewsA: Error connecting to Mysql
The error occurs because the mysql driver is not in your classpath. To resolve, you can download it manually via the link https://dev.mysql.com/downloads/connector/j/ Or you can add the dependency…
-
2
votes1
answer80
viewsA: Select between 2 tables
The first thing to do is create a key for the relationship between the 2 tables, after that, would be like this for example: SELECT v.nomeVeiculo FROM VEICULO v INNER JOIN RESERVA r on v.id not in…
-
1
votes4
answers11643
viewsA: Error while running Hibernate
After following the advice of gabriel_amaral, I got a new error where it was easier to locate the problem, so I added 2 more dependencies of Maven and solved my problem. Thank you all. The link…
-
6
votes4
answers11643
viewsQ: Error while running Hibernate
After catching a little, I’m walking with my project. When running the project, I have the following error: mai 16, 2016 6:41:22 PM org.hibernate.jpa.internal.util.LogHelper…
-
0
votes2
answers105
viewsA: Problem entering data into database
The main problem was that Hibernate did not delete this table in question, before there was a field problem with a lower value than it had tried to insert. After manually deleting the table, I…
-
2
votes6
answers2011
views