Posts by HDeiro • 918 points
70 posts
-
0
votes1
answer31
viewsA: Dynamic loading of components based on their reference
Solved using Ngcomponentoutlet.
-
1
votes1
answer31
viewsQ: Dynamic loading of components based on their reference
Everybody, good afternoon, everybody. I’m having the following problem. Given a structure: [ { title: "A", content: ComponentReference }, { title: "B", content: ComponentReference }, ] I need to…
-
0
votes1
answer19
viewsA: Query problems in Apache Phoenix
For others' reference, our temporary solution was to make N queries and then merge the results. There is definitely a better solution. If anyone knows what it is, please answer this topic.…
-
0
votes1
answer19
viewsQ: Query problems in Apache Phoenix
Hi. My team and I are having an Apache Phoenix-related problem. I wonder if anyone has come across this problem before or if we’re doing something wrong. First, we create the following table: create…
-
1
votes0
answers32
viewsQ: How to deal with Scala x Java classcasting
I’m having a problem working with heritage between Scala and Java. To contextualize, follow an example that reflects my problem. Java Class public class Animal { } Java Class public class Cat…
-
1
votes0
answers45
viewsQ: Remove in bulk or from a group
I am using the Google People API and need to do a bulk removal operation (delete). I took a look at their documentation, but I couldn’t find any way to delete all contacts from the agenda or a…
-
2
votes2
answers501
viewsA: How to traverse a hierarchical tree to generate an HTML
With this solution you can browse and generate the desired HTML. let tree = { label: 'Elemento A', itens: [ { label: 'Elemento A1', itens: [ { label: 'Elemento A1a', itens: [ { label: 'Elemento…
-
0
votes0
answers82
viewsQ: Directive does not work with dynamic properties
Whoa, whoa, guys, whoa. I’m developing some custom directives around here, and they need to have properties added flexibly (like an ng-class). I was able to develop the mechanism to do this,…
-
1
votes1
answer24
viewsQ: Problems writing to an input from the controller
Hello, I’m having trouble entering data from controller. I am doing the activities of a Code House Laravel book to learn and needed to do this to update the record of a bank tuple, I ended up using…
-
0
votes0
answers44
viewsQ: How to open Barcodescanner in a limited space?
Good morning. Would anyone know how to open the phonegap-plugin-barcodescanner in a limited space, such as a <div class="scanner"></div>, for example? I already managed to run and put to…
apache-cordovaasked HDeiro 918 -
0
votes3
answers8611
viewsA: How to browse lists?
In addition to the jbueno answers, you can also use a iterator to traverse an Arraylist. It should be noted that the foreach is a syntactic sugar form of the iterator. Therefore, both have the same…
-
0
votes2
answers67
viewsA: Problems with navigation bar
I made changes to my directive and it worked. app.directive("scroll", function ($window) { return function(scope, element, attrs) { angular.element(document).ready(function(){ /* header DOM element…
-
0
votes2
answers67
viewsQ: Problems with navigation bar
Good morning. I have a canvas with angular material in which I simulate the flexnav of the material design. and when I go down the scroll is: However, only the moment the screen is loaded is this…
-
1
votes1
answer387
viewsA: How to import external CSS
In Stackoverflow (in English) I had asked this same question, reported that there was already another similar post with the solution. https://github.com/chriseppstein/sass-css-importer I tested it…
-
1
votes1
answer387
viewsQ: How to import external CSS
Hello, I am using Compass and would like to know how I can import an external file from my configured folder to Sass. Currently the scss is like this: @import…
-
1
votes2
answers1418
viewsQ: Redirect to External Link
Good afternoon. When I open an external page from a link in my Ionic application, it is rendered in the common browser or in the application’s own webview? If it is rendered in the webview itself,…
-
3
votes3
answers242
viewsA: Why do I need to declare a guy inside the "foreach"?
Just to complement, I’ll put what the @Sorrow said on the link @Diegofelipe posted private static void testForEach(ArrayList<String> als) { for(String s: als) System.out.println(s); } private…
-
11
votes3
answers242
viewsQ: Why do I need to declare a guy inside the "foreach"?
Why in a foreach we always need to declare a variable. Example: for(Pessoa pessoa : pessoas) { //qualquer coisa } In other words, I want to know why it is not possible to do this: Pessoa pessoa;…
-
0
votes1
answer100
viewsQ: Problems with editable <p:datatable
Good evening. I’m having trouble updating an editable datatable I created here. It reads the values, but does not assign them to the Managedbean object so I can persist. Follows Code of the Bean…
-
0
votes2
answers348
viewsQ: Change whether or not item appears in <p:Datatable>
Good morning. I am with the following datatable: Could you give me some insight into how I could make this Expansion appear just for the first two lines? The rest have no details to appear in the…
-
4
votes1
answer245
viewsQ: Data Truncation with Hibernate
Goodnight. I have a problem to persist an object, Hibernate throws an exception saying that the data are too long for the "street" column, type String. Follow Pojos and DAO. Address @Embeddable…
-
0
votes1
answer985
viewsQ: Page Numbering Problems with iText
Good afternoon, everyone. I need to create reports with iText. Everything was going great until I needed to number these reports. I found a reply in someone else’s post on GUJ, but it didn’t work…
-
3
votes2
answers1000
viewsQ: How to create templates with Javascript?
I would like to know if it is possible (and how to do it, if it is) templates with Javascript. Just like the Facelets in the JSF, where one creates a template page and the others follow what has…
javascriptasked HDeiro 918 -
2
votes1
answer81
viewsA: I can’t get value from my form
I was smashing my head with a teacher yesterday and we found that what caused this problem was the process of commandButton.
-
0
votes1
answer81
viewsQ: I can’t get value from my form
I created this form and I can’t redeem its values in Bean. Follows form and parts of the bean. Form <h:form id="form"> <p:commandButton value="Salvar" icon="ui-icon-document"…
-
-1
votes1
answer2149
viewsA: Algorithm problems for calculating NPV and IRR
I managed to solve! public double[] calcularVPLTIR () { double[] fc = new double[] {-6000000,2300000,2500000,2500000,2000000,3000000}; //Cálculo do VPL double vpl = 0; int size = fc.length; double…
-
0
votes1
answer347
viewsQ: Problems with Dataexporter
I cannot export data from my table, even following the example of Primefaces Showcase. I use version 5.0. <h:commandLink> <p:graphicImage library="img" name="xlsx.png" width="32"…
primefacesasked HDeiro 918 -
1
votes1
answer2149
viewsQ: Algorithm problems for calculating NPV and IRR
I have a logic problem to calculate NPV and IRR. Formula for the NPV: Formula for the IRR: From these formulas I arrived at the following method: public double[] calcularVPLTIR () {…
-
0
votes2
answers138
viewsQ: How long does an x++ increment take?
How long on average an i++ increment takes to be done. In view of the answers and comments placed here: I asked this question because I have a method to send emails when a certain condition is…
-
5
votes1
answer7203
viewsQ: How do I resolve the "No appenders could be found for logger" warning?
I am trying to configure Log4j in my project with JSF. I followed all the steps of a tutorial I found on Youtube. However, the following message is being sent: log4j:WARN No appenders could be found…
-
0
votes0
answers366
viewsQ: Viewexpiredexception in view periodically updated
Good morning. I am with a periodically updated view which throws the following exception: Nov 03, 2015 11:21:49 AM com.sun.faces.context.AjaxExceptionHandlerImpl handlePartialResponseError GRAVE:…
-
1
votes1
answer95
viewsA: Problems with <p:Poll> that does not find Id
The solution was just to change the div for p:panel.
-
0
votes1
answer95
viewsQ: Problems with <p:Poll> that does not find Id
Guys, I have a div that needs to be updated in 5s, but it’s giving error saying that the ID is not found. <h:form id="form"> <br /> <center><h:outputLabel value="Visão Geral"…
-
0
votes1
answer70
viewsA: Why can’t I print content in Chained List
I was able to respond when I replaced the statement Aluno b for : Aluno *b = (Aluno*) malloc(sizeof(Aluno));
-
0
votes1
answer70
viewsQ: Why can’t I print content in Chained List
Good evening, I have a problem with a college job. I need to create a linked list that receives student records. I created a function to register, however, I can not print, externally, the contents…
-
0
votes0
answers33
viewsQ: Restricting the selection of lines
Guys, I’m having a problem selecting lines in one datatable that I created here. It allows me to select the first two lines, however, the others it does not let. It does not even the effect of the…
-
0
votes1
answer47
viewsA: Bean is not reached by View
I resolved. I had forgotten to import some jars from the method I call on the Bean. I just referenced to the desktop, where they were. Now it worked.
-
0
votes1
answer47
viewsQ: Bean is not reached by View
I am with a Requestscoped Managedbean that is not being found by my view. Managedbean package br.com.hidros.control.beans; import java.io.Serializable; import java.text.SimpleDateFormat; import…
-
1
votes1
answer679
viewsA: Layout of many columns with datatable
Guys, I got the problem solved. Follow code and print. <p:column width="187" style="background-color:inherit; position:fixed; width:187;"> <f:facet name="header"> <div…
-
0
votes1
answer679
viewsQ: Layout of many columns with datatable
I’m having a problem with datatable layout. I ended up creating a very extensive component (if I’m not mistaken, about 25 columns). I need to move one of these columns (year) according to the scroll…
-
1
votes1
answer41
viewsA: Problems with attribute update
I did some tests and found that the method of instantiation was being called. However, I had to put the dialog inside the update to reset the forms. <p:commandButton value="Novo"…
-
1
votes1
answer69
viewsQ: Screen Splitting using Android + Unity
Guys, good afternoon. I have a project where I need to take a view of a particular object at 4 different points and position it in order to look something like this…
-
1
votes1
answer41
viewsQ: Problems with attribute update
Good afternoon. I’m having a problem instantiating a new object of type X every time I click on the "New" button. I will attach the bean, the view and two prints (update and new). Edit New…
-
1
votes1
answer35
viewsA: Problems with form
I realized now that I went soft, I ended up assigning userSelecao to userSelecao. I adjusted this and it worked. rs The problem now is that when I click on the "New" button it is not instantiating a…
-
0
votes1
answer35
viewsQ: Problems with form
Good morning. I have a form where I need to edit, change and register records to be shown/selected in a datatable. I use two objects of type User. user and user. However, I’m having trouble editing…
-
1
votes1
answer50
viewsQ: <p:spinner> Does not accept double
Guys, good night. I’m using Primefaces 5.0 and I have a problem with the component . Every time I try to put a floating point value on it (25.43, for example) it changes only to the whole part of…
-
0
votes2
answers30
viewsA: Tomcat Problem - "Obsolete Files from Server"
I don’t know if it was right, but I think I solved it, because the server went back up... I switched his Location. I think the fact that the computer shut down caused a problem in the Metadata.…
-
1
votes2
answers30
viewsQ: Tomcat Problem - "Obsolete Files from Server"
Good night! This afternoon my computer got emotional and hung up by itself while I was climbing up the Tomcat. As I was going out, I didn’t care much. However, now that I arrived from college and…
-
2
votes0
answers103
viewsQ: Problems with Opencv - Eyes Cascade and Face Cascade
Hey! What’s up? I am making a program in C++ with Opencv and when running appears the error below This is the error that is occurring without Try-catch This is the error occurring with Try-catch int…
-
1
votes1
answer3906
viewsA: JSF does not find resource
I resolved. I had renamed my xhtml from environmental fluxoenvironmental to fluxoAmbiental, this caused there to be a problem with some variables I created. After I changed the file name to…