what you need to do is call "setValueBinding" for the expressions and
prepare a new ValueBinding for that.
like in this sample code:
setValueBinding(new ValueBindingImpl(
FacesContext.getCurrentInstance().getApplication(),
"#{bean.array}");
regards,
Martin
On 5/5/05, Lking <[EMAIL PROTECTED]> wrote:
> Hello all
>
> I'm trying DataTable and it worked ok if I set "value" and "var" in my
> jsf page. But trying to set both in my class having DataTable binded didn't
> work. Can anybody help me?
>
> it worked this way...
>
> page...
> value="#{bean.array}"
> var="myBean"
>
> <h:outputText value="#{myBean.id}"..
>
> but it didn't this way...
>
> dataTable.setValue("#{bean.array}");
> dataTable.setVar("myBean");
>
> outputText.setValue("#{myBean.id}");
>
> Thanks.,
>
>