JSPX Content Assist Doesn't Work in WTP 2.0M6 [message #191715] |
Tue, 24 April 2007 15:59  |
Eclipse User |
|
|
|
Hi all,
The content assist in WTP 2.0M6 seems to have broken for jspx files (JSP
Documents). This was always a little flaky but mostly worked if I declared
all my namespaces in jsp:root. Is there something similar I need to know
about in order to get it working in 2.0M6 ?
I tried editing it with the "Web Page Editor", but this just adds
jsp:directive.taglib declarations at the top of my xml file - this makes the
xml file not well formed, but at least the context assist worked. Perhaps
there is a way to get the Web Page Editor to recognise JSP XML
Documents....?
Thanks for any help,
Phil
|
|
|
Re: JSPX Content Assist Doesn't Work in WTP 2.0M6 [message #191877 is a reply to message #191715] |
Mon, 30 April 2007 16:53   |
Eclipse User |
|
|
|
Phil wrote:
> Hi all,
>
> The content assist in WTP 2.0M6 seems to have broken for jspx files (JSP
> Documents). This was always a little flaky but mostly worked if I declared
> all my namespaces in jsp:root. Is there something similar I need to know
> about in order to get it working in 2.0M6 ?
> I tried editing it with the "Web Page Editor", but this just adds
> jsp:directive.taglib declarations at the top of my xml file - this makes the
> xml file not well formed, but at least the context assist worked. Perhaps
> there is a way to get the Web Page Editor to recognise JSP XML
> Documents....?
There shouldn't be anything new required in M6. Are you still
having problems on the latest 2.0 Integration build?
--
Nitin Dahyabhai
Structured Source Editor
|
|
|
Re: JSPX Content Assist Doesn't Work in WTP 2.0M6 [message #191886 is a reply to message #191877] |
Tue, 01 May 2007 14:55   |
Eclipse User |
|
|
|
Since my previous post I have realised that you can (obviously) just move
the jsp.directive.taglib declarations
The only problem is that it's not reading the namespaces from the jspx file.
Steps to reproduce:
Download latest I-build (or M6 , I believe)
create new dynamic web project
add file test.jspx to WebContent with following content:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:h="http://java.sun.com/jsf/html">
<html>
<head>
</head>
<body>
<f:view><h:outputText></h:outputText></f:view></body>
</html>
</jsp:root>
observe that content assist doesn't work
add jsp.directive.taglib declaration instead of namespace declarations to
get this:
<?xml version="1.0" encoding="ISO-8859-1" ?>
<jsp:root>
<jsp:directive.taglib prefix="h" uri="http://java.sun.com/jsf/html" />
<jsp:directive.taglib prefix="f" uri="http://java.sun.com/jsf/core" />
<jsp:directive.taglib prefix="jsp" uri="http://java.sun.com/JSP/Page" />
<html>
<head>
</head>
<body>
<f:view>
<jsp:body></jsp:body>
<h:outputText></h:outputText></f:view></body>
</html>
</jsp:root>
content assist works.
"Nitin Dahyabhai" <nitind@us.ibm.com> wrote in message
news:f156uu$3ah$2@build.eclipse.org...
> Phil wrote:
>> Hi all,
>>
>> The content assist in WTP 2.0M6 seems to have broken for jspx files (JSP
>> Documents). This was always a little flaky but mostly worked if I
>> declared all my namespaces in jsp:root. Is there something similar I need
>> to know about in order to get it working in 2.0M6 ?
>> I tried editing it with the "Web Page Editor", but this just adds
>> jsp:directive.taglib declarations at the top of my xml file - this makes
>> the xml file not well formed, but at least the context assist worked.
>> Perhaps there is a way to get the Web Page Editor to recognise JSP XML
>> Documents....?
>
> There shouldn't be anything new required in M6. Are you still having
> problems on the latest 2.0 Integration build?
>
> --
> Nitin Dahyabhai
> Structured Source Editor
|
|
|
|
|
Powered by
FUDForum. Page generated in 0.04049 seconds