Search code examples
intellij-idealive-templates

Custom live template does not show up in xhtml JSF file


I am using IntelliJ 2017.2 ultimate edition and I have created a live template to surround text in xhtml (JSF) by a tag and attribute.

#{myvalue}

should become

<h:outputText value="#{myvalue}" />

I created a live template named "swot" applicable to in XML : XML Text.

<h:outputText value="$SELECTION$" />

Unfortunately, it does not show up when I try to surround a selection in a xhtml file. I only get standard live templates.

Live template surround with completion

Update with solution

As the file in which I want to applicate the template is JSF xhtml file, I just had to applicate it to "JSP"

enter image description here


Solution

  • As the file in which I want to applicate the template is JSF xhtml file, I just had to applicate it to "JSP"

    enter image description here