Posts by Jose Vieira Neto • 2,560 points
78 posts
-
4
votes3
answers2889
viewsQ: Running my Angularjs application on some server
I have a front-end application consuming an Rails api, but I’m new to this idea of separating the front-end from the back-end, my api runs on localhost:3000, and my front is simply a folder that I…
-
1
votes1
answer36
viewsQ: FOD element identification standard
What is the pattern of HTML identifier names , ex : <form id="alterar-nome-form" th:action="@{/conta/alterarnome}" th:method="put"> </form> Or <form id="alterarNomeForm"…
-
31
votes3
answers21968
viewsQ: What is the purpose of the Serializable interface?
Example of implementation: public class MyClass implements Serializable{ private static final long serialVersionUID = 1L; }
-
6
votes1
answer1395
viewsQ: How to make a layout template with Angularjs?
need a standard template for all screens of my front-end application how do I do this with angular-js? have as?
-
1
votes1
answer934
viewsQ: What is the Dispatcherservlet function in Spring?
What is the purpose of it? it is recommended to use spring-boot to make all spring xml settings automatically?
-
0
votes3
answers9781
viewsA: How to make a "Submit" in javascript?
With the use of Jquery is more reliable , so it runs smoothly in all browsers. $("#nome-do-meu-form").submit(function() { //alguma ação aqui ex : $("#btn").prop('disabled', true); });…
-
0
votes2
answers3467
viewsA: How to edit HTML table data with jquery
Replace your edit function with this function Editar(){ var par = $(this).parent().parent(); //tr var tdNome = par.children("td:nth-child(1)"); var tdEmail = par.children("td:nth-child(2)"); var…
-
28
votes2
answers3688
viewsQ: What are the advantages and disadvantages of minifying Javascript scripts?
And which mini-guards can I use?
-
2
votes1
answer53
viewsQ: Gruntjs error in installing plugin using Vagrant
I try to install the puglin npm install Grunt-contrib-uglify --save-dev in my project using Vagrant and gives error permission follows below : npm ERR! Please try running this command again as…
-
0
votes2
answers123
viewsA: Some errors on Android
Note that Actionbaractivity’s Heritage is deprecated because when created an android project it already tries to configure appcompatv7 lib in your project sometimes the ide Uga. Check if your…
-
2
votes1
answer1196
viewsA: Update button data of a query without refresh on the page
Uses Jquery to make an AJAX request. When you click the refresh button you make a request on the server returning a json with your desired result in your case I believe that a list that populates…
-
-1
votes2
answers541
viewsA: How do I check if my application is open on mobile or web?
function isMobile() { return preg_match("/(android|avantgo|blackberry|bolt|boost|cricket|docomo|fone|hiptop|mini|mobi|palm|phone|pie|tablet|up\.browser|up\.link|webos|wos)/i",…
-
0
votes1
answer260
viewsQ: Problem loading data from a table with Angularjs and Rails api
The code of my front-end : var listaDeProdutos = function(){ $http.get("http://localhost:3000/produtos").success(function(data,status){ $scope.listaProdutos = data; }).error(function(data,status){…
-
0
votes2
answers84
viewsQ: How to work with Angularjs without the API being ready?
I want to do the front-end of my application with Angularjs only that my Restful API is not yet ready to be consumed, it has some tool that helps me to work the returns in JSON?…
-
3
votes1
answer441
viewsQ: How to treat the submission of a form to be executed only once?
In a Method POST form , when I click the button twice quickly it executes the submission twice. Solutions with javascript or spring framework .
javascriptasked Jose Vieira Neto 2,560 -
1
votes1
answer106
viewsA: Problem in creating entity with one-to-one relationship
Pedido p = new Pedido(); Endereco end = new Endereco(); end.setLogradouro("teste"); //set aqui o objeto completo do endereço p.setEndereco(end);
javaanswered Jose Vieira Neto 2,560 -
4
votes1
answer672
viewsA: How to check if my spring application is in production environment?
The solution was to inject a spring boot class called Environment . @Autowired private Environment environment; environment.getActiveProfiles()[0].equals("production")); Application file.properties…
-
3
votes1
answer141
viewsQ: How to find an HTML component in the DOM after using the . append() function?
I’m making a request to my server with $.get of Jquery, and populating my table with the method below : $.get(/*[[@{/empregados/salariosMinimos.json}]]*/ 'consultaEstadoSalario', {uf : uf,data :…
-
2
votes2
answers3817
viewsA: How to format whole number in currency with javascript?
Solution with Regex Do JS function currencyFormat (num) { return num.toFixed(2).replace(".", ",").replace(/(\d)(?=(\d{3})+(?!\d))/g, "$1,") }
-
-1
votes2
answers3817
viewsQ: How to format whole number in currency with javascript?
Example var number = 3500; I want you to return 3,500
-
4
votes2
answers541
viewsQ: How do I check if my application is open on mobile or web?
I need to do a.css style for mobile and another for web .
-
3
votes1
answer672
viewsQ: How to check if my spring application is in production environment?
when it is in production I want that when it falls into an exception send an email to the support but only in production , in development I do not want it to perform this task .
-
1
votes2
answers496
viewsA: Problem with Fileupload
Friend I’ve been through this and it wasn’t anything wrong with the code but the version of primefaces that I was using the componomente p:graphicImage did not update try to do update in the version…
-
1
votes3
answers658
viewsA: Business rules in JSF
The best place is at the example Service layer Model (Your Objects) Controller (Calls Your Service,) Service (Where All Your Business Rules Are) Dao (Your Repositorys) Example : public class…
-
0
votes2
answers509
viewsA: Field validation problem
Instead of setting field values to 0.00 try to use placeholder that it does not recognize as an example value : 1º Add the lib <html xmlns="http://www.w3.org/1999/xhtml"…
-
0
votes2
answers2187
viewsA: Extend findAll with custom filters
Implements Jparepository that Voce can customize your queries according to the attributes of your example object below : public interface Empregado extends JpaRepository<Empregado , Integer> {…
-
0
votes1
answer149
viewsA: Error entering object in database
Use that instead of a Quence: @Generatedvalue(Strategy = Generationtype.AUTO) He’s trying to re-enter the category as the same ID,and implements Seriazable in the class and better use annotations…
-
0
votes3
answers752
viewsA: Update page after download
Replace with this : public void geraBoleto(Titulo bean) { TituloTO tituloTO = tituloBC.geraTituloTO(bean); if (bean.getNossoNumero() == null || bean.getNossoNumero().isEmpty()) {…