-
1. Re: Avoid calling onchange event on page load?
nbelaevski Feb 10, 2010 6:11 AM (in response to boy18nj)Hi,
Do you mean called on the client side?
-
2. Re: Avoid calling onchange event on page load?
boy18nj Feb 10, 2010 9:54 AM (in response to nbelaevski)Yes, it is on the client side. I donot want onchange should take place when page loads or refreshes.
I want onchange event should only take place when the user select the menu item.
-
3. Re: Avoid calling onchange event on page load?
ilya_shaikovsky Feb 10, 2010 10:17 AM (in response to boy18nj)I can't get what the
#{collatRptCatgryMapList.typeId.setMtr(0)}
statement means in onchange. But yes, this EL will be evaluated during encoding
-
4. Re: Avoid calling onchange event on page load?
boy18nj Feb 10, 2010 10:41 AM (in response to ilya_shaikovsky)#{collatRptCatgryMapList.typeId.setMtr(0)}
Basically this statement resets the mtr variable value to 0 during onchange event. Here I am actually removing the restrictions from EntityQuery component collatRptCatgryMapList.
But yes, this EL will be evaluated during encoding
By encoding you mean to say during page load the encoding that happens.
Well I have used an workaround, using it as a value expression inside the valueChangeListener method on java side. This won't be called on page load. It will be only called when the user select's the menu item.
Thanks Ilya.