custom-tags

“The type javax.el.ValueExpression cannot be resolved” error when extending checkbox related jsf components

孤人 提交于 2019-12-01 18:20:20
I am creating JSF2 custom components and eclipse shows following error at the first line of the class. The type javax.el.ValueExpression cannot be resolved. It is indirectly referenced from required .class files Error only shown when my component extends checkbox related components like HtmlSelectBooleanCheckbox or HtmlSelectManyCheckbox . Other components like HtmlSelectOneMenu , HtmlInputText are ok. I've checked project build-path and javax.faces-2.1.14.jar is already added to the build-path. Problem solved by adding JBoss Runtime Library to the classpath. Eclipse: [Java Build Path ->

PHP - templating with custom tags - is this a legit use of eval?

99封情书 提交于 2019-11-30 21:56:31
Overview Around the end of 2009, I wrote a simple templating system for PHP/HTML to be used in-house by our designers for brochure-ware type websites. The goal of the system is to allow templating in otherwise pure HTML via custom tags that are processed by PHP. For example, a templated page might look like this: <tt:Page template="templates/main.html"> <tt:Content name="leftColumn"> <p> blah blah </p> ... </tt:Content> <tt:Content name="rightColumn"> <p> blah blah </p> ... </tt:Content> </tt:Page> The template itself might look something like this: <html> <head>...</head> <body> <div style=

PHP - templating with custom tags - is this a legit use of eval?

喜夏-厌秋 提交于 2019-11-30 17:11:52
问题 Overview Around the end of 2009, I wrote a simple templating system for PHP/HTML to be used in-house by our designers for brochure-ware type websites. The goal of the system is to allow templating in otherwise pure HTML via custom tags that are processed by PHP. For example, a templated page might look like this: <tt:Page template="templates/main.html"> <tt:Content name="leftColumn"> <p> blah blah </p> ... </tt:Content> <tt:Content name="rightColumn"> <p> blah blah </p> ... </tt:Content> </tt

Eclipse “cannot find the tag library descriptor” for custom tags (not JSTL!)

核能气质少年 提交于 2019-11-30 06:13:25
问题 I have a Java EE project which build fine with Ant, deploys perfectly to JBoss, and runs without any trouble. This project includes a few custom tag libraries (which is not JSTL!), which are also working without any difficulties. The problem is with the Eclipse IDE (Ganymede): in every single JSP file which uses our custom tags, the JSP parser flags the taglib include line with with this error: Cannot find the tag library descriptor for (example).tld This also causes every use of the tab

Eclipse “cannot find the tag library descriptor” for custom tags (not JSTL!)

偶尔善良 提交于 2019-11-28 15:57:28
I have a Java EE project which build fine with Ant, deploys perfectly to JBoss, and runs without any trouble. This project includes a few custom tag libraries (which is not JSTL !), which are also working without any difficulties. The problem is with the Eclipse IDE (Ganymede): in every single JSP file which uses our custom tags, the JSP parser flags the taglib include line with with this error: Cannot find the tag library descriptor for (example).tld This also causes every use of the tab library to be flagged as an error, and since the IDE doesn't have their definition, it can't check tag

How to create a custom Facelets tag?

爱⌒轻易说出口 提交于 2019-11-26 06:48:11
问题 I am using JSF 2.0. I created custom JSTL tags with tagfiles and that were working fine in JSP. But I want to use custom JSTL tags in Facelets too. Is it possible to create tagfiles in Facelets or not? 回答1: "Custom JSTL tags" makes honestly no sense. This term is utterly meaningless. JSTL is already a taglib at its own. Please carefully read the introductory paragraphs of our JSTL wiki page to learn what JSTL really is. You perhaps actually meant "Custom JSP tags". Of course they would not