[jboss-user] [JBoss Seam] - Re: dynamic dataTable

damianharvey do-not-reply at jboss.com
Thu Aug 2 13:17:03 EDT 2007


Use ajax. Much nicer ;)

  | <rich:dataTable id="myTableId" value="#{myBean.myList}" var="row">
  |  ...etc
  | 

  | <a4j:commandLink action="#{myBean.addNewListEntry}" reRender="myTableId">Add New Row</a4j:commandLink>
  | 

  | public void addNewListEntry() {
  |     this.myList.add(new WhateverObject());
  | }
  | 


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

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



More information about the jboss-user mailing list