Fabio Medeiros Faria

Greenhorn
+ Follow
since Mar 18, 2011
Merit badge: grant badges
Cows and Likes
Cows
Total received
In last 30 days
0
Forums and Threads

Recent posts by Fabio Medeiros Faria

This approach avaible with spring framework is commonly used in many applications.

Once I was using this resource, but when I set a value in an attibute of the object, this was changed of datase too, but i didn't call the layer persistence.

I think this somewhat

um tanto quanto "dangerous"... Do you think this is a good practice to use in applications?
tks Kirk by rapid response

My frequently problems are out of memory. Many files has more 50MB...

I will download the files, tks!

Some kinds of applications, such as medical, needs storage big images and videos in database.

I would like to know if there are any kind of design or architecture to provide better perfrmance and better handling of resources.
By curiosity and knowledge, I did a quick search about DataIterator of JSF and some UI components.

In the JEE6 tutorial of Oracle, I found:


The value attribute of an h:dataTable tag references the data to be included in the table. This data can take the form of any of the following:

A list of beans

An array of beans

A single bean

A javax.faces.model.DataModel object

A java.sql.ResultSet object

A javax.servlet.jsp.jstl.sql.Result object

A javax.sql.RowSet object


Extracted from: JEE 6 tutorial

As I said earlier a collection of POJOs to be only displayed will work perfectly, but if I need more interaction, such as: checkbox, rowSeleciton, and others; in these cases will be necessary build a DataModel.

At show case of primeFaces in the DataTable component is used only a simple collection, so I this mode works too: DataTable - PrimeFaces
12 years ago
JSF
I I observed is need, only in cases that table is handled with components, such as: check box, row select.

For simple exhibition it isnt necessary. Of course, if the collection for changed for an DataModel, it's work perfectly too.

[]s
12 years ago
JSF
to be more specific, see an example:



and in your page (I'm using jsf with primefaces, but is the same for other UI components or only JSF):


12 years ago
JSF
Tks Tim, I agree with you!

I think the pattern DAO is perfect to maintenance the high cohesion in the code. Its simplify the use of the better practices and most efficient test tools, providing tests of the layer persistence clearly, as dbUnit, for example.

Tks for write your opinion.

I would like if you can access my simple blog, it is in portuguese, but the google translator can help you.
Hi James,

I think there are another way for you to do this. Generally when we use JSF is possible set the value directly in a property of a managed bean.

Search about the tag <f:setPropertyActionListener target="<<MB property>>" value="<<value>>">, this is efficiently.

But, in last case, if you really need put some parameters in an URL, could you use an <h:outputLink> and concatenate the parameters after correct url.
12 years ago
JSF
I'm adherent to use the pattern DAO as a specific layer in the application. But I have seen many discution about this question, some arguments show this pattern in nowadays isn't more necessary, because technologies as JPA are well matured.

One this discussions borned in a post with my simple blog, www.serjava.blogspot.com, and although I advocate the pattern DAO I would like to know what are you think?

[]s
I've a doubt with EJB Lite 3.1 embeddable:

I'm using EJB Lite for a app JSE; the call of EJB components are OK! The problem only appear when I try
do a connection using JTA for the database.

See


This datasource is who provides the data-source-name for references in the persistence.xml. See the persistence.xml:



The call this component is definied below:



In the moment I try run the application, appear the following stack,


Waiting for suggestions. tks