cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Grzegorz Kossakowski (aka g[R]eK) (JIRA)" <j...@apache.org>
Subject [jira] Skomentowane: (COCOON-1777) fd:on-value-changed does not work with fd:multivaluefield
Date Thu, 16 Feb 2006 18:41:09 GMT
    [ http://issues.apache.org/jira/browse/COCOON-1777?page=comments#action_12366658 ] 

Grzegorz Kossakowski (aka g[R]eK) commented on COCOON-1777:
-----------------------------------------------------------

I checked it using yesterday checkout of 2.1.9-dev and results are not satisfying. Using "double-listbox"
styling events are invoked after clicking on option in listbox. It is not expected behaviour,
it was mentioned before: http://article.gmane.org/gmane.text.xml.cocoon.user/36805

I'll be busy until Sunday, but then I'll try to make a patch repairing this problem.

> fd:on-value-changed does not work with fd:multivaluefield
> ---------------------------------------------------------
>
>          Key: COCOON-1777
>          URL: http://issues.apache.org/jira/browse/COCOON-1777
>      Project: Cocoon
>         Type: Bug
>   Components: Blocks: Forms
>     Versions: 2.1.8
>     Reporter: Grzegorz Kossakowski (aka g[R]eK)

>
> Element fd:on-value-changed seems to not work with fd:multivaluefield. I have tried it
using Cocoon samples, more specifically I changed fd:multivaluefield[@id='drinks'] to:
>     <fd:multivaluefield id="drinks">
>       <fd:label>Indicate which 2 of the following drinks you'd like to receive:</fd:label>
>       <fd:datatype base="string"/>
>       <fd:validation>
>         <fd:value-count exact="2"/>
>       </fd:validation>
>       <fd:selection-list>
>         <fd:item value="Maes"/>
>         <fd:item value="Jupiler"/>
>         <fd:item value="Leffe"/>
>         <fd:item value="Hoegaarden"/>
>         <fd:item value="Coca Cola"/>
>       </fd:selection-list>
>       <fd:on-value-changed>
>         <javascript>
>           java.lang.System.err.println("Drinks value changed: " + event.newValue);  
                     
>         </javascript>
>       </fd:on-value-changed>
>     </fd:multivaluefield> 
> So I just added fd:on-value-changed but nothing happend when I was trying to change values
of this field. I have no problem with normal field widgets, events work perfectly. I am also
sure that it's not client/styling issue because I found that in form instance xml normal field
widget have @listening attribute but multivalue field have not.
> I don not know how to debug Cocoon so I am not able to continue investigation.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


Mime
View raw message