Posts by wladyband • 4,694 points
426 posts
-
-3
votes3
answers116
viewsQ: How to use jquery to form the date field for month and year?
I’m using the lib of maskedinput jquery to format the data field, but I would like the field to be formatted as follows... 99/9999 Eu fiz essa tentativa, mas não deu certo; $(function() {…
-
1
votes2
answers52
viewsQ: How to format the mm/yy field in Javascript?
Watch the HTML code; <div class="form-group"> <label for="inputEmail3" class="col-sm-2 control-label">Período:</label> <div class="row"> <div class="col-sm-2">…
javascriptasked wladyband 4,694 -
0
votes1
answer84
viewsQ: How to adjust the regular expression in Java?
Look at the code: Pattern pattern = Pattern.compile("^\\d{1,3}(\\.\\d{3})*,\\d{2}$"); Matcher matcher = pattern.matcher(dadosCSV[position4]); And I took this regular expression already ready, it’s…
-
0
votes1
answer887
viewsQ: Regular expression for monetary value
Watch the code in Java: String valor = 1.500,00; Pattern pattern = Pattern.compile("\\d+(\\.\\d{1,2})?"); Matcher matcher = pattern.matcher(valor); if (matcher.find()) { System.out.println("Valor…
-
-2
votes2
answers700
viewsQ: How to know how many positions an array has in Java?
Look at the picture; I’m uploading a CSV file, and I’m already able to count how many lines there are, in our context are three lines as shown in the code below; However I need now and how to get…
-
1
votes1
answer20
viewsQ: How to find error lines in a CSV file upload?
I am implementing a CSV file upload, currently I am able to count how many lines has the CSV, I am able to identify when errors exist in the CSV as shown in the algorithm below; File arquivoLeitura…
-
0
votes1
answer41
viewsQ: How to place an increment inside a FOR loop?
Please observe the code; BufferedReader reader = new BufferedReader(new InputStreamReader(new FileInputStream(getArquivo()))); File arquivoLeitura = new File(getArquivo()); LineNumberReader…
-
0
votes1
answer49
viewsQ: How to hide gid line with jQuery in checkbox checked?
Look at the picture; In the image above shows that by clicking the button Show non-compliance Does not apply it hides the two checkbox on the grid. But what I need is quite different, I need that…
-
0
votes1
answer37
viewsQ: How to solve Struts Submit CSS?
Watch the image; I’ve done everything to put this button in the right place that I can’t, it just gets weirdly in the corner of the screen, it’s very strange behavior for the one button. These were…
-
0
votes1
answer404
viewsA: How to cast in Java?
I created a variable in the entity receiving Getts and Setts Then I made this little change in the method; And it worked!…
-
0
votes1
answer404
viewsQ: How to cast in Java?
This model is working, look at the figure! You may notice that you are concatenating two String variables as you can see in the figure below; My problem now is to be able to concatenate an Integer…
-
2
votes2
answers1278
viewsQ: String or Binary data error would be truncated - SQL
This is the structure of my table; CREATE TABLE Pessoaldesenv.dbo.Conformidade ( [ID numeric] numeric(19,0) IDENTITY(1,1) NOT NULL, Validacao int NULL, Arquivo varchar(100) COLLATE…
sql-serverasked wladyband 4,694 -
1
votes2
answers249
viewsQ: How to view JSON data in jQuery Datatables via Ajax?
My table is not being loaded with the data that is in my JSON file, as I have little experience do not know what is wrong. My JSON file is in the same directory as the web page in question, this is…
-
0
votes1
answer87
viewsQ: How to reset select using Javascript?
watch the image! I’m trying to clear a modal form, I can already clear the other fields with javascript, but I did not have the same result with the list, I tried to do it by the back-end, but I did…
javascriptasked wladyband 4,694 -
1
votes0
answers14
viewsQ: How to customize the Javascript monthPicker feature?
Watch the image: When I put the cursor it shows this blue ball along with Prev, how do I customize to put before in place of Prev? The same goes for Next This is my Javascript file;…
javascriptasked wladyband 4,694 -
0
votes1
answer102
viewsQ: How to organize HTML?
Watch the image; I need to put the letter "A" here in the middle as it shows the arrow, but I do not know how to do it, I have tried several ways. The code below is my HTML: <div…
-
0
votes2
answers224
viewsQ: How to load 10 records from a Java list?
I’m with this Java method; public String detalhesHistorico() { listaHistoricoRemessa = historicoRemessaService.listar(historicoRemessa); return "ajax-modal-historico"; } Is there any java method…
-
0
votes2
answers106
viewsQ: How to set the first position of the list in Javascript?
Look at the picture; You notice that the first position of the list is being indicated with the arrow, as I do that every time the form is loaded it load with the first position of the list? This is…
javascriptasked wladyband 4,694 -
3
votes2
answers445
viewsQ: How do I clear a list in Javascript?
This is my HTML list; <div class="form-group"> <label class="col-sm-2 control-label"><fmt:message key="label.sagresPessoal.tela.prestacao.unidade.jurisdicionada" /></label>…
javascriptasked wladyband 4,694 -
0
votes0
answers140
viewsQ: Maintain button status even with page refresh?
Look at the gif image! The button is with the status of Pause Processing, and should only return with the status of Pause Processing only after it is clicked again, what happens is that the status…
javascriptasked wladyband 4,694 -
2
votes1
answer290
viewsQ: How to hide the message in bootstrap?
Look at the picture When I open the modal form it already appears the validation message track, I would like it to appear only when the validation is activated. It’s that piece of code; <div…
-
0
votes1
answer79
viewsQ: How to work with Javascript split with dates?
Look at the picture; The Alert that appears is this ; The javascript code is this; var resultado = $('#idPeriodoInicio').val().split("/"); alert("o valor do split " + resultado); How do I get him to…
javascriptasked wladyband 4,694 -
0
votes1
answer1113
viewsQ: How to change the CSS of Datepicker?
Watch the image; This is my HTML; <input class="form-control date-picker" placeholder="Data Início"> And this is my Javascript code; $(function() { $('.date-picker').datepicker( { changeMonth:…
-
1
votes1
answer99
viewsQ: How do you align the form in bootstrap?
I’m not getting the form lined up, could someone give me a hand? <div class="modal fade" id="modalJustificar" tabindex="-1" role="dialog" data-backdrop="static" aria-labelledby="myModalLabel"…
-
0
votes0
answers34
viewsQ: How to change the text of the button with Ajax?
This is a Javaweb project, but I’m already getting the value from the button when you click on it. Every time I click the eclipse IDE button I was able to print the value of the button, if I click…
-
0
votes0
answers32
viewsQ: How to work with Scheduled Parole?
This guy is the Scheduled, he is triggered when the project is executed. Just as he is is in the automatic. I wish instead of being on automatic be triggered only when called, someone has an idea of…
-
-3
votes1
answer1662
viewsQ: How do I commit a specific file in git?
Note the image below: I want commit only the second file. How do I? What’s the command in git?…
-
1
votes0
answers55
viewsQ: How to build a BDD scenario?
A few days ago I joined a project to work on a test team conducted in BDD, but my only participation in the project is to create the Features to send to the developers. As I have little practice to…
-
-2
votes1
answer196
viewsQ: Windows shortcut in conflict with Eclipse
I’m using the Eclipse. When trying to format the code with the shortcut Ctrl+Shift+F, instead of indenting Java code, it opens the Windows remote access screen, as you can see in the figure below:…
-
0
votes0
answers41
viewsQ: How to know which is the SQL server tool?
I am at Visual Studio 2017 which is connected to the SQL server database ,SQL server is running on the Linux server, this server is running in the cloud. What I am trying to do is copy the database…
-
-4
votes1
answer603
viewsQ: How to apply unit test when the main class is an interface?
I have this method in my Beginning class @Override public void question() { String question = String.format(TEXT_OF_A_QUESTION, this.namePlate); int answer = JOptionPane.showConfirmDialog(null,…
-
0
votes1
answer22
viewsQ: How to include unit test artifacts in a simple Java application?
This is my project in my repository; PROJECT Note the pom.xml file <?xml version="1.0" encoding="UTF-8"?> <project xmlns="http://maven.apache.org/POM/4.0.0"…
-
1
votes2
answers501
viewsQ: How to disable an edit module property in Angular?
I have an Angular application of version 6, and when I click on the project to edit the system loads the editing screen with all values, this application is not with database and there is a back-end…
-
0
votes1
answer123
viewsQ: How to inspect an application in Angular?
Not long ago I joined a project, they use Spring Boot with Angular. The project module that I was responsible for is the personal movement module as you can see below; The application works as…
-
1
votes0
answers109
viewsQ: How to work with events at Angular?
Watch the image; This image appears when the textbox is different from NULL as shown below; But it should only appear when editing. This is my component class responsible for this page; export class…
-
0
votes2
answers105
viewsQ: How to make a console.log on the map?
Note the algorithm in Angular findToOptions(searchValue: string): Observable<any[]> { return this.findAll(new PageParameters(15, 0, 'id,asc'), this.getSearch(searchValue),…
-
0
votes1
answer338
viewsQ: How to set values in Enum?
Look at the Grid The record that is coming from the database is of an Enum class, the correct one was for the result in the grid to be printed name Value and not V. This is the Enum; VALOR("V",…
-
3
votes1
answer5311
viewsQ: In Visual Studio Code how to set up to indent code automatically?
I found this site. https://oraculoti.com.br/2017/07/11/visual-studio-code-permite-indentar-codigo-automaticamente/ but I couldn’t find the file. I also found this site.…
visual-studio-codeasked wladyband 4,694 -
1
votes1
answer225
viewsQ: How to merge Github codes?
I downloaded a project from Github, then made some changes, another colleague of mine did the same thing with a single difference, he committed and updated the repository on Github. I needed to…
-
5
votes2
answers1222
viewsQ: How to get out of git listing?
I have a project downloaded from the Github repository. When I execute the command git log within that project, it lists all the branches existing in the project, but I can’t leave the list. I’ve…
-
0
votes2
answers688
viewsQ: Are the Unitarian tests correct?
I am participating in a selection process, and one of the criteria is to implement any kind of unit test, I just wonder if it is implemented right the code below, it is working perfectly, I just…
-
0
votes1
answer87
viewsQ: How to implement Junit deletion with Spring Boot?
I need to know how to implement registration deletion through Junit(Unit Tests) with Spring Boot, I’m having difficulty, the inclusion is working as you can see below; @Autowired private…
-
4
votes2
answers594
viewsQ: What is Java Sort?
Every programmer know that a list of arrays are printed in an orderly way, but in the middle of the way sort(). The result of the impression was this: Abacaxi Banana Laranja Manga I thought it would…
-
-1
votes1
answer101
viewsQ: Why does the IDE indicate that a code in the "if" will not be executed?
Observe the code: Because the development IDE is not considering line 34, 35 and 36 code? You weren’t supposed to be on probation?…
-
4
votes2
answers214
viewsQ: Trying to understand the Java print
Watch the code right below; public class Dois { public static void main(String[] args) { int a = 3; int b = 4; System.out.print(" " + 7 + 2 + " "); } } The score is 72, but I thought the result was…
-
0
votes0
answers258
viewsQ: How to create a Thread in Spring Boot?
I am starting a file upload file application, where saves the path in the database and the image on the server, when performing a test can send the image to the folder, now I need to be able to…
-
0
votes0
answers82
viewsQ: How to work with Multipartfile in Spring Boot?
I’m still in the process of implementing upload images, see the code below; @PostMapping public String upload(@RequestParam("files[]") MultipartFile[] files) { System.out.println("files…
spring-bootasked wladyband 4,694 -
-6
votes2
answers102
viewsQ: Trouble with the $ at the angle!
My Angular application is not recognizing this character $ Note the error message that is appearing on the browser consoles; Uncaught ReferenceError: $ is not defined at novo:21 The code refers to…
-
-2
votes1
answer61
viewsQ: Difficulty to implement Javamail!
My application is behaving in a very strange way, when running the Spring Boot application it generates the logs stating that you sent the email using Scheduled, but when consulting my email account…
-
0
votes0
answers33
viewsQ: How to have several exception classes in Spring Boot Junit?
I would like to have several exception classes in this code snippet below, but I’m only able to put one, as I do to put several exception classes? @Test(expected =…