cocoon-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Leszek Gawron <lgaw...@apache.org>
Subject Re: [Poll] JXTG vs. CForms
Date Sat, 26 Feb 2005 20:00:59 GMT
Carsten Ziegeler wrote:
> Leszek Gawron wrote:
> 
>>
>> Still there is one thing in trunk I do not like which breaks jxtg 
>> compatibility. It is the removal of wrappers around request, session 
>> etc. Because of that all users will be forced to change from 
>> ${cocoon.session.user.id} to 
>> ${cocoon.session.getAttribute('user').id}. Took me 2 hours to upgrade 
>> the smallest project I have to cocoon trunk. It will take at least few 
>> days to convert a project with 200+ templates. I'm already scared of 
>> bugs that it will introduce.
>>
>> The fact that new syntax sucks is the least of the problems.
>>
> I agree that the syntax really sucks - but the old way was really very 
> confusing. Now I also agree that upgrading by hand is a nightmare. So I 
> would suggest that we simply write an upgrading stylesheet that scans an 
> xml file for ${cocoon.session.SOMETHING} where SOMETHING is not a method 
> on the session object and replaces this with the proper syntax. 
> Shouldn't be too difficult to do this (we can also use a java class 
> instead of xslt - I don't care).
> 
> But the other valid point remains: the syntax. Now, what about:
> ${cocoon.session.attributes.user.id} ?
I could live with that.. :)

-- 
Leszek Gawron                                                 MobileBox
lgawron@apache.org                              http://www.mobilebox.pl

Mime
View raw message