Details
-
Improvement
-
Status: Closed
-
Major
-
Resolution: Fixed
-
5.0.3
-
None
Description
It isn't possible to set an empty context using 'contex' parameter of PageLink. It always treats null and zero length array/list in the same way - asks the page about its activation context via onPassivate. I think that only null should trigger onPassivate.
Example
<a t:type="PageLink" page="test" context="context">page link</a>
public Object[] getContext()
{
if (test == 0)
return new Object[]
; // context will be ../test/1/2
else
if (test == 1)
return new Object[0]; // onPassivate will be asked but context should be empty IMO
else
return null; // onPassivate will be asked, ok
}