You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by j haley <jh...@hotmail.com> on 2008/12/10 22:57:36 UTC
Tomahawk - jsValueChangeListener bodyTagEvent="onload"
Not sure what’s going on but I can’t get my t:jsValueChangeListener to invoke it’s body tag event. I’m trying to run my my jsValueChangeListener code when the page loads. When I view source after the page has been generated, the body tag does not have a onload event. I know my expressions are working because they work fine after the page has loaded. Any ideas?
I’m using MyFaces 1.2.5 with Tomahawk 1.1.8.
<h:panelGroup> <h:selectOneMenu value="#{quote.moveInfo.priceListTC}" > <f:selectItems value="#{moveInfoCtrl.priceTypeList}"/> <t:jsValueChangeListener for="discountText" bodyTagEvent="onload" expressionValue="($srcElem.options[$srcElem.selectedIndex].value=='' || $srcElem.options[$srcElem.selectedIndex].value=='UVL01' || $srcElem.options[$srcElem.selectedIndex].value=='MT01')? $destElem.style.display='inline':$destElem.style.display='none';"/> <t:jsValueChangeListener for="bookerAdjText" bodyTagEvent="onload" expressionValue="($srcElem.options[$srcElem.selectedIndex].value=='GPP' || $srcElem.options[$srcElem.selectedIndex].value=='FSC')? $destElem.style.display='inline':$destElem.style.display='none';"/> </h:selectOneMenu></h:panelGroup>
<t:outputLabel forceId="true" id="discountText" value="Discount" /><t:outputLabel forceId="true" id="bookerAdjText" value="Booker Adjustment" />
_________________________________________________________________
Suspicious message? There’s an alert for that.
http://windowslive.com/Explore/hotmail?ocid=TXT_TAGLM_WL_hotmail_acq_broad2_122008