Posts by William.Andrade • 55 points
22 posts
-
2
votes1
answer380
viewsQ: Django does not validate changed fields in the client by JS
My project has a form that one of the fields is object list (Courses), but these objects are being passed from another list (Courses of the area) through Javascript, only that the values allocated…
-
-1
votes1
answer65
viewsQ: Url checks - Django
When learning to develop applications using Django it is common to get the following URL: locahost:8000/minhaentidade/deletar/id However, a malicious user may change this id and end up deleting…
-
2
votes1
answer44
viewsQ: Django model mapping problem
The relationship between the classes in the Models.py file does not work because of the order of the classes (I think it has more to do with the interpreter) follows the problem: class…
-
1
votes1
answer61
viewsQ: Is it necessary to create an app for each entity in a Django project?
I wonder if it is a good practice or if it is a very "extreme attitude". Example: My project has user, client, subscription and product entities. I can create an app with all these entities or…
-
0
votes1
answer334
viewsQ: Bug in simple example JSF + Primefaces
I tried to run a simple example with JSF and Primefaces but I believe it is something related to some incorrect configuration. The application is running on Tomcat 9.0.13, below the project…
-
1
votes2
answers364
viewsQ: Datatable of the first faces does not update selection variable
Based on the first example of the site Datatable Selection where a variable(linhaSelec) receives the value selected by clicking on a <p:commandButton/> I decided to mount my implementation but…
-
1
votes2
answers1212
viewsA: Nginx does not show index php
Apparently it was a directory permission error, I managed to get around the problem using the chmod 0755 ./code/public_html apparently the linux access settings allowed only my user, and with this…
-
3
votes2
answers1212
viewsQ: Nginx does not show index php
So guys I think it’s some configuration on the server that’s not showing the error page, I’m running a docker-compose that "goes up" a container php, mysql and Nginx but when accessing localhost…
-
1
votes2
answers181
viewsQ: Package usage difference in Delphi/Lazarus and Java
I would like to know the difference of use of packages in projects Java for use of packages in projects Delphi/Lazarus? In the Java so I know it’s about separating the classes into folders that the…
-
0
votes0
answers230
viewsQ: Pool server connections for web application
would like to know if it is possible to implement a pool of connections on a server and have it distribute the connections to java desktop applications, if possible would like a direction of what to…
-
2
votes1
answer794
viewsQ: Hibernate does not find mysql JDBC "Driver" class in Maven project
Hello guys I created a Maven project in eclipse (with WAR packaging) and imported the packages of models already mapped from another project, soon after I created a class to "load" a persistence…
-
1
votes1
answer184
viewsQ: Repeated ID with facelets
The problem is that in a project I use facelets is telling me that there is a component with the repeated ID. Although I scanned the code behind the repeated ID, I couldn’t find it, so I believe the…
-
1
votes2
answers689
viewsA: Date value 0000-00-00 cannot be used in java Date
The other fields were omitted but I managed to get all calling them individually with the ALIASthe way I managed to solve it was like this: SELECT if(DT_DOC='0000-00-00',NULL,DT_DOC) as DT_DOC FROM…
-
1
votes2
answers689
viewsQ: Date value 0000-00-00 cannot be used in java Date
First of all yes, I’ve already added ?zeroDateTimeBehavior=convertToNullin the connection URL the problem is that in the query the reset date is not null and always release the following…
-
1
votes1
answer244
viewsQ: Insertion of dates in Postgresql
I would like to know how to configure the Postgre to accept date entries as follows: "12122016". I know that with the same "spelling" is possible with YMD more I would like to know how to set up to…
-
1
votes2
answers138
viewsQ: Stream Manipulation(java 8)
Good morning guys I would like to get a little doubt, I have a String Stream with many lines of a txt, I need to do a split to break the lines in the Pipes, but the return as you know is a String…
-
3
votes2
answers721
viewsQ: Error in C printf
The error in question in a flag which was supposed to be correct, follows the code below: #include <stdio.h> #include <string.h> int main() { char var[50]=" Write Once Bug Everywere ";…
-
1
votes1
answer346
viewsQ: Hibernate does not update information
My problem if it comes to an update unsuccessfully follows the code below. EntityManager manager=JpaUtil.getEntityManager(); EntityTransaction trx= manager.getTransaction(); trx.begin();…
-
0
votes1
answer129
viewsQ: Hibernate with dynamic table names
Good Morning/Afternoon/Evening Staff! in a scenario where a comic table must have a concatenated name and dates as this would look with Hibernate given that the base name is annotated in the model.…
-
0
votes1
answer590
viewsA: Error generating jasper reports
I managed to solve the problem was that for some reason the company’s computer was not compiling the report, then I went to pay attention to the console and it just started the compilation.
-
0
votes1
answer590
viewsQ: Error generating jasper reports
Then the program to which I am responsible generates reports from files. Jasper and no . jrxml, I went to open one of these files (with Jaspersoft studio) to accomplish what would be a simple…
-
1
votes2
answers179
viewsQ: Error generating pdf report (Jasper)
So guys when I run my program it brings me the following error(And yes the file is in place): net.sf.jasperreports.engine.JRException: java.io.FileNotFoundException:…