You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by su...@gmx.de on 2008/12/10 23:16:11 UTC

Weird T5 behaviour with forms

I have placed a form with a text-input and submit button on a page and it all worked.

Then I have added a second form with another text-input and a submit button on the same page.

When I click on the second textfield to enter a value, the form is submitted on the "onfocus" event.

The methods are:

void onSelectedFromAddCategory()

and

void onSelectedFromAddValue()


The HTML:

 <div class="newCategory">
			  <form t:type="Form" >
			  <div class="newCategoryFields">
            	  	<span class="heading">New category:</span><span>
<t:textfield value="categoryName"/></span>
	    	        <span><t:submit t:id="addCategory"/></span>
	    	  </div>
			  </form>
		  </div>


 <div class="newCategory">
			  <form t:type="Form" >
			  <div class="newCategoryFields">
            	  	<span class="heading">New value:</span><span><t:textfield value="valueName"/></span>
	    	        <span><t:submit t:id="addValue"/></span>
	    	  </div>
			  </form>
		  </div>

Why does this happen?

Thanks!

Toby

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tapestry.apache.org
For additional commands, e-mail: users-help@tapestry.apache.org