False alarm!

It turns out the problem was me including the <h:form> in the facelet template. Moving it out into the document solved the spurious submit problem :)

Sorry...

On 9/18/06, Grant Smith <[EMAIL PROTECTED]> wrote:
I'm hoping someone with extensive knowledge of the Tomahawk DataTable component can weigh in on this one. It appears that if I use the component in a facelets environment with preserveDataModel = "false", and binding directly to a Datamodel, the very first form submission fails. Subsequent submissions MOSTLY work, but it's very hard to pinpoint when they do or don't. I've included a snippet of my code. If I remove the dataTable component, or set preserveDataModel to "true", the form submits perfectly every time. Has anyone else seen similar symptoms ?


<t:document xmlns="http://www.w3.org/1999/xhtml "
            xmlns:ui=" http://java.sun.com/jsf/facelets"
            xmlns:h="http://java.sun.com/jsf/html"
            xmlns:f="http://java.sun.com/jsf/core "
            xmlns:t="http://myfaces.apache.org/tomahawk">
<ui:composition template="decorators/tplate.xhtml">

    <ui:define name="title">
        <h:outputText value="Construction Schedule ::::: Inspection Date #{schedulePaged.inspectionDate} ::::: Page #{schedulePaged.pageNo}"/>
    </ui:define>
    <ui:define name="jsfunctions">
        <script src="" type="text/_javascript_"></script>
    </ui:define>

    <ui:define name="body">
        <t:dataTable id="schedulePagedTable"
                     styleClass="scheduleTable"
                     headerClass="schedHead"
                     footerClass="schedHead"
                     columnClasses="scheduleColumn"
                     rowClasses="scheduleRow"
                     var="sc"
                     value="#{schedulePaged.scheduleDataModel}"
                     preserveDataModel="false"
                     preserveSort="false"
                     rendered="#{globalOptions.currentDraw.open}"
                    
                    
                     rowOnMouseOver='setRowColor(this,"#e5e5f1")'
                     rowOnMouseOut="setRowColor(this,'')"
                     rowOnKeyDown="setRowColor(this,'')"
                     rowOnKeyUp='setRowColor(this,"#e5e5f1")'
                     cellpadding="0"
                     cellspacing="0">

etc..



--
Grant Smith



--
Grant Smith

Reply via email to