Something's up with the state saving then.
Facelets assigns a
ValueExpression("${reportBean.parameters.dateFrom}"
;..) with an internal VariableMapper that says reportBean =
$
I don't even know why MyFaces code is parsing/evaluating the
expression-- it should be internal to the expression
Facelets assigned.
==
Hi!
Now a something trivial question.
I have the following piece of code:
<ui:include
src="/content/OPSJ/xhtml/DataSourceReportingCriteria.xh
tml">
<ui:param
name="reportBean"
value="#" />
</ui:include>
The include create a form with bindings like
#{reportBean.parameters.dateFrom} etc.
Now, on postback the variable reportBean is not bound and I
get an
exception like this:
|Caused by: javax.faces.el.PropertyNotFoundException: Base
is null: reportBean
at
org.apache.myfaces.el.ValueBindingImpl.resolveToBaseAndPrope
rty(ValueBindingImpl
.java:463)
at
org.apache.myfaces.el.ValueBindingImpl.setValue(ValueBinding
Impl.java:251)
at
javax.faces.component.UIInput.updateModel(UIInput.java:278)
|
Which seems rather clear to me as the ui:param is just a
TagHandler
which is called only on buildView which is called only in
renderView
It seems that setting facelets.BUILD_BEFORE_RESTORE=true
fixed this. Is
this the proposed way how to deal with that scenario?
Thanks!
Ciao,
Mario
--
Mario
------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribe facelets.dev.java.net
For additional commands, e-mail: users-help facelets.dev.java.net
------------------------------------------------------------
---------
To unsubscribe, e-mail: users-unsubscribe facelets.dev.java.net
For additional commands, e-mail: users-help facelets.dev.java.net
|