Posts by João Manolo • 928 points
66 posts
-
0
votes1
answer91
viewsQ: Return of a simple javascript function not working
I have the code snippet below that performs a call to the method findCustomers(term, isNumber)); if(isSequenceNumber(term) && term.length >= 6){ var data = findCustomers(term, true);…
javascriptasked João Manolo 928 -
0
votes1
answer90
viewsQ: How do I dynamically change the minimum number of search characters in the jQuery Autocomplete library
I’m trying to dynamically change the attribute minLength library jQuery Autocomplete. This need is due to the fact that if the user performs the search by the name or email of the client the minimum…
-
2
votes1
answer1100
viewsQ: Perform a date search in a timestamp column using spring data
I am trying to perform a search only for the current date in a column timestamp, or without giving the time and yes only the date. Model: @DateTimeFormat(pattern = "dd/MM/yyyy hh:mm")…
-
1
votes0
answers26
viewsQ: Redirecting to another sub-domain with added flash attributes (Redirectattributes) does not work
My question is related to adding attributes in the interface RedirectAttributes. I’m adding two attributes flash redirecting, but redirecting does not just change the URI, but the sub-domain as can…
-
3
votes1
answer100
viewsQ: Spring MVC error in performing Binding of checkboxes on a list of objects
I have the following piece of code in my .jsp, in which the objective is to dynamically list a passenger list per customer. <f:form id="service-item-form" action="${action}"…
-
4
votes2
answers42
viewsQ: How to not serialize a particular type of element with jQuery
I have a form and I don’t want to "serialize" the input’s of the kind checkbox, soon tried some options such as below: var form = $('#service-item-form :not(:input[type="checkbox"])').serialize();…
-
2
votes1
answer96
viewsQ: Is it possible to have multiple form-login with Spring Security in the same application?
Well the starting question may seem a little confusing, but basically I would like to know if it is possible to have more than one spring validation form security:form-login, because I have in my…
-
2
votes1
answer580
viewsQ: Spring @Scheduled with internal transaction triggering Propagation error
I am trying to run a service that is based on running by cron with annotation @Scheduled, but every time a database transaction needs to be opened within the annotated method with @Scheduled receive…
-
0
votes1
answer2073
viewsQ: Change text within a dynamically generated <span> element without destroying the nested element
My need at first seems basic, but I can’t find a way to change the text within a tag <span> that is dynamically generated. Below follows the excerpt from DOM in which I have the following…
-
2
votes2
answers5868
viewsQ: Get all "marked" checkboxes in a dynamically generated list from jQuery
I have a modal in which it contains a list that is generated dynamically by jQuery via a callback of AJAX. The question is that I need to get the id’s of all the "checkbox’s" that were selected in…
-
5
votes1
answer711
viewsQ: Convert String Ex. 1.520.30 to Bigdecimal using Spring MVC @Initbinder
I have a canvas on which I work with the monetary value masks of jQuery Mask, when the user performs the Submit of form the value returned to my controller is Ex:. 1.340,34. The attribute in my Bean…
-
2
votes2
answers1367
viewsA: Limit the amount of files in Dropzone.js
Just add maxFiles:, remembering that the correct thing is that you also validate on the server side how many achievements that are going up. $("div#myDropZone").dropzone({ url: "ACTION/SERVIDOR",…
dropzonejsanswered João Manolo 928 -
1
votes0
answers94
viewsQ: Menu link not working with $routeProvider
I’m finding problems to work with $routeProvider of Angular.js, have a link in a menu in which it will be mapped via route of angular, and later will call a action in the Spring, but it doesn’t…
-
1
votes1
answer48
viewsA: View not returning updated BD data
The problem was unique and exclusively related to cache, so it was enough to add the following property to my entity @Cache(isolation=CacheIsolationType.ISOLATED) of Eclipselink that ended up…
jpa-2.0answered João Manolo 928 -
-1
votes1
answer48
viewsQ: View not returning updated BD data
I have a bank view that when I register a new record the same view brings the outdated values to my listing. It only brings the data up to date if I take down the server and go up again. I am using…
jpa-2.0asked João Manolo 928 -
1
votes2
answers771
viewsQ: Dynamically manipulate an array with multiple Angular.js controllers
Well, I have a feature on my system that has a great interaction with the end user, I soon chose to employ the Angular.js. My goal is popular a array dynamically and when user der Ubmit I send such…
-
1
votes1
answer285
viewsQ: Angular.js configuration not working
I’ve scoured the internet for a solution, but in no way the angular works in my project. In the project in which I want to use it existed many javascript imports not know if this may be the problem,…
angularjsasked João Manolo 928 -
2
votes1
answer1328
viewsA: Character encoding UTF-8 not working
I solved the problem by following this post. It seems that in modern browsers at the time it is made the submmit of the form by method POST is not sent the HTTP header Accept-Encoding. Hence the…
-
0
votes1
answer121
viewsQ: Spring Modelandview not working properly with AJAX callback
Well, some time ago I made a feature on my site consisting of performing a filter (called AJAX), and in my action I simply return a view (at the moment I’m rendering via callback, but if possible I…
-
0
votes1
answer218
viewsA: Failed to inject dependencies into Spring [Can’t set '' field 'to com.sun.proxy. $Proxy46]
Problem Solved, it was actually a lack of attention to my. When I was injecting the dependency I injected my DAO implementation and not its interface. The correct flow would be this: My class…
-
0
votes1
answer218
viewsQ: Failed to inject dependencies into Spring [Can’t set '' field 'to com.sun.proxy. $Proxy46]
I’m trying to perform the injection but the following battery is fired: org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'siteController': Injection of…
-
0
votes1
answer99
viewsA: Associate values of a dropdown with a specific column in the BD for query
I ended up finding a solution (not very elegant), but ended up serving exactly for my purpose. In my tag’s of select HTML I passed the name of each attribute equal to the bean on the property of…
-
0
votes1
answer99
viewsQ: Associate values of a dropdown with a specific column in the BD for query
I have a filter on my site that is in the image below: The real goal of the same is to "search" travel destinations (Ex:. Paris, Barcelona, Bahia etc...) and present on the screen the same. I have…
-
0
votes2
answers4788
viewsA: Spring MVC and Ajax
I’d do it this way: A call AJAX with the event .change(); That is, every time an item is selected within my select would be passed the company name or id of the same to my controller, with this you…
-
1
votes0
answers42
viewsQ: Official Architecture -> Meta
The question I have is totally architectural. I will expose a case just below to further illustrate the doubt that I am tapping directly into my system. I have a feature that aims to register an…
-
0
votes1
answer527
viewsA: redirecting with mod_rewrite not working on wamp
Guys it was easier than I thought. In my .htaccess replaces all this: #Ativando o mod_rewrite RewriteEngine on # Se o host for www.joocebox.com/trustbox RewriteCond…
-
4
votes1
answer6781
viewsA: How to sum the values of each row of a matrix?
I think you should start thinking about wearing a bow tie for Example to help... int[][] num = new int[3][3]; for (int i = 0; i < num.length; i++) { int sum = 0; for (int j = 0; j <…
-
0
votes1
answer527
viewsQ: redirecting with mod_rewrite not working on wamp
mod_rewrite is already enabled as we can see in www.joocebox.com/? phpinfo=1 I made the change also in the archive httpd.conf as below: DocumentRoot "c:/wamp/www/" <Directory /> Order…
-
3
votes1
answer1740
viewsQ: Run PHP (Zend Framework) application on the server
I already make it clear that I am not a PHP programmer but Java, but I have to upload an application of my company in an instance in AWS (Amazon Web Services). Well, I’m having a hard time, because…
-
1
votes0
answers69
viewsQ: Unexpected behavior in generation @Onetomany unidirectional (additional FK columns being created)
Below follows the two entities with unidirectional relationships: Customerservice.java @Entity @Table(name = "customer_service") @Multitenant @TenantDiscriminatorColumn(name = "tenant_id",…
-
1
votes2
answers219
viewsA: Tool to debug a stored Procedure on linux
Well, I ended up taking the following approach: installed the crossover (that implements the Wine as a basis) in Ubuntu 14.04 and soon after the mydebugger (suggested by Anthony Accioly) and worked…
-
0
votes1
answer985
viewsQ: ENUM returning only key and not value
I am trying in various ways to get the value of an ENUM, but it just returns its "key". Below follows the ENUM: public enum SaleType { BOUGHT("Comprou"), SEND_BUDGET("Enviar Orçamento"),…
-
1
votes1
answer773
viewsQ: jQuery UI autocomplete with AJAX call not displaying settings
Well, I’m trying to implement the jQuery UI in my code, but partially it does not work because it does not display the options below the component of input. It performs of being correct the request,…
-
1
votes2
answers219
viewsQ: Tool to debug a stored Procedure on linux
would like to know if anyone knows or even used any tool to realize a debug in stored procedures in linux. I am currently using the Mysql Workbench and the Dbvisualizer, but as far as I know none of…
-
0
votes0
answers94
viewsQ: Perform . append(); of an iframe when the page is loaded
I’m trying to accomplish a .append(); of a iframe which is stored in comic books. Well, this done and accomplished as follows: $(document).ready(function(){…
-
1
votes1
answer377
viewsA: Copy Outputstream object to a file
Well, I managed to "come up with" a solution by altering the return of my method of resize imaging (resizeDestinationImageToThumb()) for a array of byte’s. Hence the utility class of Spring…
-
3
votes1
answer377
viewsQ: Copy Outputstream object to a file
I confess it’s the first time I’ve worked with Stream’s and File in Java. Currently I use the Spring (Core) in my application, I soon use a simple copy utility feature stream’s and file’s called…
-
0
votes1
answer993
viewsA: Ctrl + eclipse space (No Default Proposals), new classes created the wizard does not work
Problem solved. I ended up creating another Workspace and downloading my project by SVN again and "magically" the code Assistant get back to working properly.…
eclipseanswered João Manolo 928 -
0
votes1
answer993
viewsQ: Ctrl + eclipse space (No Default Proposals), new classes created the wizard does not work
I am currently using Eclipse Luna as soon as I performed the update (SVN) on my application and created a new class, simply my attributes along with the eclipse auto complete (CTRL + Space) no…
eclipseasked João Manolo 928 -
1
votes1
answer95
viewsA: Recover disk image via callback
Well, I ended up solving the problem by choosing a simple colorPicker jquery itself. I chose this approach for lack of time in the project and even to give the user a greater breadth.…
-
1
votes1
answer95
viewsQ: Recover disk image via callback
Well, I am developing a feature that aims to upload an image (this step has already been accomplished) and soon after I "recover" the same to perform the selection of some color in it (Colorpicker…
-
0
votes1
answer1328
viewsQ: Character encoding UTF-8 not working
I know that the issue has been commented on numerous times in various blogs and forums around the world, but I really do not know what may be causing, because I think that in setting up my project…
-
4
votes1
answer785
viewsQ: N-N relationship with additional fields (problems to persist data)
I have an N-N relationship that works as follows: Destination.java (N)-(N) Customerservice.java Within this relationship there is an entity that keeps the relationship Ids, which has some more…
-
1
votes2
answers373
viewsQ: Opening dialog() not working
Well, in a way I made some changes to my code, which is instead of using a table i am using a list hierarchy in HTML li. The code in the fiddle is exactly the same as my code within the system (with…
-
0
votes1
answer1496
viewsQ: Serialize() jQuery method not working
I have a modal with some fields in which I make an AJAX call for data processing, but the problem is when jQuery will serialize the inputs of my form. It just doesn’t work. Down with my modal:…
-
0
votes1
answer137
viewsQ: Change and delete objects before persisting in BD
I have a feature that aims to register clients, in which within such registration I have a relationship as follows: A customer may have multiple "Attendances", and each service may contain several…
-
1
votes2
answers407
viewsA: How to use Mysql view’s with Spring Data and eclipselink
@utluiz, got grade 10! I had to do the following, I created a view in my BD: select c.id_customer, c.tenant_id, c.first_name, ds.name from viatgedb.customer c join viatgedb.customer_service cs on…
-
2
votes2
answers407
viewsQ: How to use Mysql view’s with Spring Data and eclipselink
In the development of my project I came across a select that will require a lot of application performance, as it consists of using two Join’s. Soon came to mind the creation of a view in Mysql, but…
-
1
votes1
answer733
viewsQ: Iterate a list and check if there is a component in jQuery
I’m performing an Ajax call and, with this, returning new entries to a table. So far so good, but I want to perform a .prepend() adding a "Remove" button to each item in the list. The problem is…
-
0
votes1
answer136
viewsQ: Ajax callback using Spring MVC does not work
Well, I’m trying to make a simple phone call AJAX (which already works), but the callback is not "triggered": $('#negotiation-status').on('click', '#button-add-destination', function (e){ var…