cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From freeq1986 <freakman1...@gmail.com>
Subject problem with adding dynamic attribute to cocoon widget
Date Tue, 19 May 2009 13:11:24 GMT

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


Mime
View raw message