Yes! <h:form> and <f:view>!
Regards,
Nicola

 
On 10/3/05, [EMAIL PROTECTED] <[EMAIL PROTECTED] > wrote:
Do you have a <h:form> Component around your datatable?
Regards,
Andy
-----Ursprüngliche Nachricht-----
Von: Enrico Nicola Mirco [mailto: [EMAIL PROTECTED]]
Gesendet: Montag, 3. Oktober 2005 11:38
An: [email protected] ; [email protected]
Betreff: Problem with x:commandLink inside a x:dataTable and session scope table data

Hi,
We have a problem with x:commandLink inside x:dataTable: the action doesn't work!!
In other previous posts I read that the data for datatable must be in session scope: this is our situation!
We use the last nightly. This code worked fine until release the 1.1.0.
 
<x:dataTable id="table1" binding="#{beanPage1.dataTableUsers}" value="#{beanSessionArrayList}" var="rowData">

  <x:column>
    <x:outputText value="#{rowData.name}"/>
  </x:column>

  <x:column>
    <x:commandLink action="">      <x:graphicImage url="" title="Delete" border="0"/>
    </x:commandLink>
  </x:column>                                                                          

</x:dataTable>


/* JAVA BACK-BEAN CODE */
import org.apache.myfaces.component.html.ext.HtmlDataTable;
public class Page1 {

    private HtmlDataTable m_dataTableUsers;
   
    public Page1() {
    }

    public HtmlDataTable getDataTableUsers() {
        return m_dataTableUsers;
    }

    public void setDataTableUsers(HtmlDataTable dataTableUsers) {
        this.m_dataTableUsers = dataTableUsers;
    }

    public String DeleteUser() {
 // some instructions
        return null;
    }

}

Back-bean is in request scope and beanSessionArrayList is an ArrayList in session scope, that is cleared and populated in back-bean.

Any suggestions?

Thanks

Nicola


~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ This email and any files transmitted with it are confidential and intended solely for the use of the individual or entity to whom they are addressed. If you have received this email in error please notify your system manager. This footnote also confirms that this email message has been swept for the presence of computer viruses. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Reply via email to