Re: Passing null value into context

2014-04-14 Thread Lance Java
No, you can generate the context as normal. Just use EventContext in the event to support a dynamic number of context values (ie 0 or 1 values). Eg: ... public Object getMyContext() { if (someObject == null) return Collections.emptyList(); return someObject; } void onMyE

Re: Passing null value into context

2014-04-14 Thread Boris Horvat
Ny server side event tyoe do you mean that I have to create link in java? I cant just pass EventContext to context parameter of pagelink. I tried that at it was take as a string of the EventContext toString method On 13 Apr 2014 15:48, "Lance Java" wrote: > This can be done using EventContext as

Re: Passing null value into context

2014-04-13 Thread Lance Java
This can be done using EventContext as the serverside event's argument type. I assume using an empty list / array to represent your null case will achieve the desired result.

Passing null value into context

2014-04-13 Thread Boris Horvat
Hi everyone I have a code that generates page links based on the specified names in a list. That block of code looks like this ${pageName} ${pageNotNu