Posts by WyllianNeo • 324 points
21 posts
-
0
votes1
answer65
viewsQ: @Restcontroller returns to same page but with different URL
I’m using @Restcontroller to manage different Forms/actions on the same page (with Thymeleaf), and it’s working properly, but when calling method (triggered via button on page) when returning to the…
-
0
votes1
answer34
viewsA: How to fill multiple tags in an if/Else using Xquery?
After some time researching, I got a response in the Stackoverflow community itself (but in the gringa), the solution follows below, if someone comes across the same scenario: for $var in…
ifanswered WyllianNeo 324 -
0
votes1
answer34
viewsQ: How to fill multiple tags in an if/Else using Xquery?
I want to do something like: for $var in $myValueOfVar return if ($var= "X") then <tagA>A</tagA> <tagB>B</tagB> <tagC>C</tagC> else <tagD>D</tagD> }…
ifasked WyllianNeo 324 -
1
votes1
answer48
viewsQ: How to use two date parameters for two Betweens without repeating the parameters using Spring Boots?
I’m starting with Spring Boot and I’m trying to use it for a query where I want to check if two date columns are between a period provided by parameters. The code below works, but for this I have to…
-
0
votes1
answer65
viewsA: Validate if method exists in the webservice and customize return message
I found a treatment tip (unfortunately I lost the reference link) and adapted for my use, creating the following method: @GET() @Produces("text/plain") @Path("{url}") public String validaServico…
-
0
votes1
answer65
viewsQ: Validate if method exists in the webservice and customize return message
I am creating a webservice Rest, and it is working properly, but there is a situation that I could not handle: if the provided url is searching for a non-existent method, the requester is redirected…
-
1
votes4
answers1603
viewsA: Doubt about "encrypted code" (obfuscated) in Javascript
Hello. I had never seen coding in javascript, so maybe I’m wrong, but searching quickly I found a possible solution. The result of the code posted by you and decoded was:…
javascriptanswered WyllianNeo 324 -
1
votes3
answers959
viewsA: How to make a simple JSF download?
I don’t use the href but I took a look and apparently it does not accept as a parameter anything related to ajax, that needs to be disabled. See if this would be your problem. Otherwise, try my…
-
1
votes2
answers2639
viewsA: confirmDialog does not work
Oops, test this way: <p:confirmDialog id="excluirMensagemModal" width="500" header="Confirmação de exclusão" severity="alert" widgetVar="excluirManualDialog" closable="false"…
-
1
votes1
answer339
viewsA: Problem when rendering small percentage in Piechartmodel in Primefaces;
Oops, I found the solution to my case. The point is that the PieChart of Primefaces uses a library JQuery calling for JQPlot which by default does not render percentages below 3%. Seeing that, I had…
-
2
votes1
answer339
viewsQ: Problem when rendering small percentage in Piechartmodel in Primefaces;
I am generating a graph usually without problems, only occurs with smaller percentages, showing the 'slice' correctly, but the value of this percentage is not displayed. I tried to change the…
-
0
votes3
answers2125
viewsA: Override CSS Component Primefaces
I found the solution to this case by changing mine panelGrid for this: <h:panelGrid columns="2" width="100%" columnClasses="col two manuaisPratica,col two" > where the col one and col two is…
-
0
votes3
answers2125
viewsQ: Override CSS Component Primefaces
I’m using the component calendar of Primefaces, but I’m having a hard time overwriting CSS of the same. Follow my code on xhtml: <h:panelGrid columns="2" columnClasses="col one, col one">…
-
1
votes1
answer222
viewsA: Error starting Jboos 7.1 Address already in use: Jvm_bind /0.0.0.0:80
I checked that I have installed SQL Server 2014, and 3 programs of this package were running: SQL Server, SQL Server Agent and SQL Server Browser, where I closed the last 2 mentioned and managed to…
jbossanswered WyllianNeo 324 -
0
votes1
answer222
viewsQ: Error starting Jboos 7.1 Address already in use: Jvm_bind /0.0.0.0:80
I am trying to start my Jboss 7.1 server with a new application, but error is occurring: [org.apache.coyote.http11.Http11Protocol] (MSC service thread 1-1) Error initializing endpoint:…
jbossasked WyllianNeo 324 -
1
votes2
answers691
viewsQ: What is the best way to query SQL Server database using a list as input?
I have a question as to how best to address the following problem: I need to query records in an SQL Server table using a list of serial numbers. I know the IN command, but it does not meet, because…
-
1
votes3
answers7373
viewsA: How to Rotate an Image in the Background?
Oops, my good man. I didn’t fully understand your need, but I have a suggestion. You can use the CSS below to rotate a div, and use a Javascript with a timer to increase degrees. elemento{…
-
0
votes2
answers414
viewsA: square div with 45º angle
Oops, my good man. I never had this need, but quick research has shown that it is possible. I will quote here examples I found and the source: http://www.w3schools.com/css/css3_2dtransforms.asp div…
-
3
votes10
answers360
viewsA: Organization of CSS
I agree with George B., in my view, it is a matter of preference. I think it makes a difference when the amount of CSS customized is large and is in the same file as the page code (which I don’t…
-
2
votes2
answers428
viewsA: Overwrite CSS compontente Richfaces
I located the solution, which was relatively simple, but as I do not use the Richfaces I had to see the components it contains. Instead of using: <rich:calendar ... style="width:80px;"/> I…
-
1
votes2
answers428
viewsQ: Overwrite CSS compontente Richfaces
I’m using a component Calendar but only the date (omitting the time), and overriding the CSS to reduce the screen size. Below: <rich:calendar value="#{_sessao.dtSessao}" showFooter="false"…