[jbosstools-issues] [JBoss JIRA] (JBIDE-12175) Automatic namespace completion in Facelets files

Alexey Kazakov (JIRA) jira-events at lists.jboss.org
Thu Jan 24 15:56:47 EST 2013


    [ https://issues.jboss.org/browse/JBIDE-12175?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12750405#comment-12750405 ] 

Alexey Kazakov edited comment on JBIDE-12175 at 1/24/13 3:55 PM:
-----------------------------------------------------------------

http://www.youtube.com/watch?v=A2Gy5QPeGGk
                
      was (Author: akazakov):
    http://www.screenr.com/bs07
                  
> 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: Alexey Kazakov
>             Fix For: 4.1.0.Alpha1
>
>
> 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/760fca06c7db23b542fa8d077f73dfe3e6dd81c5/bootstrap/demo/src/main/webapp/index.xhtml#L11
> 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: http://www.atlassian.com/software/jira



More information about the jbosstools-issues mailing list