Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.

Bug 96769

Summary: Extendible content assist in JSP editor
Product: [WebTools] WTP Source Editing Reporter: Denis Golovin <dgolovin>
Component: jst.jspAssignee: Ian Tewksbury <itewksbu>
Status: CLOSED DUPLICATE QA Contact: Nitin Dahyabhai <thatnitind>
Severity: enhancement    
Priority: P3 CC: gerry.kessler, ishabalov, itewksbu, sim, thatnitind
Version: 1.0Keywords: helpwanted
Target Milestone: ---   
Hardware: PC   
OS: Windows 2000   
Whiteboard:

Description Denis Golovin CLA 2005-05-26 08:42:01 EDT
There are a lot of framevorks that require additional proposals are showed in
proposal list for JSP tag attribute. 

For example, if JSF is used to build WEB application. There is a JSP page looks
like:

<!-- JSP begin -->

<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>

<f:loadBundle basename="demo.bundle.Messages" var="Message"/>

<HTML>
    <HEAD> <title>Input Name Page</title> </HEAD>
    <body bgcolor="white">
	<f:view>
		<h1><h:outputText value="#{Message.inputname_header}"/></h1>
		<h:messages style="color: red"/>
    	<h:form id="helloForm">
    		
    		<h:outputText value="#{Message.prompt}"/>
    		<h:inputText id="userName" value="|" required="true">
	    		<f:validateLength minimum="2" maximum="20"/>
    		</h:inputText>
	 	<h:commandButton id="submit" action="sayhello" value="Say Hello" />
    	</h:form>
	</f:view>
    </body>
</HTML>

<!-- JSP end -->

Now if user is asking by CTRL+Space for proposal list in attribute value
(position marked as | in line below)

<h:inputText id="userName" value="|" required="true">  

proposal list contains only implicit objects, but for this use-case, I'd like to
add some managed beans from JSF configuration file and demo.bundle.Messages
resource bundle keys to the proposal list. Now I can do this only using the
internal API. 

This would be more convenient to use extension point or public API for this
matter, so third-party vendors can use it.
Comment 1 Nitin Dahyabhai CLA 2007-09-13 03:56:23 EDT
This is still an interesting idea, but I'm not sure where to go from here.  Gerry, is it possible you guys have already done this?
Comment 2 Gerry Kessler CLA 2007-09-13 12:13:23 EDT
Indeed we have.  The JSF sub-project has produced such a framework which has been generally available since WTP 1.5.   

Denis, as this request is so old, I am hopeful that you have already found it.  Otherwise please see the section called "Using Meta-data to Provide Source Editing Services" in the JavaServer Faces Tooling Developer Guide for more details. 
Comment 3 Ian Tewksbury CLA 2010-03-15 10:17:30 EDT
This has been implemented by Bug 258999
Comment 4 Ian Tewksbury CLA 2010-03-16 13:10:43 EDT
Marking as dup as per my comment #3

*** This bug has been marked as a duplicate of bug 258999 ***