|
Re: Adding custom script support to JSP Editor [message #225576 is a reply to message #225530] |
Mon, 22 December 2008 20:40 |
|
Emmanuel wrote:
> I've been looking to extend the WTP JSP editor to support a custom
> scripting language located inside tags declared in a taglib.
>
> A sample page looks like this :
>
> ========================= sample.jsp ==========================
> <%@ taglib uri="/WEB-INF/lib/..." prefix="myprefix" %>
> <%@ page import="..." %>
>
> <myprefix:scene name="sample">
> <%
> //Java code here
>
>
> %>
>
> <myprefix:function name="fname" params="">
>
> //custom language scripting
> </prefix:function>
>
> <myprefix:function name="fname" params="">
>
> //custom language scripting
> </prefix:function>
>
> </myprefix:scene>
> ======================== /sample.jsp =========================
>
> How to proceed to provide content-assist for the scripting inside the
> <myprefix:function> element ?
Typically we've allowed content assist, and other features, to be
contributed according to the partition type at that location in the
document, but the JSP partitioner we use isn't written to vary the
partition type within custom tags. I assume this is with tags whose
content is identified as tagdependent? You should open a feature
request for allowing this, but how to consistently create the same
partition name when the taglib URI and prefix declaring the tag are
variable is a problem that would need to be solved.
--
---
Nitin Dahyabhai
Eclipse WTP Source Editing
IBM Rational
_
Nitin Dahyabhai
Eclipse Web Tools Platform
|
|
|
|
Powered by
FUDForum. Page generated in 0.02522 seconds