Posts by Dilnei Cunha • 651 points
23 posts
-
0
votes2
answers1209
viewsA: Doubts about how to consume Ws Nfs-e Curitiba
The connection is HTTPS so you need to have the digital certificate type A1/A4 to access the wsdl, or create a fake certificate on their website for the pilot server, has it in manuals. Only if you…
-
1
votes1
answer345
viewsA: Error signing xml nfse Curitba
The layout is not correct, I checked the Nfse XSD and there is no id attribute in the batch tag <LoteRps id="2" xmlns=""> I suggest to take a look at the examples, the user manual has a link…
-
2
votes1
answer165
viewsA: Doubts with DAO method
Actually, integration tests should not be running in the database but with some database in memory, but the problem may be because you need to refresh the entityManager for each entity persisted…
-
3
votes2
answers131
viewsA: When generating an image, I just want to visualize it and not save it
Use the class Desktop of the awt, ex: Desktop.getDesktop().open(new File("C:\\images\\suaImage.jpg"));…
-
2
votes1
answer943
viewsA: Wildfly - External access configuration
The public interface is used by all network communications related to applications. The interface management is used by all components and services that are required by the server management layer.…
-
1
votes1
answer999
viewsA: DTO Assembler, how do you really use it?
Convert Entity to DTO through the Pattern Assembler is wrong, breaks the sense of DTO which is a Pattern for object transfer. See that it can be composed of multiple entities. The correct is to use…
-
0
votes1
answer165
viewsA: Vraptor Mockito unit test (CDI)
It is that it does not work as you think, when you are running the unit tests you are in a standalone context, everything should be done in a very manual way, eg: if you want to test your…
-
1
votes2
answers854
viewsA: Put default value in column
As his colleague Wagner posted, an ex: @NotEmpty(message="O campo foto não pode ficar em branco !") @Column(name = "foto_usuario", nullable = false, columnDefinition="varchar(50) default 'same one…
-
1
votes1
answer1546
viewsA: Change the line color of a datatable
You need to define what would be the minimum (number of units)? If you already have this information coming from the bank just use the object itself that references the row in the table, otherwise…
-
0
votes1
answer375
viewsA: doubt block page transition via URL
I think the good thing would be to use JAAS to handle both authentication and access authorization or Spring Security or Apache Shiro and set up ROLES and user groups. But if the control is simple…
-
1
votes2
answers110
viewsA: Access JAVA web application from other machines
The correct thing is to set up a new interface called any to any address, e.g.: <interface name="any"> <any-address/> </interface> and specify it as default in the socket biding…
-
1
votes1
answer223
viewsA: Change style Facesmessages
You can manipulate virtually all elements of the screen just by inspecting elements with firebug or browser tools themselves, an example if you wanted to change error messages, it would be:…
-
0
votes1
answer396
viewsA: Jsp with scriptlets, taglib or jstl
I think there are several paths that you can follow, talk of development and application building is very broad, some examples would be action-based and Component-based applications, but both of…
-
3
votes1
answer140
viewsA: AES JSF encryption
you need to configure the encoding, follow how to do: Data.getBytes("UTF-8"); generateKey(new String(pKey, ""UTF-8)); hugs.
-
1
votes1
answer177
viewsA: Error. WARN: WELD-000335: Conversation context is already active
Warnings are not bugs, this bug is reported in the Weld doc only for Tomcat and for some reason Grizzly behaved similar when there was more than one Weld lib in the context, in the case of Tomcat it…
-
4
votes1
answer188
viewsA: Error deploying to glassfish server
When we use full javaEE servers we don’t need to explicitly declare the Weld lib (Compile), because the server already implements one of the versions of Javaee, these servers are different from…
-
2
votes2
answers1888
viewsA: Error :"Cannot create JDBC driver of class '' for connect URL 'null' java.sql.Sqlexception: No suitable driver"
Hello @Giuliana Bezerra, Add the following Property: <property name="hibernate.connection.datasource" value="java:comp/env/jdbc/gymclub"/> Say the transaction type is local Source, ex:…
-
0
votes1
answer34
viewsA: How to pass a url to a server in java
Hello @Rodrigo.oliveira, use the Spring MVC Test Framework I believe he supports what he needs.…
-
1
votes2
answers1470
viewsA: How to search using jpa with searching for foreign key
if you have 1 user and this has a list of medicines and each medicine on the list belongs to 1 user, you can do so: @Entity() public class Usuario implements Serializable{ @Id…
-
0
votes1
answer78
viewsA: View does not communicate with MB
If you use CDI you should use named which is a Qualifier, basically what it does is make your bean accessible through EL. The import for the scoped view should be faces.view.Viewscoped and not…
-
1
votes1
answer50
viewsA: How to insert only some of the attributes
use the JPA @Transient Annotation in the property you do not want to serialize(not persist), e.g.: import javax.persistence.Transient; @Transient private String zip; Annotation Type Transient…
-
1
votes2
answers284
viewsA: Error in classes that implement java.io.Serializable
In Runtime each serializable class has a version number (serialVersionUID), in the deserialization the object is checked, if the version of the object is not compatible with the version of the…
javaanswered Dilnei Cunha 651 -
11
votes3
answers1093
viewsA: How to check if at the end of String is one or zero?
To check at the end use endsWith, ex: str.endsWith("0") || str.endsWith("1")