2017-10-09 86 views
0

我有自定義JSF標籤的列表,可在下列格式的XML文件中聲明:添加彈出說明自定義JSF標籤在Eclipse

1

我想提供的開發文檔這些標籤顯示在eclipse中,就像內置的JSF標籤一樣。

2

我怎樣才能做到這一點?

回答

0

開始使用WAAAAY更多電流的taglib ......一個2.2一個將是一件好事......

<facelet-taglib 
    xmlns="http://xmlns.jcp.org/xml/ns/javaee" 
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" 
    xsi:schemaLocation="http://xmlns.jcp.org/xml/ns/javaee http://xmlns.jcp.org/xml/ns/javaee/web-facelettaglibrary_2_2.xsd" 
    version="2.2" 
> 

然後你會發現(通過代碼完成),該<tag>元素中,你可以添加一個<documentation>

請參閱https://github.com/omnifaces/omnifaces/blob/2.6.4/src/main/resources/META-INF/omnifaces-ui.taglib.xml