Posts by DiegoAugusto • 8,694 points
325 posts
-
3
votes2
answers5402
viewsQ: Check if day x falls on a Saturday or Sunday
I’m making a system that will be an Agenda, in this system has an option to repeat the commitment unless fortnightly, ie I save the commitment and the system will notify me every 15 days. But this…
-
0
votes1
answer173
viewsA: Error picking up Time type data from database
Problem Solved, in the database I changed the Default from the time to 00:00:00 in that way: After I did that it worked, before date format like that: 13:00:00.000…
-
1
votes1
answer173
viewsQ: Error picking up Time type data from database
I am making a query but it is giving error when I try to get values of type Time. This is the error: java.sql.Sqlexception: java.sql.Sqlexception: Bad format for Time '13:00:00.000' in column 5 The…
-
5
votes1
answer2036
viewsQ: What type should I use to save only the time (no date) in a database?
I am in doubt which type I should use to work with hours on my system. I should use DateTime, Time or TimeStamp. I would like the hours to be saved in this format: HH:MM…
-
1
votes1
answer26
viewsQ: Help with Infrastructure
I have a Desktop system that every 1 hour makes a query in the database and generates a file .xml and a system javaWeb who reads that .xml. I developed this solution because the company I work with…
-
2
votes1
answer189
viewsQ: Purpose of a Webservice
Well, I always watch it on the Internet or even hear friends talking about WebServices, I have read some things related to the subject but still can not understand very well. I know with a…
web-serviceasked DiegoAugusto 8,694 -
6
votes2
answers7676
viewsQ: How to add SQL Server dependency to Maven?
I’m trying to add dependency on SQL Server in my POM but gives Missing Artifact. <dependency> <groupId>com.microsoft.sqlserver</groupId>…
-
2
votes2
answers564
viewsQ: Edit data from Nodejs
I have a Crud Nodejs where I can add data in the database, but now I wanted to edit this data and the tutorial I follow is a little old, in this tutorial the editing is done by PUT my JADE page is…
-
1
votes1
answer1876
viewsQ: Line break Json
I’m trying to develop a system with Node.js and I’m trying to list the database data in my table, but the data stay together this way: I still don’t know much about Json, is it because he’s this…
-
0
votes1
answer420
viewsQ: I cannot display my html pages with Node.js
I am trying to display my html pages inside my main layout but always error 404: Error: Not Found AT: Users Adiego Documents Projectsystem1 app.js:36:13 This is my app.js: var express =…
-
3
votes1
answer2885
viewsQ: I can’t create project using Express Node.js
I’m following a tutorial from Node.js and I’m learning about frameworks, but when I try to install the express by cmd error, I’m trying to do it this way: express aplicativo1 And the error that…
node.jsasked DiegoAugusto 8,694 -
-1
votes1
answer442
viewsQ: The power of Java
I recently saw a Infographic pointing JavaScript as the most used language in the year 2015. And also direct see here on Sopt several posts about JQuery and JavaScript. My question is this, it is…
-
0
votes1
answer362
viewsA: Update the database correctly
I tried several things and nothing went right, the only solution I found that worked was to take the dataTable Audits Sent from the same page as received and created a Bean separate to manage these…
-
3
votes1
answer152
viewsQ: My List is not updated correctly with database data
I have a dataTable and a button that selects the object in each line of the dataTable. When I click on that one button Dialog is opened with some data and a Send button, when I click this send the…
-
0
votes1
answer67
viewsQ: Error Web System after a while online
I have a web system on a server, I’m using tomcat and the system is working beauty, only that when it stays a while without someone entering the system it stops working. For example I leave work and…
-
3
votes1
answer1058
viewsQ: Return to Start Menu when pressing ESC with Javafx
How can I get my application back to the start menu after pressing ESC. I can currently use Keyevent only when some component is associated, such as a TextField, Button, etc.. I just want to press…
-
5
votes1
answer1046
viewsQ: How to take data from a list only when there are two equal codes
Currently I can only take different data from two lists, for example: Lista X Código 1 Código 2 Lista z: Código 1 Código 3 I can only get the code 2 and 3. Now arose the need to take the same data,…
-
1
votes1
answer78
viewsQ: Error running web application
I installed Tomcat on a server and I am trying to access my application but always gives this error: The requested resource (/ProjetoAuditoria) is not available. When I Starto on my machine other…
-
1
votes2
answers2639
viewsQ: confirmDialog does not work
I have a delete button inside my dataTable, but every time I click on it confirmDialog does not appear. I am doing as follows: <p:column style="width: 100px; text-align: center"> <p:button…
-
1
votes0
answers208
viewsQ: Error 404 Tomcat
I’m starting with Maven, I put the dependencies I want on pom.xml and created a page xhtml to test for error 404: The requested resource is not available. Nothing appears on the console, it’s blank.…
-
0
votes2
answers363
viewsQ: Error in Java Resources package in Maven project
I created a project Maven one-page xhtml just for testing, but keeps giving this error in the package. What would that mistake be?…
-
1
votes0
answers196
viewsQ: Error while generating report
I have an app JavaFX where I have a button that generates reports. But when I try to generate the report this error happens: Exception in thread "JavaFX Application Thread"…
-
1
votes1
answer1961
viewsQ: How to pick up selected item from a javafx Combobox
How can I pick up the selected item from a Combobox? I saw some ways to do but I couldn’t implement, I don’t understand how it works. I can set the items of the combobox as follows:…
javafxasked DiegoAugusto 8,694 -
3
votes3
answers334
viewsQ: Error using LIKE to search by name
When I used Mysql I could use the LIKE ? to do searches by name, code, etc... Now in SQL Server I’m not getting. I have a Textfield and a search button, I want to take the value of textField and…
-
4
votes1
answer362
viewsQ: Update the database correctly
Updated: Link with a video that better exemplifies the situation. I have a big problem, I’m having difficulties to update the database and display the updated data in 2 DataTables different. I have…
-
1
votes1
answer531
viewsQ: Datatable does not update immediately after "action"
I have a DataTable with some data when I select a table row and click on finish process that row is saved in my database with the status Finalizado and the Cargo user logged in but this row only…
-
5
votes3
answers13820
viewsQ: Calculate age per day, month and year
I’m trying to calculate the age per day, month and year but I’m not getting it. I followed some examples but they all go wrong too. For example if the date of birth is 14/06/1992 this method returns…
-
3
votes1
answer802
viewsQ: Transfer files by FTP to Java Hosting
If I hire a host to host my Java application I can transfer files by ftp? for this application of mine to read these files? I have a desktop application that sits on the server that generates a file…
-
1
votes1
answer641
viewsQ: Pick up object by clicking on a commandLink in the Datatable
I’m trying to catch an object by clicking on a commandLink that is in each column of Datatable, but always from the nullPointerException error. Can anyone help? I’m doing it this way:…
-
0
votes1
answer262
viewsA: Update datatable in primefaces
Problem solved, I put @PostConstruct in my method that searches in the bank
primefacesanswered DiegoAugusto 8,694 -
0
votes1
answer262
viewsQ: Update datatable in primefaces
How can I update my dataTable without needing to restart the application? The way I am doing the table is updated after a F5, but if I give F5 again, it gets outdated again. For example: I have 3…
primefacesasked DiegoAugusto 8,694 -
1
votes1
answer1093
viewsQ: Background image does not appear when running the project
I have a JSF+Primefaces project and I have a css that puts a background: <h:body style="background-image: url('../images/textura.jpg');"> When I run the page works perfectly, but when I give a…
-
5
votes1
answer1173
viewsQ: Redirect to another page only if the user is authenticated
I have a login screen where I authenticate a user, but when I put one action to switch page regardless of whether the user was authenticated or not the page opens. My question is to know where I…
-
2
votes0
answers69
viewsQ: <p:dialog> does not work
I’m following the example of the showcase but it doesn’t work. An icon was supposed to appear and after I clicked on this icon it opened the Dialog but when I open the page is already like this:…
-
4
votes2
answers1312
viewsQ: Open Dialog in primefaces as soon as the screen opens
I have a login screen where I have a dialog with the Login and Password fields. I would like it to open as soon as the screen was opened. I read that from version 4.1 of the first faces I have to…
primefacesasked DiegoAugusto 8,694 -
0
votes2
answers763
viewsQ: Is it possible to compare items from two lists and if there is similarity between items do not display this item in a datatable?
I have a list that is populated by data from an xml file and another list that is returned from a query in the database. I wonder if it is possible to compare an existing code in these 2 lists. If…
-
1
votes1
answer93
viewsQ: Logic to inhibit record permanently
Guys I have a "big problem" and I can’t think of anything to solve it so I’d like your help. I have a desktop system that is the intermediary between the server and my web system. This desktop…
-
0
votes1
answer163
viewsQ: Do not display another row in the table when status equals "Canceled"
I have a <p:dataTable> which is populated by data that is in a file .xml and I have in front of each line a button to finish or cancel the process. How do I not display more in my DataTable…
-
1
votes1
answer6426
viewsQ: Putting an image as background on primefaces
how do I put a background image in primefaces. I’ve tried some shapes but none worked out. The closest to a good result I arrived was using <p:graphicImage/> but when I minimize a menu or do a…
-
1
votes2
answers271
viewsQ: How to render a String that is in this format yyyy-mm-dd HH:mm:ss.fff presentable
I have a date that is a return from the database that comes in this format yyyy-mm-dd HH:mm:ss.fff, how can I turn this into dd-mm-yyyy HH:mm Example: My date is like this: 2015-01-16 07:49:45.0 and…
-
0
votes1
answer1886
viewsQ: How to pass data from a Datatable line to a Dialog in Primefaces
I have a Datatable in which I have several data and a select button. When I click the select button I call a Dialog with a few more fields. I would like to click on the button select it to take the…
-
2
votes1
answer948
viewsQ: Where to start a system that performs an hourly task
I’m a little confused, where can I start a system that performs a task every hour? Have some framework? The system will be desktop and will run on a Windows Server 2003 server. The idea is that…
javaasked DiegoAugusto 8,694 -
1
votes2
answers973
viewsA: Image does not appear after Gero o . jar
I solved the problem by placing the image in the same package as the main class. And then I used this code: Image imagem = new Image(getClass().getResourceAsStream("logo-superplano.png"));…
-
0
votes2
answers973
viewsQ: Image does not appear after Gero o . jar
How do I get my image to appear in the application after the . jar generation? I’m doing it this way and it’s not working. @FXML private ImageView image; @Override public void initialize(URL url,…
-
2
votes1
answer172
viewsQ: Search by dates
I have a screen and on this screen I have a Textfield that is filled by a date in the format dd/mm/yyyy and then I convert that date to yyyy-mm-dd which is the format of java.sql.date so far quiet,…
-
2
votes1
answer265
viewsQ: How to place a Mousecliked event on a table using Javafx
I’m trying to put a Mousecliked event on my table but gives this error: java.lang.IllegalArgumentException: argument type mismatch My method is like this: private void…
-
2
votes1
answer4316
viewsQ: Navigation between Javafx screens
What is the best way to navigate from one screen to another using Javafx. The way I’m doing every time the first screen calls the second screen the second screen opens with the size of the first.…
-
0
votes1
answer47
viewsA: My Thread only runs 2 times
Problem solved, the error was happening because of this loop: for (List<UnimedLote> lst : listaAuxiliar) { I took it off and it worked.
-
1
votes1
answer47
viewsQ: My Thread only runs 2 times
I have a method that takes several files from a directory lists them in a table and generates a report for each file. I put a thread in this method and now it only picks up 2 files and stops. Where…
-
2
votes2
answers1116
viewsQ: Progressbar loading per Javafx Process time
I have a method that carries a ProgressBar, but it only starts loading at the end of the process, that is after my application finishes generating the reports it starts to be filled. How do I load…