Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » JavaServer Faces » JSF taglib directive mistakenly inserted
JSF taglib directive mistakenly inserted [message #475761] Mon, 07 April 2008 20:10 Go to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
We have a plugin that extends the JSP editor with our own tags on the
palette. It is used in our custom projects (which include the
org.eclipse.wst.common.project.facet.core.nature), but the projects do
NOT have the JSF nature applied to them. We don't do anything with JSF
whatsoever.
In the page editor, if any of our custom tags are dropped into the
Source Page, WST is automatically inserting a JSF taglib directive at
the top of the page:
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>)

This obviously is annoying, but it also makes the page fail validation
and fail to compile/run.
Someone here mentioned that there was an Eclipse bug report about this,
but I could not find anything in Bugzilla.

Any pointers?

Thanks,
Eric
Re: JSF taglib directive mistakenly inserted [message #475763 is a reply to message #475761] Mon, 07 April 2008 21:44 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
Hi Eric,

What you are describing is definitely a bug. I'm not aware of an existing
bug of this nature (we have several where the wrong JSF tag is inserted
into a valid JSF page). Either way, feel free launch a new bug and we
will try to address. Worst case, it gets dup'ed and you'll get an e-mail
showing you the existing bug :).


--Cam
Re: JSF taglib directive mistakenly inserted [message #475806 is a reply to message #475763] Tue, 08 April 2008 16:08 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
Cameron Bateman wrote:
> Hi Eric,
>
> What you are describing is definitely a bug. I'm not aware of an
> existing bug of this nature (we have several where the wrong JSF tag is
> inserted into a valid JSF page). Either way, feel free launch a new bug
> and we will try to address. Worst case, it gets dup'ed and you'll get
> an e-mail showing you the existing bug :).

The problem with entering a bug is that reproducing this requires
customizing the page editor in a "snippet," not a trivial task. I'll see
what I can do.

Eric
Re: JSF taglib directive mistakenly inserted [message #475807 is a reply to message #475761] Tue, 08 April 2008 16:50 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

Eric Rizzo wrote:
> We have a plugin that extends the JSP editor with our own tags on the
> palette. It is used in our custom projects (which include the
> org.eclipse.wst.common.project.facet.core.nature), but the projects do
> NOT have the JSF nature applied to them. We don't do anything with JSF
> whatsoever.
> In the page editor, if any of our custom tags are dropped into the
> Source Page, WST is automatically inserting a JSF taglib directive at
> the top of the page:
> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>)
>
> This obviously is annoying, but it also makes the page fail validation
> and fail to compile/run.

What sort of validation messages are you getting? Just ones
indicating that the tag library for http://java.sun.com/jsf/core
could not be found?

---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: JSF taglib directive mistakenly inserted [message #475809 is a reply to message #475807] Wed, 09 April 2008 21:18 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
Nitin Dahyabhai wrote:
> Eric Rizzo wrote:
>> We have a plugin that extends the JSP editor with our own tags on the
>> palette. It is used in our custom projects (which include the
>> org.eclipse.wst.common.project.facet.core.nature), but the projects do
>> NOT have the JSF nature applied to them. We don't do anything with JSF
>> whatsoever.
>> In the page editor, if any of our custom tags are dropped into the
>> Source Page, WST is automatically inserting a JSF taglib directive at
>> the top of the page:
>> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>)
>>
>> This obviously is annoying, but it also makes the page fail validation
>> and fail to compile/run.
>
> What sort of validation messages are you getting? Just ones indicating
> that the tag library for http://java.sun.com/jsf/core could not be found?

Correct; the error marker says "Cannot find the tag library descriptor
for http://java.sun.com/jsf/core"

It also wraps the whole page body in an <f:view> which generates an
"unknown tag" warning.

Eric
Re: JSF taglib directive mistakenly inserted [message #475810 is a reply to message #475809] Fri, 11 April 2008 19:51 Go to previous messageGo to next message
Gerry Kessler is currently offline Gerry KesslerFriend
Messages: 125
Registered: July 2009
Senior Member
This is a bug that should be fixed for 3.0M7.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=204508

Regards,
Gerry Kessler
WTP JSF Tools Team
Re: JSF taglib directive mistakenly inserted [message #475812 is a reply to message #475810] Fri, 11 April 2008 21:13 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
Gerry Kessler wrote:
> This is a bug that should be fixed for 3.0M7.
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=204508

Thanks a bunch for the reference - that's what I was looking for but
couldn't find with my own Bugzilla mojo.

Eric
Re: JSF taglib directive mistakenly inserted [message #476027 is a reply to message #475812] Wed, 17 September 2008 07:45 Go to previous messageGo to next message
AndrÃ?©s Torres is currently offline AndrÃ?©s TorresFriend
Messages: 6
Registered: July 2009
Junior Member
Hi! We also have a plugin that extends the JSP editor with our own tags on
the palette. We have the same problem with the <f:view> tag, but we are
working with Eclipse 3.3 and WTP 2.0, is there any solution for this
problem that can be used in Eclipse 3.3 and WTP 2.0?

Thanks in advance.
Re: JSF taglib directive mistakenly inserted [message #476028 is a reply to message #476027] Fri, 19 September 2008 18:35 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
You could take the patch used to fix the bug and apply it to the copy of
WTP that you use.

--Cam

Andres Torres wrote:

> Hi! We also have a plugin that extends the JSP editor with our own tags on
> the palette. We have the same problem with the <f:view> tag, but we are
> working with Eclipse 3.3 and WTP 2.0, is there any solution for this
> problem that can be used in Eclipse 3.3 and WTP 2.0?

> Thanks in advance.
Re: JSF taglib directive mistakenly inserted [message #476029 is a reply to message #476028] Thu, 25 September 2008 11:01 Go to previous message
AndrÃ?©s Torres is currently offline AndrÃ?©s TorresFriend
Messages: 6
Registered: July 2009
Junior Member
Sorry but If you mean
https://bugs.eclipse.org/bugs/attachment.cgi?id=95979, I donŽt know
exactly how to put this patch into my version of WTP, I was looking for a
jar or something like this to put into my workspace...

Thanks for your time.
Re: JSF taglib directive mistakenly inserted [message #617703 is a reply to message #475761] Mon, 07 April 2008 21:44 Go to previous message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
Hi Eric,

What you are describing is definitely a bug. I'm not aware of an existing
bug of this nature (we have several where the wrong JSF tag is inserted
into a valid JSF page). Either way, feel free launch a new bug and we
will try to address. Worst case, it gets dup'ed and you'll get an e-mail
showing you the existing bug :).


--Cam
Re: JSF taglib directive mistakenly inserted [message #617706 is a reply to message #475763] Tue, 08 April 2008 16:08 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
Cameron Bateman wrote:
> Hi Eric,
>
> What you are describing is definitely a bug. I'm not aware of an
> existing bug of this nature (we have several where the wrong JSF tag is
> inserted into a valid JSF page). Either way, feel free launch a new bug
> and we will try to address. Worst case, it gets dup'ed and you'll get
> an e-mail showing you the existing bug :).

The problem with entering a bug is that reproducing this requires
customizing the page editor in a "snippet," not a trivial task. I'll see
what I can do.

Eric
Re: JSF taglib directive mistakenly inserted [message #617707 is a reply to message #475761] Tue, 08 April 2008 16:50 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4430
Registered: July 2009
Senior Member

Eric Rizzo wrote:
> We have a plugin that extends the JSP editor with our own tags on the
> palette. It is used in our custom projects (which include the
> org.eclipse.wst.common.project.facet.core.nature), but the projects do
> NOT have the JSF nature applied to them. We don't do anything with JSF
> whatsoever.
> In the page editor, if any of our custom tags are dropped into the
> Source Page, WST is automatically inserting a JSF taglib directive at
> the top of the page:
> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>)
>
> This obviously is annoying, but it also makes the page fail validation
> and fail to compile/run.

What sort of validation messages are you getting? Just ones
indicating that the tag library for http://java.sun.com/jsf/core
could not be found?

---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: JSF taglib directive mistakenly inserted [message #617709 is a reply to message #475807] Wed, 09 April 2008 21:18 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
Nitin Dahyabhai wrote:
> Eric Rizzo wrote:
>> We have a plugin that extends the JSP editor with our own tags on the
>> palette. It is used in our custom projects (which include the
>> org.eclipse.wst.common.project.facet.core.nature), but the projects do
>> NOT have the JSF nature applied to them. We don't do anything with JSF
>> whatsoever.
>> In the page editor, if any of our custom tags are dropped into the
>> Source Page, WST is automatically inserting a JSF taglib directive at
>> the top of the page:
>> <%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%>)
>>
>> This obviously is annoying, but it also makes the page fail validation
>> and fail to compile/run.
>
> What sort of validation messages are you getting? Just ones indicating
> that the tag library for http://java.sun.com/jsf/core could not be found?

Correct; the error marker says "Cannot find the tag library descriptor
for http://java.sun.com/jsf/core"

It also wraps the whole page body in an <f:view> which generates an
"unknown tag" warning.

Eric
Re: JSF taglib directive mistakenly inserted [message #617710 is a reply to message #475809] Fri, 11 April 2008 19:51 Go to previous message
Gerry Kessler is currently offline Gerry KesslerFriend
Messages: 125
Registered: July 2009
Senior Member
This is a bug that should be fixed for 3.0M7.
https://bugs.eclipse.org/bugs/show_bug.cgi?id=204508

Regards,
Gerry Kessler
WTP JSF Tools Team
Re: JSF taglib directive mistakenly inserted [message #617712 is a reply to message #475810] Fri, 11 April 2008 21:13 Go to previous message
Eric Rizzo is currently offline Eric RizzoFriend
Messages: 3070
Registered: July 2009
Senior Member
Gerry Kessler wrote:
> This is a bug that should be fixed for 3.0M7.
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=204508

Thanks a bunch for the reference - that's what I was looking for but
couldn't find with my own Bugzilla mojo.

Eric
Re: JSF taglib directive mistakenly inserted [message #618556 is a reply to message #475812] Wed, 17 September 2008 07:45 Go to previous message
AndrÃ?©s Torres is currently offline AndrÃ?©s TorresFriend
Messages: 6
Registered: July 2009
Junior Member
Hi! We also have a plugin that extends the JSP editor with our own tags on
the palette. We have the same problem with the <f:view> tag, but we are
working with Eclipse 3.3 and WTP 2.0, is there any solution for this
problem that can be used in Eclipse 3.3 and WTP 2.0?

Thanks in advance.
Re: JSF taglib directive mistakenly inserted [message #618557 is a reply to message #476027] Fri, 19 September 2008 18:35 Go to previous message
Cameron Bateman is currently offline Cameron BatemanFriend
Messages: 481
Registered: July 2009
Senior Member
You could take the patch used to fix the bug and apply it to the copy of
WTP that you use.

--Cam

Andres Torres wrote:

> Hi! We also have a plugin that extends the JSP editor with our own tags on
> the palette. We have the same problem with the <f:view> tag, but we are
> working with Eclipse 3.3 and WTP 2.0, is there any solution for this
> problem that can be used in Eclipse 3.3 and WTP 2.0?

> Thanks in advance.
Re: JSF taglib directive mistakenly inserted [message #618558 is a reply to message #476028] Thu, 25 September 2008 11:01 Go to previous message
AndrÃ?©s Torres is currently offline AndrÃ?©s TorresFriend
Messages: 6
Registered: July 2009
Junior Member
Sorry but If you mean
https://bugs.eclipse.org/bugs/attachment.cgi?id=95979, I donŽt know
exactly how to put this patch into my version of WTP, I was looking for a
jar or something like this to put into my workspace...

Thanks for your time.
Previous Topic:Need some support about Web Page Editor
Next Topic:JSF Facelets Tools Incubator project build available for download.
Goto Forum:
  


Current Time: Thu Mar 28 17:49:01 GMT 2024

Powered by FUDForum. Page generated in 0.06763 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top