Posts by Marcus Vinicius • 131 points
8 posts
-
1
votes2
answers118
viewsA: Creating Table from Javascript how to insert a Button element?
My solution turned out like this, see if it helps you. <html> <head> <h1>Tabela</h1> </head> <body> </body> <script> class Pessoa { constructor(id,…
-
1
votes1
answer298
viewsA: Hibernate and object list
Try to change the return of your method to the type of object you need, and Netbeans itself will force you to cast. There’s gonna be something, sort of, like this : public Membro Select() { Membro…
-
1
votes1
answer1944
viewsA: Auto-relationship in mysql
CREATE TABLE IF NOT EXISTS mydb.FUNC ( CODFUNC VARCHAR(5) NOT NULL, NOME VARCHAR(45) NULL DEFAULT NULL, PERFIL TINYINT(4) NOT NULL, CPF BIGINT(16) NOT NULL, codfunc1 VARCHAR(45) NOT NULL, PRIMARY…
-
5
votes1
answer197
viewsA: Java method show dates in a loop
To display in DD/MM/YYYY format it is necessary to use Dateformat. The big problem in your code is only in line c.add(Calendar.MONTH +1,i), the right one is c.add(Calendar.MONTH, 1), because the…
javaanswered Marcus Vinicius 131 -
1
votes2
answers1108
viewsA: Validating an input type field against a select
I made a basic example, I don’t know if it’s the best way, but it works. <!DOCTYPE html> <html> <head> <link rel="stylesheet" href="style.css"> <script> function…
-
0
votes1
answer84
viewsA: Problem removing data from an Arraylist
The method nextLine() is returned all line, from your file, at once. I believe that if you use the split() can solve your problem, once this method can split a string, in the patterns you define,…
-
0
votes2
answers337
viewsA: JSF tags are not being converted to HTML
I believe that so you can use both: <servlet-mapping> <servlet-name>Faces Servlet</servlet-name> <url-pattern>*.xhtml</url-pattern>…
-
1
votes2
answers409
viewsA: id problem already exists in view
JSF doesn’t allow you to have equal id’s, so what you need to do is change it from one of the pages you posted. I recommend you detail more the id, something like and ....