one component to another data transfer via valuebinding
Hello
in one component based on UIData that iterate some array itam variable is "elem"
so if i use <ui:staticText text="#{elem}"/> all work
next i write another custom component that uses value bindings with tag attribute requestId="#{elem}" and it does not work
in setProperties(...) i use this code:
requestId_=FacesContext.getCurrentInstance().getApplication().createValueBinding(requestId).getValue(FacesContext.getCurrentInstance()).toString();
there are NUll pointer exception here.
Is anybody know where is problem?
Comment:
to understand what i mean:
does not work (problem at requestId attribute):
<my:forEach items="#{page.items}" item="elem">
<my:getData jndiname="ejb/some" methodname="getValueById" requestId="#{elem}" valueStrore="objectvalue">
<ui:staticText text="#{objectvalue}"/>
</my:getData>
</my:forEach>
work well and show ids:
<my:forEach items="#{page.items}" item="elem">
<ui:staticText text="#{elems}"/>
</my:forEach>
work well and show object:
<my:getData jndiname="ejb/some" methodname="getValueById" requestId="#{page.elemid}" valueStrore="objectvalue">
<ui:staticText text="#{objectvalue}"/>
</my:getData>