Click Framework  History | Log In     View a printable version of the current page. Get help!  
Issue Details (XML | Word)

Key: CLK-382
Type: Improvement Improvement
Status: Resolved Resolved
Resolution: Fixed
Priority: Major Major
Assignee: Bob Schellink
Reporter: Bob Schellink
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
Click

Add ability to safely detect if Context is available on ContextStack

Created: 07/Jun/08 02:14 AM   Updated: 07/Jun/08 02:17 AM
Component/s: core
Affects Version/s: 1.5 M1
Fix Version/s: 1.5 M2


 Description  « Hide
If is not currently safe to access Context in a Control constructor since Click could instantiate the Control during resource deployment phase. Context is not available during deployment phase.

Invoking Context.getThreadLocalContext throws exception if a Context is not on the stack.

We should add a static query method that detects if Context is available or not. This provides us the ability to use Context in the Control constructor, as long as we check if Context is available or not.

 All   Comments   Change History      Sort Order:
Bob Schellink [07/Jun/08 02:17 AM]
fixed in trunk.