JSF taglib directive mistakenly inserted [message #475761] |
Mon, 07 April 2008 16:10  |
Eclipse User |
|
|
|
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 #617703 is a reply to message #475761] |
Mon, 07 April 2008 17:44  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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
|
|
|
Re: JSF taglib directive mistakenly inserted [message #617709 is a reply to message #475807] |
Wed, 09 April 2008 17:18  |
Eclipse User |
|
|
|
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 #618556 is a reply to message #475812] |
Wed, 17 September 2008 03:45  |
Eclipse User |
|
|
|
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  |
Eclipse User |
|
|
|
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.
|
|
|
|
Powered by
FUDForum. Page generated in 0.10660 seconds