Posts by Luan Silva • 105 points
15 posts
-
0
votes1
answer46
viewsQ: Lock send button when no file has been uploaded
So, guys, I have a fileUpload component from primefaces for uploading files. It turns out that even with the required="true", if the user click submit without having uploaded any file the system…
-
0
votes0
answers45
viewsQ: Step by Step or Progress Menu
I was trying to make a step-by-step menu, so I got to that. My intention was to click on the first circle, light step 1 in the color green and move on to the next step, making the line between them…
-
3
votes2
answers1060
viewsQ: Prevent browser autocomplete
There is how to prevent, through code, the browser to make suggestions to fill in the login form? It is that the system will be used in laboratories and it would be boring the browser to suggest all…
-
0
votes1
answer164
viewsQ: Show preloader icon on site
I have a login registration page that calls a registration confirmation page, in case the person has to open the email, pick up the code received and set this registration confirmation page. The…
-
1
votes3
answers709
viewsQ: Replace javascript Alert
The system form I develop is full of Alerts to warn the user that he cannot leave that field without filling it out. The problem is that Alerts are very uncomfortable, and so I wanted to replace it…
-
1
votes2
answers392
viewsQ: Replace jquery with pure javascript
I have a jquery script to automatically remove a class from a div if browser javascript is enabled. <script type="text/javascript"> $("#scriptT").removeClass("noscript"); </script> But…
-
0
votes1
answer255
viewsQ: Validate password size
People because this condition doesn’t work?? It’s something simple but because I don’t know javascript I’m picking up. function QTDsenha(){ var senha = document.getElementById('idSenha');…
javascriptasked Luan Silva 105 -
0
votes1
answer461
viewsQ: Javascript for validation
I’m using javascript to validate some form fields like phone and CPF. The script works correctly the way I want it, the problem is that when the user does not type all the numbers in the script so…
javascriptasked Luan Silva 105 -
0
votes2
answers31
viewsQ: Validate campus by calling javascript function
I need to validate the phone campus and CPF, and for that I found the following script https://codepen.io/KingRider/pen/qNxror But when I play here in JSF it doesn’t work. In that I opened a new tab…
-
0
votes1
answer111
viewsQ: How to find out which tab is enabled
I am programming in JSF using Primefaces. Here I am with a form that has 4 tab’s and I need to check which tab is enabled to be able to call my javascript and validate the data entered at the moment…
-
0
votes1
answer254
viewsA: Injection error in Bean feature
Managed Bean from Telaalunosbean package br.ifba.edu.as.bean; import br.edu.ifba.as.entidades.formulario.Aluno; import br.edu.ifba.as.entidades.formulario.Turma; import…
-
0
votes1
answer254
viewsQ: Injection error in Bean feature
So guys, I’m developing in jsf and I came across this mistake there, does anyone have any idea what it might be?? javax.servlet.ServletException: javax.servlet.ServletException: Um erro ocorreu ao…
-
0
votes0
answers191
viewsQ: Primefaces Wizard skips tab without validating fields
I created a javascript function to validate form fields composed by the component <p:wizard> of the Primefaces. The function is called through the event onnext=""of <p:wizard>, that is,…
-
1
votes2
answers349
viewsQ: Exchange input class when completed
I’m making a form using primefaces, and I wanted my input to change class when it was filled, only going back to the previous class if the user deleted the content. This is to make the outputLabel…
-
2
votes2
answers1261
viewsQ: Javascript only works after two clicks
I’m using a side menu on a site and I wanted it to retract with a click on the button... it turns out it’s only happening after two clicks!! function resp() { var clique =…
javascriptasked Luan Silva 105