Ticket #288 (closed defect: fixed)
EventContext and ViewState behave differently when calling getValue() with or without a default
| Reported by: | ArmchairDeity | Owned by: | jared@… |
|---|---|---|---|
| Priority: | normal | Milestone: | |
| Version: | 2.0.304 | Severity: | minor |
| Keywords: | EventContext ViewState GenericCollection | Cc: | joe@… |
Description
EventContext?.getValue("foo") passes a default to ViewState?.getValue() automatically, but in a view, the call to ViewState?.getValue() is against the raw collection object and the default isn't passed in automatically.
I'm honestly not sure this is a bug, but it is inconsistent with the docs (ViewState?'s docs quote EventContext?'s docs incorrectly stating that a call to getValue() will set and return a default automatically) and it's inconsistent behavior between two seemingly consistent method calls.
At the very least it should be discussed.
Attachments
Change History
Note: See
TracTickets for help on using
tickets.
![(please configure the [header_logo] section in trac.ini)](/ModelGlue.com/trac.cgi/chrome/site/your_project_logo.png)