tagfile

Is including other JSP via the Spring MVC framework a good idea?

非 Y 不嫁゛ 提交于 2019-12-01 00:27:29
This is a vague and grand question but hopefully I can explain it with as little concrete examples as possible. We recently switched to Spring MVC for our application framework but found one (and really, only one) limiting factor during development: how to include dynamic views with the appropriate model. For instance, we are creating a page that contains reusable fragments. On the left we have a "random q and a" fragment while on the top we have a common "navigation" fragment. Each of these fragments requires a different model. I have been instructing the developer that is creating the

Is including other JSP via the Spring MVC framework a good idea?

家住魔仙堡 提交于 2019-11-30 19:14:24
问题 This is a vague and grand question but hopefully I can explain it with as little concrete examples as possible. We recently switched to Spring MVC for our application framework but found one (and really, only one) limiting factor during development: how to include dynamic views with the appropriate model. For instance, we are creating a page that contains reusable fragments. On the left we have a "random q and a" fragment while on the top we have a common "navigation" fragment. Each of these

Passing EL method expression as attribute of custom Facelets tagfile

…衆ロ難τιáo~ 提交于 2019-11-27 07:19:01
问题 I created a custom JSF tag: <ui:composition> <h:panelGroup> <rich:dataScroller id="#{id}" for="#{table}" execute="#{table}" page="#{scrollerPage}" render="#{table}-sc1" maxPages="5" fastControls="hide" oncomplete="#{onCompl}" scrollListener="#{scrollListenerBean[scrollListenerMethod]}" /> <h:inputText value="#{scrollerPage}" id="#{table}-sc1" size="2"> <f:convertNumber integerOnly="true" /> </h:inputText> <h:outputText styleClass="outputText" value=" of #{scrollPagesCount} " /> <h

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

What&#39;s the difference between including files with JSP include directive, JSP include action and using JSP Tag Files?

喜夏-厌秋 提交于 2019-11-26 00:31:44
问题 It seems that there are two methods for templating with JSP. Including files with one of these statements <%@ include file=\"foo.html\" %> <jsp:include page=\"foo.html\" /> or using JSP tag files // Save this as mytag.tag <%@ tag description=\"Description\" pageEncoding=\"UTF-8\"%> <html> <head> </head> <body> <jsp:doBody/> </body> </html> And in another JSP page call it with <%@ taglib prefix=\"t\" tagdir=\"/WEB-INF/tags\" %> <t:mytag> <h1>Hello World</h1> </t:mytag> So which method should I

When to use <ui:include>, tag files, composite components and/or custom components?

三世轮回 提交于 2019-11-25 23:56:34
问题 I started using JSF 2.0 with Facelets recently and got puzzled by new composite components knowing existing <ui:include> and other templating techniques offered by Facelets 1.x. What is the difference between those approaches? Functionally they seem to offer about the same: <ui:param> vs <cc:attribute> , <ui:insert> + <ui:define> vs tag files, reuse of the existing templates. Is there anything besides syntax and clear interface specification in case of composite components? Could performance