Re: Portlet tld support with FreeMarker
sunil <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Attila Szegedi <szegedia <at> gmail.com> writes:
>
> It should support any TLD. What's the FreeMarker version you use? This
> sounds like the case of this bug:
>
> <http://sourceforge.net/tracker/index.php?
func=detail&aid=1670887&group_id=794&atid=100794
> >
>
> which we fixed in 2.3.11.
>
> Attila.
>
> On 2008.03.05., at 22:47, Sunil wrote:
>
> > Hi all,
> > Iam developing portlet application with Spring Portlet Web MVC using
> > Freemarker as the template for the view. Iam using Rational
> > application
> > developer version 7.
> >
> > But it seems that Freemarker doesnot support the portlet.tld as Iam
> > getting
> > Invalid Reference Exception when Iam trying to use the portlet.tld
> > in the
> > Freemarker template page.
> >
> > Iam trying to use the portlet tld as below.
> >
> > <#assign portlet=JspTaglibs["http://java.sun.com/portlet"]>
> >
> > the exception says that the assignment is wrong.
> >
> > can any one please let me know, whether FreeMarker supports the
> > Portlet.tld or
> > not.
> >
> > Thanks in advance.
> >
> > Sunil.
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by: Microsoft
> Defy all challenges. Microsoft(R) Visual Studio 2008.
> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>
Hi Attila,
I solved the problem by mentioning the portlet.tld in the web.xml file.
any ways Thanks for your help.
But now Iam facing a new issue while using portlt renderURL/actionURL tag in
the freemarker template page.
Iam using the tags as mentioned below.
<@portlet.renderURL var="addContact">
<@portlet.param name="action" value="insert"/>
</@portlet.renderURL>
<a href='<@portlet.actionURL>
<@portlet.param name="action" value="delete"/>
<@portlet.param name="contactId"
value='${contact.contactId}' />
</@portlet.actionURL>'>Remove</a>
But when the page gets loaded, the parameter values mentioned in the
<@portlet.param /> tag is not getting passed as part of the URL and the same
page is getting loaded.
can you please let me know, whether the usage of the renderURL and actionURL is
correct or do I need to make any changes.
Thanks,
Sunil.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/