Hi,

I have some problems with refreshing my forms. 

I'm using the tag <h:dataTable> to show the entries of my list in
<h:inputText> and <h:inputTextarea>-fields. The special situation is now,
that you may change the entries and save them.
In the backing-bean this functionality works fine - my list is really
updated and everytime in the right state. But the presentation is incorrect.
After saving the changes there are two dataTable-rows instead of one, both
with the same values.
So please help me - how can I refresh my presentation???

Here's the code of my update-jsp:

<h:dataTable value="#{backingBeanAction.myList}" var="myListEntry"
border="0" cellpadding="10">
        <h:column>
                <h:outputLabel for="name" value="#{messages.name}" />
                <t:htmlTag value="br" />
                <h:inputTextarea id="name" value="#{myListEntry.name}" rows="6" 
cols="35"
required="true" />
                <h:message for="name" style="color:red" />
        </h:column>

        <h:column>
                <t:htmlTag value="br" />
                <h:commandLink id="updateMyListEntry"
actionListener="#{backingBeanAction.updateMyListEntry}">
                        <h:outputText value="#{messages.saveMyListEntry}" />
                        <f:param id="updateId" name="id" 
value="#{myListEntry.id}" />
                </h:commandLink>
        </h:column>
</h:dataTable>


Thanks a lot
Nico
-- 
View this message in context: 
http://www.nabble.com/Problem-with-refreshing-JSF-forms-tf4156660.html#a11826220
Sent from the MyFaces - Users mailing list archive at Nabble.com.

Reply via email to