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 16:10 Go to next message
Eric Rizzo is currently offline Eric Rizzo
Messages: 2230
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 17:44 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
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 12:08 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric Rizzo
Messages: 2230
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 12:50 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2251
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 WTP, IBM
Re: JSF taglib directive mistakenly inserted [message #475809 is a reply to message #475807] Wed, 09 April 2008 17:18 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric Rizzo
Messages: 2230
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 15:51 Go to previous messageGo to next message
Gerry Kessler is currently offline Gerry Kessler
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 17:13 Go to previous messageGo to next message
Eric Rizzo is currently offline Eric Rizzo
Messages: 2230
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 03:45 Go to previous messageGo to next message
AndrÃ?©s Torres is currently offline AndrÃ?©s Torres
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 14:35 Go to previous messageGo to next message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
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 07:01 Go to previous message
AndrÃ?©s Torres is currently offline AndrÃ?©s Torres
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 17:44 Go to previous message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
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 12:08 Go to previous message
Eric Rizzo is currently offline Eric Rizzo
Messages: 2230
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 12:50 Go to previous message
Nitin Dahyabhai is currently offline Nitin Dahyabhai
Messages: 2251
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 WTP, IBM
Re: JSF taglib directive mistakenly inserted [message #617709 is a reply to message #475807] Wed, 09 April 2008 17:18 Go to previous message
Eric Rizzo is currently offline Eric Rizzo
Messages: 2230
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 15:51 Go to previous message
Gerry Kessler is currently offline Gerry Kessler
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 17:13 Go to previous message
Eric Rizzo is currently offline Eric Rizzo
Messages: 2230
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 03:45 Go to previous message
AndrÃ?©s Torres is currently offline AndrÃ?©s Torres
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 14:35 Go to previous message
Cameron Bateman is currently offline Cameron Bateman
Messages: 480
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 07:01 Go to previous message
AndrÃ?©s Torres is currently offline AndrÃ?©s Torres
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 Aug 28 05:19:38 EDT 2014

Powered by FUDForum. Page generated in 0.03294 seconds