Community
Participate
Working Groups
Build Identifier: I20110613-1736 Facelet code completion should suggest HTML tags even if the parent tag is not HTML. Reproducible: Always Steps to Reproduce: 1. Create a Dynamic Web Project. 2. Add JSF 2 facet to the project. 3. Create the following test.xhtml file into WebContent foler: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xmlns:ui="http://java.sun.com/jsf/facelets" xmlns:h="http://java.sun.com/jsf/html" xmlns:f="http://java.sun.com/jsf/core"> <h:body> <!-- HTML code completion DOES NOT work here --> <table> <!-- HTML code completion works here --> </table> </h:body> </html> 4. Open that file with HTML or Web Page editor 5. Try Ctrl+Space at the next line after <h:body> There is NO HTML tags available in the proposal list. 6. Try Ctrl+Space at the next line after <table> There IS HTML tags available in the proposal list.
For review
Mass update: Moving Target to Juno SR1 release as we are in ramp down phase for Juno.
Triage: Consider fro 3.5
This doesn't appear to be a JSF problem. The selection of basic html tags that appear in content assist is governed by wst.html in source editing. I am going to reassign there to see if we can get more info on how this might work.
Cameron, Alexey, is this even still happening in Juno SR2?
(In reply to comment #4) > This doesn't appear to be a JSF problem. The selection of basic html tags > that appear in content assist is governed by wst.html in source editing. I > am going to reassign there to see if we can get more info on how this might > work. Hi, Cameron. We had a similar situation with custom tags in JSPs. To fix it, we updated the model query extension for taglibs so that it would include valid HTML elements for the tag's context [1]. I'd imagine you could do the same. [1] http://git.eclipse.org/c/sourceediting/webtools.sourceediting.git/commit/?id=3828b11664356f783564620031d2418f0af917e9
Nitin, I didn't try Juno but it seems to be fixed in Kepler.
this is still an issue in Kepler as well, as Nick comment in comment#4, the issue is similar the JSP tags. However the class that should be modified is on the jsf stuff, more precisely in (so far with my investigation) org.eclipse.jst.jsf.facelet.ui.internal.contentassist.MyModelQueryExtension, i think we should move this bug to the jsf team.
sorry, i meant Nick's comment#6