2011-04-21 5 views
4

/View/{arg1}/{arg2}/{$event}과 같은 서식으로 지정된 정리를 사용하고 있습니다.Stripes ActionBean 이벤트가 항상 기본 이벤트로 해석됩니다.

ActionBeanView에는 여러 이벤트가 있습니다. 그러나 브라우저에서 어떤 이벤트를 호출하든이 이벤트는 항상 기본 이벤트로 처리됩니다.

내가 뭘 잘못했는지 (줄무늬에 상당히 새롭다). 여기

오류 로그입니다 :

이 같은 URL과 일치하려는
11:24:18,497 DEBUG UrlBindingFactory:145 - Matched /View/myarg1/myarg2/ADD.action to [/View/{id}/{asof}/{$event}] 

11:24:18,497 DEBUG ExecutionContext:150 - Transitioning to lifecycle stage Reque 
stInit 

11:24:18,497 DEBUG ExecutionContext:150 - Transitioning to lifecycle stage Actio 
nBeanResolution 

11:24:18,497 DEBUG UrlBindingFactory:145 - Matched /View/myarg1/myarg2/ADD.action to [/View/{id}/{asof}/{$event}] 

11:24:18,497 DEBUG UrlBindingFactory:145 - Matched /View/myarg1/myarg2/ADD.action to [/View/{id}/{asof}/{$event}] 

11:24:18,497 DEBUG ExecutionContext:150 - Transitioning to lifecycle stage Handl 
erResolution 

11:24:18,497 DEBUG UrlBindingFactory:145 - Matched /View/myarg1/myarg2/ADD.action to [/View/{id}/{asof}/{$event}] 

11:24:18,497 DEBUG DispatcherHelper:184 - Resolved event: myDefaultEvent; will invoke: 
ViewActionBean.myDefaultEvent() 

11:24:18,497 DEBUG ExecutionContext:150 - Transitioning to lifecycle stage Bindi 
ngAndValidation 

11:24:18,497 DEBUG DefaultActionBeanPropertyBinder:453 - Running required field 
validation on bean class www.ViewActionBean 

11:24:18,497 DEBUG DefaultActionBeanPropertyBinder:779 - Converting 1 value(s) u 
sing converter net.sourceforge.stripes.validation.StringTypeConverter 

11:24:18,513 DEBUG DefaultActionBeanPropertyBinder:779 - Converting 1 value(s) u 
sing converter net.sourceforge.stripes.validation.StringTypeConverter 

11:24:18,513 DEBUG DefaultActionBeanPropertyBinder:282 - Could not bind property 
with name [ADD.action] to bean of type: ViewActionBean : Bean class www.View 
ActionBean does not contain a property called 'ADD'. As a result the followin 
g expression could not be evaluated: ADD.action 
---- 
+0

오히려 이상한 URL을 : 당신이 액션 콩의 모든 소스 코드를 제공하지 않은 것처럼

, 나는이 같은 HandlesEvent와 이벤트 핸들러를 주석하지 않았다고 생각한다. URL은 View/myarg1/myarg2/ADD.action 대신에 View/myarg1/myarg2/add가 될까요? – yihtserns

답변

2

: "ADD.action"그때 줄무늬라는 이벤트에이 문제를 해결하기 위해 기대하는 것 인 UrlBinding/View/{arg1}/{arg2}/{$event}/View/myarg1/myarg2/ADD.action을 .

@HandlesEvent("ADD.action") 
public Resolution add() { 
    ... do handle add ... 
} 
관련 문제