tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From superoverdr...@gmx.de
Subject Weird T5 behaviour with forms
Date Wed, 10 Dec 2008 22:16:11 GMT
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


Mime
View raw message