[jboss-user] [JBoss Seam] - Re: a4j vs valuechangelistener

damianharvey do-not-reply at jboss.com
Thu Jun 21 10:10:50 EDT 2007


What you were pointed to in the A4j forum was a link to reRender only part of your ui:repeat. If you'd just like to reRender the whole thing, I find wrapping things like this in <s:div> to be very helpful. eg.


  | <a:region>
  |           <s:div id="blogEntriesDiv">
  |             <ui:repeat id="listt" var="listvar" value="#{NewBlogEntryComponent.blogEntry_be.tags}">
  |               <h:outputText value="#{listvar} "/>  
  |               <a:commandButton value="Delete" reRender="foo" action="#{NewBlogEntryComponent.remove(listvar)}"/>
  |               <br />
  |             </ui:repeat>
  |           </s:div>
  |           <br />
  |           <s:decorate>
  |             <h:selectOneMenu id="tags1" value="#{dev.nulll}" valueChangeListener="#{NewBlogEntryComponent.listener}">
  |              <s:selectItems var="field" label="#{field.toString}" value="#{AllTag}" noSelectionLabel="Please select : " />
  |              <s:convertEntity/>
  |              <a:support event="onchange" reRender="blogEntriesDiv" bypassUpdates="true" />
  |            </h:selectOneMenu>
  |           </s:decorate> 
  | </a:region>
  | 

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4056519#4056519

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4056519



More information about the jboss-user mailing list