[CUBBY-236] ActionContext をコンテナに登録する Created: 2009-06-22 Updated: 2009-08-24 Resolved: 2009-06-22 |
|
Status: | Closed |
Project: | Cubby |
Component/s: | None |
Affects Version/s: | 2.0.0-beta3 |
Fix Version/s: | 2.0.0-rc1 |
Type: | Improvement | Priority: | Major |
Reporter: | baba | Assignee: | baba |
Resolution: | Fixed | Votes: | 0 |
Labels: | None |
Description |
アクションを POJO にしたときにフラッシュメッセージやアクションエラーにアクセスしやすくするため、コンテナに登録してアクションに DI してくれるようにします。 // Seasar2 public ActionContext actionContext; とか // Guice @Inject private ActionContext actionContext; とか // Spring @Autowired private ActionContext actionContext; とか ActionUtils#errors() とか #flash() とかを用意していましたが、テストし辛いので ActionContext を取得するメソッドだけを残しておきます。 |
Comments |
Comment by baba [ 2009-06-22 ] |
rev.1803 で対応しました。 |