UnitTesting: callFunction is not working!

2006-02-23 Thread Stephan Coboos
Hi, I tried out the method callFunction() of SitemapComponentTestCase for Unit testing some of my flowscript functions but on execution of the test case class I got the error message below: ===

How to switch off Resource Not Found Exception logging?

2005-12-23 Thread Stephan Coboos
Hi all, I'd like to switch off the resource not found exception using logkit (better would be log4j) because of there're so much stack traces in my logs. Can someone tell me how to do that? Thanks a lot. Regards Stephan - To

jx:set/ is not working as excpected

2005-08-31 Thread Stephan Coboos
Hello, I assume jx:set var=world value=WORLD/ jx:set var=helloWorld value=HELLO ${world}/ ${helloWorld} should output the string HELLO WORLD. Is this correctly? But it doesn't work in Cocoon 2.1.6. What I got is HELLO ${world}. This means the var ${world} in the set of helloWorld wasn't

simple-repeater: JXPath factory? Why?

2005-08-19 Thread Stephan Coboos
Hello, I have a collection of beans with setter/getter setHidden(boolean), isHidden(), getName(). I'm using Cforms and the simple repeater to display and bind the beans of the collection as a list with checkboxes on the left and the name on the right side. Everything works fine until I'm using

AW: simple-repeater: JXPath factory? Why?

2005-08-19 Thread Stephan Coboos
-Ursprüngliche Nachricht- Von: Mark Lundquist [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 19. August 2005 20:51 An: users@cocoon.apache.org Betreff: Re: simple-repeater: JXPath factory? Why? Hi Stephan, On Aug 19, 2005, at 11:23 AM, Stephan Coboos wrote: When I do so, I

[Cforms] How to reproduce the selection state?

2005-06-28 Thread Stephan Coboos
Hello, I need to bind a bean to a form using Cforms. My bean looks like this: public class MyBean { String name; String description; List cars; // ... Setter and Getter here // Returns the selected car String getSelectedCar()... } I know how to

AW: [Cforms] How to reproduce the selection state?

2005-06-28 Thread Stephan Coboos
Hi Mark, Thanks for your answer. name = Foo description = Bar cars = {BMW, Audi, Peugeot} getSelectedCar = Audi I don't see the problem. If cars and selectedCar are both bean properties, why should it make a difference what the values are or that they came from a database?

AW: AW: [Cforms] How to reproduce the selection state?

2005-06-28 Thread Stephan Coboos
Lundquist Gesendet: Dienstag, 28. Juni 2005 16:52 An: users@cocoon.apache.org Betreff: Re: AW: [Cforms] How to reproduce the selection state? On 2005-06-28 04:00:46 -0700, Stephan Coboos [EMAIL PROTECTED] said: Hi Mark, Thanks for your answer. name = Foo description = Bar cars

How to access JXTemplateTransformer within an action?

2005-03-29 Thread Stephan Coboos
Hello, in my action I need to access the JXTemplateTransformer. One possibility to do so is to use the SourceResolver and the cocoon:/ protocol. But this is not well testable. Is it possible to lookup the JXTemplateTransformer, execute it an return the generated XML back into the action without

AW: HTMLArea and Cforms

2005-03-27 Thread Stephan Coboos
http://www.fckeditor.net/ looks promising although it does not define no license at all As you can see there, it defines a LGPL: http://sourceforge.net/projects/fckeditor/ Regards Stephan - To unsubscribe, e-mail: [EMAIL

How to configure the ehcache to not shutdown?

2005-03-20 Thread Stephan Coboos
Hello, I'm running Cocoon inside JBoss. Our core layer uses hibernate for persistence. The problem is that a shutdown of Cocoon shutdowns the ehcache, too. But other applications eg. hibernate need the ehcache even if Cocoon is not running. Is there a way to configure the ehcache of Cocoon to

Re: Context scope available in cocoon?

2005-01-10 Thread Stephan Coboos
Hi Stephan, I'm using an Avalon component to set some config parameters in the context. My component implements Contextualizable and Configurable. I have a method like: public void contextualize(Context con) throws ContextException { DefaultContext defCon = (DefaultContext)con;

Context scope available in cocoon?

2005-01-09 Thread Stephan Coboos
Hello, I have several config parms which I want to distribute via the context scope. Is in cocoon such a context scope available like in JSP/Servlets? Thank you. Regards Stephan - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Context scope available in cocoon?

2005-01-09 Thread Stephan Coboos
Stephan Coboos wrote: Hello, I have several config parms which I want to distribute via the context scope. Is in cocoon such a context scope available like in JSP/Servlets? Thank you. Regards Stephan - To unsubscribe, e-mail

Kind of Initialize and Dispose for ThreadSafe component?

2005-01-07 Thread Stephan Coboos
Hello, I have created a ThreadSafe component. Each time a lookup and a release occures for this component, I need to execute some test algorithms. Are there interfaces available which will be interpreted by the container such as Initializable and Dispose or Recycle but for ThreadSafe

Re: html to xhtml

2005-01-06 Thread Stephan Coboos
Adriano Smith wrote: is it possible to take an html page as input and serialize it to get an XHTML as output without using any transform ? http://ads.sify.com/RealMedia/ads/click_nx.ads/mail.sify.com/[EMAIL PROTECTED] Yes, use the HTMLGenerator in conjunction with the XHTMLSerializer:

Regex doesn't work in XPathDirectoryGenerator

2004-12-08 Thread Stephan Coboos
Hello, I'm using the XPathDirectoryGenerator to retrieve all files with name book.xml out of a certain folder. Therefore I'm using the parameter xmlFiles as you can see below: map:parameter name=xmlFiles value=/book\.xml// But this regex doesn't work because always all files will be scanned.

Re: Java Class

2004-12-07 Thread Stephan Coboos
Yes, of course, you can: var foo = new Packages.your.package.path.Foo(); or importClass(Packages.your.package.path.Foo); var foo = new Foo(); See: http://cocoon.apache.org/2.1/userdocs/flow/java.html Regards Stephan Roberto wrote: Hi all, can I instantiate a java class directly from the

Re: AW: Paremeter in Sitemape ( request.getRemoteUser() )

2004-12-06 Thread Stephan Coboos
It must be {request:remoteUser} NOT {request:getRemoteUser()}. Regards Stephan [EMAIL PROTECTED] wrote: Hi Merico, thanks for your help, but it doesn't work. After using your solution i am getting the following error: Fehlermeldung : Cannot get variable 'getRemoteUser()' in expression

XPathDirectoryTransformer takes too long!

2004-12-06 Thread Stephan Coboos
Hello, I'am using the XPathDirectoryGenerator to read all xml files from a certain directory and to extract all found xml out of the xml files. Everything works fine except the one thing: The XPathDirectoryGenerator takes too long (about 1 Minute). Do you know faster alternatives to parse such

Dynamic numbers of parameters for SQLTransformer?

2004-11-17 Thread Stephan Coboos
Hello, I need the substitution feature of the SQL-Transformer http://cocoon.apache.org/2.1/userdocs/transformers/sql-transformer.html#Substitution But the number of my parameters must be dynamically setted. So I can't define them within the sitemap as sitemap-parameter. Is there a way, to pass

How to save the result of svg2jpg to filesystem?

2004-10-27 Thread Stephan Coboos
Hello, is there a simple way to save the generated jpeg image of the SVG/JPEG Serializer to the filesystem into a certain folder? Thank you. Regads Stephan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

How to retrieve sitemap parameter via javaflow?

2004-10-27 Thread Stephan Coboos
Hello, I need to pass a sitemap parameter into my JavaFlow-Class. How can I retrieve such a parameter within my JavaFlow? Is there a similar way available like it is in flowscript using cocoon.parameters? map:call name=doSomething map:parameter name=foo value=bar/ /map:call Thank you.

Re: pass parameters from flow to sitemap

2004-10-13 Thread Stephan Coboos
You can use the config use-request-paramstrue/use-request-params for your XSLT-Transformer and then call your Sitemap within the flowscript with params like this: cocoon.sendPage(myXSLTPipeline?paramA=valueAparamB=valueB); [EMAIL PROTECTED] wrote: hi people what i try to do is to call a

Re: XSP / XSL / LogicSheet Editor for Eclipse

2004-10-05 Thread Stephan Coboos
pguillard wrote: or Sunbow! The download is broken at this time Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

How to include a string as xml into JXTemplate?

2004-09-30 Thread Stephan Coboos
Hello, I'm storing a xml document as string in the request object and I want to include this xml into the pipeline. For me, the best way to do this would be to use JXTemplate, but ${request.getAttribute('myXML')} inlcudes the xml just as string and marks the and as entities gt; and lt;. How

Re: Correct use of databases in XSP

2004-09-30 Thread Stephan Coboos
Maybe you should return the dbselector by releasing it after the work: manager.release(dbselector); And connection.close() should return the connection correctly into the pool. I'm not shure where I had read this but it is documented somewhere that this wrapps the java connection and returns the

Re: How to write request parameter into session attribute in sitemap ?

2004-09-30 Thread Stephan Coboos
I think, the easiest way to do so would be to write your own simple action which does this. Not tested: import org.apache.cocoon.acting.AbstractAction; import org.apache.avalon.framework.parameters.Parameters; import org.apache.cocoon.environment.Redirector; import

Re: Using HashMap with CForms bidning repeater?

2004-09-16 Thread Stephan Coboos
Stephan Coboos wrote: Hello, is it possible to use a HashMap to retrieve and add values using the CForms binding and the repeater element? If yes how do I set the key? Is there an example available? Maybe I found the answer by myself: For reading the list of the model the repeater uses JXPath

Using HashMap with CForms bidning repeater?

2004-09-15 Thread Stephan Coboos
Hello, is it possible to use a HashMap to retrieve and add values using the CForms binding and the repeater element? If yes how do I set the key? Is there an example available? Thank you. Regards Stephan - To unsubscribe,

Exception in form binding

2004-09-06 Thread Stephan Coboos
Hello, I have a form binding definition like this: fb:value id=number path=number fd:convertor datatype=decimal/ /fb:value And a bean with the corresponding getter and setter methods: public void setNumber(BigDecimal number)... public BigDecimal getNumber()... But when I

Converting string to float?

2004-09-02 Thread Stephan Coboos
Hello, I need to convert a string representation for example 2.50 or 2,50 to float and back using CForms and the binding framework. Form-Input: 2.50 or 2,50 Value in float value after convertion should be: 2.50 Value in float is: 2.50 Output in the form after converion should be: 2,50 Which

Example: Placing a repeater-widget within fi:group?

2004-09-01 Thread Stephan Coboos
Hello, has someone an example how to place a repeater-widget within a fi:group tab? Each element from the repeater-widget should displayed as single row and the labels should appear only once as table header like in the cocoon examples for contacts. But these example doesn't use the fi:group

Dataype float in CForms?

2004-09-01 Thread Stephan Coboos
Hello, is it possible to use the datatype float to bind my form to a bean using the primitive type float instead of decimal (BigDecimal) in CForms? public float getSum() { . } public void setSum(float sum) { . } Thank you. Regards Stephan

SQLTransformer and stored procedures

2004-08-19 Thread Stephan Coboos
Hello, is it possible to use stored procedures within a SQL sheet of the SQLTransformer? Thank you. Regards Stephan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

AW: SQLTransformer and stored procedures

2004-08-19 Thread Stephan Coboos
I'm sorry I mean prepared statements. Is it possible to use it within a SQL sheet of the SQLTransformer? Thank you. Regards Stephan -Ursprüngliche Nachricht- Von: Stephan Coboos [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 19. August 2004 20:00 An: [EMAIL PROTECTED] Betreff

Read XML from DB

2004-08-12 Thread Stephan Coboos
Hello, is there a generator (or other component) available, which reads a textfield (contains wellformed xml) form a db (relational, oracle) and includes the text as xml into the pipeline? Thank you. Regards Stephan - To

Re: Read XML from DB

2004-08-12 Thread Stephan Coboos
Olivier Billard wrote: Hi Stefan, You can use the FileGenerator with the blob: pseudoprotocol : map:match pattern=test map:generate src=blob:/{datasource-name}/{table-name}/{column-name}[{where-clause}] / map:serialize type=xml/ /map:match Ahh, that looks good. Thank you. Is it documented

Pasing XML via XPath within flow?

2004-07-22 Thread Stephan Coboos
Hello, is there a utility in cocoon available which returns me a node selected via xpath? Something like that: Node myNode = XPathUtility.select(mydoc.xml, /news/[EMAIL PROTECTED]); Thank you. Regards Stephan - To unsubscribe,

Re: Include (like apache) in cocoon.xconf

2004-07-21 Thread Stephan Coboos
Yves Vindevogel wrote: Hi, Is there a way to use an Include file in my cocoon.xconf ? I want to split my datasources into a seperate file and include it. Kind of the way Apache2 works ( Include /thisfile/ ) The xml include of entities should work for files, too! Example (not tested!): ?xml

[CForms] Setting dynamic values in selection-list?

2004-07-19 Thread Stephan Coboos
Hello, I want to display a selection box in my form. I had seen that CForms support such kind of formfield: selection-list. But all examples only shows handling static values. Is it possible to set the values for the selection box from a database (dynamically) using the form binding? Do you

Which licences has JavaFlow?

2004-07-12 Thread Stephan Coboos
Hello, I'd read JavaFlow was implemented using the commerical product ATCT. Does this mean JavaFlow is not under the Apache licence? http://wiki.apache.org/cocoon/Flow Regards Stephan - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: Velocity generator throws exception on encountering nbsp

2004-07-08 Thread Stephan Coboos
kranga wrote: I'm using cocoon 2.1 and I have a Velocity page that I'm trying to serve. The page as a non-breaking space nbsp in it. The exception I get is: The entity nbsp was referenced, but not declared. In generated document: html head at at

Re: indetation in the serializers

2004-07-08 Thread Stephan Coboos
Lionel Crine wrote: I all, I'd like to serialize my document without indentation so I define my xml serializer : map:serializer logger=sitemap.serializer.xml mime-type=text/xml name=xml src=org.apache.cocoon.serialization.XMLSerializer encodingUTF-8/encoding indentno/indent -- does not

Re: XMLFileModule problem

2004-07-06 Thread Stephan Coboos
Joose Vettenranta wrote: Seems like that it does not read new settings.. I changed file line to: file src=cocoon:/internal/config.xml reloadable=true cacheable=false cache-xpaths=false / then changed content of the config.xml reloaded many times.. - still reading old values How to refresh those

Re: Accessing services

2004-07-06 Thread Stephan Coboos
Emond Papegaaij wrote: Hello, I've created my own Serviceable object. It is registered from cocoon.xconf, however, how do I access this service? I need access from the following parts of the code: - sitemap ?? Eventually an own action? - javascript flow cocoon.getComponent(Role)

Re: New wiki - impressions?

2004-07-05 Thread Stephan Coboos
Stephan Michels wrote: Am Mo, den 05.07.2004 schrieb Leszek Gawron um 11:25: Derek Hohls wrote: Is it just me, or does anyone else feel the new wiki is a major step down from what we had before even the feather goes the opposite way! Why is that? MoinMoin is rich of features so

Re: global variables from file?

2004-07-05 Thread Stephan Coboos
Joose Vettenranta wrote: Hi, is it possible to load global variables from file? Why? because this is how I could create config-file which could be edited through some sort of interface and not to have to touch sitemap-file. It could be created so that when sending some signal to some object,

Re: javaflow: AbstractContinuable question

2004-07-01 Thread Stephan Coboos
Enrico Migliore wrote: Hi guys, the sendPageAndWait( ) method of the AbstractContinuable class works only if the do method were previously called from within the sitemap. How can I extend the AbstractContinuable class, and have sendPageAndWait( ) method work, without calling the do method from

Re: cocoon and hibernate sessions

2004-06-30 Thread Stephan Coboos
Jakob Schwendner wrote: Hi, I am using cocoon 2.1.5 and hibernate. I have got a component wrapping the SessionFactory and as far as I can tell everything seems to work pretty well. The issue is that I am using a session-per-user-session anti-pattern as defined by the hibernate documentation

Re: cocoon and hibernate sessions

2004-06-30 Thread Stephan Coboos
Peter Velychko wrote: Another possibility is using Filter to open/close hibernate session as http://www.hibernate.org/43.html. This way was also discussed previously in the list. I plan to try to implement this method in my project. Yes but with filter you will bind your application on the

Re: cocoon and hibernate sessions

2004-06-30 Thread Stephan Coboos
Upayavira wrote: map:match pattern=foo.jxt map:generate type=jxt src=foo.jxt/ map:act type=closeHibernateSession/ map:serialize type=html/ /map:match This will not work. Actions are used when building a pipeline, not when processing it. So the action will take place before the view is

Re: JXTG and size() method

2004-06-28 Thread Stephan Coboos
Leszek Gawron wrote: Conal Tuohy wrote: Leszek Gawron wrote: as size is a keyword in jexl, how can I issue a size() method on a java.util.Set? Can you use the xpath function count()? No I can't. It looks like the hibernate lazy collection is not initialized in the first place and I get 0 every

Re: Quick JXTemplate question

2004-06-28 Thread Stephan Coboos
Derek Hohls wrote: If I need to access variables, created in flow, from a JXTemplate page that is NOT called by the flowscript itself. how can I do that? (Do I need to create a session at the start of the flowscript, or is there some other, better way?) No, it's not PHP;-) You don't need to

Re: Setting header

2004-06-28 Thread Stephan Coboos
Oro smith wrote: How can the mime type be specified in the http header when sending a file to the browser?? Just like in php where we can specify something like : ?php header(Content-type: text/vnd.wap.wml); How is this done in cocoon?? -

Re: Quick JXTemplate question

2004-06-28 Thread Stephan Coboos
Derek Hohls wrote: does what you have suggested imply there is a de-facto cocoon session that already exists Yes. If you use cocoon.session.setAttribute('foo') and not already a session exists, a new one would be created automatically. And.. does this approach work for array variables as

Re: Setting header

2004-06-28 Thread Stephan Coboos
Oro smith wrote: i have an xsl and sitemap file...do i need to include in the sitemap or xsl?? If you don't using flowscript (flow logic) so you can't use cocoon.response.setHeader. Use this instead: map:serializer name=wml src=... mime-type=test/vnd.wap.wml/ Like [EMAIL PROTECTED] (what a

Re: Using JSPGenerator as template engine for flow?

2004-06-27 Thread Stephan Coboos
Ralph Goers wrote: Just be aware that the JSPGenerator does not (and apparently cannot) work in Weblogic server. Ah, thats interesting. Have you further information? Stephan - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Using JSPGenerator as template engine for flow?

2004-06-26 Thread Stephan Coboos
Hello, has someone ever used JSPGenerator as underlying template engine instead of JXTemplate? Is it possible to use it with flow? When not, what modifications are to do, to use JSPGenerator with flow? Reason: I need taglibs but the cocoon taglibs not well supported, documented and doesn't

Re: Using JSPGenerator as template engine for flow?

2004-06-26 Thread Stephan Coboos
Joerg Heinicke wrote: On 26.06.2004 10:44, Stephan Coboos wrote: Hello, has someone ever used JSPGenerator as underlying template engine instead of JXTemplate? Is it possible to use it with flow? When not, what modifications are to do, to use JSPGenerator with flow? Reason: I need taglibs

Replacing amp; by ???

2004-06-19 Thread Stephan Coboos
Hello, what can I do to replace amp; by on end of the pipeline because I need the to build a uri with parameters but what I get ist amp; I'm using the HTMLSerializer for output (and need this one). Thank you. Regards Stephan -

Re: non-ASCII character problem

2004-06-15 Thread Stephan Coboos
Use encoding=ISO-8859-2. Regards Stephan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Brake in output of HTMLSerializer, Why?

2004-06-14 Thread Stephan Coboos
Hello, I'am using JXTemplates to generate dynamic output. In these templates I need XHTML-Entities like amp; oder nbsp;. To use these entities I had included the DOCTYPE: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Strict//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd; But if I

Re: [flowscript] [SOLUTION] Add value into the request object

2004-06-14 Thread Stephan Coboos
Antonio Gallardo wrote: AFAIK, it should be: cocoon.redirectTo(mypage,{my_parameter: my_value}); But it can be {my_parameter:my_value}, too (no quotes)! But your version is more clear and the better one ;-) Regards Stephan -

Re: [flowscript] Add value into the request object

2004-06-11 Thread Stephan Coboos
Lionel Crine wrote: Hi all, I tried to add a new parameter the the request object then doing a redirection. function addrequest(){ cocoon.request.setAttribute(my_parameter, my_value); cocoon.redirectTo(mypage?myparameter=+cocoon.request.getAttribute(my_parameter); } Why is this not working ?

My taglib doesn't work

2004-06-09 Thread Stephan Coboos
Hello, I had tried to write my own taglib using the TagTransformer but it doesn't work. I can't find some informations about it, so I had copied the example and changed something but it doesn't work. I want to use a tag hello/ to print out HELLO WORLD. My changes in detail: 1.) I had written

Re: Accessing attributes in the sitemap

2004-06-07 Thread Stephan Coboos
Craig Christophersen wrote: I have set some session attributes in an action and would like to be able to access them directly in the pipeline. I can get these attributes from another action and put them in a map for each request, but is there a way to make them available in the pipelines

Re: databases and flow [again]

2004-06-06 Thread Stephan Coboos
Jason Lane wrote: Hi list, OK I have the requirement for a dynamic select list, similar to the County Selector example (cocoon/samples/woody/countryselector ). My requirement is that both selects are database generated, so this will obviously require that the flow.js be generated. I have

Re: [flowscript] Process a pipeline

2004-06-03 Thread Stephan Coboos
Maybe cocoon.processPipelineTo() is what you need? Regards Stephan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Strange problem: Reference from XSL to FLowScript

2004-05-28 Thread Stephan Coboos
Hello, I have a strange problem which I cannot explain by my self. I'am using FlowScript to show a form containing a simple textarea via JXTemplate. The textarea can be filled out and after submit the content of the textarea will be displayed on a other html page as preview. Before displaying

Converting linebreak to br/?

2004-05-27 Thread Stephan Coboos
Hello, I'am using a flowscript to retrieve text from a form's textarea. This text may contain some linebreaks \n. Now I want display the content with line breaks in a html view. So I need to convert \n to br/. For displaying the content of the textarea I'am using a JXTemplate. How I can I

Re: [CForms] How can I use dynamic attributes in woody forms?

2004-05-20 Thread Stephan Coboos
Leonid Chumanov wrote: Hi I want to use in my application (based on CForms (Woody)) dynamic attributes in forms. That is the information on what fields should contain in the form is formed dynamically. Use of a file with form definition therefore does not approach. I all over again hoped that in

Re: [Flow] How to change the default timeout of continuations ?

2004-05-19 Thread Stephan Coboos
Olivier Billard wrote: I would like to change the default continuation timeout (30 min ?) to my session timeout (2h). Is this configurable somewhere ? Please have a look into the cocoon.xconf and search for continuations-manager. Regards Stephan

Re: searching xml

2004-05-19 Thread Stephan Coboos
Jasper Michalczik wrote: Hello everybody, I have a couple of xml-files, that each contain besides other content a list of vocabularies (2 languages). In order to search for a special vocabulary entry in either language, I'm using the directory generator to list all files in a directory, then the

${cocoon.continuation.parent.parent.id}??

2004-04-25 Thread Stephan Coboos
Hello, I wan't to implement a undo feature so I'am calling ${cocoon.continuation.parent.parent.id} in a JXTemplate to get the continuation created before this continuation but it doesn't work. ${cocoon.continuation.parent.parent.id} returns only a empty string, everytime, but why?

#13; in textarea?

2004-04-23 Thread Stephan Coboos
Hello, im saving text coming from a textarea in a MySQL database using Java and Flowscript. All linebreaks will be replaced by \r\n. After reading this text from the database and displaying it in the textarea using a JXTemplate I got 2 linebreaks in the html source: 1. a new line 2. a entity

How to concat a string and a var with Jexl?

2004-04-18 Thread Stephan Coboos
Hello, I'am using JXTemplateTransformer with Jexl. I want to test wether an variable is equal to another variable plus a string, but I don't know how to concat the string with var within the test. This doesn't work: jx:if test=${foo.value == 'text.'bar.value} ... And this doesn't work, too:

Re: AW: Flow Session Variables

2004-04-07 Thread Stephan Coboos
Nils Köster wrote: Generally: yes, try session:getxml ... Details: http://cocoon.apache.org/2.0/developing/webapps/session.html In my development of a site with kind of a shopping-basket i found out that theres no way to get the contains of a session into a xsl:variable ... or xsl:parameter

Splitting sitemap in serveral parts?

2004-04-01 Thread Stephan Coboos
Hello, is it possible to split a sitemap in several parts? Ok there exists the good concept of sub sitemaps but a sub sitemap can only be mounted when a request arrives. I need a solution to split a sitemap in several parts (1...n) at one level. So the web designer can edit his part of the

Passing parameters to action-set (bug)?

2004-03-28 Thread Stephan Coboos
Hello, is it possible to pass parameters from the pipeline to an action within an action-set? I have the following structure in my sitemap: ... map:action-sets map:action-set name=example map:act type=test map:parameter name=name value={foo}/ /map:act /map:action-set

JXForms and XPath, what's wrong?

2004-03-17 Thread Stephan Coboos
Hello, in my Flowscript I set a bean under the name picture. Within a JXTemplate I want to read the filename of the picture. This version works fine: ${picture.fileName} But this doesn't work: #{picture/fileName} or #{$picture/fileName} Why? If I use the XPath version I got the following

Re: [Flow] How to know the called uri in flow?

2004-02-27 Thread Stephan Coboos
Antonio Gallardo wrote: Hi: Is this a way to retrieve the called URI in Flowscript? If yes, how? :-D Best Regards, Antonio Gallardo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Session Transformer definition

2004-02-25 Thread Stephan Coboos
Carlos Dias wrote: Please can anybody help me?!!! Can't find teh correct jar! CD - Original Message - From: Carlos Dias To: [EMAIL PROTECTED] Sent: Wednesday, February 25, 2004 4:40 PM Subject: Session Transformer definition Hi, I'm trying to define in my sitemap the

Release of Cocoon 2.0.0?

2004-02-24 Thread Stephan Coboos
Hello, when was Cocoon 2.0.0 released? In 2000? Is there a list of release dates avaiable? Thank you. Regards - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Retrieve parent continuation id with JXTemplate?

2004-02-19 Thread Stephan Coboos
Hello, is it possible to get the parent continuation id within a JXTemplate? This seems not to work: ${continuation.parent} or ${continuation.parent.id} or ${cocoon.continuation.parent} or ${cocoon.continuation.parent.id} What's wrong? Thank you. Regards

[Woody] Possible to set wd:label dynamically?

2004-02-18 Thread Stephan Coboos
Is it possible to set the content wd:label/ dynamically? I know only at runtime the label of the widget(s). I want to use the binding framework and my JavaBean holds the label. How can I put the label from the bean to the wd:label/ element with woody? Is it possible? Thank you. Regards

Re: AW: How to initialize a component coming from the pool?

2004-02-11 Thread Stephan Coboos
Olivier Billard wrote: Hi Stefan, I had the same pb, and I solved it the way Marco wrote, that is to say : private field : - private Connection connection; initialize (called once in the lifetime) : - get the datasource dispose (called once in the lifetime); - release the datasource recycle

Re: How to initialize a component coming from the pool?

2004-02-10 Thread Stephan Coboos
Jorg Heymans wrote: Looking at http://avalon.apache.org/framework/principals/lifecycle.html Does implementing Startable and Stoppable work? Jorg Ahh, thats it!! The doc says These lifecycle methods are only called once in the entire life of a component: - contextualize - service - configure

Re: How to initialize a component coming from the pool?

2004-02-10 Thread Stephan Coboos
Jorg Heymans wrote: Looking at http://avalon.apache.org/framework/principals/lifecycle.html Does implementing Startable and Stoppable work? Jorg Hello Jorg, I'd tried it but the method start() will be called only once like initialize() and then never more. How to stop it? Thank you. Regards

Re: How to initialize a component coming from the pool?

2004-02-10 Thread Stephan Coboos
Jorg Heymans wrote: Looking a bit better at the docs that was not the best advice from my part sorry. I am assuming that you want to use myComponent throughout your whole component, hence the need to only look it up once when it comes from the pool. But what is so special about myComponent

Re: handling non-matched pipelines

2004-02-10 Thread Stephan Coboos
Jorg Heymans wrote: I might be blind and having an off-day, but is there any other way of trapping non-pipeline matches other than init-param param-namemanage-exceptions/param-name param-valuefalse/param-value /init-param in web.xml? I need to return 404 on all pipeline

Re: AW: How to initialize a component coming from the pool?

2004-02-10 Thread Stephan Coboos
Marco Rolappe wrote: hi stephan, I don't know exactly your use case, but... why don't you just keep the datasource, I assume it won't change anyway. so just close the connection in recycle() Yes, this is what I'am doing. and release the data source in dispose() (i.e. implement Disposable).

Re: How to initialize a component coming from the pool?

2004-02-10 Thread Stephan Coboos
Jorg Heymans wrote: Have you tried raising this on the developer list? Yes, and on the avalon mailing list. Sorry i can't be of more help :) Ok. Thank you very much. Regards Stephan - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: AW: How to initialize a component coming from the pool?

2004-02-10 Thread Stephan Coboos
Marco Rolappe wrote: and why isn't that possible? AFAIK implementing Poolable doesn't prevent implementing Disposable. if you implement Disposable, the component's dispose() method should get called when the pool and therefore the pooled/recycled component itself gets disposed. Hello Marco,

How to initialize a component coming from the pool?

2004-02-09 Thread Stephan Coboos
Hello, I do not understand how to initialize a component which comes from the pool. Please have a look at the following example: public class AnotherComponent implements ... { private MyComponent myComponent: private ServiceManager serviceManager; public void recycle() {

Re: Accessing flowscript sendPage() bean object within xsp

2004-02-05 Thread Stephan Coboos
Joel McConaughy wrote: I'm new to cocoon. I'm trying to pass a parameter from flowscript into a pipeline that calls an esql logicsheet and then access the parameter from within the logicsheet to build a dynamic select statement. I can't find any docs or examples that show how. Can someone

RandomNumberModule doenst like min and max!

2004-02-05 Thread Stephan Coboos
Hello, I'd configured the range of the random number produced by the RandomNumberModule in cocoon.xconf like this: component-instance class=org.apache.cocoon.components.modules.input.RandomNumberModule logger=core.modules.input name=random min0/min max5/max /component-instance

Re: JDBC-Driver and web.xml

2004-02-04 Thread Stephan Coboos
julien bloit wrote: Hi Stephan, Did you finally get your database connection running? I'd be interested to know how to do this, since I'm running Cocoon on a server over Tomcat, but I don't have user rights to shutdown/restart Tomcat for new database driver configuration in the web.xml file and

JDBC-Driver and web.xml

2004-02-02 Thread Stephan Coboos
Hello, I have a simple question: Why ist it necessary to register the jdbc driver in web.xml? Is it possible to use the driver without this registration? What happens if Cocoon runs not as webapp? So web.xml is not accessible, isn't it? Thank you. Regards Stephan

Re: JDBC-Driver and web.xml

2004-02-02 Thread Stephan Coboos
Reinhard Poetz wrote: From: Stephan Coboos Hello, I have a simple question: Why ist it necessary to register the jdbc driver in web.xml? Is it possible to use the driver without this registration? What happens if Cocoon runs not as webapp? So web.xml is not accessible, isn't it? You

  1   2   >