You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Tobias Glensk (JIRA)" <de...@myfaces.apache.org> on 2007/11/08 12:00:56 UTC

[jira] Commented: (TOBAGO-268) TLD file for facelet-extension for code completition in eclipse

    [ https://issues.apache.org/jira/browse/TOBAGO-268?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12541021 ] 

Tobias Glensk commented on TOBAGO-268:
--------------------------------------

There is a workaroud to get code completion for facelets while using the Eclipse WTP plugin.

1) Assign the "JSP Editor" for the file extension, e.g. xhtml,  you want to use for your facelets.

2) Add the element jsp:root with attribute version 2.0 to your facelet:

<?xml version="1.0" encoding="UTF-8"?>

<jsp:root xmlns:jsp="http://java.sun.com/JSP/Page"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:c="http://java.sun.com/jstl/core"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:tc="http://myfaces.apache.org/tobago/component"
	version="2.0">

<ui:composition>

<!-- add your facelet code here -->

</ui:composition>

</jsp:root>

With this workaround the correspnding JSP TLDs can be used for code completion.

> TLD file for facelet-extension for code completition in eclipse
> ---------------------------------------------------------------
>
>                 Key: TOBAGO-268
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-268
>             Project: MyFaces Tobago
>          Issue Type: Wish
>          Components: Facelets
>    Affects Versions: 1.0.9
>            Reporter: Guido Dubois
>
> Where to get a TLD file for  ...xmlns:tx="http://myfaces.apache.org/tobago/facelet-extension"... that code completition in eclipse works?

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.