Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / General / April 2007

Tip: Looking for answers? Try searching our database.

need help: jsf problem of inputText in a dataTable

Thread view: 
joneepenk@gmail.com - 13 Apr 2007 17:19 GMT
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?


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.