Bertrand Delacretaz wrote:
This has been discussed on users@ already [1], just wanted to note it here FYI.

Specifically, flowscript code such as

var shapeId = cocoon.request....
switch (shapeId){
        case "square":
       // dosomething

did not dosomething anymore when shapeId=="square", although it worked in past releases (in the "shapes" sample of the tour block).

I've changed it to if/else to be on the safe side (also in the trunk), and in [1] Reinhard mentions that the new Rhino fixes this. Dunno since when this is broken, but it might mean a small incompatibility between 2.1.x releases.

-Bertrand

[1] http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=110865972811342&w=2


That's strange. Chris' original Rhino implementation hasn't changed for ages and so I don't have an idea why "switch" doesn't work anymore. I was thinking that it had never worked and in 2.2 the latest Rhino fixed this bug ... but this seems to be a wrong assumption.


--
Reinhard P�tz Independant Consultant, Trainer & (IT)-Coach


{Software Engineering, Open Source, Web Applications, Apache Cocoon}

                                       web(log): http://www.poetz.cc
--------------------------------------------------------------------

Reply via email to