Posts by Macario1983 • 1,335 points
76 posts
-
0
votes0
answers28
viewsQ: How to Enter Into Spring Data in a Bi-Erect Relationship
I’m doing a back end study using the api SWAPI, I have already mapped the entities etc. But now I don’t know how to map to insert, for example: Entidade Film @Data @Entity public class Film extends…
-
-2
votes1
answer265
viewsQ: Hot deploy with Netbeans
I returned to work in a development company and I am with a certain difficulty and impatience with the Netbeans and Jboss, taking into consideration that I worked at the former dev company with…
netbeansasked Macario1983 1,335 -
4
votes1
answer4785
viewsQ: Best practices for creating an Angular project
I am studying Angular to develop a web application, and I would like to know what are the best practices regarding the creation of folders, creation of the classes related to the service and other…
angularasked Macario1983 1,335 -
2
votes1
answer47
viewsQ: The use and non-use of the word Function in Typescript
Why when I declare method in a class the compiler beeps, stating that the word usage is wrong function. In previous lessons of my learning to create a function I signed first as function. abstract…
-
1
votes1
answer34
viewsA: Error sending form by POST
As I reported <?php include_once($_SERVER['DOCUMENT_ROOT']."/cobranca/plano/funcoes.php"); include_once($_SERVER['DOCUMENT_ROOT']."/cobranca/utils/global_funcoes.php"); $dadosValido = true;…
phpanswered Macario1983 1,335 -
-1
votes1
answer52
viewsQ: Problem accessing concrete class methods using reference this in C#
I implemented a class Service abstract using Generics and another using EmpresaService being concrete. Every project structure for every concrete class has an abstract. My doubt seeing from the…
-
3
votes2
answers76
viewsQ: Failed to display Address class fields when using object creation method expressed in C#
Visual Studio 2017 suggested something that I was surprised, the creation of object without using the new operator, I was surprised, because I’m coming from Java and it’s been a year since I stopped…
-
0
votes1
answer121
viewsQ: How to make Generic with 2 C#classes
Good night, I’m having trouble using Generics in C#, I’m a programmer Java and I’m learning to use C#. I want to use Generics in a class in the package Service, I am implementing the class referring…
-
2
votes1
answer286
viewsQ: Instantiate annotated class with Hibernate inheritance using CDI
Good afternoon, I’m creating a project using JSF, CDI, Bootstrap and Hibernate. I would like to know how to work with the following problem, I have created a set of classes to represent a person…
-
2
votes1
answer685
viewsQ: Clear a Bean variable from the JSF page
I have a page with some iteration loops inside my page JSF and then I’d like to know how I do to after each loop clear that attribute from the page. To be clear, I know that when rendering a page…
-
7
votes5
answers31061
viewsA: Format Float value as currency using Jquery
Well I figured out how to do it, so follow the answer. function mascaraValor(valor) { valor = valor.toString().replace(/\D/g,""); valor = valor.toString().replace(/(\d)(\d{8})$/,"$1.$2"); valor =…
jqueryanswered Macario1983 1,335 -
6
votes5
answers31061
viewsQ: Format Float value as currency using Jquery
I have a function that sums the values of a line, I would like to know if it is possible to put the value as currency like this: R$ 16,00 It’s coming out this way R$ 16.00 But I wouldn’t want to use…
jqueryasked Macario1983 1,335 -
3
votes1
answer162
viewsQ: How to get the values of the last 4 columns with Jquery
I have a panelGrid, and would like to know how to get the last 4 elements before a given of the same line. That is, I have a line, and the last element will receive the sum of the previous four.…
-
0
votes1
answer43
viewsA: Problem loading only required fields using Resultsettransformer in Hibernate
My goal is this, to make a query and popular the object with that return. My challenge was because I do not know how to return the same object if it makes a query via objeto in the Hibernate,…
-
0
votes1
answer303
viewsQ: Performance when generating a JSF table
I’m having a question of how to improve perfomance when generating a table on a page using components JSF and Primefaces. I am generating a table, after making an SQL query and mapping the object…
-
1
votes1
answer43
viewsQ: Problem loading only required fields using Resultsettransformer in Hibernate
I’m trying to develop a method for through a SQL pure, seek only the fields necessary to mine query and finally, already bring the already mapped object. In this case the object would be…
-
1
votes0
answers533
viewsQ: Problem with Tomcat sessions
I would like to know the following staff, a company application presents a high number of sessions in the manager of Tomcat. The system has been rising in the number of users and would like to know…
-
9
votes1
answer450
viewsQ: Web application for multiple people
I see many web applications that can be used for various companies. How do they do it? They create only one bank and share between these various customers? For example: Company A has 10 users and…
-
3
votes0
answers174
viewsQ: How to configure SVN correctly
I want to configure the SVN on my machine to learn but I’m having difficulty, I made the configuration correctly as tutorials on the net but the strange thing is that when accessing via browser, is…
svnasked Macario1983 1,335 -
1
votes1
answer3127
viewsQ: Share virtual machine VPN connection with real machine
I have a problem because I started using a few months ago Ubuntu and now recently migrated to Mint. Work developing with Java Web but to do tests I need to access the client’s database through a…
-
0
votes1
answer634
viewsQ: Error connecting Postgres to remotely
I am having problems connecting to the company database, I am accessing from home. My other colleagues can access normally. Both saw pgAdmin how much terminal I have been facing problem. Strange…
-
1
votes1
answer60
viewsQ: Turn 3 CSS classes into one
I have these three classes css, and I wonder if it is possible to turn into one, it would be used in panel grid of Primefaces .panelGridCenter { margin: 0 auto; } .gridNoBackground tr{ background:…
-
1
votes1
answer72
viewsQ: Problem registering a directive on Tomcat using Eclipse on Ubuntu
Good morning I’m having trouble putting this directive -Dorg.apache.el.parser.COERCE_TO_ZERO=false in the VM arguments of Tomcat 7, it does not save settings. I already gave permission in the folder…
-
1
votes1
answer568
viewsQ: Problem creating custom Components in JSF
I’m having problems creating custom components in JSF, it’s actually the first time. I found some guides on the internet but it hasn’t worked. Here’s what I did. I created the custom.taglib.xml…
-
5
votes1
answer78
viewsQ: What is the benefit of Jsf’s life Cycle?
People I see people talking about understanding the life cycle of JSF. And I wanted to understand what uses we will have when understanding?
jsfasked Macario1983 1,335 -
2
votes1
answer536
viewsQ: Find out which Primefaces component performed an action using jQuery function
I want to make a refactoring in my code, and for that I need to get the id of a component that suffered an action. My target would be that I have two datatables, and wanted to take the id and from…
-
3
votes1
answer3381
viewsQ: Create report with nested lists
I would like to know please how to report to Ireport taking into account that the figure present in this post has three nested collections. Where a table has N vigências and a vigência has N faixas.…
-
6
votes2
answers280
viewsQ: Pass two parameters to a function that accepts only one parameter
I’ve been making a code to generate a pdf from the framework Itext in Java. I came across the following situation, I needed to define a phrase as negrito and sublinhado. After searching Google, I…
-
4
votes1
answer704
viewsQ: Determine maximum height of a column title in Primefaces
I would like to know if it is possible to do the following: I need in a datatable define a maximum height of a column. Because there are some that the text gets too long and the column value is a…
-
1
votes1
answer2969
viewsQ: Access application on a virtual machine with Tomcat server
I’m not sure if I can ask here but come on, I have a demand because I want to test in this virtual machine the system in different browsers. Problem I can’t access, someone already made this type of…
-
0
votes2
answers1020
viewsA: Lock a button inside a datatable in the primefaces
Yeah, I got! Takes up the duties in js or jQuery. function disableBtnExcluir() { $('button[id*="tabelaVigenciaCorrente"]').prop('disabled', true).addClass('ui-state-disabled'); } function…
-
2
votes2
answers1113
viewsA: Tooltip or Hint in rowEditor in Primefaces
I got such a fact as a divine miracle of luck and inspiration to accomplish such a fact. Lucky I found this dial in the Primefaces manual. .ui-state-hover I soon thought, after searching earlier,…
-
2
votes2
answers1113
viewsQ: Tooltip or Hint in rowEditor in Primefaces
I have a problem, I wanted to add a tooltip or hint by hovering the mouse over the edit, confirm and cancel icon roweditorand celleditor of Primefaces. I’ve researched and tried using css but it…
-
1
votes1
answer1739
viewsQ: How to perform tests on private methods using Mockito
this weekend I read about the Mockito and double tests, and I came up with the following idea. Test private methods with this framework. I saw that the PowerMock performs such a procedure, but…
-
4
votes1
answer442
viewsQ: What is the relationship between the Primefaces ajax and the events
Faced with certain problems during my developments I arose the following doubt for example. When I use the tag ajax in the Primefaces, has the property event where we passed events, then I arose a…
-
1
votes1
answer1470
viewsA: Centralize components of a datatable that is in data editing in Primefaces
For those who wish, include in your style sheet the following property. .ui-cell-editor-input { text-align: center; } And when you edit the data from datatable the component of edit was at the…
-
1
votes2
answers1020
viewsQ: Lock a button inside a datatable in the primefaces
I have the following problem, I own a dataTable which contains the possibility of editing the data by editing by line, using the tag rowEditor and cellEditor. Next to this I have a button to delete…
-
0
votes1
answer1470
viewsQ: Centralize components of a datatable that is in data editing in Primefaces
How can I center the components of this datatable. When I click to edit the data of the same I realize that the components of data entry are not centralized, but when using a certain tests with css…
-
1
votes1
answer1931
viewsQ: Aligns in the same row rowEdit and other buttons in Primefaces
I’m in trouble where mine dataTable owns the property editable set to true. Allowing editing of the line the user selects. Well, when putting a button to delete for example I’m having trouble that…
-
0
votes1
answer593
viewsQ: Using data table with on demand feature within a dialog in primefaces
I’m having trouble using a datatable of primefaces with that resource on demand. I try to use it inside a dialog but when opening with the data, but they are not updated and the scroll mouse moves…
primefacesasked Macario1983 1,335 -
1
votes1
answer304
viewsA: How to preview more than one Ireport file
I don’t know why, but when I moved a line of code. public static void main(String[] args) throws JRException { final String pastaImagens = "imagens/"; final String pastaFormulario = "formularios/";…
-
1
votes1
answer304
viewsQ: How to preview more than one Ireport file
I would like to know how to make one preview of various reports from Ireport, i.e., I created a test project to run the reports or forms created to check how they looked before putting them on the…
-
2
votes1
answer877
viewsQ: How to reference a jar from another project in Eclipse
I’m doing a project to test iReport reports, and I was wondering if there’s a way not to include the same jars that already exist in a particular project. Eclipse itself offers the option to…
-
13
votes2
answers1652
viewsQ: How to perform TDD on the Service layer
I participate in a project that uses MVC layers with Hibernate framework persisting in a Postgres. Junit is used for testing and Mockito is used for mocking (I still have no knowledge and practice…
-
0
votes1
answer1602
viewsA: How to make a form with 2 pages or more in Ireport
Finally, I solved my problem by putting a full page, totally occupied by the band detail and inserted the elements in it, the bad side was having to move the components again. But I could learn a…
ireportanswered Macario1983 1,335 -
2
votes3
answers1018
viewsA: Serialize XML for REST API with Correct Accent
Man I’ve seen trouble like yours wearing Jaxb about accentuation, what I indicated to person was to pass the bytes and check which charset was being used before, and look who was in the hand UTF-8,…
-
-1
votes1
answer1602
viewsQ: How to make a form with 2 pages or more in Ireport
I need to make a form to be filled with system data on Ireport. So far so good, with a page I can, but with 2 pages? That is, a form that is 2 sheets. I saw some people suggesting to do 2 details…
ireportasked Macario1983 1,335 -
0
votes1
answer461
viewsA: Envers hibernate problem with class objects within a class
I got what you need from the following fact, the database Envers this acting already has older records. So when the Envers checked he did not find a certain object because he did not find it in the…
-
-1
votes1
answer461
viewsQ: Envers hibernate problem with class objects within a class
I have the following class. @Entity @Audited @GenericGenerator(name = "Sequence_Generic", strategy = "com.paradigma.ecred.dao.hibernate.generator.ManualGenerator") // sequence generic criado para a…
-
0
votes1
answer400
viewsQ: Overwrite Primary Hibernate Key Generator
I would like to know if you can overwrite the generator of a primary key in Hibernate, in my case I make a superior class where the id, and the rest extend from her. In my case this subclass, which…