Posts by DiegoAugusto • 8,694 points
325 posts
-
8
votes5
answers3991
viewsQ: Update list after push Angularjs
I have a list with several data ($scope.messages), but only some data interest me. After loading this list I make a foreach and take only the data that interests me and give push in a new list. That…
-
0
votes1
answer1425
viewsA: Delete records in Firebase
I solved the problem as follows: In the Controller in the function that makes the logoff I made a foreach that goes through all the records that are on Collection of Firebase:…
-
1
votes1
answer1425
viewsQ: Delete records in Firebase
I am developing a small chat using the Firebase. My intention was to do the login in my application and save the usuarioLogado in the database and by logoff delete this user from the database.…
-
0
votes1
answer465
viewsQ: Check Real-time API Connection Angularjs
I know it is possible to verify the existence of internet connection, but it would be possible to check if my application is connected to the API where both are on the local network. For example, in…
-
3
votes3
answers3658
viewsA: Add Values in Angularjs
It is not working because you do not call any action (function) that does the sum. Try the following: At its last input put a ng-Blur or ng-click <input type="number" ng-click="somarValores()"…
-
2
votes1
answer510
viewsA: Format Textarea Javafx
You can use the Richtextfx. With it Voce can set various styles pro your textArea. An alternative would be to use the Htmleditor I think it might solve your problem. Source:…
-
2
votes2
answers985
viewsQ: Chronometer between two Angularjs dates
Suppose I have two dates: 2015-11-13T08:00:00 and 2015-11-13T10:00:00, as you can see there is a difference of two hours between these dates. I would like to put a chronometer in my view that shows…
-
7
votes2
answers1889
viewsQ: Methods of image storage
I am studying what is the best way to store some images of users that are registered in my system. I found 3 ways to solve this problem: Save to local directory, Save as BLOB and Save as Base64. I…
-
2
votes1
answer422
viewsQ: Separate login page from other pages that are loaded from ng-view
I have a little app SPA (Single Page Application) with AngularJS where all pages are loaded on index.html through the ng-view. But I added a layout with a sidebar and a few other things on this page…
-
0
votes2
answers2629
viewsA: How to login with php and Session on Ionic?
As @Vagner said token is the most recommended. But if you want an example with Session maybe this can help: //Atribui o objeto usuário a referencia usuarioLogado no sessionStorage…
-
9
votes1
answer921
viewsQ: Desktop development with Electron
With the growth of web many people have abandoned desktop development, but some interesting technologies have emerged, such as the Electron: Electron allows you to create desktop applications with…
-
0
votes1
answer784
viewsA: Commandbutton - Error calling method
Take off the dialog from within the Table then change the button inside the dialog of action for actionListener. Here has an article where the differences between action and actionListener are…
-
1
votes1
answer367
viewsQ: Data Binding does not work after calling function
I have the following function: $scope.calcularTotal = function(startDate, endDate){ $scope.items = $filter('betweenDate')($scope.items, 'dataPagamento', startDate, endDate); console.log("testee:…
-
1
votes1
answer962
viewsQ: Filter between two Ionic dates
I have a system where when entering a page a list is loaded with some data. But I would like to make a filter to search the data between two dates. Ex: search all records between 03/10/2015 and…
-
0
votes2
answers659
viewsQ: Problem when trying to get $Scope of form with Ionic
I got the following form which sits within a modal: <form name="usuarioForm" novalidate=""> At the end of this form I have a button where I pass the object that was filled into a function, and…
-
1
votes2
answers1093
viewsA: What allows Java to find out which is the main class in a . jar
When we develop a system in Java we have to have a starting point. Imagine a system where you have hundreds of classes and thousands and methods. We have to start from somewhere right? That’s why…
-
3
votes1
answer1664
viewsQ: Display Alert according to an Ionic condition
I have a user registration page where I have a code field where I would like to validate it according to a condition ($Scope.error) coming from my controller, I already have some alerts but they…
-
0
votes1
answer672
viewsQ: Update does not work when trying to update a <p:panelGrid>
I have a button inside a <p:toolbarGroup> where I do some operations, I also have a <p:panelGrid> which should be rendered after the user clicks the button, but I cannot update this…
-
3
votes2
answers1179
viewsA: Controller does not see ng-model of Angular JS
Try sending an object. ng-click="demanda.name" If you have more attributes that enter this demand just follow this pattern, example: ng-click="demanda.quantidade" Then just pass the demand to the…
-
3
votes2
answers1501
viewsQ: Put files inside a. zip file
I have a class where I compress some files: public class CompactarArquivo { //Constante static final int TAMANHO_BUFFER = 4096; // 4kb //método para compactar arquivo public static void…
-
7
votes1
answer321
viewsA: Error analysis and correction in DB connection test using Hibernate
Come on. first Your file web.xml is inside the folder webapp. Create a folder called WEB-INF and put your web.xml inside it. Another alternative is to delete your file web.xml and do the following:…
-
1
votes1
answer195
viewsA: Subreport in ireport
Problem solved, I added one Report Group grouped by code in the report and did not require a sub-report.…
-
1
votes1
answer195
viewsQ: Subreport in ireport
I am trying to make a report where each code has x clients. Example Code 1: Bruno Rodrigo Fernando Code 2: Rafael João I retrieve these codes from a database, example: 1 Bruno 1 Rodrigo 1 Fernando 2…
-
2
votes2
answers1831
viewsQ: Problem placing a background image in only one view
I have a small system in Angular where I have a login screen: But when I try to put a background image the result is not as expected: I’m doing it this way: <div class="background"> ../Código…
-
3
votes2
answers229
viewsA: Check data according to the ready information
I made a very simple example of how to solve this problem: function LoginController($scope) { $scope.cliente = [{ nome: "nomeedit", senha: "senhaedit", email: "[email protected]" }, { nome:…
-
6
votes1
answer801
viewsQ: Access database in Openshift
I deployed a project on OpenShift, I used a Cartridge to create a bank Mysql soon after the creation of the bank appear this information: Mysql 5.5 database Added. Please make note of These…
-
1
votes1
answer346
viewsQ: Ignore CSS Class on a specific page
I have a system where the front was made with AngularJS. In that system I have the page index.html where I declare all the libraries, on that same page I have o seguinte trecho de código: <div…
-
3
votes2
answers7273
viewsQ: Responsive side menu with button
I have a side menu: I would like to put a button to hide and show this menu, and when I turn down the resolution this button appears so I can display it. HTML: <div id="wrapper"> <!--…
-
1
votes1
answer1455
viewsQ: Block routes according to user permission Angularjs
I have a system where I log in a user, in case everything right the server returns me an object and I store this object in sessionStorage. I can recover this object to do some validations, e.g.:…
-
15
votes2
answers2572
viewsQ: Main purpose of utility classes
What is the real function of utility classes? Would only reduce maintenance and repetition of code or would go beyond these functions? Would have some way (convention) to use these classes…
-
3
votes1
answer79
viewsA: Connection to database and mapping
Let’s go in pieces: 1: Even so, I need to map my table in another class using Entity? R: No, because you already mapped it in the file hibernate.cfg 2: What about ddl commands that he talks about in…
javaanswered DiegoAugusto 8,694 -
0
votes1
answer95
viewsA: Project problems with Maven - Algaworks
Put this snippet in your pom.xml: <build> <finalName>NomeProjeto</finalName> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId>…
-
1
votes1
answer370
viewsA: Error in creating a Maven project
Error says that is missing the web.xml. Create the Folder WEB-INF inside webapp and then create the file web.xml.
-
1
votes1
answer292
viewsQ: Update Data Binding in Navbar after logging in
I have a navbar which is included in the index.html page <body> <div class="container"> <div ng-controller="colaboradorController"…
angularjsasked DiegoAugusto 8,694 -
1
votes1
answer74
viewsA: What to do after mapping?
Well, I’ll see if I can help you. First we create and configure the hibernate.cfg.xml(If you have not yet configured). Hibernate.cfg: <?xml version='1.0' encoding='utf-8'?> <!DOCTYPE…
-
1
votes1
answer471
viewsQ: Vraptor + Angularjs authentication
I’m trying to authenticate users on my system, but I’m a bit lost. How do I return the logged user from the pro server front-end ? Currently I can check if the user exists in my database as follows:…
-
0
votes1
answer3779
viewsQ: Upload Angularjs Files
I have a button where I select a file, I would like to upload that file to my server(Java + Vraptor). I can already get the file and also save the name of the file in the database along with the…
-
0
votes1
answer1568
viewsQ: Upload and Recover an Image with Angular
Let’s assume I have a user registration form where I want to save a photo of it. Send this data by POST to the server (Java) where I include in the database. What is the best (practical) way to send…
-
0
votes1
answer123
viewsA: Problem with JSF Timezone
Try this: <h:outputText value="#{var.data}"> <f:convertDateTime pattern="dd/MM/yyyy" timeZone="GMT-3" /> </h:outputText>
jsf-2.2answered DiegoAugusto 8,694 -
2
votes1
answer969
viewsQ: Table paging with Angularjs
I was trying to put a pagination in my table, after a help I managed to partially solve the problem, but it was not the way I expected. I can get the currentPage every click on <pagination>…
-
0
votes1
answer2375
viewsQ: Dynamic Table Paging with Angularjs
I have the following scenario: I recover this data from a Rest API with Vraptor. I would like to display only two items per page, but I don’t know where to start. I implemented this pagination using…
-
4
votes2
answers1346
viewsA: Center Swing Window
Try it this way: frame.setLocationRelativeTo(null);
-
1
votes1
answer944
viewsQ: Update table after entering data in the Angularjs database
I have a modal with a form, fill that form and I click the save button and the data is saved in the database, but I have to give a F5 to update the table. How can I update the table after entering…
-
10
votes1
answer1395
viewsA: How to make a layout template with Angularjs?
There’s like @Jose. Just use the $routeProvider. Example: $routeProvider.when("/home", { templateUrl: "public/view/home.html", controller: "principalCtrl" }); Dai on your page (index.html) you put a…
-
1
votes2
answers949
viewsA: Add field by clicking button
Let’s assume you have 5 fields and want to display them when you click a button or enter with a shortcut. In the Bean you make a counter, every click on the increment button + 1. Then on inputText…
-
1
votes1
answer148
viewsA: Sprint boot + angular application in WAR, where to start?
I suggest starting with Spring, read some books and try to understand a little about REST, when finishing try to make a API Rest, do some tests and go to Angular. Angular documentation is great for…
-
2
votes2
answers1351
viewsQ: Check if a record came back-end null in Angular
I have a modal where I have two text inputs: CPF and Senha. In the input of CPF have a ng-blur who makes a Requisition GET every time I change fields. If I type a CPF that exists in the bank he made…
-
1
votes1
answer57
viewsA: Validation of java fields
See if you can help: if (txtNome.getText().isEmpty()) { exibeMensagem(); txtNome.requestFocus(); return; } If it doesn’t help, improve your question a little and specify your problem better, as…
-
1
votes1
answer334
viewsQ: Perform function in ng-Bank Angularjs
I am trying to set up a project where a client makes his registration to have access in the system, this registration can only be performed if the client’s CPF exists in the database. I have two…
-
13
votes2
answers127257
viewsQ: Put a background image and make it responsive
I’m having a problem putting a background image on my page. I did some tests and it looks like this when I change the window size: When I maximize it’s right: How can I adjust this image to get the…