0

My First Question, after years, thank you all and stackoverflow ;-)

I code a new Component for JSF2 and use it to include other templates. It works perfectly for me.

<cc:interface>
    <cc:attribute name="src" type="java.lang.String" required="true"/>
    <cc:attribute name="addOption" type="java.util.List"/>
</cc:interface>

<cc:implementation>
    <cc:insertChildren />
    <ui:include src="#{BeanAnything.convert(cc.attrs.src, cc.attrs.addOption)}" />
</cc:implementation>

But i cant complete the Parameter src via auto completion in intellij or netbeans with "strg + space" or whatever other will use. It should be used like the ui:include on src parameter.

Any Ideas ? That's what I want to achieve only with my own componente gg:include See Example

Wortak
  • 1
  • 1
  • Hello, welcome to SO. Do you mean you don't get the parameter name itself autocompleted? – Aritz Sep 05 '18 at 21:25
  • i mean a suggestion of projectFiles to this parameter. The parameter itself is just a string, as with ui:include. – Wortak Sep 06 '18 at 06:36
  • I know, but you mean for example the `addOption` text being autocompleted when you use your custom component? I don't get it clearly from the question. – Aritz Sep 06 '18 at 06:39
  • Oh sorry that's a bit incomprehensible. When I use the components, I call them up with ``. The content of the parameter src should then only be used by autocomplete for local files. The add option can be completely ignored here. – Wortak Sep 06 '18 at 08:55
  • So you mean the value autocompletion with a local file path.. You could edit the question title for better understanding. – Aritz Sep 06 '18 at 09:22

0 Answers0