[
https://issues.jboss.org/browse/JBIDE-14938?page=com.atlassian.jira.plugi...
]
Viacheslav Kabanovich edited comment on JBIDE-14938 at 7/22/13 5:14 PM:
------------------------------------------------------------------------
Steps:
1. Create JSF 2 project.
2. In Webcontent/resources create folder 'demo' with JSF 2 component tag.xhtml.
3. In WEB-INF add facelets-taglib.xml with content
{code}
<?xml version="1.0"?>
<facelet-taglib version="2.0"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facelettaglibrary_2_0.xsd">
<namespace>myFacelet</namespace>
<composite-library-name>demo</composite-library-name>
</facelet-taglib>
{code}
4. Open a *.xhtml page and add to the header of tag <html> attribute
{code}
xmlns:t="myFacelet"
{code}
5. Inside a text node, add
{code}
<t:
{code}
and call content assist.
ASSERT: There is t:tag proposal.
was (Author: scabanovich):
Steps:
1. Create JSF 2 project.
2. In Webcontent/resources create folder 'demo' with JSF 2 component tag.xhtml.
3. In WEB-INF add facelets-taglib.xml with content
{code}
<?xml version="1.0"?>
<facelet-taglib version="2.0"
xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/web-facelettaglibrary_2_0.xsd">
<namespace>myFacelet</namespace>
<composite-library-name>demo</composite-library-name>
</facelet-taglib>
{code}
4. Open a *.xhtml page and add to the header of tag <html> attribute
{code}
xmlns:t="myFacelet"
{code}
5. Inside a text node, add
{code}
<t:
<code}
and call content assist.
ASSERT: There is t:tag proposal.
Content assist for JSF components does not consider
composite-library-name
--------------------------------------------------------------------------
Key: JBIDE-14938
URL:
https://issues.jboss.org/browse/JBIDE-14938
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: JSF
Affects Versions: 4.0.0.Final
Reporter: Rich DiCroce
Assignee: Viacheslav Kabanovich
Fix For: 4.2.x
The <facelet-taglib> schema allows you to define a <composite-library-name>,
which allows you to combine pure facelet components and composite components into a single
namespace, defined by the <namespace> tag.
Currently, it appears JBoss Tools ignores <composite-library-name>, so the facelet
components defined in the taglib (using <tag>) appear when you trigger content
assist, but the composite components do not.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira