Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 312331 - [JSF2.0] No as-you-type EL validation for XHTML/JSF2.0 context
Summary: [JSF2.0] No as-you-type EL validation for XHTML/JSF2.0 context
Status: NEW
Alias: None
Product: Java Server Faces
Classification: WebTools
Component: JSF Tools (show other bugs)
Version: 3.2   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: Future   Edit
Assignee: Ian Trimble CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-05-10 16:08 EDT by Gerry Kessler CLA
Modified: 2012-01-05 13:28 EST (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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.