[SEAM] 请教:后台得不到页面数据???
lingruoxue
2009-11-23
<h:inputTextarea value="#{pwResetApply.applyCause}" id="area"
rendered="#{pwResetApplyHome.hiddenInputText == 'default' ? 'false' : 'true'}" required="true" requiredMessage="#{messages['security.pwResetApply.message.necessaryPwLostCause']}"> </h:inputTextarea> 当rendered部分去掉时,后台可以得到输入值,但是一旦加上,后台就得不到输入值!!!请问各位大侠有人知道原因吗?有解决办法吗?(注:rendered是必需的,不能去掉) |
|
5day
2009-11-24
把hiddenInputText放到pwResetApply类中呢?
|
|
lingruoxue
2009-11-25
pwResetApply是个实体类的对象,hiddenInputText只是个临时存取的string。pwResetApply理论上来说是不能随便增加栏位的,所以hiddenInputText是没办法放到pwResetApply类中的。
|
|
CarlKing
2009-11-30
生命周期問題:
rendered="#{pwResetApplyHome.hiddenInputText == 'default' ? 'false' : 'true'}" 其中pwResetApplyHome.hiddenInputText所處的上下文>=page已經沒有問題了。 如:在pwResetApplyHome加上 @Scope(ScopeType.PAGE) 或者 @Scope(ScopeType.session) |