]
Alexey Kazakov updated JBIDE-12175:
-----------------------------------
Fix Version/s: 4.0.0.Beta1
(was: 4.0.0.Alpha2)
Forum Reference:
Automatic namespace completion in Facelets files
------------------------------------------------
Key: JBIDE-12175
URL:
https://issues.jboss.org/browse/JBIDE-12175
Project: Tools (JBoss Tools)
Issue Type: Feature Request
Components: JSF
Affects Versions: 3.3.0.CR1
Reporter: Lukáš Fryč
Assignee: Victor Rubezhny
Fix For: 4.0.0.Beta1
RichFaces community is complaining about complexity of maintaining namespaces through the
JSF projects [1]
as the sample could be following project file:
https://github.com/richfaces/sandbox/blob/760fca06c7db23b542fa8d077f73dfe...
It is very hard to maintain namespaces through project.
----
What are current options when using JBoss Tools?
* modify Facelets file templates for creating new files and list all favorite namespaces
there
* use autocompletion of detected namespaces (write {{xmlns:xyz="..."}} and
autocompletion will offer you available namespaces)
But both of the solutions are not as straight-forward as it could be.
----
Tools could help and store the preferences for namespaces,
so user would need only to start typing tag with prefix of the namespace (e.g.
{{<a4j:}} and once he will complete the tag {{<a4j:ajax>}}, the namespace will be
automatically added to the root of the XML file.
({{xmlns:a4j="http://richfaces.org/a4j"}}).
----
The information about the prefixes could be retrieved from:
* faces-config.xml generated by RichFaces CDK:
{{faces-config/faces-config-extension/cdk:prefix}}
* scanning the Facelets (XHTML) files in a project and collecting used namespace prefixes
({{xmlns:*}})
[1]
https://community.jboss.org/message/738739#738739
--
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: