[MAGNOLIA-1647] Provide EL functions for use in jsp pages (instead of ${actpage}) Created: 29/Jul/07  Updated: 23/Jan/13  Resolved: 30/Jul/07

Status: Closed
Project: Magnolia
Component/s: taglibs
Affects Version/s: 3.1 M1
Fix Version/s: 3.1 M2

Type: Improvement Priority: Minor
Reporter: Fabrizio Giustina Assignee: Fabrizio Giustina
Resolution: Fixed Votes: 0
Labels: None
Remaining Estimate: Not Specified
Time Spent: Not Specified
Original Estimate: Not Specified

Attachments: HTML File lgpl.html    
Issue Links:
Cloners
is cloned by MAGNOLIA-2786 CLONE -Provide EL functions for use i... Closed
dependency
depends upon MAGNOLIA-2786 CLONE -Provide EL functions for use i... Closed
Template:
Acceptance criteria:
Empty
Task DoD:
[ ]* Doc/release notes changes? Comment present?
[ ]* Downstream builds green?
[ ]* Solution information and context easily available?
[ ]* Tests
[ ]* FixVersion filled and not yet released
[ ]  Architecture Decision Record (ADR)
Date of First Response:

 Description   

Since actpage has been deprecated/removed we should start offering a better way to get the current page in jsp page, which doesn't rely on the nave of a variable anymore.

A good solution for jsp 2.0 containers is to use EL functions. I will add a new cmsfn taglib with the following jsp 2.0 functions:

${cmsfn:currentPage()}
${cmsfn:mainPage()}
${cmsfn:currentParagraph()}

the new taglib can be declared with:
<jsp:root ... xmlns:cmsfn="http://www.magnolia.info/tlds/cmsfn-taglib.tld">

note that I am not adding this funtions directly to the "cms" tld since this will require updating the tld to jsp 2.0 schema, we will probably it them compatible with jsp 1.2 only containers.



 Comments   
Comment by Fabrizio Giustina [ 29/Jul/07 ]

added for 3.1 M2

Comment by Magnolia International [ 30/Jul/07 ]

(reopeing to correct typo)

Comment by Philipp Bracher [ 31/Jul/07 ]

We will readd the ${actpage} by using the delegate pattern. It should log a warning that you should uste the new functions instead.

Thanks a lot!

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