Evaluating IDEA 8 for JSF and Facelets

Hello,

I am currently on IDEA 6.0.6 and I want to put together a proposal for my boss to upgrade to IDEA 8.x.  We primarily develop for JSF using Facelets.  I was wondering what features have been introduced since 6.0.6 specifically for JSF and/or Facelets.  I took a look at http://www.jetbrains.com/idea/features/javaserver_faces.html but that does not list anything that is not already included in 6.0.6.

Also, is there any support in IDEA 8 for the upcoming JSF 2.0 implementation?

Thanks,
Ray

4 comments
Comment actions Permalink

OK, I guess not a lot of people have anything to say on the subject.  Perhaps if I asked if a couple of specific annoyances are fixed.

First, IntelliJ 6.0.6 does not recognize EL expressions pointing to managed bean methods, e.g. as in a commandButton action attribute.  IntelliJ marks them as invalid and does not find them in a "where used" search.  Is this fixed in the latest version?

Second, I recently did some refactoring and removed a getter from a managed bean.  This property was used in an EL expression in one of my pages.  IntelliJ marks it with a warning but unless I am looking at the specific file I wouldn't see it.  Does the JSF verification process catch this now?

Third, IntelliJ does not recognize parameters to Facelets pages.  They are marked as invalid managed beans.  This makes the majority of invalid markings as false positives (perhaps this is part of the second problem as well).  Is there a way for the latest IntelliJ to handle parameters to Facelets includes?

Thanks,
Ray

0
Comment actions Permalink

I use a JSF/Facelets/Seam combination.

EL evaluation has been working for me since at least IDEA 7.x.
This works quite well for both action and value expressions in JSF managed beans as well as Seam defined components.
Seam support has been much improved in IDEA 8.
I just tried to safe-delete a getter in a backing bean, and IDEA correctly warned about the usage in an xhtml page.
Find Usages also works.

I do not use facelets parameters - I have just tried adding a ui:param tag and EL evaluation and code completion seems to work there, too.

I haven't heard anything official about JSF 2, but I am pretty sure that it will be added only in IDEA 9.
I do know that in IDEA 9 WebBeans support is already in the make and I would bet on JSF 2 support, too.


Ray DeCampo wrote:

OK, I guess not a lot of people have anything to say on the subject. Perhaps if I asked if a couple of specific annoyances are fixed.

First, IntelliJ 6.0.6 does not recognize EL expressions pointing to managed bean methods, e.g. as in a commandButton action attribute. IntelliJ marks them as invalid and does not find them in a "where used" search. Is this fixed in the latest version?

Second, I recently did some refactoring and removed a getter from a managed bean. This property was used in an EL expression in one of my pages. IntelliJ marks it with a warning but unless I am looking at the specific file I wouldn't see it. Does the JSF verification process catch this now?

Third, IntelliJ does not recognize parameters to Facelets pages. They are marked as invalid managed beans. This makes the majority of invalid markings as false positives (perhaps this is part of the second problem as well). Is there a way for the latest IntelliJ to handle parameters to Facelets i
ncludes?

Thanks,
Ray

---
Original message URL: http://www.jetbrains.net/devnet/message/5235004#5235004

0
Comment actions Permalink

This was helpful.  Anybody else have any comments?

I am going to download the evaluation this week and see for myself.

I was surprised not to hear from somebody from JetBrains itself.  Does anybody have a contact I could use to see what they have to say about it?

0
Comment actions Permalink

OK, after running IDEA 8 on an evaluation license I was able to confirm the first two issues above.  But for the third issue, Facelets files with parameters, I'm not seeing it as you say it.  (Which I think is a communication issue and the fact that you don't use that capability.)  When defining a <ui:param> component, completion always worked fine.  The issue is within the included Facelets page when you have a reference to the parameter and IntelliJ doesn't know what it is.

It appears that IDEA 8 has a @elvariable annonation which allows you specify the parameters and types to resolve this.  Which is great except for the fact that you apparently need to include this annonation for each use of the parameter in the Facelets file instead of once at the top.  I'm hoping somebody will tell me I am doing it wrong.

0

Please sign in to leave a comment.