Re: Obtaining sitemap globals in flow

2005-06-15 Thread Tony Edwards
Geert, Thanks for that. That actual method call is "Packages.org.apache.cocoon.components.modules.input.InputModule.ROLE" but you got me off and running in the right direction!!! Thansk agian, Tony Geert Josten wrote: Hi, Not yet? ;-) But you can do something like: var global = cocoon.

Re: Obtaining sitemap globals in flow

2005-06-15 Thread Geert Josten
Hi, Not yet? ;-) But you can do something like: var global = cocoon.getComponent(InputModule.ROLE + "Selector").select("global"); var webdavSource = global.getAttribute("webdav-source",null,null); Cheers, Geert Tony Edwards wrote: Hi folks, Is there a simple way of obtaining a variable set

Obtaining sitemap globals in flow

2005-06-15 Thread Tony Edwards
Hi folks, Is there a simple way of obtaining a variable set up in the sitemap section? At the moment I'm passing the value through every time a flow function is called which can't be good: value="{global:webdav-source}"/>

Re: AW: CForms and Modular Database Actions

2005-06-15 Thread Tony Edwards
Hi Derek, I understand your dilemma as I'm not a Java developer by any stretch. One of the good things about Cocoon is that it allows you to achieve an objective in many ways. One of the bad things about Cocoon is that it allows you to achieve an objective in many ways! I think the task for most

Re: CForms - When do they make sense? Design question

2005-06-15 Thread Johannes Becker
Didn't know that. Will not happen again. :-) Cheers Jonny Mark Lundquist wrote: Hi Jonny, Hey, could you do a favor...? When you want to start a new thread on this list, compose your post as a "new" message instead of using Reply. Even though you change the Subject: line, the In-Reply-To

Re: CForms - When do they make sense? Design question

2005-06-15 Thread Mark Lundquist
Hi Jonny, Hey, could you do a favor...? When you want to start a new thread on this list, compose your post as a "new" message instead of using Reply. Even though you change the Subject: line, the In-Reply-To: header still screws up the threading in our mailreaders. That's a pain, but it'

Re: CForms - When do they make sense? Design question

2005-06-15 Thread Ralph Goers
Who is ultimately going to have to maintain this? It is better to stick to one way of doing things just because it makes it easier later on. Ralph Johannes Becker wrote: Hi, a general question. I've got a page with two textboxes. These two have to be filled in (with whatever you want). Doe

Re: AW: CForms and Modular Database Actions

2005-06-15 Thread Derek Hohls
Upayavira I agree with what you say... more than that, I think we should offer some guidelines as to what constitutes a reasonable cut-off: I think you're being too modest ito of what can be achieved with the Java-less route... surely we could extend the sample shown to allow for filling in forms

Re: Link Hosting: DailyRazor Hosting (USA) www.dailyrazor.com - Tomcat 5.5.7, Cocoon 2.x or Cocoon 1.x

2005-06-15 Thread Derek Hohls
It would be really nice if one of these hosting companies provided Cocoon support for individual packages...not just at a "business" level. Very difficult to publish small/personal websites at the higher costs... esp. for those outside of the U$. >>> [EMAIL PROTECTED] 2005/06/06 08:23:28 PM >>

Re: CForms - When do they make sense? Design question

2005-06-15 Thread Dennis Riedel
Depends on how many ppl are working with you on that stuff. If s.o. must trace what you have done afterwards and you have no policies in what you have done (structure, models, single ways for a problem/task) then it could be difficult. But hey. 2 Textboxes.. My opinion: one time CForms, forev

Re: AW: CForms and Modular Database Actions

2005-06-15 Thread Bertrand Delacretaz
Le 15 juin 05, à 13:58, Upayavira a écrit : ...The point is, there are different people using Cocoon for different things. We need a lightweight way to integrate SQL and Cocoon forms. And on the documentation about it it should say "this is only suitable for _very_ small sites, and will become

Re: Excel Spreadsheet Generator|Transformer

2005-06-15 Thread Daniel McOrmond
Hi Derek, I don't believe that David Kavanagh ever created a bugzilla patch following that thread. However, there is a new ExcelGenerator[1] that should be part of Cocoon 2.2. Looks like this generator outputs the speadsheet in Gnumeric XML format. I also have an ExcelToXmlTransformer that I wro

CForms - When do they make sense? Design question

2005-06-15 Thread Johannes Becker
Hi, a general question. I've got a page with two textboxes. These two have to be filled in (with whatever you want). Does it make sense to use CForms or just check them in Flow? Other pages of my app use the CForms, because they're "more difficult". Now I wonder if its bad programming style t

Re: Flow - Problems "redirecting"

2005-06-15 Thread Geert Josten
My problem: For example: - login-page: /login - protected-pages: /protected/* If a person (who isn't logged-in) attempts to view a protected page, lets say "/protected/secrets", then he is redirected to the login -page. The path in the location-bar (the bar in your browser, where the uri is d

Re: AW: CForms and Modular Database Actions

2005-06-15 Thread Upayavira
WHIRLYCOTT wrote: Askild Aaberg Olsen wrote: Why is tightly coupling my data access code to Hibernate so much better then, isn't this yet another framework (like EJBs)? What if I don't have the need to reuse this code? What if I'm just a newbie trying to get some data into my webapp? I sh

Flow - Problems "redirecting"

2005-06-15 Thread Johannes Becker
Hi, I've got a flowscript like this: // This function is called from sitemap when a protected resource is requested function requestProtectedResource(){ var protectedResource = cocoon.parameters["protected-resource"]; if(loggedin){ displayProtectedResource(protectedResource); // d

Re: AW: CForms and Modular Database Actions

2005-06-15 Thread Bertrand Delacretaz
Le 14 juin 05, à 22:22, Askild Aaberg Olsen a écrit : ...I commited the sample in bugzilla as bug 35364. Have a look at it. Thanks, I have applied your patch to both the 2.1 branch and the 2.2 trunk, with slight modifications (additional comments and minor refactoring), see http://issues.apa

Problem running three tomcats and not having a sticky session

2005-06-15 Thread Ralph Lange
Dear Cocoon users, Our setup: cocon 2.1.5.1, tomcat 5.5.4, jdk 1.5.0. In order to manage much more requests, I have installed three tomcats connected to one apache via mod_jk's loadbalancer and on each of the tomcats runs a cocoon. The problem now is, when I build a session via Firefox, exactl

Re: Cocoon session configuration ?

2005-06-15 Thread oceatoon
Thanks Jorg > Does this match your need for session TTL ? It not only solves my problem but also makes me a happy man :-) Cheers Tibor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: configuring cocoon with hibernate

2005-06-15 Thread Jubin Thomas Kuriakose
Thanks, I think i found what i am looking for :-) . Johannes Textor wrote: Searching the wiki at wiki.apache.org/cocoon will yield some answers to this somehow complex question :) Jubin Thomas Kuriakose schrieb: Could anyone tell me how to configure cocoon with hibernate ---

Re: configuring cocoon with hibernate

2005-06-15 Thread Derek Hohls
Suggest you start with the Wiki site - see: http://wiki.apache.org/cocoon/CocoonAndHibernateTutorial http://wiki.apache.org/cocoon/GettingStartedWithCocoonAndHibernate http://wiki.apache.org/cocoon/UsingHibernateToMakeYourJavaBeansPersistent http://wiki.apache.org/cocoon/CformsHibernateAndFlow

Excel Spreadsheet Generator|Transformer

2005-06-15 Thread Derek Hohls
Does anyone know if this was followed up: http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=107653056320575&w=2 There was an indication it would be included in versions of Cocoon after 2.1.4, but I cannot find any examples in 2.1.5 - pointers welcome! Thanks Derek

Re: configuring cocoon with hibernate

2005-06-15 Thread Johannes Textor
Searching the wiki at wiki.apache.org/cocoon will yield some answers to this somehow complex question :) Jubin Thomas Kuriakose schrieb: Could anyone tell me how to configure cocoon with hibernate - To unsubscribe, e-mail: [EM

Flowscript, global Object()

2005-06-15 Thread Johannes Textor
Hi List, I've noticed a behaviour in Flowscript that seems somewhat strange to me, but before thinking it is a bug I'd like to ask around if someone thinks that this actually makes sense. As we all know, global variables in Flowscript correspond to the User's Session. This should lead to the cre

Re: Return of Aggregate with Doctype Adds ">"

2005-06-15 Thread Geert Josten
Not a fix, but a workaround: Might be possible to direct the map:part to a pipe that strips prolog info from your document. You can do this by processing your document with an XSL transform like: HTH, Geert Eric Caron wrote: Hello, This was an issue back

configuring cocoon with hibernate

2005-06-15 Thread Jubin Thomas Kuriakose
Could anyone tell me how to configure cocoon with hibernate - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]