when i click the <a4j:commandlink > it ll display the <rich:datatable>,
rich:datatable contains input fields like (textboxes,comboboxes,suggestionbox,rich:calendar)
Situation is like ,
whenever i click another <a4j:commandlink> ,the above datatable should be displayed with empty input fields(Sholud not retain the old value).
code as follows,
<a4j:commandLink value="Add New" action="#{featuredContentInfo.saveAddNewRecords}"/>
<rich:dataTable id="featuredContentTable" rendered="#{not empty featuredContentInfo.getFeatureduserTopicList}" binding="#{featuredContentInfo.dataTable}" value="#{featuredContentInfo.getFeatureduserTopicList}" var="topicVar" >
<rich:column>
<f:facet name="header">SNo</f:facet>
<h:inputText value="#{topicVar.serialNumber}" />
</rich:column>
<rich:column>
<f:facet name="header">FeaturedOn</f:facet>
<rich:comboBox directInputSuggestions="true" defaultLabel="Enter some value" value="#{topicVar.featuredOn}">
<f:selectItems value="#{topicVar.featuredOnList}" />
</rich:comboBox>
</rich:column>
<rich:column>
<f:facet name="header">UserName</f:facet>
<h:inputText value="#{topicVar.userName}" id="aa"/>
<rich:suggestionbox for="aa" suggestionAction="#{featuredContentInfo.autocomplete}" var="aa" value="#{topicVar.userName}">
<h:column>
<h:outputText value="#{aa}"/>
</h:column>
</rich:suggestionbox>
</rich:column>
</rich:datatable>