Ok, I am stubborn.. because it worked fine in T4 without the form.

But it is housed within a form... from the Home.tml... the form just isnt 
apparently visible inside the code of my widget.

Home.tml

    <t:form t:id="galleryForm" id="galleryForm" clientValidation="true" >
        <t:errors/>
        
        <t:Gallery t:id="galleryWidget" id="galleryWidget"
            collectionType="coachClass"
            itemsPerPage="itemsPerPage"
            tableColumns="tableColumns"
            cursor="cursor"
            />

    </t:form>

onchange="this.form.submit()" should work

ok I will get out the firebug and see what gives inside the dom

Best regards 
and thanks... KEN

From: nhhockeypla...@hotmail.com
To: users@tapestry.apache.org
Subject: RE: form and select component
Date: Fri, 26 Oct 2012 00:37:24 -0400





<select t:type="Select" t:id="itemsPerPageSelect" 
t:clientId="itemsPerPageSelect" id="itemsPerPageSelect"
    t:model="literal:5,10,15,25,50,100,250,500,1000,5000,10000"
    t:value="itemsPerPage"
    
onchange="obj=document.getElementById('itemsPerPageSelect');Event.fire(obj,'change');"
    
    />

this one doesnt invoke the handler either

but I changed handkler to the following

    @Component(id="itemsPerPageSelect", parameters = { "value=itemsPerPage", 
"clientId=itemsPerPageSelect" })
    private Select itemsPerPageSelect;
    
    @OnEvent(value = EventConstants.VALUE_CHANGED, component = 
"itemsPerPageSelect")

    public void onValueChangedItemsPerPageSelect(int value)
    {
    }
                                                                                
  

Reply via email to