jsp support (MAGNOLIA-4159)

[MAGNOLIA-4204] jsp support: functions Created: 23/Dec/11  Updated: 22/Mar/12  Resolved: 24/Jan/12

Status: Closed
Project: Magnolia
Component/s: None
Affects Version/s: None
Fix Version/s: 4.5

Type: Sub-task Priority: Critical
Reporter: Philipp Bärfuss Assignee: Eric Hechinger
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Template:
Date of First Response:

 Description   

We need taglib functions for the templating functions. Class with static methods, delegating to the current instance of info.magnolia.templating.functions.TemplatingFunctions.



 Comments   
Comment by Eric Hechinger [ 11/Jan/12 ]

Added to the magnolia-templating module the following jsp tag support:
AreaTag, ContextTag, EditTag, InitTag, RenderTag.
These tad's are equivalent to the flt's.

Remarque:

  • ContextAttribure Element has a weird behavior. Currently, this implementation don't set the value in the MgnlContext.
  • FTL and JSP tag tests have to be reviewed.
  • Element's test have to be commented out and run again.
Comment by Eric Hechinger [ 12/Jan/12 ]

JspSuport for TemplatingFunction investigation:

We have two possibilities:

With JSP2.2, Servlet3, (Tomcat7):
Nothing to do. We can directly access the functions (cmsfn) available in the context like:
${cmsfn.link(cmsfn.asJCRNode(content))}
without any specific import or declaration.

If we decide to provide support for JSP2.1, Servlet2.5 (Tomcat6) then we will have to:
Create a class with static method that encapsulate TemplatingFunction, Create a TLD for this wrapping class, and use Tag to access these functions.
Well describe in: (http://www.javaworld.com/javaworld/jw-05-2003/jw-0523-calltag.html?page=3)

Comment by Eric Hechinger [ 24/Jan/12 ]

Checked in in the new magnolia-templating-jsp module.

Generated at Mon Feb 12 03:53:37 CET 2024 using Jira 9.4.2#940002-sha1:46d1a51de284217efdcb32434eab47a99af2938b.