You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by yaswanthbs <ya...@gmail.com> on 2012/08/22 17:20:44 UTC

onValueChangedFromAddressChange not working

Hi,
I am writing the below code
<form t:type="form" >
      	<select t:id="addressChange" id="addressChange"
style="width:195px;"></select>
      
      	<t:if t:test="showCategoryFilter">
      		 # hello 
      	</t:if>
      	
      </form>

and in java

@Property
	List<String> orderList;
	
	@Property
	private boolean showCategoryFilter;
	
	@Component(id = "addressChange", parameters = {
"model=orderList","blankOption=NEVER", "value=NULL" })
	private Select _addressChange;
	
	@SetupRender
	void setuprender() {
		orderList = new ArrayList<String>();
		orderList.add("one");
		orderList.add("two");
		orderList.add("three");
	}
	
	public void onValueChangedFromAddressChange() {
		System.out.println("came here");
		showCategoryFilter = false;
	}

when I am changing the value in dropdown box,
onValueChangedFromAddressChange is not invoking. Please help me regarding
this example. 



--
View this message in context: http://tapestry.1045711.n5.nabble.com/onValueChangedFromAddressChange-not-working-tp5715718.html
Sent from the Tapestry - Dev mailing list archive at Nabble.com.

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


Re: onValueChangedFromAddressChange not working

Posted by Thiago H de Paula Figueiredo <th...@gmail.com>.
Please post in the users mailing list.

On Wed, 22 Aug 2012 12:20:44 -0300, yaswanthbs <ya...@gmail.com>  
wrote:

> Hi,
> I am writing the below code
> <form t:type="form" >
>       	<select t:id="addressChange" id="addressChange"
> style="width:195px;"></select>
>      	<t:if t:test="showCategoryFilter">
>       		 # hello
>       	</t:if>
>       	
>       </form>
>
> and in java
>
> @Property
> 	List<String> orderList;
> 	
> 	@Property
> 	private boolean showCategoryFilter;
> 	
> 	@Component(id = "addressChange", parameters = {
> "model=orderList","blankOption=NEVER", "value=NULL" })
> 	private Select _addressChange;
> 	
> 	@SetupRender
> 	void setuprender() {
> 		orderList = new ArrayList<String>();
> 		orderList.add("one");
> 		orderList.add("two");
> 		orderList.add("three");
> 	}
> 	
> 	public void onValueChangedFromAddressChange() {
> 		System.out.println("came here");
> 		showCategoryFilter = false;
> 	}
>
> when I am changing the value in dropdown box,
> onValueChangedFromAddressChange is not invoking. Please help me regarding
> this example.
>
>
>
> --
> View this message in context:  
> http://tapestry.1045711.n5.nabble.com/onValueChangedFromAddressChange-not-working-tp5715718.html
> Sent from the Tapestry - Dev mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@tapestry.apache.org
> For additional commands, e-mail: dev-help@tapestry.apache.org
>


-- 
Thiago H. de Paula Figueiredo

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