Re: Portlets support with Freemarker

Albertas Mickenas <[email protected]>
Newsgroups gmane.comp.web.freemarker.user
Message-ID <[email protected]>
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

This is a bug in taglib. Are you using PLUTO as portlet container? Try
using different taglib jar or fix it yourself:

https://issues.apache.org/jira/browse/PLUTO-440



sunil wrote:
| sunil <sunil.msk <at> gmail.com> writes:
|
|>
|> Hi,
|> Iam developing a spring portlet application with freemarker templates
as view.
|>
|> currently Iam facing a problem with the portlet param tag is not
identified
| in
|> the freemarker template files. The portlet renderURL and actionURL
tags are
|> identified by the freemarker but not the portlet param tag.
|>
|> I have read the Using Freemarker with servlets section in the Freemarker
| manual
|> in which at the end its mentioned as below.
|>
|> *** taken from freemarker manual ****
|>
|> Note that you can use JSP taglibs with FreeMarker even if the servlet
| container
|> has no native JSP support, just make sure that the javax.servlet.jsp.*
| packages
|> for JSP 1.2 (or later) are available to your Web application. If your
servlet
|> container comes with JSP 1.1, then you have to obtain the following six
| classes
|> (for example you can extract them from the jar-s of Tomcat 5.x or Tomcat
| 4.x),
|> and copy them into your webapp's WEB-INF/classes/... directory:
|> javax.servlet.jsp.tagext.IterationTag,
|> javax.servlet.jsp.tagext.TryCatchFinally,
| javax.servlet.ServletContextListener,
|> javax.servlet.ServletContextAttributeListener,
|> javax.servlet.http.HttpSessionAttributeListener,
|> javax.servlet.http.HttpSessionListener. But beware, since containers
that
| come
|> with JSP 1.1 usually use earlier Serlvet versions than 2.3, event
listeners
|> will not be supported, and thus JSP 1.2 taglibs that register event
listeners
|> will not work properly.
|>
|> The above section mentions that to use JSP tag libs we need to have
the jsp
|> version 1.2 or above.
|>
|> Iam using RSA 7.0 as the development environment in which the
portlet.tld of
|> the Portlet container comes with the JSP version 1.1
|>
|> So, I suspect whether this can be the reason for param tag not
identified by
|> the Freemarker.
|>
|> if so, can any one please let me know the changes needed for making the
| portlet
|> param tag identified by the freemarker.
|>
|> Thanks in advance,
|> Sunil.
|>
|>
|
|
| Hi,
| it seems that the Freemarker is not supporting the body content placed in
| between the portlet:renderURL tags.
|
| <@portlet.renderURL>
|       <@portlet.param  />
| </@portlet.renderURL>
|
| in this case, what ever content placed in between the
portlet.renderURL tag is
| not recognized by Freemarker. It seems to be a bug in Freemarker.
|
| can any one please let me know my understanding is correct or any
possible ways
| of resolving this issue.
|
| Thanks,
| Sunil.
|
|
|
|
| -------------------------------------------------------------------------
| Check out the new SourceForge.net Marketplace.
| It's the best place to buy or sell services for
| just about anything Open Source.
|
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
| _______________________________________________
| FreeMarker-user mailing list
| [email protected]
| https://lists.sourceforge.net/lists/listinfo/freemarker-user
|
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v2.0.4 (FreeBSD)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFH63DWbtEqowS8RasRAmw7AJ9hMVRae82xr1PeNnvZ51GSsbJKegCgr0jq
cEIQnKkXTBXcdtGlNieJXuY=
=1+sY
-----END PGP SIGNATURE-----

-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.