JSF taglib directive mistakenly inserted [message #211934] |
Mon, 07 April 2008 20:10 |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
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 #212133 is a reply to message #211943] |
Tue, 08 April 2008 16:08 |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
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 #212142 is a reply to message #211934] |
Tue, 08 April 2008 16:50 |
|
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 #212199 is a reply to message #212142] |
Wed, 09 April 2008 21:18 |
Eclipse User |
|
|
|
Originally posted by: eclipse-news.rizzoweb.com
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
|
|
|
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.03525 seconds