MyEclipse Forums
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Author Message
jfrosch
Post subject: JSF 1.2 With Facelets  PostPosted: Nov 09, 2007 - 05:40 PM
Registered Member
Registered Member


Joined: Oct 25, 2003
Posts: 10

I have a JEE 5 project using JSF 1.2 with Facelets. The MyEclipseIDE JSF Designer source editor flags the JSF 1.2 attributes as errors; i.e. the label attribute on an h:inputText element is flagged as unknown attribute.

When creating a new JEE 5 project with JSP, the JSF 1.2 attributes are not flagged as errors so I suspect I have a configuration problem with the JSF XML schema files.

The html opening element is specified as follows:
Code:

<html xmlns="http://www.w3.org/1999/xhtml"
   xmlns:ui="http://java.sun.com/jsf/facelets"
   xmlns:h="http://java.sun.com/jsf/html"
   xmlns:f="http://java.sun.com/jsf/core"
   xml:lang="en" lang="en">


Any ideas on what I need to do to get the JSF 1.2 XML schemas to be used?

Thanks.

Jack[/code]
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-nipun
Post subject: RE: JSF 1.2 With Facelets  PostPosted: Nov 14, 2007 - 07:50 AM
Registered Member
Registered Member


Joined: Apr 18, 2007
Posts: 8012

In your designer window, add the TextInput from the palette under "JFS HTML". Is it still marked as an unknown attribute ?

_________________
Nipun
MyEclipse Support
 
 View user's profile Send private message Send e-mail  
Reply with quote Back to top
rwryme
Post subject: RE: JSF 1.2 With Facelets  PostPosted: Nov 15, 2007 - 05:57 PM



Joined: Oct 30, 2007
Posts: 15

I posted the identical problem under the topic "Post subject: Apparently bogus errors on JSP files ". Nipun responded with a screen clip showing the label tag without the error. I assumed it must be my configuration problem, but I can create a new JEE5, JSF, Facelets application from scratch as Nipun purported to do and I get the error.

I just tried adding from the palette under JFS-H and I get the error.

I no longer believe this is a configuration problem, I think it is an intermittent bug, because I use this tag/label consistently. Normally the first time I add it to an xhtml file, I get the line flagged as an error. But after some time the marker may go away. I have multiple files in the same project, some of which exhibit the failure some not. Once the flag goes away it does not seem to come back but I can't find any pattern as to what causes it, or causes it to clear up.
 
 View user's profile Send private message  
Reply with quote Back to top
jfrosch
Post subject: Re: RE: JSF 1.2 With Facelets  PostPosted: Nov 15, 2007 - 11:16 PM
Registered Member
Registered Member


Joined: Oct 25, 2003
Posts: 10

support-nipun wrote:
In your designer window, add the TextInput from the palette under "JFS HTML". Is it still marked as an unknown attribute ?


Yes it is.

I dragged the TextInput control onto the design canvas and got an opening and closing h:inputText element. I added the attribute, label="Name: ", and the attribute was flagged as being an unknown attribute. Ditto for converterMessage, requiredMessage, etc.

All the JSF 1.2 attributes are unrecognized, even though my build path includes the JEE 5 library with (presumably) JSF 1.2 jars. The following entry is from my .classpath file:
Code:
<classpathentry kind="con" path="melibrary.com.genuitec.eclipse.j2eedt.core.MYECLIPSE_JAVAEE_5_CONTAINER"/>


It's not a huge issue at this moment, but I'd sure like to figure out why I can use JSF 1.2 in a JSP, but not in a Facelets XHTML page.

Thanks for any help.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-rkalla
Post subject: RE: Re: RE: JSF 1.2 With Facelets  PostPosted: Nov 21, 2007 - 06:28 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Guys, thanks for your patience. It looks like a bug on our end with the Facelets editor not recognizing the 1.2 taglibs. I am filing it ASAP.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
jfrosch
Post subject: RE: Re: RE: JSF 1.2 With Facelets  PostPosted: Nov 21, 2007 - 10:39 PM
Registered Member
Registered Member


Joined: Oct 25, 2003
Posts: 10

Excellent. Thanks!

To everyone in the USA - have a happy Thanksgiving.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
frweisma
Post subject: RE: Re: RE: JSF 1.2 With Facelets  PostPosted: Dec 13, 2007 - 04:57 PM
Registered Member
Registered Member


Joined: Oct 05, 2004
Posts: 12

I having the same problem. But it is not only restricted to the jsf 1.2 taglib. Every additional taglib is ignored by the content assistant.
I have as additonal tag libs the richfaces included. The designer add the taglibs correctly in the header. But the contant assistant takes
no notice of this.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-rkalla
Post subject: RE: Re: RE: JSF 1.2 With Facelets  PostPosted: Dec 13, 2007 - 06:39 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

frweisma,
The facelets editor, due to how facelets taglibs are designed, cannot pickup the validation and content-assist definitions for the taglibs on the fly, it's a process we have to support and include in the editor at this time.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
frweisma
Post subject: RE: Re: RE: JSF 1.2 With Facelets  PostPosted: Dec 15, 2007 - 12:49 PM
Registered Member
Registered Member


Joined: Oct 05, 2004
Posts: 12

So this means that you have completly different implementations between JSP and XHTML. Because when i design a JSP site,
all properties of foreign taglibs are supported.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-rkalla
Post subject: RE: Re: RE: JSF 1.2 With Facelets  PostPosted: Dec 15, 2007 - 03:24 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

JSP, XHTML and Facelets are all similar in structure/syntax highlighting, but if you are asking about grammars for the languages and content-assist/taglib support, they are all very different.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
jfrosch
Post subject: RE: Re: RE: JSF 1.2 With Facelets  PostPosted: Jan 29, 2008 - 03:44 PM
Registered Member
Registered Member


Joined: Oct 25, 2003
Posts: 10

Quote:

Guys, thanks for your patience. It looks like a bug on our end with the Facelets editor not recognizing the 1.2 taglibs. I am filing it ASAP.


Has there been any progress on this?
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
support-rkalla
Post subject: RE: Re: RE: JSF 1.2 With Facelets  PostPosted: Jan 29, 2008 - 06:45 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

No, we haven't had a release since it was filed. I am going to push for it to get fixed in 6.5 or 7.0 later this year.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
jfrosch
Post subject: Re: RE: Re: RE: JSF 1.2 With Facelets  PostPosted: Jan 29, 2008 - 07:49 PM
Registered Member
Registered Member


Joined: Oct 25, 2003
Posts: 10

support-rkalla wrote:
No, we haven't had a release since it was filed. I am going to push for it to get fixed in 6.5 or 7.0 later this year.

Ouch! I truly hope the fix is sooner than later.

IMO, one of the biggest advantage of JSF 1.2 is the introduction of time-saving, code-saving attributes on the HTML tags.

For instance, in JSF 1.1, one had to create a separate h:message element for each input field, but JSF 1.2 allows one to specify the message value, and even Severity level styles, on the same element. This not only saves coding an extra element, but when the form is composed in a 2-column gridPanel, I usually wrap the input field and h:message element into an h:panelGroup to keep the message rendered close to the field. Being able to have a 2-column, label/field table without the extra h:panelGroup is an additional time savings.

Of course, there's much more in JSF 1.2 that saves times and makes coding easier.

So not having JSF 1.2 support in the Facelets editor isn't just inconvenient; it's causing a lot of extra code to be written while we await this important fix.

If the code for this editor is open source, perhaps we can all take a look to see if there's a way to slipstream in a fix before the next big release?

Thanks for your understanding.
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
anthonyestelita
Post subject: RE: Re: RE: Re: RE: JSF 1.2 With Facelets  PostPosted: Feb 14, 2008 - 04:20 PM
Registered Member
Registered Member


Joined: Feb 16, 2005
Posts: 73

vote +6 (we have 6 licenses) to get this fix/addressed sooner. :-)

We too are using JSF 1.2 and we currently have to live with the validation errors. And we have to manually type in the new JSF 1.2 attributes/tags. Not much of a big deal, just some times a pain (it gets hard to see real bugs in your code when your problems tab has 20+ items about invalid tags/attributes).

Hopefully we don't have to wait till the end of this year for this!

Anthony
 
 View user's profile Send private message  
Reply with quote Back to top
support-rkalla
Post subject: RE: Re: RE: Re: RE: JSF 1.2 With Facelets  PostPosted: Feb 14, 2008 - 04:40 PM
Registered Member
Registered Member


Joined: Jan 06, 2004
Posts: 23824

Quote:

IMO, one of the biggest advantage of JSF 1.2 is the introduction of time-saving, code-saving attributes on the HTML tags.

I just want to clarify, we support JSF 1.2 with standard JSP pages, but not in Facelets yet. (I realize your request is for Facelets, I just want to clarify for anyone running through the thread and reading it quickly)

Quote:

We too are using JSF 1.2 and we currently have to live with the validation errors.

Anthony, do you mean JSF in straight JSP pages, or Facelets/XHTML pages? Our JSP editor will correctly parse the updated definitions from the TLDs for JSF 1.2 in Java EE 5, so you shouldn't be seeing problems in a plain JSP, but in Facelets I understand.

_________________
Riyad
MyEclipse Support
 
 View user's profile Send private message Visit poster's website  
Reply with quote Back to top
Display posts from previous:     
Jump to:  
All times are GMT - 6 Hours
Post new topic   Reply to topic
View previous topic Printable version Log in to check your private messages View next topic
Powered by PNphpBB2 © 2003-2004 The PNphpBB Group
Credits