Posts by Victor Soares • 243 points
15 posts
-
0
votes0
answers22
viewsQ: Hibernate Criteria: Sort list by highest date of a child object
How do I create a Criteria to list an object ordering by the longest date of a child object. In this scenario: Domain: class Entity { List<Children> childrens; } class Children { Date date }…
-
0
votes1
answer819
viewsQ: Fix div below Navbar - Bootstrap 4
I’m trying to fix a div with a title, below a fixed navbar at the top of the screen. Below is my attempt and example that does not work: <body> <header class="sticky-top"> <nav…
-
0
votes1
answer186
viewsA: Angular4: How to recover values in Response Headers
I discovered the problem. On the return of my service, I need to define the Headers I want exposed with the value 'Access-Control-Expose-Headers'. If not set this Angular ignores past values. For…
-
0
votes1
answer186
viewsQ: Angular4: How to recover values in Response Headers
I have a Webservice that returns a PDF file (byte[]). I am returning the file name in the Response header. In Chrome I can see the values of 'Response Headers' and see that all headers are there,…
-
0
votes1
answer980
viewsA: Excel VBA - Check file size and type
Follows the solution adopted: Public Function escolherFoto(cellRef As String) As String 'Créditos: http://software-solutions-online.com/excel-vba-open-file-dialog/ Dim intChoice As Long Dim strPath…
-
1
votes1
answer980
viewsQ: Excel VBA - Check file size and type
In my spreadsheet I have a button that displays the file selection box. After selecting an image, this is displayed in a specific cell. How do I check if the chosen file is really an image? and To…
-
0
votes2
answers126
viewsA: Custom icon does not display on Google Maps
The problem is in one of these two places: 1- Return your webservice (Store variable) -> Debug and check exactly what is being returned. 2- element[0] -> Check that this variable actually has…
-
1
votes1
answer153
viewsQ: Java - Import Excel with combo and checkbox
I need to import an excel spreadsheet using java. Only the spreadsheet has selection values like checkbox lists and combos. As in the example below: Someone has an example of java code that can…
-
0
votes0
answers328
viewsQ: Google Maps API: Retrieve country or city name from a coordinate
I need to check to be a coordinate (latitude and longitude) belongs to a city or country. Someone knows a simple way to do this using the Google Maps API v3 (javascript)?
-
0
votes1
answer96
viewsQ: Grails Spring Security check if User belongs to Group (Rolegroup)
I have the following domain classes: User hasOne Rolegroup hasMany Roll Examples: Rolegroup: Admin, Professional, Client, ... Roll: ROLE_ACTION_1, ROLE_ACTION_2, ... How do I check if the User…
-
3
votes1
answer62
viewsQ: Loss of Encode when minimizing javascript in Grails
In my javascript file there is a message with the string "service" for example. When I run the project (run-app) and check the javascript by the browser, the word appears as: "§the service". But…
-
2
votes0
answers40
viewsQ: What’s the Difference in Grails between run-app and run. Intellij Application
I’ve been working for 1 year with Grails and Intellij Community 14, and I’ve noticed some different behaviors between running the project through the command line and using IDEA’s Run…
-
3
votes1
answer1598
viewsQ: Modeling for shared address table
I have 3 entities: Ponto, Solicitante and Serviço. Each one has its own address, but it is possible that the 3 have the same address. If an entity changes its address, it shall not change the…
-
0
votes1
answer75
viewsA: Grails 3.0 encoding does not work outside the index.gsp
It was a simple problem actually. Just set up the gsp file encoding. Since Grails automatically created index.gsp for me, it has already configured the file as UTF-8. And the ones I created were…
-
2
votes1
answer75
viewsQ: Grails 3.0 encoding does not work outside the index.gsp
I am creating a Grails project with version 3.0.4 and something strange occurs: Two Gsps with the same content: views > index.gsp: views > Domain > show.gsp: <!DOCTYPE html>…