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

Bug 312331

Summary: [JSF2.0] No as-you-type EL validation for XHTML/JSF2.0 context
Product: [WebTools] Java Server Faces Reporter: Gerry Kessler <gerry.kessler>
Component: JSF ToolsAssignee: Ian Trimble <ian.trimble>
Status: NEW --- QA Contact:
Severity: normal    
Priority: P3 CC: cameron.bateman, raghunathan.srinivasan, yurykats
Version: 3.2   
Target Milestone: Future   
Hardware: PC   
OS: Windows XP   
Whiteboard:

Description Gerry Kessler CLA 2010-05-10 16:08:15 EDT
Steps:
1) create JSF2.0 faceted DWP
2) create xhtml page
3) enable as-you-type EL validation
4) drop commandButton
5) type EL into value attribute like: #{facesContext.foo}

Result: no validation errors

Note: validate context menu for page will yield "foo cannot be resolved as memeber of facesContext"
Comment 1 Carlin Rogers CLA 2010-05-19 19:06:59 EDT
Looks like we need to modify our Facelet HTMLValidator class to implement ISourceValidator and add the org.eclipse.wst.sse.ui.sourcevalidation extension point to the org.eclipse.jst.jsf.facelet.ui plugin... something like,

<extension point="org.eclipse.wst.sse.ui.sourcevalidation">
   <validator
      scope="total"
      class="org.eclipse.jst.jsf.facelet.ui.internal.validation.HTMLValidator"
      id="org.eclipse.jst.jsf.facelet.validation.HTMLAttributeValueValidator">
      <contentTypeIdentifier
         id="org.eclipse.wst.html.core.htmlsource">
         <partitionType id="org.eclipse.wst.html.HTML_DEFAULT"/>
      </contentTypeIdentifier>
   </validator>
</extension>

...but am not sure if there are some other partition types we need to handle.

Moving this to future... will not be able to complete this for RC2.
Comment 2 Raghunathan Srinivasan CLA 2011-03-15 20:19:36 EDT
Deferred due to lack of resources
Comment 3 Raghunathan Srinivasan CLA 2012-01-05 13:28:31 EST
Not planned for Juno.