Eduardo Yañez Parareda

Ranch Hand
+ Follow
since Oct 09, 2008
Eduardo likes ...
IntelliJ IDE VI Editor Java
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Eduardo Yañez Parareda

Welcome back Kathy, the book looks good!
9 years ago

Cagatay Civici wrote:You can get commercial support for PrimeFaces if support is important for your company;

There is also a very active community forum;

Also check out real life experiences of PrimeFaces Users;

And google trends;,RichFaces,IceFaces,OpenFaces&ctab=0&geo=all&date=2012&sort=0

Thanks Cagatay, I've already seen all of these resources before posting

Still better thing to do is do a pilot project with candidate technologies during evaluations and decide yourself

Yes, I know it's the best way to evaluate several technologies. I'm working on it, but it'll take me some time :/

How is the best way to work with JSF (Primefaces) for example without using Seam?

I mean I need JPA data binding, history navigation and so on.... I guess the way is using the implicit JSF MVC + Spring + JPA imlpementation like Hibernate or so, am I right?
Is there a better/simpler approach?

Well, after reading a lot of information and talking with colleagues from other companies, my choice is JSF + Facelets (obiously) + Spring (services) + JPA + Hibernate.

The problem now is which JSF components library choose, Richfaces or Primefaces. Currently at the company half of people know Richfaces, the other half has no JSF experience.
That might be a good reason to choose Richfaces, but Primefaces have more components, they seem better for user experience, also have a good documentation,
the themes support is great because is integrated with ThemeRoller from JQueryUI, and after reading about performance, Primefaces beats Richfaces.

On the other hand, Richfaces has a bigger community support, has support from JBoss and Exadel which for a company is an advantage. Are there more reasons
to choose Richfaces over Primefaces?

I have found a lot of articles comparing RicheFaces 3 with Primefaces 2.X, but neither comparing Richfaces 4 vs Primefaces 3, have someone any link or so which
compare those versions?
Hello, at work we are trying to find a good framework to build enterprise web apps. Nowadays some of our teams are using Seam 2.2.X, others
are using Struts+Spring+JSP+ExtJS, finally there are some using a propietary framework XSL based.

I'm trying to find a good alternative to all of this stuff, it must have a beautiful UI, easy integration with JPA or Hibernate, the generated UI should be
easily modified to admit another javascript library to make effects or to improve the user experience, you know!

I'm more from the old school, I like using a MVC framework like Spring MVC + JSP + JQueryUI for UI, but people in our department seems not very comfortable
with that kind of solution. Others have proposed to use a JavascriptMVC + JQueryUI, or Wicket...

I've been reading a bit from the Wicket's website, but as I haven't work in a real project with it, I don't know how the app will grow in some years, or if the UI will be a mess, etc.

My first priority is the UI because is what the user see and is what the user has to work with... I don't think the controller's layer could be a problem because in the end all frameworks
are similar, and the persistence layer will be JPA or Hibernate so it isn't a problem too...

Any recommendation?

Jeanne Boyarsky wrote:
In general, it isn't useless. If it gives you a large number of false positives, it is. Who is going to keep going through the warnings to see when a real one shows up?

Yes, I know it could be useless, but as you said sometimes it isn't, that's why I lowered the priority. Who is going to look it?, developers!
13 years ago

Ernest Friedman-Hill wrote:"Firebug" is a Javascript debugger for Firefox; I think you're talking about "Findbugs", which is a static source code analyzer, yes?

Yes, it was a lapso

Anyway, if you had a thousand classes, and each of them had ten unused private methods, and the compiled code for each of those took up 100 bytes, then your JAR file would be one megabyte larger than it needed to be. A larger-then-needed JAR file will take longer to load than a smaller one; that's honestly the only measurable performance problem that I can imagine due to unused private methods.

Findbugs has many, many, MANY checks that it can do; please don't fall into the common trap of believing that each of those checks is actually useful for your team. Use the checks that make sense; ignore (turn off) the ones that don't. This one definitely doesn't.

Well, I think it's very important to detect unused private methods, because in large projects it's a matter of maintainance. I have downgraded the priority of this rule from critic to major, but that rule is not useless.
13 years ago
Hello, in a project I'm working on are private methods that are used through reflection by Hibernate and another propietary framework.

The source code has been inspected by Findbugs. Since those private methods are not called from
any other project's class, Findbugs has reported performance issues because those are not used, but they are used...

The error reported by Findbugs is:

Performance - Private method is never called
This private method is never called. Although it is possible that the method will be invoked through reflection, it is more likely that the method is never used, and should be removed.

Why could be considered a performance problem?.

However, I'm trying to convince developers to change those methods to protected or package-protected, but they don't
want because those methods don't have to be called by any class within the project but by Hibernate and the propietary framework. Any ideas?
13 years ago
Read my previous posts... Your format string is missing 'de' preposition...
13 years ago
Yes, It's unparseable because that format is for CET times... as I said you, there's no way to parse a.m. or p.m. that's not a valid format, it must be AM or PM.
13 years ago
If you can, use this way to format and parse...

It's easier to maintain.
13 years ago
There are several problems:

You missed prepositions 'de' in your format string, also for months' names is used MMMM not mmmm, furthermore, aaa means AM or PM, not 'a.m.' or 'p.m.'

This works, but notice AM at the end...

13 years ago
Your format string is "EEEE,dd... but your string is "Miércoles, 01... notice the whitespace between ',' and 01

Anyway, RAE says dates and moths must be writen in lowercase...
13 years ago

Kunal Lakhani wrote:Eduardo Yañez Parareda, The stack trace i printed is correct.

I'm sorry, but it's impossible to have an exception caused in a commented out line...

Kunal Lakhani wrote:yes Eduardo Yañez Parareda. That's only generating 1001.

Christophe Verré , yes i am entering values in t5, (value-123)

Print us the correct stacktrace because what you printed doesn't correspond with the source code you posted. Line 21 from EditorServlet is commented out...

Kunal Lakhani wrote:
The id generated is 1001.

So rs.getString("ID") is null