Posts by Philippe Nunes • 103 points
15 posts
-
-2
votes1
answer191
viewsA: Best way to set up the HTTP header content-length
I ended up changing mine FileInputStream for RandomAccessFile, so that you can use the method length(), I don’t know if it would be a good approach but now I can get the file size in bytes to…
-
0
votes1
answer191
viewsQ: Best way to set up the HTTP header content-length
Hello, I have a video player that makes a request via Servlet that already works and I need to include a new video. At first I will return the video according to the logged in user. The problem I…
-
0
votes1
answer38
viewsA: Use of scripts and external bootstrap
In angular projects usually for you to include style files and javascript Voce needs to include the script path in a file called angular-cli.json something like that: "scripts": […
angularanswered Philippe Nunes 103 -
0
votes1
answer22
viewsQ: Load application package image using File
Good morning, How do I load an image that is inside a project package using the Java File class? Example, I have an image inside the "img" folder of my project and I want to upload this image to…
-
0
votes0
answers52
viewsQ: Call jQuery function when rendering component via ajax
I have a little problem that is: I have a component RichFaces more specifically the rich:listShuttle id "migrarId". Inside that component I have a input who owns a placeholder that is generated via…
-
0
votes1
answer54
viewsQ: Placeholder in <h:inputText with JSF 1.x
Good morning, I’m with a system developed with version 1.2 of JSF and Richfaces 3.3 I’ve been researching about including a placeholder in the element <h:inputText jsf but only found tutorials…
-
0
votes0
answers13
viewsQ: How to instantiate a bean again after the session drops JSF 1.x
Good afternoon, you guys, I’m racking my brain with something I believe is simple. Next, is there any way to instantiate a Bean and its attributes "manually"? I have a configured bean in xml with…
-
1
votes1
answer53
viewsA: UTF-8 formatting does not work when compiling code with Maven in Intellij
I discovered the problem, I needed to mark UTF-8 as default for properties files:…
-
1
votes1
answer53
viewsQ: UTF-8 formatting does not work when compiling code with Maven in Intellij
Good afternoon, you guys, Next, I have a Maven project in Intellij configured as follows: In the pom I have these configs:…
-
0
votes3
answers3120
viewsA: Javascript: get the value of a textarea (not working)
I believe I have to create a button by calling a Avascript function by setting the value in the variable: Function myFunction() { var x = Document.getElementById("myTextarea"). value; }…
-
0
votes1
answer70
viewsA: List users' phones from a Join without duplicating lines
I got it from the grace tip. I placed a subquerie for phone 2 to create a column, with a change, I had to insert a column in the table CONTACT to know if the phone is 1º or 2º. It’s not the most…
-
2
votes1
answer70
viewsQ: List users' phones from a Join without duplicating lines
Good night, Guys, I have the following problem: I need to make a Join in two tables, USER and CONTACT. Each user has more than one contact (Phone), so when I list the data he returns me lines…
-
2
votes4
answers1921
viewsA: Hibernate does not create table automatically in mysql
I decided to put the annotation to scan my entity package in my Application class: @Entityscan(basePackages = {"br.com.springboot.model"})
-
2
votes4
answers1921
viewsQ: Hibernate does not create table automatically in mysql
I’m studying Spring with a little hibernate, where I stopped in a situation I can’t pass. I configured the code with Hibernate for creating tables in the database but when I run the application it…
-
0
votes1
answer392
viewsQ: Problems with springboot filling
I’m entering the world of Springboot now and stumbled upon a problem I believe is easy to solve. Follow the structure of my project with class packages: br.com.springboot.api Springbootapplication…
spring-bootasked Philippe Nunes 103