Ticket #288 (closed defect: fixed)

Opened 19 years ago

Last modified 16 years ago

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

EventContext.cfc (10.9 kB) - added by ArmchairDeity 19 years ago.
Fixes #288

Change History

Changed 19 years ago by ArmchairDeity

Fixes #288

Changed 19 years ago by joe.rinehart

  • status changed from new to closed
  • resolution set to fixed

(In [299]) Fixes #288 (according to Jared ;) )

Changed 16 years ago by cfgrok

  • milestone Defects Awaiting More Information deleted

Milestone Defects Awaiting More Information deleted

Note: See TracTickets for help on using tickets.