[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: |
|
||||||||||||||||
| Issue Links: |
|
||||||||||||||||
| 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()} the new taglib can be declared with: 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! |