i put inputText in a dataTable, it works normal for display bean
property.
but i cannot get the modified value of inputText,that is,the change of
inputText was disappeared after submit.
i want know why this happend. any help will be appreciated.
ps: jsf is so wierd in my use of it, i am considering substitute jsf
with struts2.
jsf code as follow, in whitch "name" is a simple pojo, and
"tableData.names" simple return the array of "name" pojos:
<h:form>
<h:dataTable value="#{tableData.names}" var="name">
<h:column>
<f:facet name="header">
<h:outputText value="edit"/>
</f:facet>
<h:selectBooleanCheckbox value="#{name.editable}" onclick="submit()"/
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="last"/>
</f:facet>
<h:inputText value="#{name.last}" rendered="#{name.editable}"/>
<h:outputText value="#{name.last}" rendered="#{not name.editable}"/>
</h:column>
<h:column>
<f:facet name="header">
<h:outputText value="first"/>
</f:facet>
<h:inputText value="#{name.first}" rendered="#{name.editable}"/>
<h:outputText value="#{name.first}" rendered="#{not name.editable}"/
</h:column>
</h:dataTable>
</h:form>
SadRed - 14 Apr 2007 00:06 GMT
On Apr 14, 1:19 am, joneep...@gmail.com wrote:
> i put inputText in a dataTable, it works normal for display bean
> property.
[quoted text clipped - 31 lines]
> </h:dataTable>
> </h:form>
immediate="true"
joneepenk@gmail.com - 16 Apr 2007 15:13 GMT
> On Apr 14, 1:19 am, joneep...@gmail.com wrote:
>
[quoted text clipped - 37 lines]
>
> - Show quoted text -
thanks a lot.
i have tried this but it not works.
would u please provide me more suggest?