You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by freeq1986 <fr...@gmail.com> on 2009/05/19 15:11:24 UTC
problem with adding dynamic attribute to cocoon widget
Hi,
im trying to dynamically add attribute for my cocoon widget. Code:
<div class="filterField">
<ft:widget id="field_cancelledPolicies_001">
<xsl:if
test="/page/state/elem[@label='field_cancelledPolicies_001'] = ''">
<xsl:attribute name="onchange">
test()
</xsl:attribute>
</xsl:if>
<fi:styling class="fill-form-value firstInputField
datefield" size="12"/>
</ft:widget>
</div>
<xsl:if
test="/page/state/elem[@label='field_cancelledPolicies_001'] = ''" >
<h1>AAac</h1>
</xsl:if>
and i cant add onchange attribute field_cancelledPolicies_001 in that way.
Suprisingly its working when i made normal field from it... but i need it in
widget. Whats the problem? (AAac is visible on site so i check variable
properly)
thanks in advance
-michal
--
View this message in context: http://www.nabble.com/problem-with-adding-dynamic-attribute-to-cocoon-widget-tp23616110p23616110.html
Sent from the Cocoon - Users mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org