RE: Forms and maps
Mika It all depends on your environment and the rate of change. There are many back-end systems (running on old but reliable technology) that hardly change at all. However, the web (and now tablets/mobile) has a very high rate of change (and expectation of change). The point here is that by using more loosely-coupled modules then you will only have to change the parts that really need to be changed; a monolithic approach is less amenable to that. Derek (And yes, of course, we are all helping to ensure that there are more - not less - jobs in future!) 04/18/12 11:25 AM Absolutely. But trying to stay on the edge of the trends won't fit for us all. And continous rewriting of apps doesn't make any sense. Why on earth we can't create something that would last at least a decade? Half of us would be out of jobs? - mika - On Wed, 18 Apr 2012 10:50:37 +0200, gelo1234 wrote: I totally agree with Robby's opinion. The trend is to use HTML5 on the client side in case of Web apps. Greetings, Greg 18-04-2012 10:27, Robby Pelssers napisał(a): Just my 2 cents on this topic... Cocoon forms was at the time in my eyes a pretty awesome solution to build highly dynamic forms with support for continuations. But as we all know this puts considerable strain on the server side. Gradually we started seeing a tendency towards AJAX (XmlHttpRequests) which is a fancy word for: - no complete page refresh - partial re-rendering of page - only fetching the minimal amount of data - let the browser do the heavy lifting This trend is evolving even further now with Websockets. One could easily say that the same discussions hold for database related technologies. Hibernate was the big revelation, a super abstraction over RDBMS dialects. It greatly reduces portability but it just doesn't always do the right thing (e.g. performance wise) so some people reverted back to plain jdbc wrappers. XSP was very convenient but it allows developers to mix controller / view which is now seen as a bad habit. Avalon was the way forward to configure your components at the time and next dependency injection became the most hyped buzzword. Spring framework and google juice came into play. I guess it's a matter of taste and the willingness to move forward. All (web)frameworks and technologies move forward (willingly or not): - new JDK - newer versions of dependencies - Ant -- maven - ... Recently there were some rants against XSLT (http://www.snoyman.com/blog/2012/04/xslt-rant.html [2] ). Just try transforming XML from your most favorite programming language and you might be in for a surprise. Surely XSLT takes a lot of typing but also XSLT is evolving just as XQuery is. I can only advise to take a good look around and find the best match for your requirements. If that is all about building dynamic forms wicket might be a good fit. Cocoon still is and certainly will be for the near future the best choice for transforming XML. Cheers, Robby -Original Message- From: m...@digikartta.net [3] [mailto:m...@digikartta.net [4]] Sent: Wednesday, April 18, 2012 7:58 AM To: users@cocoon.apache.org [5] Subject: Re: Forms and maps Ciao Alberto, you'll probably right. What comes to Cocoon lifecycle, I don't get it. Has C3 anything in common with C2 except the concept of pipelines? Can you do the same things with it? When C2.2 was published, I fell off the wagon because of techical differences. C3 knocked me out for good. If you think of the user coming from C2.1 environment who has get used to utilize flowscript, templates, cforms, xsp etc and think of him/her trying to get accustomed in C3, I think the least one can say is that he/she will be totally in a faint. I don't either get the eagerness for dumbing all thethe development but if you think something like C2.1 and C2.2, I guess they will be useful for years to go, if you are willing and capable of updating some parts by your own. cheers, - mika - P.S. There are still several actors using C2.0.. On Tue, 17 Apr 2012 22:49:37 +0200, Alberto wrote: On 04/13/2012 07:18 PM, Mika M Lehtonen wrote: Interesting, I am also integrating maps into sites produced with Cocoon 2.1x. I have no answer to you but maybe we could collaborate on this issue? OpenLayers widget would be something! Just some considerations. I like very much cocoon, its philosophy, and the way to produce application with it and especially with forms. But we must remain realistic: in the last years the pace of the develop of cocoon is slow and the next release will be something different. For example, the integration with Wicket seems to be the sign that forms will not be more developed. Due to the fact that I don't know how to develop a new widget for cocoon, I was waiting for some clue or suggest to
Re: Lowering in amount of users' posts?
I think many of us have moved on. Cocoon changed into a direction that did not fit our style of working, and the rest of the world came up with new ideas and approaches that did. I wrote my take on this here: http://headspace.posterous.com/end-of-the-road-for-cocoon http://headspace.posterous.com/djangowards-at-the-crossroads and if you look around, others have commented in the mailing lists and blogs too. Of course, if Cocoon seems the best fit for your needs, please use it - conversely, please don't rush off directly to start using Rails just because its cool. My 2c Derek Daniel Smith 04/17/10 4:42 PM Hi all. First post here. I was looking at the amounts of posts to the cocoon users list, and I see a serious degradation in the amount of posts in recent years. Can anyone point me to why there seems to be a lack of interest in cocoon? Just wondering. I can remember when it was the happening thing... Thanks so much for any info. Daniel -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.
REPOST: Queries in Cocoon 2.1.11 not working with AS protocol?
(From 2008-08-27 - I'm sure someone can check this error very easily?) I am in the process of porting my applications over from Windows to Linux as my development platform. I am now running Cocoon 2.1.11 and Mysql 5.0.67 (was 2.1.8 and 4.0.23) There is one issue I have encountered so far. When running a query of the form: SELECT foo AS bar from mytable The SQLTransformer gives back: sq2:row sq2:footext/sq2:foo /sq2:row instead of: sq2:row sq2:bartext/sq2:bar /sq2:row (I have tested the same query using the MySQL Query Browser and it works as expected.) Does anyone know why this is and how I can fix it? Thanks Derek -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
RE: REPOST: Queries in Cocoon 2.1.11 not working with ASprotocol?
Thanks Robby; the production machine is running Linux and so I had assumed it was *not* a case-problem but more related to my Cocoon and/or MySQL upgrade - and obviously I do not want to upgrade the production server until its running locally... Robby Pelssers robby.pelss...@ciber.com 09/14/09 10:20 AM Not sure if this is important to mention but whenever you port a cocoon application from windows to unix... you'll bound to see exceptions like * FileNotFoundException * table not Found exception All this due to casesensitivity on unix systems... If this is related to this problem I don't know but it's worthwile checking the tablenames thoroughly and comparing them to your queries. Kind regards, Robby -Original Message- From: Derek Hohls [mailto:dho...@csir.co.za] Sent: Monday, September 14, 2009 9:03 AM To: users@cocoon.apache.org Subject: REPOST: Queries in Cocoon 2.1.11 not working with ASprotocol? (From 2008-08-27 - I'm sure someone can check this error very easily?) I am in the process of porting my applications over from Windows to Linux as my development platform. I am now running Cocoon 2.1.11 and Mysql 5.0.67 (was 2.1.8 and 4.0.23) There is one issue I have encountered so far. When running a query of the form: SELECT foo AS bar from mytable The SQLTransformer gives back: sq2:row sq2:footext/sq2:foo /sq2:row instead of: sq2:row sq2:bartext/sq2:bar /sq2:row (I have tested the same query using the MySQL Query Browser and it works as expected.) Does anyone know why this is and how I can fix it? Thanks Derek -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Starting out with Cocoon 2.2
Personally, I would think that Cocoon 2.1 is the most well-developed and stable of the series. 2.0 is really out-of-date. 2.2 might be worth tackling if you're prepared to learn the associated frameworks such as Spring and Hibernate, plus be prepared to do Java coding; but, as many others have pointed out, the documentation is not adequate (not that this problem is unique to 2.2, as you will see by trawling through the dim-and-distant archives). David Beasley david.beas...@publishingtechnology.com 09/10/09 6:46 PM Thanks for everyone's responses. I'm beginning to think that I should use Cocoon 2.0, because at least I know this is well documented. Which is a shame after people have put a lot of effort into developing versions 2.1 and 2.2 ... David Legg wrote: Most of the useful documentation can be found here: - http://cocoon.zones.apache.org/dev-docs/2.2/1159_1_1.html Thanks, yes, I'd already looked at that. Its a handy starting point, but it really only scratches the surface. But you should be aware that this is the 'published' version of the documentation. It may be the case that the 'unpublished' versions are more up to date. To get to them you can click on the link at the bottom of the page where it mentions 'Errors and Improvements'. This link will take you to the Daisy CMS which is what Cocoon members use to write and edit documentation before it gets published. Thanks, I've taken a look. I can see that there's low level documentation there, but not much to give me an overview, put things into context, show how everything hangs together. I would say think seriously before you commit another year or two of your life to learning it! Do you really think that's how long it takes to become proficient in using Cocoon?! I was hoping to knock this off in a few weeks. Isn't that the point of application development frameworks like Cocoon - to make development times an order of magnitude faster? regards David Beasley - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
RE: REPOST: Queries in Cocoon 2.1.11 not working withASprotocol?
Robby I understand. But, as I said before, the same application is currently running fine on both the Windows machine and the existing Linux server. It is partially working on Cocoon 2.1.11 on the new Linux machine. i.e. the app works OK except for the strange transformer result I detailed below; the only difference I can see seems to be the Cocoon version. Robby Pelssers robby.pelss...@ciber.com 09/14/09 11:52 AM Only last week I ran into such an issue where my app was running flawlessly on my development environment but when I deployed it to the QA environment I got following exception: Cannot create handle for transformer SomeTransformer.xslt ... This was due to the fact that my file had two capital letters and in my sitemap I referred to Sometransformer.xslt. on windows this will work so you don't spot the error in time ;-( The same goes for (SQL) tables, columns etc. Your queries run like a charm on windows until you deploy your app on a unix environment. Luckily you'll be able to spot these kinds of mistakes quickly if you keep this in mind. My advise is to use consistently lowercase for your tables/columns so you'll never run into these issues. Cheers. Robby Pelssers -Original Message- From: Derek Hohls [mailto:dho...@csir.co.za] Sent: Monday, September 14, 2009 10:35 AM To: users@cocoon.apache.org Subject: RE: REPOST: Queries in Cocoon 2.1.11 not working withASprotocol? Thanks Robby; the production machine is running Linux and so I had assumed it was *not* a case-problem but more related to my Cocoon and/or MySQL upgrade - and obviously I do not want to upgrade the production server until its running locally... Robby Pelssers robby.pelss...@ciber.com 09/14/09 10:20 AM Not sure if this is important to mention but whenever you port a cocoon application from windows to unix... you'll bound to see exceptions like * FileNotFoundException * table not Found exception All this due to casesensitivity on unix systems... If this is related to this problem I don't know but it's worthwile checking the tablenames thoroughly and comparing them to your queries. Kind regards, Robby -Original Message- From: Derek Hohls [mailto:dho...@csir.co.za] Sent: Monday, September 14, 2009 9:03 AM To: users@cocoon.apache.org Subject: REPOST: Queries in Cocoon 2.1.11 not working with ASprotocol? (From 2008-08-27 - I'm sure someone can check this error very easily?) I am in the process of porting my applications over from Windows to Linux as my development platform. I am now running Cocoon 2.1.11 and Mysql 5.0.67 (was 2.1.8 and 4.0.23) There is one issue I have encountered so far. When running a query of the form: SELECT foo AS bar from mytable The SQLTransformer gives back: sq2:row sq2:footext/sq2:foo /sq2:row instead of: sq2:row sq2:bartext/sq2:bar /sq2:row (I have tested the same query using the MySQL Query Browser and it works as expected.) Does anyone know why this is and how I can fix it? Thanks Derek -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Queries not working with AS protocol?
I am in the process of moving my applications over from Windows to Linux as my development platform. I am now running Cocoon 2.1.11 and Mysql 5.0.67 (was 2.1.8 and 4.0.23) There is one issue I have encountered so far. When running a query of the form: SELECT foo AS bar from mytable The SQLTransformer gives back: sq2:row sq2:footext/sq2:foo /sq2:row instead of: sq2:row sq2:bartext/sq2:bar /sq2:row (I have tested the same query using the MySQL Query Browser and it works as expected.) Does anyone know why this is and how I can fix it? Thanks Derek -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Using textarea WYSIWYG editors?
(with Cocoon 2.1.8 and higher) Given that htmlArea is no longer under development, does anyone have some working example of other editors? I have tried both xinha and tinymce and cannot get either to work... Thanks Derek -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Using textarea WYSIWYG editors?
Hmm. I did follow the instructions and was unable to get the toolbar to display. Do you have any working/sample code that I can try on my side? Thanks Derek Andre Juffer ajuf...@sun3.oulu.fi 07/07/09 1:59 PM Derek Hohls wrote: (with Cocoon 2.1.8 and higher) Given that htmlArea is no longer under development, does anyone have some working example of other editors? I have tried both xinha and tinymce and cannot get either to work... I am using xinha and I can store the XHTML into a native XML database and also place retrieved XHTML back into the editor. I have simply followed the instructions on the xinha website. You should have be sure that the editor returns XHTML (there is setting for this in xinha). There is also an editor available in Dojo toolkit. I have not tried that one. Thanks Derek -- Andre H. Juffer | Phone: +358-8-553 1161 Biocenter Oulu and | Fax: +358-8-553-1141 Department of Biochemistry | Email: andre.juf...@oulu.fi University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/ StruBioCat | WWW: www.strubiocat.oulu.fi NordProt | WWW: www.nordprot.org Triacle Biocomputing | WWW: www.triacle-bc.com - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Cocoon 2.1.11, Java 6 and Maven
+1 On 2009/06/15 at 10:41, in message 5c4168b80906150141r575dbc9ai31a4ee555a28...@mail.gmail.com, warrell harries warrell.harr...@googlemail.com wrote: One of the nice things about the Cocoon 2.1x line is that oldies like me can just use a text editor and the command line. I never found Eclipse was worth the hassle and I was never quite sure what was going on behind the scenes. That risk can stifle progress and burn precious time when you start a new job and your colleagues are wanting to see some results of working on their codebase. they probably aren't sure how things are set-up either and no-one wants to look stupid by admitting their lack of knowledge. Sometimes the niceties of your environment. have to take a back seat to getting a simple tool-chain in place. No help here I'm afraid just the ramblings of an ageing hacker :) 2009/6/12 Peter Horlock peter.horl...@googlemail.com Well, that was pretty dumb of me, that actually worked. Dunno why, I remeber I read I had to say cocoon.sh only. However, now it seems like it build a file called cocoon.jar - I replaced the one I had in my Maven repo with this new one. Are there anywhere any other jar files it generated? E.g.: dependency groupIdcocoon/groupId artifactIdcocoon-xsp/artifactId version2.1.11/version /dependency dependency groupIdcocoon/groupId artifactIdcocoon-chaperon/artifactId version2.1.11/version /dependency dependency groupIdcocoon/groupId artifactIdcocoon-jsp/artifactId version2.1.11/version /dependency dependency groupIdcocoon/groupId artifactIdcocoon-profiler/artifactId version2.1.11/version /dependency dependency groupIdcocoon/groupId artifactIdcocoon-eventcache/artifactId version2.1.11/version /dependency dependency groupIdcocoon/groupId artifactIdcocoon-mail/artifactId version2.1.11/version /dependency dependency groupIdcocoon/groupId artifactIdcocoon-axis/artifactId version2.1.11/version /dependency dependency groupIdcocoon/groupId artifactIdcocoon-taglib/artifactId version2.1.11/version /dependency dependency groupIdcocoon/groupId artifactIdcocoon-forms/artifactId version2.1.11/version /dependency dependency groupIdcocoon/groupId artifactIdcocoon-fop/artifactId version2.1.11/version /dependency Couldn't find any of these files in the build folder. I am not even sure if what I am doing makes any sense - all I am trying to do is to get those strange XML errors in eclipse disapear - some jars overwrite classes of the org.w3c package of Java 6. I guess I still need a proper pom for cocoon, or so... Thanks, Peter -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: [HELP]Cannot convert null to an object.
Someone more savvy than me may be able to see directly what the issue is... what I do is to isolate which part of my code the error is occurring in, then add in some print statements to check that all the variables I *think* have values are not, in fact, actually null instead... then you can start figuring how to test for these, and/or add in some exception handling. On 2009/05/11 at 03:24, in message 574bf1e4cc799142b330cc5c737abefccfc...@naeaphilez05v.nadsusea.nads.navy.mil, Wilmot, Rocky D CIV NAVFAC MW, CI rocky.wil...@navy.mil wrote: Description:org.apache.cocoon.ProcessingException: Error calling continuation at [EcmaError] - file:/var/www/vhosts/navfac.ecatts.com/ecatts/webapps/ROOT/forms/regUserInstallation_NAVY.xml:41:0 at file:/var/www/vhosts/navfac.ecatts.com/ecatts/webapps/ROOT/forms/regUserInstallation_NAVY.xml:41:-1 at resource://org/apache/cocoon/forms/flow/javascript/Form.js:168:-1 at resource://org/apache/cocoon/forms/flow/javascript/Form.js:0:-1 at file:/var/www/vhosts/navfac.ecatts.com/ecatts/webapps/ROOT/flow/userManager.js:0:-1 at map:call - file:/var/www/vhosts/navfac.ecatts.com/ecatts/webapps/ROOT/sitemap.xmap:1473:35 -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
RE: Map serialize flowscript output
Added a blog comment Robby... On 2009/05/12 at 10:42, in message 7c655c04b6f59643a1ef66056c0e095e023cc...@eusex01.sweden.ecsoft, Robby Pelssers robby.pelss...@ciber.nl wrote: Yes... Jasha is right. For the ones interested I wrote a small article on my blog showing you how to create simple dynamic SVG images using Apache Cocoon. http://robbypelssers.blogspot.com/ Cheers, Robby -Original Message- From: Jasha Joachimsthal [mailto:j.joachimst...@onehippo.com] Sent: Tuesday, May 12, 2009 7:03 AM To: users@cocoon.apache.org Subject: Re: Map serialize flowscript output 2009/5/12 Christian Decker decker.christ...@gmail.com: Hi everybody, I've created a transformer for the sitemap that takes a GXL file as input and then applies layout algorithm and then passes the resulting graph on as SVG image. It all works fine, but now I wanted to use JX to fill in a template that would then be transformed and serialized, but I can't get it to work. Apparently the pages I send back with cocoon.sendPage are not transformed. Long story short: I have the following matcher: map:match pattern=project.svg map:call function=projectGraph map:parameter name=screenURI value=screen/screens/project-graph / map:parameter name=projectID value=1 / /map:call map:transform type=gxl2svgTransformer/ map:serialize type=svgxml/ /map:match But this just prints me the filled in template instead of feeding it into the gxl2svgtransformer. The transformers work fine as I already tested them with a simple generate tag. The flowscript sends pages using cocoon.sendPage( cocoon.parameters[ screenURI ], {project :project, dao :dao} ); Somehow I think I got the sitemap concept wrong. Somebody got an idea? With the cocoon.sendPage you're passing the request processing on to the pipeline that matches screenURI. In that pipeline you should do the svg serialisation. Jasha Joachimsthal j.joachimst...@onehippo.com - ja...@apache.org www.onehippo.com Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA 94952-5100 +1 (707) 773-4646 - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
RE: Map serialize flowscript output
Agreed - I learnt using DEF is key to more maintainable and readable code... On 2009/05/12 at 03:09, in message 7c655c04b6f59643a1ef66056c0e095e023cc...@eusex01.sweden.ecsoft, Robby Pelssers robby.pelss...@ciber.nl wrote: If I have time this week I might try to create a more advanced tutorial on creating SVG. - Use xml data as input for the images - The images show basic animation and hyperlinks I can*t really point you to good material at the moment. At the time I did that project (2002) I just googled a lot and created the SVG*s by hand. After that project I completely was thinking in matrix/coordinates ;-) The most difficult stuff I encountered was finding clever algorithms to position my SVG elements on the canvas and having my elemens scale automatically if the use case had to many svg elements to be drawn. Just some quick example of links in SVG: svg xmlns=http://www.w3.org/2000/svg; xmlns:xlink=http://www.w3.org/1999/xlink; a xlink:href=http://cocoon.apache.org/; text x=10 y=20Apache Cocoon/text /a /svg Take a quick look at http://www.w3.org/TR/SVG11/ for additional info. If you were to create the SVG with xslt, you could create a template. Suppose your input looks like: favourites favourite descriptionGoogle: Search engine/description urlhttp://www.google.com/url /favourite favourite descriptionApache Cocoon: Java web development framework/description urlhttp://cocoon.apache.org/ /url /favourite /favourites Xslt snippet: xsl:template mactch=*favourite* a xlink:href=http://cocoon.apache.org/; xsl:attribute name=*xlink:href* select=*url* / !*not 100% sure anymore if this will work with prefix:elementname à text x=10 y=20xsl:value-of select=*description* //text /a /xsl:template One thing to note: Take a look at http://www.w3.org/TR/SVG11/struct.html#DefsElement I did not use this back then but I think it will make life easier and your code more reusable and maintainable. Cheers, Robby From:Christian Decker [mailto:decker.christ...@gmail.com] Sent: Tuesday, May 12, 2009 2:32 PM To: users@cocoon.apache.org Subject: Re: Map serialize flowscript output That's really cool Robby, actually I am trying to do something similar. What I need to do is embed clickable links into the SVG image so that the users can then go to the details page of the item they clicked on. Problem is that I'm using JGraph to do the layout of the graph and I have absolutely no clue on how to pass the link data on through the layouting. Could you point me in the right direction for this? Also the animation stuff sounds cool, do you have some good resources about that topic? Thanks for the help everybody, I'll try that as soon as possible ^^ Regards, Chris -- Christian Decker Software Architect http://blog.snyke.net On Tue, May 12, 2009 at 11:27 AM, Robby Pelssers robby.pelss...@ciber.nl wrote: And here's my response ;-) I posted it on the blog as well. If the images do not require animation you can just serialize the images to png or jpeg for instance. At the first project i ever did with SVG we used animated images for mobile network visualization. It showed extra information if you hovered over the network elements. It also offered hyperlinks to detailed information pages. It was the coolest project i've ever done but we were using the adobe plugin. I guess you're right why the need for a plugin to get all SVG functionality working is a real showstopper ;-( Cheers, Robby -Original Message- From: Derek Hohls [mailto:dho...@csir.co.za] Sent: Tuesday, May 12, 2009 11:12 AM To: users@cocoon.apache.org Subject: RE: Map serialize flowscript output Added a blog comment Robby... On 2009/05/12 at 10:42, in message 7c655c04b6f59643a1ef66056c0e095e023cc...@eusex01.sweden.ecsoft, Robby Pelssers robby.pelss...@ciber.nl wrote: Yes... Jasha is right. For the ones interested I wrote a small article on my blog showing you how to create simple dynamic SVG images using Apache Cocoon. http://robbypelssers.blogspot.com/ Cheers, Robby -Original Message- From: Jasha Joachimsthal [mailto:j.joachimst...@onehippo.com] Sent: Tuesday, May 12, 2009 7:03 AM To: users@cocoon.apache.org Subject: Re: Map serialize flowscript output 2009/5/12 Christian Decker decker.christ...@gmail.com: Hi everybody, I've created a transformer for the sitemap that takes a GXL file as input and then applies layout algorithm and then passes the resulting graph on as SVG image. It all works fine, but now I wanted to use JX to fill in a template that would then be transformed and serialized, but I can't get it to work. Apparently the pages I send back with cocoon.sendPage are not transformed. Long story short: I have the following matcher: map:match pattern=project.svg map:call function=projectGraph map:parameter name=screenURI value=screen/screens/project-graph / map:parameter name=projectID
Re: Form generation
Funny you should ask that; i had the same issue myself a while back: http://www.nabble.com/JX---Flowscipt-variable-not-accessible-in-generated-form--td21684221.html The answer there is the approach I adopted. Derek On 2009/05/12 at 03:31, in message 4a097a27.4050...@oulu.fi, Andre Juffer andre.juf...@oulu.fi wrote: Hi, is the following allowed (in flow): var data = ..; var form = new Form(cocoon://make-form.jx, { data : data } ); The idea is to automatically generate a form definition from given data with jx:forEach. The data object doesn't seem to be passed on. The make-form.jx actually does exactly what it is supposed to do. I tested this with var data = .; cocoon.sendPage(make-form.jx, { data : data } ); and this gives me the right form definition. If new Form(cocoon://make-form.jx, { data : data } ); is not possible, what would be the alternative? -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.
Re: custom serializer
See: http://www.opensubscriber.com/message/users@cocoon.apache.org/4985156.html On 2009/05/11 at 09:14, in message b69d73200905110014p1eec673bq145b4a0ab95f3...@mail.gmail.com, saeid itune saeidit...@gmail.com wrote: Hi, I am trying to create a custom serializer for apache cocoon. the objective of the serializer is to encode the xml data which will be used for flash devices. so i need to take whole xml data in to a string and encode the string and return the output for the user. i have looked at the code for xmlserializer but i have not been able to create my own serializer yet. thanks -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Multi-select fields: items not appearing in form widget
Working with Cocoon 2.1.8. Not sure exactly which component is the root of this problem, but... If I define a multi-select list thus: fd:multivaluefield id=Grouping fd:labelGroups/fd:label fd:hintThe groups which have access/fd:hint fd:datatype base=integer/ fd:selection-list src=cocoon:/db/grouping dynamic=true/ /fd:multivaluefield And show it thus: ft:widget id=Grouping fi:styling list-type=double-listbox style=width:200px listbox-size=12 fi:available-labelAvailable Groups/fi:available-label fi:selected-labelSelected Groups/fi:selected-label /fi:styling /ft:widget The form is displayed and works normally. When trying to use the form to add a new item, the initial (right-hand) selection list is empty. If I use the button to select an item from the left-hand list of choices, it shows up in the right-hand side list as expected. BUT, directly after form submission, the form model has no record of the value selected i.e. model.Grouping is null; and model.Grouping.length is 0. However, if, immediately after making the selection, I then click on the item (that has just appeared) in the right-hand list, then model.Grouping *does* contain the selected item. Surely this is a bug? Can anyone else reproduce it? How can I fix it? Thanks Derek -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: XSLT is Dead ?!
You get very similar functionality for date/time in flowscript; also it seems that XSLT 2.0 can do this via fn:current-dateTime() http://www.w3.org/TR/xpath-functions/#func-current-dateTime (Disclaimer: I have not used 2.0 - but others in this thread have; maybe they can respond here?) On 2009/05/01 at 07:49, in message 49fa8d67.8090...@lampsacos.demon.co.uk, Ken Starks k...@lampsacos.demon.co.uk wrote: oddly enough, the first example of embedded XSP in the Moczar and Aston book is to find the time with a tiny bit of embedded java. xsp:logic Date now = new Date(); /xsp:logic. ... By the way, today's date is xsp:exprnow,/xsp;exp Ken Derek Hohls wrote: Out of interest... which part of Cocoon lacks date/time awareness - the sitemap? Can't a (custom-written) java module execute/call an external program? Also not sure about directory listing - does the Directory Generator not serve in that role? On 2009/04/30 at 02:48, in message 49f99e06.40...@ucc.ie, Peter Flynn pfl...@ucc.ie wrote: Stephen Winnall wrote: [...] I've been using Cocoon almost since the start, and although there are bits I haven't grokked yet, I find it one of the most productive tools around. There are aspects of its design I disagree with (the removal of DTD-detected pipelines from v1.*, the lack of interface to the system like directory listing or date/time awareness, and the inability to execute an external program even when the program generates XML, unless you fake it via a web script), but it's flexible enough to work around most of these. Reports of XSLT's demise are much exaggerated :-) ///Peter - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: XSLT is Dead ?!
The main reason (speaking as a user) I think XSP was deprecated is that it does not fit well with the cocoon mantra of 'separation of concerns' i.e. too easy to mix in markup and code in one place (not that you have to, of course). I also used ESQ/XSP for my early DB apps, but I really find that the flowscript, plus the SQLTransformer does all that, with the added advantage (to me) of no Java being needed. Login is pretty simple with the built-in functions. Of course, these days its all Spring+Hibernate ... maybe one day I will take the giant leap needed for that!! On 2009/04/29 at 06:01, in message 49f879cc.8020...@lampsacos.demon.co.uk, Ken Starks k...@lampsacos.demon.co.uk wrote: Derek Hohls wrote: Ken I would echo most of your sentiments, except for the XSP part. I have found that the flowscript/JXT gives me all the logic/layout options I need ... without having to worry about any Java at all in my apps. I think that is why the developers decided to deprecate XSP quite a while back, though I appreciate that not everybody might think that's such a good idea! Yes I will readily admit to not having explored JXT properly. I happen to quite like ESQL and there is a short bit of XSP for a password-protected Login in the book from which I learned Coccon (Macczar and Aston) ISBN 0 672 32257 9 I don't count either of these as a real preference, its just a if it ain't broke why fix it ? feature for me. How do you use XSLT(2)? I did not think Xalan supported it yet? eg http://xml.apache.org/xalan-j/ http://www.nabble.com/Xalan-J-XSLT-2.0-status-tc5766761r4.html http://www.velocityreviews.com/forums/t364511-xslt-2-processors.html You can get cocoon to use saxon - other people have already replied. One of the two or three bits of non-open source software I use is a good (IMHO) XML editor, Oxygen. sometime last year, they announced that Saxon 2.0 was to be bundled with it for free. (Hooray !). Derek Ken. -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: XSLT is Dead ?!
Out of interest... which part of Cocoon lacks date/time awareness - the sitemap? Can't a (custom-written) java module execute/call an external program? Also not sure about directory listing - does the Directory Generator not serve in that role? On 2009/04/30 at 02:48, in message 49f99e06.40...@ucc.ie, Peter Flynn pfl...@ucc.ie wrote: Stephen Winnall wrote: [...] I've been using Cocoon almost since the start, and although there are bits I haven't grokked yet, I find it one of the most productive tools around. There are aspects of its design I disagree with (the removal of DTD-detected pipelines from v1.*, the lack of interface to the system like directory listing or date/time awareness, and the inability to execute an external program even when the program generates XML, unless you fake it via a web script), but it's flexible enough to work around most of these. Reports of XSLT's demise are much exaggerated :-) ///Peter -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: XSLT is Dead ?!
Ken I would echo most of your sentiments, except for the XSP part. I have found that the flowscript/JXT gives me all the logic/layout options I need ... without having to worry about any Java at all in my apps. I think that is why the developers decided to deprecate XSP quite a while back, though I appreciate that not everybody might think that's such a good idea! How do you use XSLT(2)? I did not think Xalan supported it yet? eg http://xml.apache.org/xalan-j/ http://www.nabble.com/Xalan-J-XSLT-2.0-status-tc5766761r4.html http://www.velocityreviews.com/forums/t364511-xslt-2-processors.html Derek On 2009/04/25 at 10:32, in message 49f2ca9d.2090...@lampsacos.demon.co.uk, Ken Starks k...@lampsacos.demon.co.uk wrote: Antonio Gallardo wrote: hi Derek, Comparing XSLT with JSP is like comparing pears and apples. XSLT is quite useful for some tasks and weak in others. The same apply for JSP. We still use XSLT even if you have JSP at hand. In cocoon particular wolrd, perhaps he should compare JSP with XSP. I did not read the whole article, but looks the author forgot there is a XSLT 2.0. Anyway, who cares? ;) About freemaker, I guess there are some threads about it in our mail archive [1]. Hope this helps. Best Regards, Antonio Gallardo. [1] http://cocoon.markmail.org/search/?q=freemaker I hardly think 'pears and apples' are a good simile, they are far too similar to one another. Perhaps 'oranges and apples' or even 'sausages and marmalade'. By the way, sausages and marmalade go very well together. My main complaint is that XSP is deprecated in Cocoon 2.2, in fact it seems to be sneered-at. For me, it provides just the tiny amount of Java I need - I still don't want to learn the language thoroughly. It comes below both ruby and even Acrobat javascript for me. Python has always been more useful, and now the adobe Flex environment looks pretty alluring - in all of these I use XML, and often it is obtained from a localhost Cocoon pipeline. Cocoon 2.1.x - love it XSLT (2) - love it XSP - love it Eclipse, XML, XML-Schema, other XML tools - love 'em all ! Cocoon 2.2 - too much java needed, not backward-compatible enough, (Database connection) a few other grumbles. will re-evaluate it in 12 months or so, but I have already wasted too much time for this year Cocoon 2.3 - not powerful enough for my needs, last time I looked Bye for now, Ken. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: XSLT is Dead ?!
Antonio True - but it would be useful to tell the original author this as well! PS it is Freemarker (not maker) [1] http://cocoon.markmail.org/search/?q=freemarker On 2009/04/24 at 10:07, in message 49f21bea.7030...@agssa.net, Antonio Gallardo agalla...@agssa.net wrote: hi Derek, Comparing XSLT with JSP is like comparing pears and apples. XSLT is quite useful for some tasks and weak in others. The same apply for JSP. We still use XSLT even if you have JSP at hand. In cocoon particular wolrd, perhaps he should compare JSP with XSP. I did not read the whole article, but looks the author forgot there is a XSLT 2.0. Anyway, who cares? ;) About freemaker, I guess there are some threads about it in our mail archive [1]. Hope this helps. Best Regards, Antonio Gallardo. [1] http://cocoon.markmail.org/search/?q=freemaker Derek Hohls escribió: At least, according to this article: http://java.dzone.com/news/death-xslt-web-frameworks Maybe some of the developers, or other power users here, would like to comment at this blog - I see Cocoon also gets a dig in the ribs ... Derek PS I'm also curious about the package mentioned a number of times: http://freemarker.org/ Anyone used it? Is it compatible with Cocoon and if so how? (seems to create really fast transforms of XML documents) - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: XSLT is Dead ?!
Carsten I had hoped comments like these would be added to the blog :) One other point, you say: The attraction of Cocoon as a separate framework has decreased, but that's definitely not due to XSLT. Why do you say Cocoon's attractiveness is decreasing... should we all be looking around for a new framework to hop onto? (I'm genuinely curious here, not trolling, because the older frameworks like JSP and Struts still seem to be going strong and so I'm wondering what it is about Cocoon that is making it :go out of fashion: ) Thanks Derek On 2009/04/24 at 08:40, in message 49f15ece.5000...@apache.org, Carsten Ziegeler cziege...@apache.org wrote: Derek Hohls wrote: At least, according to this article: http://java.dzone.com/news/death-xslt-web-frameworks Maybe some of the developers, or other power users here, would like to comment at this blog - I see Cocoon also gets a dig in the ribs ... Without commenting on this specific article, my only general comment is that you'll find articles for specific technologies/projects and you'll find as many articles against these (I guess the most famous topic in our area is Maven). Who's is wrong and who's right? Or more important: is there such an easy answer? I definitly doubt this. There isn't such a thing as the one programming language that rules the world or the one framework that makes everyone happy and is the golden hammer. Everyone is free to use what he thinks works best for him. Ok, coming back to the original topic :) Looking at the past 9 years where I've been using Cocoon and done a lot of projects with Cocoon and XSLT, I think it was a great tool by the time. And XSLT helped a lot in getting up to speed (once you managed the high entrance barrier to Cocoon itself). There are a lot of use cases still today for XSLT when it comes to create web sites. It really helps to separate the content from the layout. But in the end that's a matter how you design your application. I see a lot of people using other frameworks than Cocoon and pass the output from that framework to XSLT after the framework has rendered the content. So I don't think that XSLT itself is dead. The attraction of Cocoon as a separate framework has decreased, but that's definitly not due to XSLT. Carsten -- Carsten Ziegeler cziege...@apache.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: XSLT is Dead ?!
Oh, and on the flip side, there's this article: http://www.onenaught.com/posts/8/xslt-in-server-side-web-frameworks (but I would guess that is preaching to the converted on this mailing list!) On 2009/04/24 at 09:03, in message 49f1805f.5ce9.00d...@csir.co.za, Derek Hohls dho...@csir.co.za wrote: Carsten I had hoped comments like these would be added to the blog :) One other point, you say: The attraction of Cocoon as a separate framework has decreased, but that's definitely not due to XSLT. Why do you say Cocoon's attractiveness is decreasing... should we all be looking around for a new framework to hop onto? (I'm genuinely curious here, not trolling, because the older frameworks like JSP and Struts still seem to be going strong and so I'm wondering what it is about Cocoon that is making it :go out of fashion: ) Thanks Derek On 2009/04/24 at 08:40, in message 49f15ece.5000...@apache.org, Carsten Ziegeler cziege...@apache.org wrote: Derek Hohls wrote: At least, according to this article: http://java.dzone.com/news/death-xslt-web-frameworks Maybe some of the developers, or other power users here, would like to comment at this blog - I see Cocoon also gets a dig in the ribs ... Without commenting on this specific article, my only general comment is that you'll find articles for specific technologies/projects and you'll find as many articles against these (I guess the most famous topic in our area is Maven). Who's is wrong and who's right? Or more important: is there such an easy answer? I definitly doubt this. There isn't such a thing as the one programming language that rules the world or the one framework that makes everyone happy and is the golden hammer. Everyone is free to use what he thinks works best for him. Ok, coming back to the original topic :) Looking at the past 9 years where I've been using Cocoon and done a lot of projects with Cocoon and XSLT, I think it was a great tool by the time. And XSLT helped a lot in getting up to speed (once you managed the high entrance barrier to Cocoon itself). There are a lot of use cases still today for XSLT when it comes to create web sites. It really helps to separate the content from the layout. But in the end that's a matter how you design your application. I see a lot of people using other frameworks than Cocoon and pass the output from that framework to XSLT after the framework has rendered the content. So I don't think that XSLT itself is dead. The attraction of Cocoon as a separate framework has decreased, but that's definitly not due to XSLT. Carsten -- Carsten Ziegeler cziege...@apache.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
AW: Re: XSLT is Dead ?!
Chris I had to smile - here you say: the Maven build-process, the maven-plugins needed and the changes in the project-structures gave me the impression of relearning the entire thing from scratch. while in the next breath you talk about the simplicity of a Spring+(Flex+BlazeDS)/CXF+Aegis application - which has more API (acronyms - per - inch) than I could shake a stick at! Guess I'm just not keeping up anymore [shakes head] and I'm not (yet) convinced that its time to either move to Cocoon 2.2/3 or leave Cocoon altogether... Derek On 2009/04/24 at 03:27, in message 202a1a1e28af7c42be78cc28cf94a27501f6a92...@cwareserver1.intern.c-ware.de, Christofer Dutz christofer.d...@c-ware.de wrote: Hi, I have to confirm the first part of your post. I have been using Cocoon since 1.0.8 (I think) ... those were the times with processing-instructions, plain-xsp and no sitemap whatsoever and have used it in a number of projects very successfully. Currently I am considering using other frameworks for my newer projects though. 1. Starting a large and complex Cocoon project without a local Cocoon-Guru is very dangerous. 2. There are so many components involved in serving a response, that it's sometimes impossible to track errors back to the cause. 3. Even if I may be able to find these problems, it turns out that in larger projects I'm the only one permanently sorting out the problems, because I'm the only one able to find them (There is a really big difference between being able to solve a task using Cocoon and to understanding how Cocoon thinks) ... so I end up solving problems while all the others do the cool and fun stuff. 4. It is almost impossible to find employees that are willing and able to withstand the increasingly steep learning curve. I end up assisting them more time than they save me. So from a financial point of view this is not very good. 5. The step from Cocoon 2.x to Cocoon 2.2 was at least as challenging as the step from 1.x to 2.x (from my point of view). Even if you have a full understanding of Cocoons internals, the Maven build-process, the maven-plugins needed and the changes in the project-structures gave me the impression of relearning the entire thing from scratch. I had to try setting up a Cocoon 2.2 project 4-5 times until I finally managed to understand what I was doing (Most of the examples available only tell you what to do and not why). I have to admit that I have done Projects with Cocoon on my own, which I probably wouldn't have ben able to achieve using 4-5 Employees in the same time. I have done Projects with 4-5 Employees and ended up in supporting and coaching them with almost the same result als if I would have done it alone. On the bottom line, for me Cocoon is great for doing middle-sized projects on my own, because I am very familiar with the whole thing. As soon as the Project size exceeds my own working capacity and I need to do the Project with several people, I won't use Cocoon any more. Perhaps someday there will be a good Book on Cocoon 2.2 as the one done by Stephan Niedermeier which would enable me to tell my employees Here Read this and let me work ;-) ... I'd come back to Cocoon. But I have to admit that the simplicity of a Spring+(Flex+BlazeDS)/CXF+Aegis application is far more tempting for me at the moment because of its simplicity. Chris Von: Merico Raffaele [raffaele.mer...@less.ch] Gesendet: Freitag, 24. April 2009 14:17 An: users@cocoon.apache.org Betreff: AW: Re: XSLT is Dead ?! Dear Cocoon Community First of all I have to say that I am a Cocoon lover. We are working with this framework since 2005 and we have developed many different types of applications that include: - integration of a legacy system with WebServices - complex e-commerce solutions - graphical rendering of data with fins - or just simple web sites Our experience is that Cocoon is a stable and scalable framework. Furthermore it does a great job concerning the separation of concerns. Now I come the point. What I did not like on Cocoon was the way XSLT was used to render the final output. Therefore I developed XSLTg (an XML template engine) that centres the XML template by supporting full standard XSLT/XPATH 2.0. I took me some time to publish a documentation that is up to date. Now you can find it under http://www.xsltg.com. I am convinced that XSLTg solves many of the problems addressed in the article. Please have a look and let me know what you think about and if http://www.xsltg.com may be able to become a part of Cocoon. Many thanks in advance Raffaele PS: Be warned, my English is not really the best. Improvements are welcome, I will be happy to clarify any obscurities. -Ursprüngliche Nachricht- Von: Derek Hohls [mailto:dho...@csir.co.za] Gesendet: Freitag, 24. April 2009 09:14 An: users@cocoon.apache.org Betreff: [!! SPAM] Re: XSLT is Dead ?! Oh, and on the flip side, there's this article: http
XSLT is Dead ?!
At least, according to this article: http://java.dzone.com/news/death-xslt-web-frameworks Maybe some of the developers, or other power users here, would like to comment at this blog - I see Cocoon also gets a dig in the ribs ... Derek PS I'm also curious about the package mentioned a number of times: http://freemarker.org/ Anyone used it? Is it compatible with Cocoon and if so how? (seems to create really fast transforms of XML documents) -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: How to make cocoon session longer?
And, just for completeness - what is the way to set this in the sitemap (e.g. after a user logs in)? On 2009/04/18 at 06:01, in message 49e9f93e.60...@cc.oulu.fi, Andre Juffer ajuf...@sun3.oulu.fi wrote: Maria Grigorieva wrote: I'm using flowscript and when I left the page for some time, and then trying to change the field's value, I've got request failed. Maybe it depends on the default cocoon's session time? How can I change this time (to make it for example 20 minutes)??? You can change this with cocoon.session.setMaxInactiveInterval(10800); // 3 hours: 3 * 60 * 60 (argument is in seconds). -- Andre H. Juffer | Phone: +358-8-553 1161 Biocenter Oulu and | Fax: +358-8-553-1141 Department of Biochemistry | Email: andre.juf...@oulu.fi University of Oulu, Finland | WWW: www.biochem.oulu.fi/Biocomputing/ StruBioCat | WWW: www.strubiocat.oulu.fi NordProt | WWW: www.nordprot.org Triacle Biocomputing | WWW: www.triacle-bc.com - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: newbie to Cocoon
Wow - too much to even mention in one email; the whole underlying architecture has changed quite a lot! Best to read on the web site and then ask more specific questions. On 2009/04/09 at 03:43, in message 438973.5178...@web8903.mail.in.yahoo.com, I HARIKRISHNA ihk...@yahoo.co.in wrote: Hi I would like to know the new feature of Cocoon? Thanks HariKrishna --- On Thu, 4/9/09, Franco Pace franco.p...@tpg.com.au wrote: From: Franco Pace franco.p...@tpg.com.au Subject: Re: newbie to Cocoon To: users@cocoon.apache.org Date: Thursday, April 9, 2009, 4:31 AM With release 3.0 of cocoon coming up? A new updated book would be most welcome. Regards, Franco On 08/04/2009, at 4:59 PM, Luca Morandini wrote: Derek Hohls wrote: Harry AFAIK, the CDHB deals with Cocoon 2.1, Nay: it dealt with 2.0 (it was published back in 2002)... hence no Flowscript and no Cocoon Forms. Regards, Luca Morandini www.lucamorandini.it - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org ( /mc/compose?to=users-unsubscr...@cocoon.apache.org ) For additional commands, e-mail: users-h...@cocoon.apache.org ( /mc/compose?to=users-h...@cocoon.apache.org ) - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org ( /mc/compose?to=users-unsubscr...@cocoon.apache.org ) For additional commands, e-mail: users-h...@cocoon.apache.org ( /mc/compose?to=users-h...@cocoon.apache.org ) -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: newbie to Cocoon
Harry AFAIK, the CDHB deals with Cocoon 2.1, so make sure that is the version you are working with. Main website is here: http://cocoon.apache.org/2.1/ Tutorials here: http://cocoon.apache.org/2.1/tutorial/index.html And the best place to learn (well, it was for me) is by looking at the examples that Cocoon ships with, and then starting to tweak/customize them until something breaks - then you will start to ask questions and Find Things Out. Good luck! Derek On 2009/04/08 at 03:44, in message 782595.70636...@web8904.mail.in.yahoo.com, I HARIKRISHNA ihk...@yahoo.co.in wrote: Hi all, I am a newbie to cocoon and please let me know where to start. It would be great if you guys can send me a few links,tutorials.I got the Cocoon Developers Hand Book . Thanks Harry -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: MultiValueField on-value-changed event not firing when modifyingthe items
The upgrade is easy - fixing your app might not be (see previous messages on this list) On 2009/04/03 at 08:07, in message 49d5a7bb.1050...@uib.es, Carlos Martínez carlos.marti...@uib.es wrote: Hello, I want to fix the same problem.. Is it easy to upgrade the versión 2.1.9 to 2.1.11? Thanks in advance. Antonio Gallardo escribió: Hi, Please try a newer Cocoon version (2.1.11 or from SVN), I suspect it is already fixed there. Best Regards, Antonio Gallardo. Radaven escribi�: Does anybody know the solution of this? I have the same problem. I can't catch the event by valueChanged method. asif_zzz wrote: Hi I'm using cocoon 2.1.10. In my page I've a MultiValueField widget which has rendering as checkboxes In that MultiValueField field I've added a fd:on-value-changed event. When page loads ,I'm setting some values to MultiValueField ,for the checkbox component need to be selected while rendering in the page and the event get fired on page load because im setting some values. Once the page is loaded ,im trying to change the MultiValueField values to checked/unchecked,but the fd:on-value-changed event not get fired. I dont know why its not getting fired. Anyone please help me to solve this problem as this is critically blocking my proceedings. Code: Defn: = fd:multivaluefield id=list1 fd:labeli18n:textlist_type/i18n:text/fd:label fd:datatype base=string / fd:selection-list type=java nullable=false class=com.sample.SampleDynaSelectionList / fd:on-value-changed fd:java class=com.sample.MultiValChangeListener / /fd:on-value-changed /fd:multivaluefield Tmpl: ft:widget id=list1 fi:styling list-type=checkbox / /ft:widget Class -- package com.sample; import org.apache.cocoon.forms.event.ValueChangedEvent; import org.apache.cocoon.forms.event.ValueChangedListener; public class MultiValChangeListener implements ValueChangedListener { public void valueChanged(ValueChangedEvent event) { System.out.println(--valueChanged); } } Thanks in Advance, Aashik - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Is Cocoon the right tool?
I see it says: The tool has a command-line interface I wonder how feasible it would be to convert into a module usable by Cocoon (including the 2.1.x series) from within a sitemap? On 2009/03/05 at 09:08, in message gontok$lr...@ger.gmane.org, Luca Morandini lmorand...@ieee.org wrote: Jean-Christophe Kermagoret wrote: Hi, Just have a look at the following link: * http://re.be/css2xslfo/index.xhtml Used in conjunction with Cocoon, I think it could be a kill app. Wow ! Looks great. Luca Morandini www.lucamorandini.it -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: [HOWTO WANTED] APP migration from Cocoon 2.1 to Cocoon 2.2
Probably not exactly what you wanted, but it may help: http://www.csparks.com/cocoon/c22without/index.xhtml if you work through all the steps, you eventually get to the: Add your content section. On 2009/03/02 at 01:25, in message 1ccf02660903020325v79c79ea8v181498923e291...@mail.gmail.com, Vanja Petreski vpetre...@gmail.com wrote: Hello Cocoon people :) I have a problem which seems like a nightmare to me right now, so I hope that someone could help me ;) I have to migrate relatively big Cocoon 2.1 application to Cocoon 2.2. Mavenization should be done too. I have a lot of experience with Maven and Spring, that's OK, but I am completely new to Cocoon. I've read the book Cocoon Developer's Handbook, which is for Cocoon 2.0, to get familiar with Cocoon (very bad situation with books and docs) After that I did the online tutorial for Cocoon 2.2. And I should start with the migration now. But I don't have a clue where to start from :( As I understand I have to options: 1) Start from scratch 2) Minimal changes to the existing app - http://blog.reverycodes.com/archives/45.html I like this, because I want to do migration as simple as possible, but there is no enough information or I simply don't know how to do it. I'm wondering does somebody have experience with migration from 2.1 to 2.2, is better 1) or 2), what are the steps and best practice for this? Thanks, Vanja -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
RE: Cocoon Forms builder
Oleg Yes, I was referring to the XSL sheets that came with Cocoon. Creating a graphical design interface for creating such stylesheets would be an, um, interesting exercise - but its certainly too complex a task for me. My users have to just live with the designs I give them :-) or ask for me to change them by hand... I have not looked at XForms. Derek On 2009/02/20 at 03:37, in message e49763814af68244955b2f6c873028931675966...@exnjmb80.nam.nsroot.net, Konovalov, Oleg oleg.konova...@citi.com wrote: Derek, When you say that all layout is done by stylesheets, do you mean XSL or CSS ? If so, how do I build the stylesheet graphically [more in Design mode]? My users will not be programmers, so I would like to avoid exposing them to some heavy coding. Also, I've heard of Xforms, but that it's not supported by IE67 (is it true?) Could anyone compare CForms and XForms ? Any tools for them ? Thank you, Oleg. -Original Message- From: Derek Hohls [mailto:dho...@csir.co.za] Sent: Friday, February 20, 2009 2:17 AM To: users@cocoon.apache.org Subject: Re: Cocoon Forms builder Oleg I am not quite sure why you want to build a form graphically - given that all the layout is done by stylesheets? The forms essentially only contain the field definition and any logic required to validate or alter/display their values. FWIW, I have a small Python program that creates basic forms (and the logic my app uses to manipulate them) from an SQL statement. Derek On 2009/02/19 at 11:59, in message 11cda457fc6a6a49a77f7f867f0f5de109e83...@exnjmb71.nam.nsroot.net, Konovalov, Oleg oleg.konova...@citi.com wrote: Hi, Are you aware of any tool which allows to build CForms graphically, similar to how many Eclipse plugins ? We have a limited set of XML fields, need to create (or find) a tool to build forms through the GUI for non-programmers. If not, how would you build such a tool, any building blocks ? Any help is very appreciated. TIA, Oleg Konovalov Email: oleg.konova...@citi.com -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Cocoon Forms builder
Oleg I am not quite sure why you want to build a form graphically - given that all the layout is done by stylesheets? The forms essentially only contain the field definition and any logic required to validate or alter/display their values. FWIW, I have a small Python program that creates basic forms (and the logic my app uses to manipulate them) from an SQL statement. Derek On 2009/02/19 at 11:59, in message 11cda457fc6a6a49a77f7f867f0f5de109e83...@exnjmb71.nam.nsroot.net, Konovalov, Oleg oleg.konova...@citi.com wrote: Hi, Are you aware of any tool which allows to build CForms graphically, similar to how many Eclipse plugins ? We have a limited set of XML fields, need to create (or find) a tool to build forms through the GUI for non-programmers. If not, how would you build such a tool, any building blocks ? Any help is very appreciated. TIA, Oleg Konovalov Email: oleg.konova...@citi.com -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
HTML Styling in displayed form widgets?
Using Cocoon 2.1.8 Can anyone give me an idea how to retain HTML tags in a form widget : e.g.. in form template, widget is: ft:widget id=message and in flowscript, its assigned a value: model.message = bHey!/b; but the output is presented exactly as this: bHey!/b (and not in bold). (Note The above is a trivial example; real app needs many more tags than this... so CSS stylng will not help) Thanks Derek -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Refreshing selected items in multi-select field?
Using Cocoon 2.1.8 I am working with a multi-select field (B) in an AJAX-enabled form. The items in the list is filtered by changes in a previous field (A) i.e not all possible items are shown in B at one time. The first time the form is displayed; when A is changed, then B displays those items that the user had previously selected *from that subset* with highlights as expected. However, when the user changes the value of A and a new sub-set of items is displayed in B, then any previous selections (by previous, I mean saved into the DB on a previous occasion) made from that subset are not highlighted. Even going back to the first A selection does not help; no selected items are ever again highlighted in B (unless the form is closed and reopened of course). Where and how do I need to add code to produce the expected behavior? Thanks Derek -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
RE: HTML Styling in displayed form widgets?
Jasha Thanks; I had not noticed that type before. So now I have in the form definition: fd:messages id=message state=output/ However, the part of the doc that says Messages are added using the addMessage method on this widget is unclear. In flowscript, when I try (as below) to update this widget: model.message.addMessage ( bHey!/b ); I get the error: org.mozilla.javascript.EcmaError: addMessage is not a function. and using: model.message = bHey!/b; does not produce anything at all! Any ideas? Thanks Derek On 2009/02/13 at 10:53, in message f8e386b54ce3e6408f3a32abb9a7908a01232...@hai02.hippointern.lan, Jasha Joachimsthal j.joachimst...@onehippo.com wrote: -Original Message- From: Derek Hohls [mailto:dho...@csir.co.za] Sent: vrijdag 13 februari 2009 9:03 To: users@cocoon.apache.org Subject: HTML Styling in displayed form widgets? Using Cocoon 2.1.8 Can anyone give me an idea how to retain HTML tags in a form widget : e.g.. in form template, widget is: ft:widget id=message and in flowscript, its assigned a value: model.message = bHey!/b; but the output is presented exactly as this: bHey!/b (and not in bold). (Note The above is a trivial example; real app needs many more tags than this... so CSS stylng will not help) The message content is a string and not XML although it looks like XML. It's returned as lt;bgt;Hey!lt;/bgt; instead of bHey!/b. On [1] I found: Messages are added using the addMessage method on this widget. The argument can be a string, but also any object implementing the XMLizable interface, for example org.apache.cocoon.forms.util.I18nMessage. [1] http://cocoon.apache.org/2.1/userdocs/widgets/widget_messages.html Jasha Joachimsthal j.joachimst...@onehippo.com - ja...@apache.org www.onehippo.com Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA 94952-5100 +1 (707) 773-4646 - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Spot what is missing!
I received an email ad today; here is a short snippet from the opening blurb: Java developers today have many choices for web development frameworks. To help you decide which is best for your web development projects, our latest eBook, The Java Developer's Guide to Web Development Frameworks introduces you to the leading open source frameworks: JavaServer Faces, Spring, Struts, Tapestry, and Wicket. Can you spot what is missing? :\ -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Using Dojo color picker with CForms?
using 2.18 Has anyone figured out a way to use the Dojo color picker http://www.roseindia.net/dojo/dojo-color-picker-example.shtml with CForms - this email seems to be related, but does not address the issue directly http://marc.info/?l=xml-cocoon-usersm=122457953028491w=2 Thanks Derek -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Getting started with C2.2 -- where's the exception information?
Andreas No; I did not say that I thought 2.1 *was* unsupported, just that I hoped it would not be. Believe me, I do really appreciate the generous effort and commitment from the experts that helps out those of who do not get all the nuances as quickly. I also did not take any offence - the Cocoon mailing list is actually one of the most amazingly friendly and non-critical lists I know; we all have our little rants from time-to-time, but everyone takes it calmly and no one overreacts. Finally its good to see that projects are/have been making use of 2.2; that will help shake out the bugs and hopefully build towards some solid docs for it. I am especially looking forward to more of the migrating from 2.1 stories and documents (which is where I suspect many are or might be going); as well as other entry-level cases round Maven and the like. For me, I am very happy that Cocoon has such a solid development team who have a clear direction for it. Derek On 2009/02/03 at 05:11, in message gm9mq5$v6...@ger.gmane.org, Andreas Hartmann andr...@apache.org wrote: Hi Derek, I agree from a *marketing* perspective that putting buzzwords on your site is a way to attract new users - especially those who might otherwise be going to .NET or Ruby-on-Rails - not that I mean to imply the developers are doing this for that reason alone. However, there is also such a thing as a legacy application; while you (or others) might think that languages such as COBOL, FORTRAN, Pascal etc are dead, I can almost guarantee you there are millions of lines of code in those tools being written or maintained every year (C# notwithstanding). There are many of us who have been using Cocoon for many years now, and I would really hate to think we'll just be dumped because some new ideas or support frameworks have emerged. do you have the feeling that the 2.1 branch is not sufficiently supported anymore? If I understand Betrand correctly, it is officially in maintenance mode and it is not planned to cease support. We (the Lenya community) are certainly going to need it for another couple of years, so we'll be bound to maintain it. Personally, I'd also like to see the documentation develop and mature a little more - there are certainly *lots* of getting started questions in the ML about 2.2 - and a book or half would also provide some reassurance that a solid new ship is ready for all types of sailors. +1 So yes, I am prepared to learn - no doubt I will have to - but it does not yet feel the right time for what appears to require a significant upheaval. Sorry if my mail caused any offence or could be taken personally, that was not my intention. I only wanted to express the viewpoint of another type of Cocoon user * the projects which depend on it. Thanks for your reply! -- Andreas -- Andreas Hartmann, CTO BeCompany GmbH http://www.becompany.ch Tel.: +41 (0) 43 818 57 01 - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Getting started with C2.2 -- where's the exception information?
Andreas Do you want the short reply or the long reply :) Short: There needs to be room in the Cocoon universe for 2.1 users as well as 2.2 users. Long: This is the classic issue isn't it!? Certainly we are beset by the culture of the new at present; where new == better - be it cellphones, politicians, or computer languages. I agree from a *marketing* perspective that putting buzzwords on your site is a way to attract new users - especially those who might otherwise be going to .NET or Ruby-on-Rails - not that I mean to imply the developers are doing this for that reason alone. However, there is also such a thing as a legacy application; while you (or others) might think that languages such as COBOL, FORTRAN, Pascal etc are dead, I can almost guarantee you there are millions of lines of code in those tools being written or maintained every year (C# notwithstanding). There are many of us who have been using Cocoon for many years now, and I would really hate to think we'll just be dumped because some new ideas or support frameworks have emerged. Personally, I'd also like to see the documentation develop and mature a little more - there are certainly *lots* of getting started questions in the ML about 2.2 - and a book or half would also provide some reassurance that a solid new ship is ready for all types of sailors. So yes, I am prepared to learn - no doubt I will have to - but it does not yet feel the right time for what appears to require a significant upheaval. My 2(non-Euro)c Derek On 2009/02/03 at 03:44, in message gm9hos$cn...@ger.gmane.org, Andreas Hartmann andr...@apache.org wrote: Klortho schrieb: dhohls wrote: That's a little harsh - although my impression is that C2.2 is perhaps a step sideways in terms of how many things are done... but that's just an impression from reading all the mailing list QA. So far, I have not needed to take the plunge. Yes, you're right ... too harsh. I'm really just a newbie, but speaking as one, I think that 2.1 was a much nicer experience out of the gate, which is pretty damn important for an application to gain wider acceptance. BTW, there's also a different viewpoint: Lenya community hat For us, as a project depending on Cocoon, it is crucial that Cocoon doesn't cling to dead (as in language) concepts and frameworks as XSP and Avalon, however proven and stable they may be. To attract new community members, it's very important to keep looking beyond one's own nose and stay in touch with current trends in the Java world. Putting Based on Maven and Spring on your homepage sounds much better at the moment than Based on Ant and Avalon. And we shouldn't be afraid of learning * familiar concepts often seem to be easier to understand than new ones. /Lenya community hat Just my $0.02. -- Andreas -- Andreas Hartmann, CTO BeCompany GmbH http://www.becompany.ch Tel.: +41 (0) 43 818 57 01 - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
RE: Getting started with C2.2 -- where's the exception information?
That's a little harsh - although my impression is that C2.2 is perhaps a step sideways in terms of how many things are done... but that's just an impression from reading all the mailing list QA. So far, I have not needed to take the plunge. On 2009/01/30 at 01:51, in message 21738877.p...@talk.nabble.com, Klortho voldr...@gmail.com wrote: ... Robby Pelssers-2 wrote: ... Well, I know I'm going to have to be patient, but so far my impression is that version 2.2 was a giant step backwards. -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
RE: JX / Flowscipt variable not accessible in generated form?
Thanks Robby Exactly what I needed - the only part that was different for me was here: map:match pattern=db/formtemplate/* map:generate src=forms/{1}_defn.xml type=jx /map:match as I already I had a match for generating the form (the above fragment is any case incomplete); i.e. map:match pattern=db/forms/* map:generate src=tables/{1}_defn.xml type=jx map:transform src=stylesheets/forms/reformat.xsl map:serialize type=xml / /map:match Derek On 2009/01/27 at 02:53, in message 7c655c04b6f59643a1ef66056c0e095e01ec0...@eusex01.sweden.ecsoft, Robby Pelssers robby.pelss...@ciber.nl wrote: Hi Derek, How do you call your flowscript in the sitemap? One way you could implement this: SITEMAP --- !-- {1} formname {2} state -- map:match pattern=db/forms/*/* map:call function=createform map:parameter name=formname value={1}/ map:parameter name=state value={2}/ /map:call /map:match map:match pattern=db/formtemplate/* map:generate src=forms/{1}_defn.xml type=jx /map:match Formutil.js --- function createform() { var formname = cocoon.parameters.formname; var state = cocoon.parameters.state; cocoon.sendPage(db/formtemplate/ + formname, { state : state } ); } From your flowscript you create the form: var editCountryDataForm = new Form(cocoon:/db/forms/country/output); Cheers, Robby Pelssers -Original Message- From: Derek Hohls [mailto:dho...@csir.co.za] Sent: dinsdag 27 januari 2009 13:09 To: users@cocoon.apache.org Subject: JX / Flowscipt variable not accessible in generated form? Using Cocoon 2.1.8 I am generating a form definition from flowscript: var editCountryDataForm = new Form(cocoon:/db/forms/country, {state:output});//dynamic And generating it thus via the pipeline: map:match pattern=db/forms/* map:generate src=forms/{1}_defn.xml type=jx And in the country_defn.xml (form) file I have: fd:field id=Code required=true state=${state} fd:labelCountry Code *${state}*/fd:label But the state value never shows up at all in the resulting form, even when using different values in the flowscript, and the state of the field shows up as a normal form element. I'm sure I am missing something simple... but what? Thanks Derek -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
RE: Getting started with C2.2 -- where's the exception information?
You may be correct; but I have never felt that Cocoon was striving for acceptance. It simply is what it is; and you either find it incredibly powerful and useful ... or become a mainstream php/ruby developer. If you are here, its because you have taken the road (development route?!) less traveled! On 2009/01/30 at 08:24, in message 21742093.p...@talk.nabble.com, Klortho voldr...@gmail.com wrote: dhohls wrote: That's a little harsh - although my impression is that C2.2 is perhaps a step sideways in terms of how many things are done... but that's just an impression from reading all the mailing list QA. So far, I have not needed to take the plunge. Yes, you're right ... too harsh. I'm really just a newbie, but speaking as one, I think that 2.1 was a much nicer experience out of the gate, which is pretty damn important for an application to gain wider acceptance. -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
JX / Flowscipt variable not accessible in generated form?
Using Cocoon 2.1.8 I am generating a form definition from flowscript: var editCountryDataForm = new Form(cocoon:/db/forms/country, {state:output});//dynamic And generating it thus via the pipeline: map:match pattern=db/forms/* map:generate src=forms/{1}_defn.xml type=jx And in the country_defn.xml (form) file I have: fd:field id=Code required=true state=${state} fd:labelCountry Code *${state}*/fd:label But the state value never shows up at all in the resulting form, even when using different values in the flowscript, and the state of the field shows up as a normal form element. I'm sure I am missing something simple... but what? Thanks Derek -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Cocoon 2.1.8 Forms + AJAX : cocoon is not defined
With respect to the previous thread: http://marc.info/?l=xml-cocoon-usersm=123243320521118w=2 I took the approach I planned; i.e. start with a working version from the sample and gradually add in my changes until done. Now I have a working sample in a test directory of my Cocoon instance (2.18.) However, when I copy all the files over into my working application directory (*same* Cocoon instance), I now get an error, shown with Firebug as: cocoon is not defined with a pointer to the scriptcocoon.forms.ajax = true;/script tag that appears near the top of the form. (In the original working version, this error does not appear) This does not appear to prevent the AJAX aspect of the form working properly in Firefox - though the page will load but not display at all in IE - and I also get a onsubmit was called twice when I click on the OK. Does anyone have an idea what the specific cause of this problem could be - i.e. where the script is looking for the definition, given that I have tried to keep everything equivalent (i.e. a line-by-line compare of the HTML source shows the files are the same, apart from directory name differences, and the resource stylesheets directories/files are the same). Thanks Derek -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Modifying the forms stylesheets
Working with Cocoon 2.1.8 Are there any guidelines for modifying the forms styling sheets such that the AJAX-enabled aspects remain intact. I have done some heavy styling modifications, which work fine for normal Cocoon forms, but they don't seem compatible with this approach. Any ideas? Thanks Derek -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Cocoon 2.1.8 Forms + AJAX : cocoon is not defined [SOLVED]
Solved! The forms usage in the working application was in a nested pipeline because of authorisation requirements: map:match pattern=foo/** ... map:match pattern=foo/forms/* etc. But my resources link was located outside of this nested pipe: map:match pattern=resources/*/** map:read src=resource://org/apache/cocoon/{1}/resources/{2}/ /map:match and as soon as I added them back in: map:match pattern=foo/resources/*/** map:read src=resource://org/apache/cocoon/{1}/resources/{2}/ /map:match things worked just fine. In retrospect, André had pointed out something like this a while back: http://marc.info/?l=xml-cocoon-usersm=122405789617000w=2 but somehow I did not connect my error message with his response. Oh well, this post may help someone else at sometime! Derek On 2009/01/26 at 12:54, in message 497db25a.5ce9.00d...@csir.co.za, Derek Hohls dho...@csir.co.za wrote: With respect to the previous thread: http://marc.info/?l=xml-cocoon-usersm=123243320521118w=2 I took the approach I planned; i.e. start with a working version from the sample and gradually add in my changes until done. Now I have a working sample in a test directory of my Cocoon instance (2.18.) However, when I copy all the files over into my working application directory (*same* Cocoon instance), I now get an error, shown with Firebug as: cocoon is not defined with a pointer to the scriptcocoon.forms.ajax = true;/script tag that appears near the top of the form. (In the original working version, this error does not appear) This does not appear to prevent the AJAX aspect of the form working properly in Firefox - though the page will load but not display at all in IE - and I also get a onsubmit was called twice when I click on the OK. Does anyone have an idea what the specific cause of this problem could be - i.e. where the script is looking for the definition, given that I have tried to keep everything equivalent (i.e. a line-by-line compare of the HTML source shows the files are the same, apart from directory name differences, and the resource stylesheets directories/files are the same). Thanks Derek -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Error with SQL Transformer - nested query + Filter Transformer
Working with Cocoon 2.1.8, Windows XP With reference to this thread: http://marc.info/?l=xml-cocoon-usersm=103097078912239w=3 which did not seem to be resolved, I am also having problems with the Filter Transformer. The error I have is: java.util.EmptyStackException at org.apache.xml.utils.IntStack.peek(IntStack.java:125) at org.apache.xml.dtm.ref.sax2dtm.SAX2DTM.endElement(SAX2DTM.java:2032) at org.apache.xalan.transformer.TransformerHandlerImpl.endElement(TransformerHandlerImpl.java:522) at org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:111) at org.apache.cocoon.transformation.FilterTransformer.endElement(FilterTransformer.java:172) at org.apache.cocoon.xml.AbstractXMLPipe.endElement(AbstractXMLPipe.java:111) ... Attached are relevant portions of code/data. Thanks Derek QUERY: sq2:execute-query sq2:query name=source-list SELECT DISTINCT source.sourceID AS sourceid FROM source /sq2:query !-- problem for filter transformer ??? if removed then no error... -- sq2:execute-query sq2:query name=source-viability SELECT DISTINCT ViabilityDate AS viabilitydate, ViabilityStatus AS viabilitystatus FROM sourceviability WHERE sourceID=sq2:ancestor-value sq2:name=source.sourceID sq2:level=1/ ORDER BY ViabilityDate DESC LIMIT 0,1 /sq2:query /sq2:execute-query /sq2:execute-query OUTPUT FRAGMENT: page xmlns:sq2=http://apache.org/cocoon/SQL/2.0; xmlns:jx=http://apache.org/cocoon/templates/jx/1.0; sq2:rowset nrofrows=8 name=source-list sq2:row sq2:id6/sq2:id sq2:sourceid6/sq2:sourceid sq2:sourcelabelP3/sq2:sourcelabel sq2:rowset nrofrows=1 name=source-viability sq2:row sq2:viabilitydate2009-01-20/sq2:viabilitydate sq2:viabilitystatus34/sq2:viabilitystatus /sq2:row /sq2:rowset /sq2:row ... SITEMAP: map:match pattern=db/list-* map:generate src=SQL/list/{1}.xml type=jx label=debug1 use-request-parameterstrue/use-request-parameters /map:generate map:transform type=sql label=debug2 map:parameter name=use-connection value=foo/ map:parameter name=show-nr-of-rows value=true/ map:parameter name=clob-encoding value=UTF-8/ /map:transform !-- ??? not with nested query -- map:transform type=filter label=debug3 map:parameter name=element-name value=row/ use-request-parameterstrue/use-request-parameters map:parameter name=count value=20/ map:parameter name=blocknr value={request-param:bl}/ /map:transform -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: Cocoon 2.1.8 Forms + AJAX : Final call for help!
Thanks Gary Jeroen but I already have this in my sitemap (otherwise the car example I extracted out would not work, surely?) Derek On 2009/01/16 at 05:52, in message 4970ad4b.3000...@onehippo.com, Jeroen Reijn j.re...@onehippo.com wrote: Hi Gary, you probably mean in the cocoon-ajax-block.jar? Regards, Jeroen Gary Larsen wrote: Hi Derek, It's been a while since I got ajax working (2.1.9) so I'm not sure if this will help. (and I haven't read the thread) The ajax resources are in the cocoon-axis-block.jar. map:match pattern=resources/*/** map:read src=resource://org/apache/cocoon/{1}/resources/{2}/ /map:match Hope this helps, gary -Original Message- From: Derek Hohls [mailto:dho...@csir.co.za] Sent: Friday, January 16, 2009 9:58 AM To: users@cocoon.apache.org Subject: Cocoon 2.1.8 Forms + AJAX : Final call for help! In October last year I submitted a number of queries to the list, as I was trying to get Cocoon 2.1.8 Forms + AJAX working together in my application. This was the last entry in that thread... http://marc.info/?l=xml-cocoon- usersm=122408149728592w=2 In the end, I did not succeed and moved on to other issues. Now I have been trying again - still without success. I have been trying for 3 days and am intensely frustrated with not understanding what is going wrong. So far, I have managed to extract the small sample that comes with Cocoon, dealing with car make selection, and put it into its own directory, and get it to work. Small modifications cause problems though - with dialog box messages like no xml answer not really providing me with a clue as to what the real problem it! I also cannot get my existing site setup - with heavily customized page layout, form styling and a form template layout that seems quite different from the sample one (?) - to work (for example, the transformed page does not have all the resources loaded into the page header). If anyone has an app that is *not* part of the standard Cocoon suite, showing how the form styling can be customized, I would really love to see it. Failing that, if anyone can spell out *exactly* what resources are needed to make AJAX work in Cocoon forms - by this I mean files, directories, site map entries etc. etc. (and even specific code snippets in files - as its obvious that my customized form styling is missing some vital element/s), I would really, really appreciate it. Otherwise I guess I will have to write off another week of my life to Cocoon :( Thanks Derek -- This message is subject to the CSIR's copyright terms and conditions, e- mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.
RE: Cocoon 2.1.8 Forms + AJAX : Final call for help!
Gary I am sure that they are - as I said previously, I think the issue is in the heavily customized forms stylesheet that I am using. Looks like I will have to start al over again with the working sample, and gradually add in my changes - when it breaks I will have an idea exactly what is different about the way I have done styling vs how it is done in the samples. I am not sure how fragile this whole construct is, but clearly its *not* a matter of simply adding in a few tags lines of Javascript (which is what I had hoped when I first posted!). Thanks Derek On 2009/01/19 at 05:19, in message 4d811bd34e0c430084df5fa017f6b...@envisnofc.com, Gary Larsen gary.lar...@envisn.com wrote: Sorry I*m not much help here. Have you tried opening the ajax jar to make sure the resources are there with the correct paths (just to check the block build) ? (maybe 2.1.8 is a bit different than 2.1.9) gary From:Derek Hohls [mailto:dho...@csir.co.za] Sent: Monday, January 19, 2009 3:07 AM To: users@cocoon.apache.org Subject: Re: Cocoon 2.1.8 Forms + AJAX : Final call for help! Thanks Gary Jeroen but I already have this in my sitemap (otherwise the car example I extracted out would not work, surely?) Derek On 2009/01/16 at 05:52, in message 4970ad4b.3000...@onehippo.com, Jeroen Reijn j.re...@onehippo.com wrote: Hi Gary, you probably mean in the cocoon-ajax-block.jar? Regards, Jeroen Gary Larsen wrote: Hi Derek, It's been a while since I got ajax working (2.1.9) so I'm not sure if this will help. (and I haven't read the thread) The ajax resources are in the cocoon-axis-block.jar. map:match pattern=resources/*/** map:read src=resource://org/apache/cocoon/{1}/resources/{2}/ /map:match Hope this helps, gary -Original Message- From: Derek Hohls [mailto:dho...@csir.co.za] Sent: Friday, January 16, 2009 9:58 AM To: users@cocoon.apache.org Subject: Cocoon 2.1.8 Forms + AJAX : Final call for help! In October last year I submitted a number of queries to the list, as I was trying to get Cocoon 2.1.8 Forms + AJAX working together in my application. This was the last entry in that thread... http://marc.info/?l=xml-cocoon- usersm=122408149728592w=2 In the end, I did not succeed and moved on to other issues. Now I have been trying again - still without success. I have been trying for 3 days and am intensely frustrated with not understanding what is going wrong. So far, I have managed to extract the small sample that comes with Cocoon, dealing with car make selection, and put it into its own directory, and get it to work. Small modifications cause problems though - with dialog box messages like no xml answer not really providing me with a clue as to what the real problem it! I also cannot get my existing site setup - with heavily customized page layout, form styling and a form template layout that seems quite different from the sample one (?) - to work (for example, the transformed page does not have all the resources loaded into the page header). If anyone has an app that is *not* part of the standard Cocoon suite, showing how the form styling can be customized, I would really love to see it. Failing that, if anyone can spell out *exactly* what resources are needed to make AJAX work in Cocoon forms - by this I mean files, directories, site map entries etc. etc. (and even specific code snippets in files - as its obvious that my customized form styling is missing some vital element/s), I would really, really appreciate it. Otherwise I guess I will have to write off another week of my life to Cocoon :( Thanks Derek -- This message is subject to the CSIR's copyright terms and conditions, e- mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner
Cocoon 2.1.8 Forms + AJAX : Final call for help!
In October last year I submitted a number of queries to the list, as I was trying to get Cocoon 2.1.8 Forms + AJAX working together in my application. This was the last entry in that thread... http://marc.info/?l=xml-cocoon-usersm=122408149728592w=2 In the end, I did not succeed and moved on to other issues. Now I have been trying again - still without success. I have been trying for 3 days and am intensely frustrated with not understanding what is going wrong. So far, I have managed to extract the small sample that comes with Cocoon, dealing with car make selection, and put it into its own directory, and get it to work. Small modifications cause problems though - with dialog box messages like no xml answer not really providing me with a clue as to what the real problem it! I also cannot get my existing site setup - with heavily customized page layout, form styling and a form template layout that seems quite different from the sample one (?) - to work (for example, the transformed page does not have all the resources loaded into the page header). If anyone has an app that is *not* part of the standard Cocoon suite, showing how the form styling can be customized, I would really love to see it. Failing that, if anyone can spell out *exactly* what resources are needed to make AJAX work in Cocoon forms - by this I mean files, directories, site map entries etc. etc. (and even specific code snippets in files - as its obvious that my customized form styling is missing some vital element/s), I would really, really appreciate it. Otherwise I guess I will have to write off another week of my life to Cocoon :( Thanks Derek -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org
Re: AJAX in CForms... not that simple?!
Andre Bu that is what I attempted to do - if you look at my original post, you will see the files I extracted and where I put them. Are there some that are missing... or how can I tell if they are? Derek On 2008/10/15 at 03:34, in message [EMAIL PROTECTED], DAVIGNON Andre - CETE NP/DIODé/PANDOC [EMAIL PROTECTED] wrote: Thanks, but this does not seem to make any difference. Any chance you have a simple/test application, where the resources are explicitly broken out in the way I have done? Alternately, are there any hints you can give me on how to make an AJAX form that does not make of use the default form stylesheets that are buried in the .jar cocoon blocks? For developping purpose you can extract theses resources manually from the jars (e.g. with 7zip) then place them where you whant so you can easily match them in your sitemap. André - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: AW: AJAX in CForms... not that simple?!
Thanks Chris I have tried this, and it seems the main error that I am getting is: cocoon is not defined script script=text/javascriptcocoon.forms.ajax = true;/script I suppose that if there no AJAX set, then nothing else will work. But how does this help me find out what is missing? Thanks Derek On 2008/10/15 at 03:03, in message [EMAIL PROTECTED], Christofer Dutz [EMAIL PROTECTED] wrote: Hi Derek, to sort out my resource problems I user Mozilla together with Firebug. This way I could see, which resources were requested and what the result was. For all failling resources having a look at cocoons response was quite helpfull. Chris -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: AJAX in CForms... not that simple?!
Chris Thanks, but this does not seem to make any difference. Derek On 2008/10/15 at 10:08, in message [EMAIL PROTECTED]@c-ware.de, Christofer Dutz [EMAIL PROTECTED] wrote: Hi Derek Well I can help you with the resources ;-) They are located in jar-files. Depending on the resources you are using Cocoon-forms-block.jar: org.apache.cocoon.forms.resources.* Dojo-rsrc-xxx.jar: org.apache.cocoon.dojo.rerources.* I usually make them available using the following pipeline: map:match pattern=**_cocoon/resources/*/** map:select type=resource-exists map:when test=resources/{2}/{3} map:read src=resources/{2}/{3}/ /map:when map:when test=resource://{2}/{3} map:read src=resource://{2}/{3}/ /map:when map:otherwise map:read src=resource://org/apache/cocoon/{2}/resources/{3}/ /map:otherwise /map:select /map:match This way I can override the resources in the jars with my alternate implementations. Hope this helps. Chris -Ursprüngliche Nachricht- Von: Derek Hohls [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 14. Oktober 2008 13:49 An: users@cocoon.apache.org Betreff: AJAX in CForms... not that simple?! I have been working with Cocoon + CForms for a while now, but now have to deal with some more complex processing requirements. I had thought this would be a simple matter, but alas not... Issue 1. I have heavily customized stylesheets that I use for form display. Going back to the default stylesheets is problematic. Issue 2. Locating the resources? This message: http://marc.info/?l=xml-cocoon-usersm=111323898129449w=2 (and others) refer to the WEB-INF/classes/org//forms/resources directory. This I simply cannot find. I have WEB-INF/classes/org/apache/cocoon/forms but no resources directory in sight. I have tried to copy use the various files directly from the Cocoon installation files... but to no avail. In the end, I have tried to create a small test app, based on the car selector sample, with details as shown below. Although the form displays just fine, it does not exhibit any of the dynamic behavior of the original sample. Comparison of the source code of the two web pages shows them to be the same! What (probably obvious) element/s am I missing? Thanks Derek !-- CAR SELECTOR FILES AND SETUP -- I have the following directory/files: flow/forms_flow_example.js This file is stripped down to: cocoon.load(resource://org/apache/cocoon/forms/flow/javascript/Form.js); function selectCar() { var form = new Form(cocoon:/carselector_form); form.lookupWidget(make).setValue(cocoon.parameters.defaultMake); form.showForm(carselector-display-pipeline.jx); cocoon.request.setAttribute(carselectorform, form.getWidget()); cocoon.sendPage(carselector-success-pipeline.xsp, {make: form.lookupWidget(make).value, type: form.lookupWidget(type).value, model: form.lookupWidget(model).value} ); } resources/cforms.js resources/cocoon-ajax.js resources/forms-lib.js resources/forms.css resources/jx-macros.xml stylesheets/forms/forms-advanced-field-styling.xsl The above sheet I have altered as follows: xsl:import href=forms-field-styling.xsl/ xsl:include href=forms-calendar-styling.xsl/ xsl:include href=forms-htmlarea-styling.xsl/ !-- xsl:template match=head mode=forms-field xsl:apply-imports/ script src={$resources-uri}/forms/mattkruse-lib/AnchorPosition.js type=text/javascript/ script src={$resources-uri}/forms/mattkruse-lib/PopupWindow.js type=text/javascript/ script src={$resources-uri}/forms/mattkruse-lib/OptionTransfer.js type=text/javascript/ script src={$resources-uri}/forms/mattkruse-lib/selectbox.js type=text/javascript/ xsl:apply-templates select=. mode=forms-calendar/ xsl:apply-templates select=. mode=forms-htmlarea/ /xsl:template -- stylesheets/forms/forms-field-styling.xsl In this above sheet I have altered the scripts to point directly at the files in the same app. ie. xsl:template match=head mode=forms-field script src=../../resources/forms-lib.js type=text/javascript/ script src=../../resources/cocoon-ajax.js type=text/javascript/ script src=../../resources/cforms.js type=text/javascript/ link rel=stylesheet type=text/css href=../../resources/forms.css/ /xsl:template stylesheets/forms/forms-page-styling.xsl stylesheets/forms/forms-samples-styling.xsl In this aboove sheet I have altered the includes to point directly at the other files in the same directory ie. xsl:include href=forms-page-styling.xsl/ xsl:include href=forms-advanced-field-styling.xsl/ stylesheets/doc/simple-page2html.xsl tables/carselector_form.xml tables/carselector_template.xml tables/carselector_success_jx.xml forms/car-db.xml forms/carfilter.xsl Finally, the sitemap has entries here: map:transformers default=xslt map:transformer name=browser-update src
Re: AJAX in CForms... not that simple?!
André Thanks, but this does not seem to make any difference. Any chance you have a simple/test application, where the resources are explicitly broken out in the way I have done? Alternately, are there any hints you can give me on how to make an AJAX form that does not make of use the default form stylesheets that are buried in the .jar cocoon blocks? Derek On 2008/10/15 at 10:03, in message [EMAIL PROTECTED], DAVIGNON Andre - CETE NP/DIODé/PANDOC [EMAIL PROTECTED] wrote: Hi Derek, I have been working with Cocoon + CForms for a while now, but now have to deal with some more complex processing requirements. I had thought this would be a simple matter, but alas not... Issue 1. I have heavily customized stylesheets that I use for form display. Going back to the default stylesheets is problematic. Issue 2. Locating the resources? This message: http://marc.info/?l=xml-cocoon-usersm=111323898129449w=2 (and others) refer to the WEB-INF/classes/org//forms/resources directory. This I simply cannot find. I have WEB-INF/classes/org/apache/cocoon/forms but no resources directory in sight. I have tried to copy use the various files directly from the Cocoon installation files... but to no avail. In the end, I have tried to create a small test app, based on the car selector sample, with details as shown below. Although the form displays just fine, it does not exhibit any of the dynamic behavior of the original sample. Comparison of the source code of the two web pages shows them to be the same! What (probably obvious) element/s am I missing? I'm afraid i have to say the same thing about migrating regular CForms to Ajax CForms. I've had a hard time and had to rewrite some stuff like stylesheets. Anyway, i think it's worth the effort :-). Most of resources are located in .jar cocoon blocks. They must be correctly matched in your sitemap : map:pipeline id=_cocoon map:match pattern=_cocoon/resources/*/** map:select type=resource-exists map:when test=resources/{1}/{2} map:read src=resources/{1}/{2}/ /map:when map:otherwise map:read src=resource://org/apache/cocoon/{1}/resources/{2}/ /map:otherwise /map:select /map:match /map:pipeline Cheers, André -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: bonebreaker example
Happy memories!! (Sorry, Jeff, I have not run this for a looong time but if it still works, that's a pretty good testament both to its design and Cocoon's stability...) On 2008/10/13 at 02:53, in message [EMAIL PROTECTED], Jeff Schmitz [EMAIL PROTECTED] wrote: Am wanting to setup my cocoon pages using header and footer templates and was wondering if the bonebreaker example is still the best approach for this? It's pretty old, but seems to still run. http://www.cocooncenter.org/articles/navigation/directory.html Thanks, Jeff -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AJAX in CForms... not that simple?!
I have been working with Cocoon + CForms for a while now, but now have to deal with some more complex processing requirements. I had thought this would be a simple matter, but alas not... Issue 1. I have heavily customized stylesheets that I use for form display. Going back to the default stylesheets is problematic. Issue 2. Locating the resources? This message: http://marc.info/?l=xml-cocoon-usersm=111323898129449w=2 (and others) refer to the WEB-INF/classes/org//forms/resources directory. This I simply cannot find. I have WEB-INF/classes/org/apache/cocoon/forms but no resources directory in sight. I have tried to copy use the various files directly from the Cocoon installation files... but to no avail. In the end, I have tried to create a small test app, based on the car selector sample, with details as shown below. Although the form displays just fine, it does not exhibit any of the dynamic behavior of the original sample. Comparison of the source code of the two web pages shows them to be the same! What (probably obvious) element/s am I missing? Thanks Derek !-- CAR SELECTOR FILES AND SETUP -- I have the following directory/files: flow/forms_flow_example.js This file is stripped down to: cocoon.load(resource://org/apache/cocoon/forms/flow/javascript/Form.js); function selectCar() { var form = new Form(cocoon:/carselector_form); form.lookupWidget(make).setValue(cocoon.parameters.defaultMake); form.showForm(carselector-display-pipeline.jx); cocoon.request.setAttribute(carselectorform, form.getWidget()); cocoon.sendPage(carselector-success-pipeline.xsp, {make: form.lookupWidget(make).value, type: form.lookupWidget(type).value, model: form.lookupWidget(model).value} ); } resources/cforms.js resources/cocoon-ajax.js resources/forms-lib.js resources/forms.css resources/jx-macros.xml stylesheets/forms/forms-advanced-field-styling.xsl The above sheet I have altered as follows: xsl:import href=forms-field-styling.xsl/ xsl:include href=forms-calendar-styling.xsl/ xsl:include href=forms-htmlarea-styling.xsl/ !-- xsl:template match=head mode=forms-field xsl:apply-imports/ script src={$resources-uri}/forms/mattkruse-lib/AnchorPosition.js type=text/javascript/ script src={$resources-uri}/forms/mattkruse-lib/PopupWindow.js type=text/javascript/ script src={$resources-uri}/forms/mattkruse-lib/OptionTransfer.js type=text/javascript/ script src={$resources-uri}/forms/mattkruse-lib/selectbox.js type=text/javascript/ xsl:apply-templates select=. mode=forms-calendar/ xsl:apply-templates select=. mode=forms-htmlarea/ /xsl:template -- stylesheets/forms/forms-field-styling.xsl In this above sheet I have altered the scripts to point directly at the files in the same app. ie. xsl:template match=head mode=forms-field script src=../../resources/forms-lib.js type=text/javascript/ script src=../../resources/cocoon-ajax.js type=text/javascript/ script src=../../resources/cforms.js type=text/javascript/ link rel=stylesheet type=text/css href=../../resources/forms.css/ /xsl:template stylesheets/forms/forms-page-styling.xsl stylesheets/forms/forms-samples-styling.xsl In this aboove sheet I have altered the includes to point directly at the other files in the same directory ie. xsl:include href=forms-page-styling.xsl/ xsl:include href=forms-advanced-field-styling.xsl/ stylesheets/doc/simple-page2html.xsl tables/carselector_form.xml tables/carselector_template.xml tables/carselector_success_jx.xml forms/car-db.xml forms/carfilter.xsl Finally, the sitemap has entries here: map:transformers default=xslt map:transformer name=browser-update src=org.apache.cocoon.ajax.BrowserUpdateTransformer/ and here: map:selectors default=browser map:selector name=ajax-request src=org.apache.cocoon.ajax.AjaxRequestSelector/ and finally, at the top of the map:pipelinesmap:pipeline : !-- == AJAX -- !-- generate form -- !-- handle dynamic form definition generation -- map:match pattern=*_form map:generate src=tables/{1}_form.xml type=jx label=dbg1 map:parameter name=userrole value={session-attr:usersrole}/ /map:generate map:serialize type=xml / /map:match map:match pattern=*-success-pipeline.xsp map:generate type=jx src=tables/{1}_success_jx.xml/ map:call resource=simple-page2html map:parameter name=file value=tables/{1}_template_jx.xml/ /map:call map:serialize/ /map:match map:match pattern=docs/carselector map:call function=selectCar map:parameter name=defaultMake value=Maserati/ /map:call /map:match !-- | Show a form, using the jx template macros -- map:match pattern=*-display-pipeline.jx map:generate type=jx src=tables/{1}_template.xml
Handling file not found errors
Using Cocoon 2.1.8 I am displaying data from a database that, in theory, contains URL links to files on the local server. Occasionally, for various reasons, the files are not available. At the moment, Cocoon returns an informative - but ugly - error page: Resource not found java.io.FileNotFoundException: [path to missing file] (The system cannot find the file specified) Cocoon stacktrace[hide] Error during resolving of the input stream file: [...]myapp/sitemap.xmap - 335:73 map:read file: [...]myapp/sitemap.xmap - 887:66 map:mount Is there a way I can trap this error and display a custom page with a more friendly message? Thanks Derek -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Handling file not found errors
Thanks Alexander I know I do not quite grok this yet... I have: map:selector name=exception src=org.apache.cocoon.selection.ExceptionSelector exception name=not-found class=org.apache.cocoon.ResourceNotFoundException/ exception name=file-not-found class=java.io.FileNotFoundException/ /map:selector ... (after the last pipeline) ... map:handle-errors map:select type=exception map:when test=not-found map:generate type=file src=docs/missing.xml/ map:call resource=simple-page2html status-code=404/ /map:when map:when test=file-not-found map:generate type=file src=docs/missingfile.xml/ map:call resource=simple-page2html status-code=404/ /map:when /map:select /map:handle-errors Which does not seem to work ie. still get same error page below? Thanks Derek On 2008/10/10 at 11:48, in message [EMAIL PROTECTED], Alexander Daniel [EMAIL PROTECTED] wrote: On 10.10.2008, at 10:48, Derek Hohls wrote: Using Cocoon 2.1.8 I am displaying data from a database that, in theory, contains URL links to files on the local server. Occasionally, for various reasons, the files are not available. At the moment, Cocoon returns an informative - but ugly - error page: Resource not found java.io.FileNotFoundException: [path to missing file] (The system cannot find the file specified) Cocoon stacktrace[hide] Error during resolving of the input stream file: [...]myapp/ sitemap.xmap - 335:73 map:read file: [...]myapp/sitemap.xmap - 887:66 map:mount Is there a way I can trap this error and display a custom page with a more friendly message? This is possible with error handling [1]. Alex [1] http://cocoon.apache.org/2.1/userdocs/concepts/errorhandling.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to force a Save As prompt?
David I agree with your examples below - I guess its been quite a long time since I had to work with systems that made me add .php or .jsp to my URLs. We are spoiled by Cocoon :) Derek On 2008/10/09 at 03:30, in message [EMAIL PROTECTED], David Legg [EMAIL PROTECTED] wrote: Derek, Before getting into detail, I'd like to say that I do agree in principle with what you said below. Oh Good! I was worried for a moment when I saw the size of your response ;-) My real issue probably lies in the fact that I have been around computers too long. Ah yes... I remember building my own bi-stable flip flop circuits! PS The answer to your question of Microsoft Word file is - neither!The existing URL (poor though it might be) is still a valid one and should be kept. Ok. I was thinking off the top of my head. A better example might be publishing a page with a URL of 'today.asp' or 'today.jsp'. The extension here is irrelevant and simply overcomplicates the URL for the poor humans that might have to type it in or remember it. I see URLs in a more semantic way now after following the workings of the semantic web crowd. Another simple example occurs with images. We don't really need to note the fact that an image is in gif format by stating that in a URL. Times change and it may be that for legal reasons you can no longer use GIF format at all on your site and you have to use PNG instead. So all those URL references to mylogo.gif have now got to change. Whereas if you had supplied a url of /images/mylogo the change would be invisible and the URL could remain unchanged. I think I'll stop now... I might catch the zealot bug ;-) Regards, David Legg -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to force a Save As prompt?
Dave Before getting into detail, I'd like to say that I do agree in principle with what you said below. My real issue probably lies in the fact that I have been around computers too long. If I look at archives of my files from the early 90's; when DOS still reigned supreme, I see names like birthday.inv and new-pc.mem and tax91.let. We had WordPerfect back then and I used the file extension to indicate what type of document it was. Both the program and I were happy - and neither had to pretend that the file extension indicated what type of _application_ was needed to open that file! The dawn of M$ Windows and its office sweet, along with long file names, led us down the road of the file extension is reserved by the OS so it knows what to do with the file. Its only now, as I come to Linux, that I realize what a distortion that was. A name is just a name - the real issue is what is in the file?. Its a bit like meeting someone, who because he is wearing a suit and tie, you assume is a manager (in fact, he turns out to be the cleaner on the way to his daughters's wedding!).The unfortunate side-effect of the dominance of IE as a browser is that it too has inherited this annoyance from its siblings; this despite the fact that the Internet is the most heterogenous computing environment that exists, and its more than likely that a . in the context of the web means something quite different from the context of one's OS. When I look at the suggested syntax for REST-based URLs, the authors seem to have the same way of thinking - an example is mydomain.com/hotels/hawaii/list/all - which we would assume returns a list of all hotels in Hawaii. But is this really different in meaning from mydomain.com/hotels.hawaii.list.all - would anyone looking at this (excluding a Windows application) really think they are getting some strange all file? Are either of these URLs better or more generic - I think not. The bottom line - I want my . back - in fact, I want all of them back! :) Derek PS The answer to your question of Microsoft Word file is - neither!The existing URL (poor though it might be) is still a valid one and should be kept. Ideally it should also keep delivering the M$ file since that is what the users are expecting. I might publish a new URL called:http://myorg.org/importantdocs/thisweek.xml or, perhaps better, http://myorg.org/importantdocs/thisweek or even http://myorg.org/importantdocs/thisweek/xml (if I am going to be all RESTy) and deliver the new document via this address. (Of course, I would pursue a parallel course persuading my readers to switch to the new address... and yes, in time, eventually deprecate the old one in some way). The point here is that a URL, especially a widely accessed one, should be able to remain in place if possible, but that this has little to do with a supposed extension appearing in the name. PPS I do agree with pretty much everything in the W3C doc - except for the notion that the . has some special meaning - well, it might to M$, but in the context of designing a URI it is neither here or there (see above example for the REST service). On 2008/10/09 at 12:27, in message [EMAIL PROTECTED], David Legg [EMAIL PROTECTED] wrote: Derek, Please add the reference/link for why URLs in Cocoon should not have an extension - I know its required, but why is it bad? It's not specific to Cocoon. I only mentioned that because Cocoon's sitemap makes it particularly easy to map a URL without an extension to some content. So in general, it is not a good idea to include extensions in a URL if you want that URL to be useful for a long time to come. The extension may contain implementation specific details which may not always be true. It's generally considered better to publish a generic URL and then let the browser use content negotiation to determine whether it can accept that content. For example, what if your organization regularly published an important document as a Microsoft Word file (*.doc) and published it on your site with a URL of: http://myorg.org/importantdocs/thisweek.doc That's great and you would probably bookmark it and everything would be fine... until your organization decided to move with the times and publish it as a styled xml document. Now you have a dilemma... do you change the url so it contains a .xml extension and risk losing your loyal followers (whose bookmarks no longer work) or do you keep the same url which ends in .doc but is actually an xml file? A great resource for all this is the W3C's own Cool URIs [1] page. There are a lot of other url advocates out there like this one [2]. I suppose though, if you are talking about downloads this might all be a bit academic. After all if you want to download an executable file the chances are it will remain in the same format forever... but you should at least spend half a second
Re: How to force a Save As prompt?
David Please add the reference/link for why URLs in Cocoon should not have an extension - I know its required, but why is it bad? Derek On 2008/10/09 at 12:47, in message [EMAIL PROTECTED], David Legg [EMAIL PROTECTED] wrote: Mmmm... Does anyone still care about IE4 - the stats from different sites suggest not: By chance I came across another item [1] which seems to suggest that perhaps the problem is not exclusive to IE4. Maybe IE5 and IE6 are involved too. The article gets a few developers worked up after the beginning. My reading of it seems to imply that mime-sniffing takes place if IE can't work out the mime-type from the url. So if your url ends in .html you are ok, but if it ends in no extension (something which is considered good practice in Cocoon) it will sniff the file content and use that to decide what to do with the downloaded file. It would be interesting to know if anyone else has come across this issue with IE7. Regards, David Legg [1] http://blogs.msdn.com/ie/archive/2005/02/01/364581.aspx - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: javascript embedded in *.jx files
Not that strange when you consider what is happening. In your web page you have the entry src=js/myPageScript.js This essentially becomes a request to the server to find and return data from the js/myPageScript.js URI. The web server in turn passes that request through to the application - in this case, Cocoon - which must be able to handle it. Cocoon's primary decision handling framework is the sitemap. So every request, or type of request, that Cocoon is going to get must have a corresponding entry somewhere in it. In short, the answer is yes! On 2008/10/07 at 09:57, in message [EMAIL PROTECTED], Jeff Schmitz [EMAIL PROTECTED] wrote: Hmmm, that seems strange to me. Note that I really just the script tag, which is part of the *.jx page, to just passed through as is and become part of the html page to be returned. I don't want the actuall javascript file to become part of the returned page. I didn't expect to have to create a match for the src attribute of my script tag. e.g. I may have a myPage.jx file with the following tag: script type=text/javascript src=js/myPageScript.js /script For this case, do I need a match in my sitemap for myPageScript.js? Jeff On Tuesday, October 07, 2008, at 01:49PM, Jasha Joachimsthal [EMAIL PROTECTED] wrote: -Original Message- From: Jeff Schmitz [mailto:[EMAIL PROTECTED] Sent: Tue 10/7/2008 17:32 To: users@cocoon.apache.org Subject: Re: javascript embedded in *.jx files Really, external scripts aren't working for you? Why not? I think the main reason was I couldn't figure out how to correctly point to where the script was. I kept getting file not found errors in the output. Is there a matcher in your sitemap for the javascript file. Something like map:match pattern=*.js !-- request for myscript.js or myscript1.js -- map:read src=js/{1}.js/ !-- actual script is located inside the js directory -- /map:match -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to force a Save As prompt?
Does anyone still care about IE4 - the stats from different sites suggest not: http://www.w3schools.com/browsers/browsers_stats.asp http://www.upsdell.com/BrowserNews/stat.htm http://www.thecounter.com/stats/2008/September/browser.php Looks like IE5 usage is down below 1% and no one even bothers to count IE4 users... so I would say the OP would not have to worry about this issue :-) On 2008/10/07 at 04:10, in message [EMAIL PROTECTED], David Legg [EMAIL PROTECTED] wrote: is there a way or workaround how i can force a Save As prompt for my cocoon output? The problem is that the browser knows the mime types of the generated files (xml, pdfs) and displays it instead of prompting. See http://markmail.org/message/jgcetksksgmpfk2c#query:cocoon%20content%20disposition%20header+page:1+mid:dt2547iguthv34dg+state:results (Content disposition header) Ah! this all brings back some memories. This article summarizes what you need nicely [1] Just for reference, I presume you don't care about IE4? The technique of setting the content-disposition header doesn't work for that browser because even if you used the content-disposition header it still sniffed the file you were downloading and acted on what it found there rather than what you told it [2]. Regards, David Legg [1] http://support.microsoft.com/kb/260519 [2] http://support.microsoft.com/kb/182315/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: flowscript editor
Some googling turns up: http://eclipse.moelleryoung.com/jseditor/ designed as a plug-in for eclipse ... not sure about status or usefulness What else? On 2008/10/08 at 09:32, in message [EMAIL PROTECTED], Jeroen Reijn [EMAIL PROTECTED] wrote: Hi Jeff, I'm not aware of anything like this, but flowscript is mozilla rhino under the hood. It might be that they have something for rhino, which you can use. Regards, Jeroen Jeff Schmitz wrote: My flowscript is starting to get pretty complex and I was wondering what most people use for a flowscript editor? I'd like one that could check for at least syntax errors so I don't have to find them at runtime. Code completion would be good too along with Eclipse integration. Does something like that exists? Thanks, Jeff - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to implement back button functionality from within a flow script
Paul The short answer is, AFAIK, probably no. That said, I am sure there are some flowscript gurus who might show a way to do this with continuations? The right answer might be don't i.e. if a user has changed an item in a list, why take him back to a previous version of the list which will not show his changes? An alternative longer answer might be that you need to use some clever browser-side Javascript to manipulate the list values *inside the page it is displayed* (i.e. do not send the user off to a new page with another form) to make it appear like an instant change while, in the background, you use AJAX to send off the changed value. Without knowing more about the specifics of where you get the data from, where it goes to, and how it is validated etc. its not possible to flesh this out further. Sidebar: I have come across a number of articles recently which point out how poor the web is for dynamic applications and yet that seems to be what we are forcing ourselves to tackle. Square pegs in round holes? Derek On 2008/10/08 at 03:14, in message [EMAIL PROTECTED], Paul Joseph [EMAIL PROTECTED] wrote: Hi There, Would anyone know how from within a flowscript, I can cause the browser to do a simple back? I have a page that contains a list and which, if the list is large can take a minute to build. Usually the list is not big, but on occasion it is. When someone clicks on an item in the list, they are put into a edit form where they can edit the contents of the list. When they hit save, currently, they are sent back to the list WHICH IS REBUILT FROM SCRATCH. Is there anyway for me to specify in the flow script to do a simple back button on browser click so that the list is NOT built from scratch. Thx. Paul - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Jasper Reports and Cocoon?
Hi Is anyone using these together - found one very old message: http://archives.devshed.com/forums/apache-92/jasperreports-jfreereports-1347966.html but was wondering if there are any current efforts? Thanks Derek -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Sticking with 2.1.* ( was '[Announce] Apache Lenya 2.0.2 released' )
Which in turn inspired Hugh Sparks to create this web page: http://www.csparks.com/cocoon/c22without/index.xhtml (Strong feeling of deja vu here... and also a strong feeling that this type of thread is going to be repeated is going to be repeated a number of times in the future...) On 2008/09/03 at 11:46, in message [EMAIL PROTECTED], Jasha Joachimsthal [EMAIL PROTECTED] wrote: Vadim did a talk on last year's GetTogether about Cocoon 2.2 in 'classic mode'. See http://blog.reverycodes.com/archives/45.html Regards, Jasha Joachimsthal [EMAIL PROTECTED] - [EMAIL PROTECTED] www.onehippo.com Amsterdam - Hippo B.V. Oosteinde 11 1017 WT Amsterdam +31(0)20-5224466 San Francisco - Hippo USA Inc. 101 H Street, suite Q Petaluma CA 94952-3329 +1 (707) 773-4646 -Original Message- From: Andreas Kuehne [mailto:[EMAIL PROTECTED] Sent: woensdag 3 september 2008 11:34 To: users@cocoon.apache.org Subject: Re: Sticking with 2.1.* ( was '[Announce] Apache Lenya 2.0.2 released' ) My point is : Can I use 2.2 in my project ( including my transformers and actions ) without migarting to maven ? I remenber back at Cocoon Gentogether 2006 someone on the stage saying : 'maven took us one year !' For me I can shurely say : I don't have a year to waste ... Greetings Andreas - Original Message From: Joerg Heinicke [EMAIL PROTECTED] To: users@cocoon.apache.org Sent: Monday, September 1, 2008 10:40:52 PM Subject: Re: Sticking with 2.1.* ( was '[Announce] Apache Lenya 2.0.2 released' ) On 01.09.2008 12:28, Andreas Kuehne wrote: Yes, for a pure 'uses' relataionship ... But there a re a bunch of transformers, actions and stuff ... this won't migrate withn a coffee break ! I don't get your point. What's the difference to a normal update? Joerg - Original Message From: Carsten Ziegeler [EMAIL PROTECTED] To: users@cocoon.apache.org Sent: Monday, September 1, 2008 11:20:11 AM Subject: Re: [Announce] Apache Lenya 2.0.2 released Andreas Kuehne wrote: Hi Andreas, intersting to hear lenya team's view on 2.2 / maven ! I'm shure there are many projects around not willing / not able to migarte to Cocoon 2.2 / Maven. What about a formal (sub-)project to maintain the 2.1.* thread ? And let's give it a diffent name ( like 'cocoon granite' ) to avoid the the smell of a dead version walking ... Imho, there is no need to use maven if you want to use Cocoon 2.2. Things might be easier (or not - depending on your pov) if you use maven, but it is not a requirement. Just download the required jars and use them as libs. Carsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Announce] Apache Lenya 2.0.2 released
A quick question - is this new version based on Cocoon 2.2 or 2.1? On 2008/08/29 at 09:13, in message [EMAIL PROTECTED], Richard Frovarp [EMAIL PROTECTED] wrote: Apache Lenya 2.0.2 released === The Apache Lenya development community is proud to announce the 2.0.2 release of Apache Lenya. Apache Lenya is an Open Source Java/XML Content Management System and comes with revision control, site management, scheduling, search, WYSIWYG editors, and workflow. Apache Lenya is based on Apache Cocoon (http://cocoon.apache.org). You can use Cocoon features such as robust caching, multi-channel output, it's many connectivity options to quickly build customized solutions to meet your specific needs that are not already covered by Apache Lenya today. Check out the Apache Lenya website (http://lenya.apache.org) for more information. The Apache Lenya Community Bug Fixes in Apache Lenya 2.0.2 === * Miscellaneous smaller bugfixes * Miscellaneous performance enhancements * Fixes for web tests * Fixed infinite loop caused by unsynchronized HashMap * Removed old multiple inheritance code that wasn't functional * Enhanced / Fixed layout for asset overview New Features in Apache Lenya 2.0.2 == * New navigation module for more flexibility (it's use is optional) * Added meta data search capabilities (e.g. image search) * Added checkin of live sitetree * Added report to find broken internal links * Added session monitoring * Display file size in overview - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Lost on-line samples
Looks like this is a demo for 2.1.11 - not 2.2 - even though it says Demo of the current Cocoon release under the section Main demos and tutorials May be worth differentiating between 2.1 and 2.2 is this section as well as in the one below it, just to avoid any confusion. On 2008/08/31 at 03:20, in message [EMAIL PROTECTED], Ken Starks [EMAIL PROTECTED] wrote: Jasha Joachimsthal wrote: Hi Ken, you can find an online demo at http://cocoon.zones.apache.org/ Jasha -Oorspronkelijk bericht- Van: Ken Starks [mailto:[EMAIL PROTECTED] Verzonden: zo 31-8-2008 14:04 Aan: users@cocoon.apache.org Onderwerp: Lost on-line samples A friend wanted a look at some of Cocoon's abilities without downloading it. (In fact, at the public library). I am sure I once found the 'samples' page somewhere on line, and __thought-__ it was on the cocoon site. Now I'm not so sure, because I have not been able to find it. If there is an official url, I would rather use it than a private one put up seemingly by mistake. A google serach for cocoon/samples/hello-world/ did take me, for example, to http://www.mokolo.org:8080/cocoon/samples/hello-world/ A google search for site:cocoon.apache.org cocoon/samples/hello-world got zero hits. If there is an official on-line site for the samples, could someone point me to it? Cheers, Ken. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Thanks Jasha, that was it, I'm sure. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[OFF TOPIC] Reinhard Poetz' blog?
Anyone know what is happening with/at this website: http://www.indoqa.com/ I keep getting a 502 proxy error... -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.
Re: Get Metadata from database
Johannes I think this is database dependant - in MySQL (ver 5+) you can read this type of information from the INFORMATION_SCHEMA table. http://dev.mysql.com/doc/refman/5.0/en/information-schema.html Derek On 2008/09/01 at 09:27, in message [EMAIL PROTECTED], Johannes Hoechstaedter [EMAIL PROTECTED] wrote: Is it possible to fetch the metadata from a database, such as table names, column names, column types and so on? cheers Johannes -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: floating button in CForms
have a look at: http://reference.sitepoint.com/css/position http://www.w3schools.com/Css/pr_class_position.asp http://www.quirksmode.org/css/position.html the 'position:fixed' style does not really seem to work with IE... On 2008/09/01 at 02:15, in message [EMAIL PROTECTED], Paul Joseph [EMAIL PROTECTED] wrote: Hi David, Thank you for your reply. I *think* I understand what you say about the CSS based approach (which is the one I have to use as redesigning the form for the client would be too big a change at present.) I'd like to confirm one thing though before I buy that book: I'd suggest looking up the 'position:fixed' style. Do you mean that the position:fixed style will keep the button fixed in the visible browser pane, regardless of me scrolling? rgds Paul On Sun, Aug 31, 2008 at 11:44 AM, David Legg [EMAIL PROTECTED] wrote: Hi Paul, I have a Lg CForm and the client would like the Save button to float so that it is always visible? I should think your best bet would be to use a CSS stylesheet to fix the position of the save button. You could treat the save button like the contents of a fixed footer at the bottom of the page. I'd suggest looking up the 'position:fixed' style. Be warned though that IE 5 and friends doesn't support this, so a work-around has to be done for those. I'd recommend the sitepoint book: 'The CSS Anthology: 101 Essential Tips, Tricks Hacks' [1] by Rachel Andrew if you are looking for ready made examples. [I'm not affiliated to this book in any way!]. Another approach might be to break up the form into smaller groups and only show one group at a time. An example can be found in the Multi-page wizard demo [2] Hope that helps. David Legg [1] http://www.sitepoint.com/books/cssant2/ [2] http://cocoon.zones.apache.org/demos/release/samples/blocks/forms/do-multipage.flow - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Announce] Apache Lenya 2.0.2 released
David Now you're just describing computers in general! Derek On 2008/09/01 at 03:10, in message [EMAIL PROTECTED], David Legg [EMAIL PROTECTED] wrote: Hi Ken, The insect has emerged from its cocoon, lived its life, and is now preserved in amber as a thing of beauty, a little jewel. That's very poetic... I tend to visualize it more like a tin can filled with worms ;-) David Legg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cocoon 2.1.11 and XSLTC
Maybe not so common... but if you want a response from the developers - who are very active on this list - you may need to post something more specific (preferably with error logs) than seams to provoke some weird side effects. On 2008/08/29 at 09:32, in message [EMAIL PROTECTED], Laurent Medioni [EMAIL PROTECTED] wrote: Hi, Should I transfer this question to the Cocoon developers list ? I thought I could get some answers from user experiences* I cannot believe everybody uses the default configuration ;) Or is it so a dumb question* ? ;) Thanks. From:Laurent Medioni [mailto:[EMAIL PROTECTED] Sent: mardi, 26. août 2008 11:08 To: users@cocoon.apache.org Subject: Cocoon 2.1.11 and XSLTC Hi, is it reasonable to set the default xslt processor to XSLTC in cocoon.xconf ? It seams to provoke some weird side effects in my case* Would it be a *common* change of the standard configuration ? (or is this why the standard xconf does not propose it ;)) Thanks. -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Howto use Dojo standalone with cocoon ? (does that make senseat all?)
Alessandro Why not add this page to the Cocoon Wiki; its then readily accessible (and findable) by all? On 2008/08/20 at 08:46, in message [EMAIL PROTECTED], Alessandro Vincelli [EMAIL PROTECTED] wrote: Hussayn i'm working on a similar task. I created a simple block that contains the latest version of the dojo toolkit. You can get the code and some simple documentation on this page: http://devel.alessandro.vincelli.name/item/30.html Let me know Alessandro hussayn wrote: Hi, Grzegorz thank you for your in depth response. You have pointed me to a whole lot of information snippets, but now my central question is: Where do i have to place what ? It would already help to find something (tutorial/documentation/faq) that tells me in simple worlds, how i have to add a ready made block to my application. From that i can then derive, how to add the ajax-features into my block (or besides it, whatever...) something like the following list... (just a guess, i might be completely wrong): 1.) download the ajax-block and place it adjacent to your existing block 2.) install your new block in maven repository 3.) go to your block and add a dependency to the ajax-block there 4.) go to your application context file and ... 5.) ... Isn't there a document, that explains such thing ? i am overlooking it ? sorry for beeing so unknowing and not able to see, how it works. i am sure, it is trivial, i just dont see it... (maybe i have to look into the cocoon-2.1 docs ?) so, thank you in advance for any further explanation. best regards, hussayn -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Not able to create and test cocoon2.2 webapp with maven/jetty
Ken I am very curious how you plan to get PDF output using LaTeX and Cocoon - I have seen Hugh's page where he generates GIF images from LaTeX equations ( http://www.csparks.com/jeuler/index.jhtml ) but this seems an order-of-magnitude more complex. Derek On 2008/08/21 at 09:37, in message [EMAIL PROTECTED], Ken Starks [EMAIL PROTECTED] wrote: Luca Morandini wrote: jantje wrote: So on the internet I am searching ways to generate cocoon webapp from my blocks. There I have found the install instruction and the advice to use it.. So do you think there is a better way to generate a webapp. And do you advice me not to install my seperate blocks? I'm not sure to get what you mean... but the idea is to create a Cocoon webapp by using the cocoon-archetype-webapp and then declare the needed blocks in its pom.xml, not to generate webapps from blocks. You may look at an example of said steps in: http://www.lucamorandini.it/fins/installation.html Regards, Luca Morandini Hello Luca, My main interest is in making a wider variety of diagram than those used in 'business graphics'. This is because there is quite a number of utilities already in that corner of the market. But your project is still of interest to me. I was wondering whether you have an xml-schema, or a good bunch of samples of the source XML files you use in Fins. My interest would be to go to a PDF edition of the charts without passing through SVG, and using LaTeX and friends rather than FOP. -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Porting Cocoon 2.1.10 application to Cocoon 2.2.0
Robby I suppose it all depends by what you mean upgrade. If you just need to port all your existing code over, perhaps start with Hugh's guide: http://www.csparks.com/cocoon/c22without/index.xhtml (note the section marked Add your content) Otherwise, if you find something equivalent; or some other guide for a 'step by step' change from 2.1 to 2.2, please let us know! On 2008/08/21 at 12:04, in message [EMAIL PROTECTED], Robby Pelssers [EMAIL PROTECTED] wrote: Hi all, Does anybody know if there is documentation available that describes what steps to take to upgrade to Cocoon 2.2.0? Cheers, Robby Pelssers -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: My log level is already like this then how to go for debugging ?
Your problem statement is not precise enough to give an exact answer, but essentially there are two options: * if you need to look the XML at different steps in the pipeline, try using views: http://cocoon.apache.org/2.0/userdocs/concepts/views.html * if you need to debug inside of the XSLT, have a look at: http://www.ibm.com/developerworks/xml/library/x-debugxs.html On 2008/08/15 at 08:08, in message [EMAIL PROTECTED], student csu [EMAIL PROTECTED] wrote: My log level is already like this then how to go for debugging ? I haveto see the xml that is combining the xslt.Please answer me. root priority value =debug / appender-ref ref=COCOON_DEFAULT / /root /log4j:configuration As I have to debug the xslt and see what school is doing here ? xsl:template match=//school mode=ab xsl:choose xsl:when test= not(fees/feesList) h1my Account /h1 Thanks, su -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: AW: JavaFlow in Cocoon 2.2
Chris That's what you get for living on the bleeding edge :) Seriously, though, I appreciate all the work the early adopters are doing to put 2.2 through its paces. However, I have not really seen anything yet that makes me want to rush out and try it. Derek Footnote: As this is the Internet and my message may be recorded for posterity, I will add that I may end up eating these words in the not-too-distant future! On 2008/08/14 at 04:05, in message [EMAIL PROTECTED]@c-ware.de, Christofer Dutz [EMAIL PROTECTED] wrote: Hi Torsten, after having another close look at my cocoon 2.2 trunk build, I could see, that the build of allBlocks was successful, but the javaFlow block was not build because of the missing dependency you were talking about. I think it's really great, that we have to use Maven to get rid of dependency problems ... Looking forward to Maven3 ;-) Do I really have to build Commons myself now? ... I have to admit that the struggle of getting C2.2 to work is sort of really pissing me off. I think this even higher initial learning curve will keep more and more users from using Cocoon. Instead of getting easier it's getting more and more complicated :-( ... I want my Ant build back! ;-) Chris -Ursprüngliche Nachricht- Von: Torsten Curdt [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 14. August 2008 10:57 An: users@cocoon.apache.org Betreff: Re: AW: JavaFlow in Cocoon 2.2 I suspect the problem to be that the commons-javaflow snapshot got pruned from the repository. But that's just a guess. Use maven with verbose output. It should tell you. cheers -- Torsten - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Can anyone let me know how to start build simple cocoon project .I am using jbuilder2008
Why not try the getting started? http://cocoon.apache.org/2.2/1159_1_1.html and then, as you encounter errors or problems, post them here so you can get help on specific issues. There *is* a lot to digest in Cocoon - but, like eating an elephant, best done one bite (byte?) at a time. On 2008/08/04 at 06:47, in message [EMAIL PROTECTED], student csu [EMAIL PROTECTED] wrote: Can anyone let me know how to start build simple cocoon project .I am using jbuilder2008m . I am getting so many errors that I feel like I should start from beginning I am missing some concept. thanks -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: File upload
Not sure about the background processing part: it seems to me that your browser *is* still involved in the process ie. it is doing the sending while the server is doing the receiving... but this may help ito keeping the users informed: http://blog.fiveone.org/2006/11/good-progress.html http://ajaxian.com/archives/dojo-file-upload-progress-bar-widget On 2008/08/04 at 05:44, in message [EMAIL PROTECTED], Magnus Haraldsen Amundsen [EMAIL PROTECTED] wrote: Hi, When doing file upload, and the file is at such a size that the processing of the uploaded file takes quite some time, is it possible to let the user continue with the browsing while the server handles the processing in the background? -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Database connection by cocoon 2.2
Joerg Not sure if you are speaking for the dev team here? What exactly does kind of obsolete mean - has it been deprecated, or is it still a valid component in 2.2? Or is there is some other meaning? Thanks. On 2008/07/19 at 01:08, in message [EMAIL PROTECTED], Joerg Heinicke [EMAIL PROTECTED] wrote: I agree with Boris. In Cocoon 2.2 the database block is kind of obsolete. An application should rather be developed with more standard means as provided by Spring. Cocoon was never very good at integrating database stuff. Joerg On 06.06.2008 10:05, Johannes Hoechstaedter wrote: I know, cocoon is based on spring. But isn't there another possibility with cocoon blocks only? There is this database-block. What it is good for, when I have to write my own spring application? I want to write as less code as possible. Johannes Johannes -- you may want to search for tutorials on using databases with Spring. My understanding is that with Cocoon 2.2 it is best to have Spring configure and manage any database connections. Then you can add Cocoon features (eg, the SQL transformer or whatever) once that is set up. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Simple cocoon distribution
Ditto from me. Not a major Java user. XSLT + Flowscript + the standard Cocoon components should handle 95% of all website needs. If I can use C2.2 without major investment in learning new development and programming tools, I will consider upgrading. Suggest that, if possible, you get support buy-in from the developers - then this could become part of the standard distro; making it a plus for other new users who need a jump start route. On 2008/07/22 at 07:49, in message [EMAIL PROTECTED], Tony Edwards [EMAIL PROTECTED] wrote: That sounds good to me! I've been keeping my head low for a while - trying to get a handle on the new concepts when all I really nead is something like you've suggested. I'm just not that into Java! Regards Tony Stephen Rosman wrote: There seems to have been some feedback about how hard cocoon 2.2 is since it requires users to use assorted development and programming tools when all they want to do is use sitemaps. I've been working on creating a simple cocoon war file that you could mount as a webapp using a tomcat context fragment and then using an initialisation parameter point it at your cocoon application. This would let you build a cocoon site without having to build war files or edit anything in them. Is anyone else interested in this approach? -- Tony Edwards Mob: 0411 636 761 Skype: anthony.b.edwards email: [EMAIL PROTECTED] http://vomoir.blogspot.com/ -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Passing a node-set from XSLT to Java
Andy I think you stumbled across one of the gotchas of XML; what looks simple and obvious is not always - at least, not to a machine. For more in-depth understanding of XML, I can recommend Ken Sall to explain it. There is a sample chapter from his book on-line: http://wdvl.internet.com/Authoring/Languages/XML/XMLFamily/XMLSyntax/ For example; see: http://wdvl.internet.com/Authoring/Languages/XML/XMLFamily/XMLSyntax/sall2_4.html where he explicitly says: In contrast to HTML, in which a sequence of white space characters is collapsed into a single white space and in which newlines are ignored, in XML all white space is taken literally. HTH Derek On 2008/07/04 at 12:48, in message [EMAIL PROTECTED], Andrew Chamberlain [EMAIL PROTECTED] wrote: Hi Luca, Jascon, Thanks very much - you've set me straight. I hadn't imagined that the blank space would constitute a seperate node. Andy -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tags in the value of an XSLT variable?
And that is not a trick, but standard XSLT; see: http://www.dpawson.co.uk/xsl/sect2/N1930.html#d3389e91 as select=. only selects the value (string) inside the tag/s. On 2008/06/27 at 06:48, in message [EMAIL PROTECTED], Betty Harvey [EMAIL PROTECTED] wrote: Try this for your xsl:copy: xsl:copyxsl:apply-templates select=@* | node() //xsl:copy quote who=Andrew Chamberlain Hi All, It's quite possible that this is more XSLT-related than Cocoon itself, but wasn't sure where else to post. I'm using an XSL transformer and need to capture a tree fragment in the value of variable ... including the tags themselves. The reason for this is because I need to pass the XML excerpt (as a string) to a Java class which is specifically written to parse it. I'm trying the following, but this only seems to include the values, and not the tags: xsl:variable name=gml xsl:copy-of select=./ /xsl:variable Can anyone help? Is there a trick for this? Many thanks, Andy -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tags in the value of an XSLT variable?
Andy This is confusing. In your original post, you said you wanted to: capture a tree fragment in the value of variable ... including the tags themselves This is now what you have. I am also not sure how you differentiate between a Node Tree vs a String. At the end, XML is just plain text. The fact that it has pointy brackets in it is because we assume that the processing software will be able to make use of it. So I think the answer lies in the Java code you have written - if it treats the incoming variable as just having plain text, then the brackets should make no difference. Maybe you need to expand more on what you want to happen on the Java side (tho' that is probably outside my scope of expertise) Derek On 2008/06/30 at 01:15, in message [EMAIL PROTECTED], Andrew Chamberlain [EMAIL PROTECTED] wrote: Hi Betty/Derek, Thanks for getting back. Yes, that's certainly helped. I'm now confident that my variable also contains the tags in addition to the values. It was by changing the . for @* | node() that did it. So my xslt looks like this: xsl:variable name=gml xsl:copy-of select=@* | node()/ /xsl:variable However, I now believe this variable is still a Node-Tree, and not a String. I need it to be the latter so I can pass the XML excerpt to the Java method I mentioned earlier (using xalan to do so). Is there a way of casting/translating a node tree into a String? Best regards, Andy Derek Hohls wrote: And that is not a trick, but standard XSLT; see:http://www.dpawson.co.uk/xsl/sect2/N1930.html#d3389e91as select=. only selects the value (string) inside the tag/s. On 2008/06/27 at 06:48, in message [EMAIL PROTECTED] ( mailto:[EMAIL PROTECTED] ), Betty Harvey [EMAIL PROTECTED] ( mailto:[EMAIL PROTECTED] ) wrote: Try this for your xsl:copy: xsl:copyxsl:apply-templates select=@* | node() //xsl:copyquote who=Andrew Chamberlain Hi All, It's quite possible that this is more XSLT-related than Cocoon itself, but wasn't sure where else to post. I'm using an XSL transformer and need to capture a tree fragment in the value of variable ... including the tags themselves. The reason for this is because I need to pass the XML excerpt (as a string) to a Java class which is specifically written to parse it. I'm trying the following, but this only seems to include the values, and not the tags: xsl:variable name=gml xsl:copy-of select=.//xsl:variable Can anyone help? Is there a trick for this? Many thanks, Andy -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN]: Fins 1.0 back-ported to Cocoon 2.1
Well, it made mine! Thanks Luca. PS. Any reason the pointer for the Fins schema in the FAQ does not link to the on-line version: http://svn.cocoondev.org/viewsvn/trunk/fins/fins-core/src/main/resources/COB-INF/schema/?root=fins On 2008/06/25 at 07:44, in message [EMAIL PROTECTED], Luca Morandini [EMAIL PROTECTED] wrote: I hope this will make the day for a few people :) http://www.lucamorandini.it/fins/faq.html Luca Morandini www.lucamorandini.it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.
Re: [ANN]: Fins 1.0 back-ported to Cocoon 2.1
And a very stupid question - where is the link for the download? the ViewVC site seems to allow you to browse display files - but how does one get all of them at once? On 2008/06/25 at 07:44, in message [EMAIL PROTECTED], Luca Morandini [EMAIL PROTECTED] wrote: I hope this will make the day for a few people :) http://www.lucamorandini.it/fins/faq.html Luca Morandini www.lucamorandini.it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.
Re: [ANN]: Fins 1.0 back-ported to Cocoon 2.1
Sorry, I was not too clear here. I was suggesting that the plain text src/main/resources/COB-INF/schema/ in the FAQ be converted to a hyperlink to point to that URL. On 2008/06/25 at 08:44, in message [EMAIL PROTECTED], Luca Morandini [EMAIL PROTECTED] wrote: Derek Hohls wrote: Well, it made mine! Thanks Luca. PS. Any reason the pointer for the Fins schema in the FAQ does not link to the on-line version: http://svn.cocoondev.org/viewsvn/trunk/fins/fins-core/src/main/resources/COB-INF/schema/?root=fins Hmmm... I think it works, just click on the View link. Luca Morandini www.lucamorandini.it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [ANN]: Fins 1.0 back-ported to Cocoon 2.1
Luca I am struggling to do this - have tried two clients so far... I know this is really not your problem, but does ViewVC really not have a download all for the source code - seems quite strange? Derek On 2008/06/25 at 08:44, in message [EMAIL PROTECTED], Luca Morandini [EMAIL PROTECTED] wrote: Derek Hohls wrote: And a very stupid question - where is the link for the download? the ViewVC site seems to allow you to browse display files - but how does one get all of them at once? You should get hold of an SVN client and issue something like: svn checkout http://svn.cocoondev.org/repos/fins/trunk fins Luca Morandini www.lucamorandini.it - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.
Re: [ANN]: Fins 1.0 back-ported to Cocoon 2.1
Luca Perhaps its the URL. I am currently using RapidSVN. I added a bookmark for Pebble - https://pebble.svn.sourceforge.net/svnroot/pebble and it worked just fine... But when I use : http://svn.cocoondev.org/repos/fins/trunk I get an error - Error: Error while updating filelist (PROPFIND request failed on '/repos/fins/trunk' PROPFIND of '/repos/fins/trunk': could not connect to server (http://svn.cocoondev.org)) Have I used the correct path? On 2008/06/25 at 10:42, in message [EMAIL PROTECTED], Luca Morandini [EMAIL PROTECTED] wrote: Derek Hohls wrote: I am struggling to do this - have tried two clients so far... Strange, usually SVN clients work like a charm. I would advise you to try harder, since SVN is so widely popular you will many occasions to use it in the future. -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Database connection by cocoon 2.2
Johannes Good question! The official and best way is to use Hibernate and Spring; this will, IMO, mean writing *lots* of code. You can use flowscript instead, for simple cases, but be warned that many here will point out the potential flaws in this approach. In the 2.1.x series of Cocoon, there was a sample that showed this approach: eg. see http://cocoon.jsp-servlet.net/samples/blocks/forms/ and look for Database access. I am not sure if you will be able to replicate this in 2.2? Derek On 2008/06/06 at 10:05, in message [EMAIL PROTECTED], Johannes Hoechstaedter [EMAIL PROTECTED] wrote: Good morning Bng, I know, cocoon is based on spring. But isn't there another possibility with cocoon blocks only? There is this database-block. What it is good for, when I have to write my own spring application? I want to write as less code as possible. Johannes Johannes -- you may want to search for tutorials on using databases with Spring. My understanding is that with Cocoon 2.2 it is best to have Spring configure and manage any database connections. Then you can add Cocoon features (eg, the SQL transformer or whatever) once that is set up. Bng - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support.
Re: Database connection by cocoon 2.2
Johannes Just curious - is there a pressing reason to use 2.2? Why not download and work with 2.1 (which ships with the sample code you requested). Again, IMO, 2.2 still needs more work - esp. docs and simple examples - in making it accessible to the average user. Cheers Derek On 2008/06/06 at 01:37, in message [EMAIL PROTECTED], Johannes Hoechstaedter [EMAIL PROTECTED] wrote: The linked sample is nice, and basically exactly what I am looking for. I have already searched on http://cocoon.apache.org/2.1/ on how I can etablish a database connection. You need an entry int your web.xml and in your cocoon.xconf for example. Where is the cocoon.xconf in 2.2? Where can I define my datasources? Where can I get the code of the sample? Johannes Derek Hohls schrieb: Johannes Good question! The official and best way is to use Hibernate and Spring; this will, IMO, mean writing *lots* of code. You can use flowscript instead, for simple cases, but be warned that many here will point out the potential flaws in this approach. In the 2.1.x series of Cocoon, there was a sample that showed this approach: eg. see http://cocoon.jsp ( http://cocoon.jsp/ )-servlet.net/samples/blocks/forms/ and look for Database access. I am not sure if you will be able to replicate this in 2.2? Derek On 2008/06/06 at 10:05, in message [EMAIL PROTECTED] mailto:[EMAIL PROTECTED], Johannes Hoechstaedter [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Good morning Bng, I know, cocoon is based on spring. But isn't there another possibility with cocoon blocks only? There is this database-block. What it is good for, when I have to write my own spring application? I want to write as less code as possible. Johannes Johannes -- you may want to search for tutorials on using databases with Spring. My understanding is that with Cocoon 2.2 it is best to have Spring configure and manage any database connections. Then you can add Cocoon features (eg, the SQL transformer or whatever) once that is set up. Bng - To unsubscribe, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by *MailScanner* http://www.mailscanner.info/, and is believed to be clean. MailScanner thanks Transtec Computers http://www.transtec.co.uk/ for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Type 'serverpages' does not exist for 'map:generate'
XSP is not available in Cocooon 2.2 - see: http://marc.info/?l=xml-cocoon-usersm=120349702914226w=2 where the developers suggest you migrate your code to use java objects + flowscript + template. Alternatively, stick to Cocoon 2.1 unless you have some other critical reasons to use 2.2 On 2008/06/03 at 07:09, in message [EMAIL PROTECTED], jantje [EMAIL PROTECTED] wrote: I can't use XSP in cocoon2.2 There is almost no documentation available. Where can I find information? Thanks jantje wrote: Hi there, For cocoon 2.2, with maven, i have this pipeline in my experimental sitemap-file: map:sitemap xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance; xsi:schemaLocation=http://apache.org/cocoon/sitemap/1.0 http://cocoon.apache.org/schema/sitemap/cocoon-sitemap-1.0.xsd; xmlns:map=http://apache.org/cocoon/sitemap/1.0; map:flow language=javascript/ map:pipelines map:pipeline map:match pattern=myFourthPipeline map:generate type=serverpages src=fourth.xsp/ map:transform src=myXml2PdfFile.xslt type=xslt/ map:serialize type=xml/ /map:match /map:pipelines /map:sitemap On starting 'mvn jetty-run', I get this error: javax.servlet.ServletException: org.apache.avalon.framework.configuration.ConfigurationException: Type 'serverpages' does not exist for 'map:generate' Is there something missing in my sitemap? Or is there something i have to do with maven? F.i. mvn compile??? Greetings and thanks for helping! -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [REPOST] Setting multi-value widget values for dynamically createdforms
Robin Thanks! This worked - with the modification that you only need: var values = new java.util.ArrayList(); Derek On 2008/06/03 at 03:57, in message [EMAIL PROTECTED], Robin Wyles [EMAIL PROTECTED] wrote: I'm not sure if it's the best way, but off the top of my head... var values = new Packages.com.java.util.ArrayList(); values.add(option 1); values.add(option 2); values.add(someMethodToGetAString()); values.add(someOtherMethodToGetAString()); fwidget.setValue(values.toArray()); Basically, the trick is to pass a simple array to the multi-value widget containing only the values you need to set... Cheers, Robin On 3 Jun 2008, at 14:48, Derek Hohls wrote: Robin How would you create the array programmtically ie. values array needs to be populated via data values sourced elsewhere ( and typically available in a string variable) rather than from a static list. Thanks Derek On 2008/06/03 at 03:32, in message F6853221-59B6-4F99- [EMAIL PROTECTED], Robin Wyles [EMAIL PROTECTED] wrote: Hi Derek, As far as I can remember you just need to set the multi-value widget value to a simple array, and I don't think you should initialise the array with 10 values if you are only setting 1. Something like this maybe: var values = [option1, option2]; // these are the values to pre- select fwidget.setValue(values); Cheers, Robin On 3 Jun 2008, at 08:13, Derek Hohls wrote: I am reposting in the hope that someone can find a few moments to look at this - I'm sure I am missing something simple, but cannot see what it is... On 2008/05/21 at 12:55, in message [EMAIL PROTECTED], Derek Hohls [EMAIL PROTECTED] wrote: I have a dynamically created form which I then access from flowscript var qit = newForm.getWidget().getChildren(); if (qit != null) { while ( qit.hasNext() ) { fwidget = qit.next() ; ... to get each widget. I now need to pre-select some values for all of the multi-value widgets. (Note that the widget below has a datatype of string). Approach 1 is what I *think* is correct; Approach 2 I know is wrong but it does confirm that the widget I am accessing is a MultiValueField. Any ideas as to how to make this work properly? Thanks Derek (Side note: if I omit this step, the rest of the form displays as expected, and values for other widget types are set OK.) Approach 1: var values = java.lang.reflect.Array.newInstance(java.lang.String, 10); values[0] = Option 1; fwidget.setValue(values); //NB also tried fwidget.setValues(values); Result 1: java.lang.NullPointerException at org.apache.cocoon.forms.formmodel.MultiValueField.setValues (MultiValueField.java:190) at org.apache.cocoon.forms.formmodel.MultiValueField.setValue (MultiValueField.java:180) ... Approach 2: fwidget.setValue(Option 1); Result 2: java.lang.RuntimeException: Cannot set value of field q-25--6 with an object of type java.lang.String at org.apache.cocoon.forms.formmodel.MultiValueField.setValue (MultiValueField.java:182) ... -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
REPOST: Database connection overload
Anyone have any ideas on this? On 2008/05/27 at 09:15, in message [EMAIL PROTECTED], Derek Hohls [EMAIL PROTECTED] wrote: Running Cocoon 2.1.8 It seems to be the case that, when the number of allowed database connections are exceeded (called by a getConnection in flowscript), the application will then freeze - is there any mechanism to detect and avoid this condition - and is there any means to reboot the application without restarting the whole servlet container (which affects all the other Cocoon applications which are running there)? Thanks Derek -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: REPOST: Database connection overload
Johannes This was my thought too. I have numerous modules functions that open (and should close!) connections. On manual inspection they all seem to be OK, but possibly there is one somewhere which is not correct. Hence my need to try and prevent this; or have the system in some way report exactly when where this is happening so I can fix the offending code. Any ideas on how to do this? Thanks Derek On 2008/06/04 at 11:18, in message [EMAIL PROTECTED], Johannes Textor [EMAIL PROTECTED] wrote: Derek, the only condition I am aware of which might make the application freeze is when connections are not properly closed and returned to the connection pool. Could you post the javascript code you use to obtain a connection from the DB and then close it ? Regards, Johannes Derek Hohls schrieb: Anyone have any ideas on this? On 2008/05/27 at 09:15, in message [EMAIL PROTECTED], Derek Hohls [EMAIL PROTECTED] wrote: Running Cocoon 2.1.8 It seems to be the case that, when the number of allowed database connections are exceeded (called by a getConnection in flowscript), the application will then freeze - is there any mechanism to detect and avoid this condition - and is there any means to reboot the application without restarting the whole servlet container (which affects all the other Cocoon applications which are running there)? Thanks Derek - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: REPOST: Database connection overload
Johannes Thanks for the detailed insight into issues. I had hoped to avoid patching hundreds of functions. but I guess its inevitable. Would a function like the following be able to avoid the problem I have been having: function accessDB() { try { //get connection //do stuff... //close connection //return result } catch(e) { cocoon.log.error (Unable to complete function accessDB); return null; } } (I'm not sure how this will ensure the connection is closed?) Thanks Derek On 2008/06/04 at 12:28, in message [EMAIL PROTECTED], Johannes Textor [EMAIL PROTECTED] wrote: Derek Hohls schrieb: Johannes This was my thought too. I have numerous modules functions that open (and should close!) connections. On manual inspection they all seem to be OK, but possibly there is one somewhere which is not correct. Hence my need to try and prevent this; or have the system in some way report exactly when where this is happening so I can fix the offending code. Any ideas on how to do this? I am not aware of any method which would allow one to inspect the current state of the pool. Perhaps the best way would be to log any opening and closing of connections, including the name of the component which uses them, and scan the log files for connections which are not correctly closed. The problem is in the design itself (opening and closing JDBC connections in several places scattered around the application) which makes such applications a mess to debug (been through it myself). A common source for this problem is when error messages get thrown which interrupt the execution of the flow script. Unless you use something like the OpenSessionInViewFilter which gets rid of this kind of problem, in the case of an unexpected error your connections normally remain open. This means that after 10 error messages or so your pool is exhausted and you're stuck. If you are not the kind of Java guy to implement the Open Session in View Concept (which should work with JDBC connections too, not just Hibernate Sessions), I'd recommend you use the try - catch - finally idiom in *every* flowscript function which uses a JDBC connection. Regards, Johannes -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: REPOST: Database connection overload
Johannes OK - and I assume the } finally { //close connection } won't throw an error if the connection is *not* open? PS If there are any low entry barriers (i.e. not getting into Java, or having to rewrite everything for Hibernate...) to improving this approach, I would be very happy to hear about them. Thanks Derek On 2008/06/04 at 01:42, in message [EMAIL PROTECTED], Johannes Textor [EMAIL PROTECTED] wrote: Derek, you should use the power of the finally construct, which is also available in JS: function accessDB() { try { //get connection //do stuff... //return result } catch(e) { cocoon.log.error (Unable to complete function accessDB); return null; } finally { //close connection } } The finally block is meant to contain instructions which must *always* be executed, no matter what happens in the try and catch blocks. Regardless of that, having hundreds of different places where connections are opened and closed in flowscript seems like a bad idea. Regards, Johannes Derek Hohls schrieb: Johannes Thanks for the detailed insight into issues. I had hoped to avoid patching hundreds of functions. but I guess its inevitable. Would a function like the following be able to avoid the problem I have been having: function accessDB() { try { //get connection //do stuff... //close connection //return result } catch(e) { cocoon.log.error (Unable to complete function accessDB); return null; } } (I'm not sure how this will ensure the connection is closed?) Thanks Derek On 2008/06/04 at 12:28, in message [EMAIL PROTECTED], Johannes Textor [EMAIL PROTECTED] wrote: Derek Hohls schrieb: Johannes This was my thought too. I have numerous modules functions that open (and should close!) connections. On manual inspection they all seem to be OK, but possibly there is one somewhere which is not correct. Hence my need to try and prevent this; or have the system in some way report exactly when where this is happening so I can fix the offending code. Any ideas on how to do this? I am not aware of any method which would allow one to inspect the current state of the pool. Perhaps the best way would be to log any opening and closing of connections, including the name of the component which uses them, and scan the log files for connections which are not correctly closed. The problem is in the design itself (opening and closing JDBC connections in several places scattered around the application) which makes such applications a mess to debug (been through it myself). A common source for this problem is when error messages get thrown which interrupt the execution of the flow script. Unless you use something like the OpenSessionInViewFilter which gets rid of this kind of problem, in the case of an unexpected error your connections normally remain open. This means that after 10 error messages or so your pool is exhausted and you're stuck. If you are not the kind of Java guy to implement the Open Session in View Concept (which should work with JDBC connections too, not just Hibernate Sessions), I'd recommend you use the try - catch - finally idiom in *every* flowscript function which uses a JDBC connection. Regards, Johannes -- This message is subject to the CSIR's copyright terms and conditions, e-mail legal notice, and implemented Open Document Format (ODF) standard. The full disclaimer details can be found at http://www.csir.co.za/disclaimer.html. This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks Transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]