Posts by AlexSC • 680 points
22 posts
-
1
votes1
answer105
viewsQ: How to configure the Demoiselle 2.4.2 Junit component to inject EJB dependencies
I have a Demoiselle 2.4.2/JSF/Hibernate application that presents several test cases in full operation. The Bcs operated by these test cases undergo several dependency injections without any…
-
0
votes1
answer117
viewsQ: Which Demoiselle 3 dependency should be included in a Maven project for JSF use?
I have several applications built with Demoiselle 2.4.2+JSF+Primefaces+Hibernate and would like to advance to Demoiselle 3. On the portal dedicated to this version (http://demoiselle.io/) there is…
-
1
votes1
answer257
viewsQ: How to support transactions with Junit and Demoiselle 2.4.2
I have an application whose unit tests are fully operational except for write operations in the database. No data is recorded. When forcing a flush, I received the message indicating that no…
-
1
votes1
answer174
viewsQ: How to configure Jboss AS 7.1 with Demoiselle 2.4.1 to operate with distributed transactions?
Hello My scenario: JSF/Demoiselle application that invokes an EJB method, both hosted on a Jboss AS 7.1.1 server. During Insert and update operations on a CRUD page, the Demoiselle application has…
-
6
votes1
answer304
viewsQ: How to simulate a logged-in user in an application with Demoiselle 2.4.2?
I have an app Demoiselle 2.4.2 already in operation that needs to use the SecurityContext to obtain the User currently logged in and make some decisions. The time now is to write the unit tests…
-
0
votes1
answer270
viewsQ: How to use Junit with Demoiselle 2.4.2?
Hello I have a project with the following profile: Eclipse Luna Java 6 JSF 2.2/Primefaces 5.3 Jboss 7 Demoiselle 2.4.2. The application already works, the problem is in the execution of test cases…
-
2
votes1
answer252
viewsA: Generate a report using thread in the background
In the thread you can make a new implementation of constructor where you will pass all the data that it needs in order to be independent of the form, which when destroyed, will not compromise the…
-
0
votes3
answers2201
viewsA: How one class can inherit from one interface and another class in Delphi
Attributes in Delphi are only classes, when annotating a language construction with an attribute, what is done is to instantiate a class and link it to the construction for use by RTTI. Thus, you…
-
2
votes3
answers648
viewsA: How to include functions or procedures in Pascal through an existing archive?
A Delphi application is divided into Units. Each Unit is a language source code file Objectpascal (is not the default pascal), where several language constructs can be declared, such as isolated…
-
1
votes1
answer669
viewsQ: How to configure a project with Junit to be able to build correctly inject Entitymanager?
I have a legacy JSF/Demoiselle 2.4 application that lacked the good practice of building unit tests. In order to meet new requirements, I have implementations to do and I intend to build them using…
-
4
votes1
answer566
viewsQ: Demoiselle 2.4.0: Error running test with Junit
I have a project built from the archetype of Demoiselle for Maven. The generated application is the one that exemplifies the Demoiselle, containing a register of bookmarks. The programmer who…
-
3
votes1
answer476
viewsA: Create Priority Queues in Delphi XE5
My solution proposal for this case would not be to have a single queue that can have several different priorities, but rather several queues, each with its own priority. So what I would do is build…
-
2
votes3
answers849
viewsA: DELPHI MVC (ECB)
The MVC model is intended to construct interfaces (http://en.wikipedia.org/wiki/Model%E2%80%93view%E2%80%93controller) and not the entire application architecture. Other models may also arrive at…
-
3
votes1
answer503
viewsA: Clientdataset closing after opening
Considering the information provided, I am not able to point out a direct answer to the problem, so I will try to help in another way, with an idea. In situations like this what I do is compile the…
-
2
votes3
answers9879
viewsA: How to free all memory allocated by an object - Delphi
The language documentation explains that the correct way to free the memory occupied by a class instance is the invocation of the destructor of this class. However, for the sake of good practice,…
-
3
votes1
answer934
viewsA: Changing properties of a component contained in a system module
What prompts the Forms and datamodules in a Delphi application is the code contained in the main program body (file .DPR). Delphi automatically places this code each time a new form or datamodule is…
-
4
votes1
answer1256
viewsA: Access variable contained in a BPL
First of all, I recommend you abandon the practice of using record and start using class, which is a more modern and much more powerful language construction. To do so, study a little about…
-
3
votes1
answer697
viewsA: Modular Application Delphi
The best way to modularize a Delphi application is through Packages, not Dlls. Packages are actually Dlls, but they carry rich typing information (which is not the case for a DLL), which is…
-
0
votes4
answers1842
views -
4
votes6
answers7569
viewsA: Use of global variables and class variables in Delphi
After the separation of Codegear from Borland, the team responsible for Delphi sought to modernize the language. In this sense, he added language constructs that aim to allow better programming…
-
4
votes4
answers5887
viewsA: Is it possible to clone objects in Delphi?
In this case it will not be possible for you to clone zTable content (assuming it is a Table component of Zeos), as it is a component whose content is recovered directly from the data server. In his…
-
2
votes1
answer693
viewsA: How to generate Tremotable Class with XML Bind?
To generate the client for a WebService in Delphi, you must use the WSDL Import Wizard, using the following steps: Start the Delphi XE Activate the menu File -> New -> Other... In the window…