Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Language IDEs » ServerTools (WTP) » JSPX Content Assist Doesn't Work in WTP 2.0M6
JSPX Content Assist Doesn't Work in WTP 2.0M6 [message #191715] Tue, 24 April 2007 15:59 Go to next message
Philip Barr is currently offline Philip BarrFriend
Messages: 8
Registered: July 2009
Junior Member
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 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

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


_
Nitin Dahyabhai
Eclipse Web Tools Platform
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 Go to previous messageGo to next message
Philip Barr is currently offline Philip BarrFriend
Messages: 8
Registered: July 2009
Junior Member
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
Re: JSPX Content Assist Doesn't Work in WTP 2.0M6 [message #191890 is a reply to message #191886] Tue, 01 May 2007 16:29 Go to previous messageGo to next message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

Phil wrote:
> 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">

I kept looking at it, Phil, and you're right there is a problem with
how the value of the xmlns* attributes are handled in M6. Could you
open a bug against the jst.jsp component? I'm working on a fix for
this week's I-build.

https://bugs.eclipse.org/bugs/enter_bug.cgi?product=Web%20To ols&component=jst.jsp

--
Nitin Dahyabhai
Structured Source Editor


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Re: JSPX Content Assist Doesn't Work in WTP 2.0M6 [message #191899 is a reply to message #191890] Tue, 01 May 2007 21:29 Go to previous message
Nitin Dahyabhai is currently offline Nitin DahyabhaiFriend
Messages: 4435
Registered: July 2009
Senior Member

Opened https://bugs.eclipse.org/bugs/show_bug.cgi?id=184989

--
Nitin Dahyabhai
Structured Source Editor


_
Nitin Dahyabhai
Eclipse Web Tools Platform
Previous Topic:exception (404): yWS/services/MyWS
Next Topic:extension points to extend WST XML editor
Goto Forum:
  


Current Time: Fri Apr 19 03:19:06 GMT 2024

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

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

Back to the top