Questions Tagged With jsfhttps://answers.axonivy.com/tags/jsf/?type=rss&user=tdtinquestions tagged <span class="tag">jsf</span>enMon, 14 Jan 2019 08:50:37 -0500How can I create a custom tag in Ivyhttps://answers.axonivy.com/questions/3610/how-can-i-create-a-custom-tag-in-ivy<p>Hi Ivy Team, I'm managing to create a custom tag in JSF. But it seems not work. Do I need to do something more ?</p> <p>This is my custom class</p> <pre><code> @FacesComponent(createTag = true, tagName = "helloComponent", namespace = "http://example.com/tags") public class HelloComponent extends UIComponentBase { @Override public String getFamily() { return "Greeting"; } @Override public void encodeBegin(FacesContext context) throws IOException { String message = (String) getAttributes().get("message"); ResponseWriter writer = context.getResponseWriter(); writer.startElement("p", this); writer.write("Messageeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeeee: " + message); writer.endElement("p"); } } </code></pre><code> </code><p><code></code></p> <p>This is my xhtml view : <img alt="alt text" src="https://image.prntscr.com/image/maP26toeQ5W6hVl4kanc3g.png"></p>tdtinMon, 14 Jan 2019 08:50:37 -0500https://answers.axonivy.com/questions/3610/how-can-i-create-a-custom-tag-in-ivyjsf