Re: How to avoid this cocoon-session-fw block deprecation warning message.

2009-01-02 Thread Mark Lundquist
On Jan 2, 2009, at 12:41 AM, asif_zzz wrote: Hi Mark, ok. Please dont mistake me if my questions are basic. Another doubt,how can i access session object in java(Listener) class??? and how to get the cocoon context in java class?? I don't know. —ml— smime.p7s Description: S/MIME

Re: How to remove the namespace declaration in HTML output in CForms

2009-01-02 Thread Mark Lundquist
On Jan 1, 2009, at 10:20 PM, asif_zzz wrote: Hi , Thanks for the replies, I already tried using this template given by Francesco. When i apply the template my HTML output got collapsed,and showing all page contents in a normal text(ie like label's in HTML output). Then i tried some

Re: How to avoid this cocoon-session-fw block deprecation warning message.

2008-12-31 Thread Mark Lundquist
On Dec 31, 2008, at 3:10 AM, asif_zzz wrote: Hi Mark, Thanks For ur reply. One Doubt,Just to know.. Is there any replacement for this deprecation block?? Suppose i use only CFORMS. Flowscript is the usual way to drive CForms, and you have a couple of options... • The cocoon.session

Re: Character encoding problem with latest Saxon + Cocoon 2.1

2008-12-31 Thread Mark Lundquist
On Dec 31, 2008, at 1:25 AM, Bertrand Delacretaz wrote: On Wed, Dec 31, 2008 at 2:11 AM, Mark Lundquist m...@wrinkledog.com wrote: ...Cocoon is serving a web page with a bunch of occurrences of the ndash character (Unicode #8211). These displayed correctly with the old Saxon, but now

Character encoding problem with latest Saxon + Cocoon 2.1

2008-12-30 Thread Mark Lundquist
Hi All, I have a Cocoon 2.1.8 application using Saxon, and after a very long time with no problems, we just stumbled upon a bug in the (now rather old) version of Saxon that we were using. So I downloaded the latest Saxon distribution and swapped out the Saxon JAR, and... problem

Re: How to avoid this cocoon-session-fw block deprecation warning message.

2008-12-30 Thread Mark Lundquist
On Dec 30, 2008, at 12:32 AM, asif_zzz wrote: Hi, im new to cocoon.im using Cocoon 2.1.10 I got this below warning message while running my application, main WARN deprecation - The session-fw block is deprecated. Please use the provided alternatives instead. I've used XSP's and CForms

Re: How to create dynamic CForms Template,Definition and binding

2008-12-30 Thread Mark Lundquist
On Dec 29, 2008, at 12:48 AM, asif_zzz wrote: Hi, Im new to Cocoon ,and im using Cocoon 2.1.10,Spring ORM,Hibernate. Till now i've been using static files(CForms template,definition,binding) to generate the pages. Now I need to create the fields based upon a data file(XML file). I've

Re: How to configure the cocoon-2.2 database block ?

2008-10-28 Thread Mark Lundquist
On Oct 28, 2008, at 9:57 AM, hussayn wrote: - concerning the driver i read in the docs: In order to load driver class create file databases- drivers.properties in META-INF/cocoon/properties with following contents: ... ok, this is self explaining. But where do i actually place the

Re: Apache i18n problem

2008-10-23 Thread Mark Lundquist
On Oct 23, 2008, at 8:22 AM, Justice Utete wrote: Hi, I'm having a problem with cocoon i18n. I have a Generator which does some processing then generates XML. I also have some xls files which are basically for translation and the html styles. Mt problem is: When i use the deafault file

Re: How to get the session attribute in bean

2008-10-21 Thread Mark Lundquist
Hi Andre, On Oct 21, 2008, at 9:55 AM, Andre Juffer wrote: I would also be interested to understand how this would work with cocoon 2.2. The SessionModule, see

Re: javascript embedded in *.jx files

2008-10-07 Thread Mark Lundquist
On Oct 6, 2008, at 11:52 PM, Jasha Joachimsthal wrote: Really, external scripts aren't working for you? Why not? Probably because some serializer closes the script tag. Use script src=myscript.js type=text/javascript#160;/script. Another reason could be that there's no pipeline matching

Re: javascript embedded in *.jx files

2008-10-07 Thread Mark Lundquist
On Oct 7, 2008, at 12:57 PM, Jeff Schmitz 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. Sure, right. I don't want the actuall javascript file

Re: javascript embedded in *.jx files

2008-10-06 Thread Mark Lundquist
No worries about the multiple posts ;-) However, please do start new topics with a new post; using reply screws up threading in mailreaders. Anyhow... On Oct 6, 2008, at 12:56 PM, Jeff Schmitz wrote: Hello, I can't seem to be able to create a JXTemplateGenerator .jx file that

Re: [2.2] put to xml some new elements

2008-10-04 Thread Mark Lundquist
On Oct 2, 2008, at 2:37 AM, Alexander Daniel wrote: On 01.10.2008, at 15:09, nanomonk wrote: generally, we have somethink like that: ?xml version=1.0 encoding=UTF-8? root abra abrakadabrablahabrakadabra abrakadabra2blah2abrakadabra2 /abra /root there is need to put to this xml some

Re: [2.2] Building samples

2008-09-17 Thread Mark Lundquist
On Sep 17, 2008, at 12:57 AM, yosauron wrote: Mark Lundquist-2 wrote: On Sep 16, 2008, at 8:49 AM, yosauron wrote: Why doesn't work a sample when I execute 'mvn jetty:run' from sample's directory (xe. from trunk directory: blocks/cocoon-ajax/cocoon-ajax-sample)?? Because the sample

Re: [2.2] Building samples

2008-09-16 Thread Mark Lundquist
On Sep 16, 2008, at 8:49 AM, yosauron wrote: Why doesn't work a sample when I execute 'mvn jetty:run' from sample's directory (xe. from trunk directory: blocks/cocoon-ajax/cocoon-ajax-sample)?? Because the sample is just a block, it's not a webapp. Think of the block as like a plugin...

Re: How can i activate XSP in cocoon-2.2 ?

2008-09-13 Thread Mark Lundquist
On Sep 13, 2008, at 1:35 AM, hussayn wrote: [examples snipped...] Is that more or less a correct description of the nuts and bolts ? Yes, exactly, you are totally getting it now! :-) cheers, —ml— - To unsubscribe,

Re: How can i activate XSP in cocoon-2.2 ?

2008-09-13 Thread Mark Lundquist
On Sep 13, 2008, at 1:35 AM, hussayn wrote: [...] cocoon.sendPageAndWait(helloWorld.jx, { date: now } ); [...] BTW... make sure you understand the difference between sendPageAndWait() and sendPage(). It has to do with continuations, and I don't have time to explain it now but you will

Re: How can i activate XSP in cocoon-2.2 ?

2008-09-13 Thread Mark Lundquist
On Sep 13, 2008, at 1:35 AM, hussayn wrote: 1.) Create a flowScript (e.g. main.js). In that flowscript prepare all data by accessing the relevant beans, possibly trigger calculations by calling bean-methods, and fetching the relevant data by accessing the bean getters

Re: How can i activate XSP in cocoon-2.2 ?

2008-09-12 Thread Mark Lundquist
On Sep 12, 2008, at 2:10 AM, hussayn wrote: i get the feeling, XSP is evil Yes... XSP is evil. and i should move to something else (flow-script?) Yes, flowscript + template block How shall i proceed ? I will try the flow-script way now, but i am absolutely unsure, it doesnt feel right

Re: How can i activate XSP in cocoon-2.2 ?

2008-09-12 Thread Mark Lundquist
On Sep 12, 2008, at 8:53 AM, hussayn wrote: well, i am now quite a few steps further. Sometimes when you dig and dig, you miss the obvious. Now i understood, that the flow-script is indeed javascript, but it only regulates the when which page will be called, yes server side, and no,

Re: Cocoon 3.0 overview statement error:

2008-09-11 Thread Mark Lundquist
On Sep 10, 2008, at 4:06 PM, Marc Driftmeyer wrote: Apache Cocoon 3 Apache Cocoon 3 is a major rewrite of Cocoon 2.2. Like Cocoon 2 it is based around the concept of pipelines and sitemaps and it is very similar to Cocoon 2.2 in many respects but is slimed[slimmed] down :-) :-)

Re: Cocoon 3.0 overview statement error:

2008-09-11 Thread Mark Lundquist
On Sep 11, 2008, at 7:44 PM, Marc Driftmeyer wrote: What exactly is a non-plain Java environment? Yeah, it's not the greatest phrase. I didn't find fault with it, though, because I couldn't think of a better one. Maybe easily embeddable in other Java projects, or just plain old easily

Re: how to pass sitemap params to javaflow?

2008-09-01 Thread Mark Lundquist
On Sep 1, 2008, at 6:03 AM, Мария Григорьева wrote: In sitemap I have the parameter: map:match pattern=main/*/* map:call function={2} use-request- parameterstrue/use-request-parameters

Re: Where is cocoon going ?

2008-08-26 Thread Mark Lundquist
On Aug 26, 2008, at 5:31 AM, Ken Starks wrote: And if so, in spite of the general consensus that 2.2 is the way forward, should I just stick to the 2.1.11 (which satisfies my current needs) until Corona catches up. ? Hi Ken, I would say that there are only two reasons to ever upgrade.

Re: Where is cocoon going ?

2008-08-25 Thread Mark Lundquist
On Aug 24, 2008, at 1:34 PM, Nick Baumberger wrote: Dear Cocoon-ers, Can somebody tell me where cocoon is heading after release 2.2 ? I did not follow the mailing list for around a year, being back now I am shocked by the recent announcement regarding cocoon 3 which seems to me a

Cocoon EntityResolver + xerces

2008-08-16 Thread Mark Lundquist
Hi, I've been debugging a problem with an older Cocoon (2.1.8) application. There was a sporadic bug that turned out to be the consequence of a swallowed exception in a piece of code that some other guy wrote. I also noticed that this piece of code, which parses some XML fragments, was

Re: Cocoon EntityResolver + xerces

2008-08-16 Thread Mark Lundquist
On Aug 16, 2008, at 11:03 AM, Mark Lundquist wrote: Hi, I've been debugging a problem with an older Cocoon (2.1.8) application. There was a sporadic bug that turned out to be the consequence of a swallowed exception in a piece of code that some other guy wrote. I also noticed

Re: Help needed for Cocoon 2.1.11 Generator

2008-08-14 Thread Mark Lundquist
Hi Shankar, sorry nobody's gotten back to you yet. Can you post the relevant excerpt from your sitemap, i.e. the pipeline that invokes your generator? It was kind of hard to tell what's going on from your description, and I think being able to see the pipeline declaration will make it

Cocoon+Eclipse+Run Jetty Run

2008-08-09 Thread Mark Lundquist
Hi Cocoon gurus, I ran across the new(er) Jetty plugin for Eclipse: http://code.google.com/p/run-jetty-run/wiki/GettingStarted and it looked like a better way to debug Cocoon than using the moribund Jetty Launcher plugin as described here:

[Forms] howto: set size limit per fd:upload

2008-05-01 Thread Mark Lundquist
Hi all, I need to be able to set a content size limit on a particular upload widget, where this limit is smaller than the application-wide upload- max-size set in web.xml. Is there any way to do this? (Reason: an image file upload form that stores the image in a MySQL database where

Re: Is there an url wildcard selector (equivalent)

2008-03-17 Thread Mark Lundquist
On Mar 17, 2008, at 5:17 PM, Mark Lundquist wrote: You might find this interesting: http://thread.gmane.org/gmane.text.xml.cocoon.devel/68380/focus=68408 whoops, I meant just this: http://thread.gmane.org/gmane.text.xml.cocoon.devel/68380

Re: Is there an url wildcard selector (equivalent)

2008-03-17 Thread Mark Lundquist
Hi Rainer, On Feb 21, 2008, at 5:49 AM, Rainer Pruy wrote: Hi, probably a question with a simple answer. However, I just failed up to now in getting at it. wildcard *matcher* is one of the most used components with cocoon, I'd reckon. But what to do, when one needs to handle X/c/**

Re: How to aggregate stream from ExceptionGenerator

2008-03-17 Thread Mark Lundquist
On Mar 10, 2008, at 11:19 PM, [EMAIL PROTECTED] wrote: Yes, you can aggregate error messages. Just move the content generation with map:part src=cocoon:/content/ to another pipeline map:match pattern=content with its own error-handling. Error-handling can happen at different levels. I

Re: Sitemap pipelines

2008-03-12 Thread Mark Lundquist
On Mar 12, 2008, at 10:45 AM, Steven D. Majewski wrote: What is Micro Cocoon ? http://www.mail-archive.com/[EMAIL PROTECTED]/msg54977.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

How to aggregate stream from ExceptionGenerator

2008-03-10 Thread Mark Lundquist
Okay, this is probably a retarded question, but... Most of my Cocoon applications are websites that pull content documents through XSLT templates to add styling/layout markup (and navigation menus) before serializing to HTML. So the main pipeline starts off with an aggregator that pulls

[CForms] q'n about fd:group

2007-07-31 Thread Mark Lundquist
Hi, I'm working on a time-reporting application with a form that contains day of the week input fields for Sun-Sat (into which the user enters their daily hours). I'm looking for a way to aggregate those daily hours fields within the form model so that I can easily iterate across them in

[Flowscript] everything converted to number type?

2007-07-31 Thread Mark Lundquist
Hi, I've got some CForms widgets of datatype base=long/, so I expect that the widget value should be a java.lang.Long, right? I'm trying to do some arithmetic on these widget values in flowscript, and it seems like every reference to the widget value gets (a) converted to a JS number type,

Re: variable expansion fails

2007-07-31 Thread Mark Lundquist
On Jul 31, 2007, at 1:52 PM, Rob Frohwein wrote: xsl:copy-of select=document('cocoon://path/proc.xsp/?var={$var}')/*/ But the variable is *not* expanded. Proc.xsp sees the value of request-parameter var is set to litarally {$var} That's 'cause that's what you literally wrote :-).

Change file selection in fd:upload

2007-02-26 Thread Mark Lundquist
Hi, I have a form with (a) an upload widget, so they can upload something, and (b) a submit widget, so they can move on to the next thing :-). I would like to be able to support the following style of interaction: 1) User chooses a file 2) I have a server-side onValueChanged handler, so

Re: Cocoon Plumber

2007-02-06 Thread Mark Lundquist
Thanks a lot! I look forward to trying this out as soon as I can... cheers, —ml— - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: continuation problem -- are id's unique ?

2007-02-05 Thread Mark Lundquist
Hi Steve, On Feb 5, 2007, at 10:13 AM, Steven D. Majewski wrote: When I click on that link, I seem to be going back to the earlier continuation. ( Specifically: I get an error message that seems to be from not returning the form parameters that were expected from that sendPageAndWait(), and

Re: Looking for Support.

2007-02-05 Thread Mark Lundquist
infrastructure issues with someone with a stronger Windows background. Hope to hear from you... Best Regards, Mark Lundquist - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Looking for Support.

2007-02-05 Thread Mark Lundquist
On Feb 5, 2007, at 1:43 PM, Mark Lundquist wrote: [...snip] Bother. My apologies, I totally meant to reply to the OP... not to the list. How embarrassing :-/ —ml— - To unsubscribe, e-mail: [EMAIL PROTECTED

Re: Storing XML fragments in form fields

2007-01-27 Thread Mark Lundquist
Hi Abbas, On Jan 27, 2007, at 6:29 AM, Abbas Mousavi wrote:  Is there any XML data type for field? Unfortunately not. It sounds like it might be a good idea though, you should submit a feature request via JIRA If you decide to make an xml datatype, follow the patterns you find in

Re: flow param to xslt transform

2007-01-26 Thread Mark Lundquist
On Jan 26, 2007, at 9:44 AM, Steven D. Majewski wrote: [1] use use-request-parameters: map:transform src=... map:parameter name=use-request-parameters value=true //map:transform and append the params to the URI as request params in my sendPage call. That sucks and is

Re: xsl:message output

2007-01-26 Thread Mark Lundquist
On Jan 26, 2007, at 9:26 AM, Steven D. Majewski wrote: I do testing/debugging on Mac OSX laptop: Me too :-) I put a distinctive string in my xsl:message and grepped all thru the cocoon logs, the system and console logs and anywhere else I could find. Does anyone know were to look on OSX

Sitemap schema (Re: [contrib] Cocoon editor)

2007-01-24 Thread Mark Lundquist
On Jan 24, 2007, at 2:17 AM, Peter Flynn wrote: I couldn't find a DTD or Schema anywhere though: I'm sure there's one around -- it's just not obvious. The link to sitemap-2.1-draft.xsd on http://cocoon.apache.org/2.1/userdocs/concepts/sitemap.html is broken, and all the mentions seem to

Re: First time continuation exception (2.1.10 upgrade)

2007-01-24 Thread Mark Lundquist
On Jan 24, 2007, at 5:45 AM, Gary Larsen wrote: Yep, this is a similar problem where currentCall is null. Bypassing the NPE doesn't work with sendForm() since it will then NPE on the form.save(). Right :-/ There must be something wrong with my configuration or component version

Re: JX generator Vs jx transformer

2007-01-23 Thread Mark Lundquist
On Jan 23, 2007, at 9:57 AM, Carlos Maté wrote: I have to use jx transform istead of jx generator because in my template I use xi:include href=pags.xml/ [and page.xml contains jx: markup...] If you could use jx:import instead of Xinclude for that, then you could run your JXTG first.

Re: First time continuation exception (2.1.10 upgrade)

2007-01-23 Thread Mark Lundquist
On Jan 23, 2007, at 1:33 PM, Gary Larsen wrote: Sorry for another 2.1.10 upgrade question. I've been able to tackle most of the cforms issues but this has me stuck. The first time a session calls any continuation an exception occurs with an NPE in

Re: CForms: Binding of two connected Beans

2007-01-22 Thread Mark Lundquist
Hi Wotan, On Jan 22, 2007, at 2:28 AM, Wotan von Klass wrote: fb:context xmlns:fb=http://apache.org/cocoon/forms/1.0#binding; path=/ fb:value id=make path=make.name/ /fb:context Doesn't work Right, it's jxpath. Use: fb:value id=make path=make/name/ cheers, —ml—

Re: Access items from a selection list from within flowscript

2007-01-16 Thread Mark Lundquist
On Jan 16, 2007, at 1:10 AM, Jeroen Reijn wrote: It seems I overlooked. As Mark pointed out this is not possible at the moment. It might be by modifying the code of the DynamicSelectionList. Yeah, but what I don't understand is why getItems() isn't part of the SelectionList interface.

Re: Exiting flowscript by sending XML to a pipeline

2007-01-16 Thread Mark Lundquist
On Jan 16, 2007, at 10:43 AM, Walter Lewis wrote: My thanks to Jason for the keys to the regular expression kingdom, or at least that part solvable by type conversion. :) Now that the data is being manipulated in flowscript to my satisfaction (or, at least, well enough for the moment), on

Re: Access items from a selection list from within flowscript

2007-01-16 Thread Mark Lundquist
On Jan 16, 2007, at 9:44 AM, I wrote: Yeah, but what I don't understand is why getItems() isn't part of the SelectionList interface. I guess the reason DynamicSelectionList doesn't have getItems() is that it's more dynamic than you expect :-). DynamicSelectionList doesn't really have

Re: problem with headers

2007-01-15 Thread Mark Lundquist
On Jan 15, 2007, at 4:39 AM, Joose Vettenranta wrote: [...] So it might indicate problem with caching and mime-types. hmmm https://issues.apache.org/jira/browse/COCOON-1624 ??? —ml— - To unsubscribe, e-mail:

Re: Access items from a selection list from within flowscript

2007-01-15 Thread Mark Lundquist
On Jan 15, 2007, at 10:29 AM, Ralph Rauscher wrote: Now if I try the following code var selList = widget.getFieldDefinition().getSelectionList(); var selListItems = selList.getItems() selListItmems will be null. I've used the exact same code for another selection list - however that

Re: custom document generation

2007-01-13 Thread Mark Lundquist
Hi Daniel, On Jan 13, 2007, at 1:06 PM, Daniel Süpke wrote: I used to work with struts and have some problems now getting into Cocoon. Could you please give me a hint if I'm on the right track? Yes, you're on the right track :-). What problems are you having? I have to create an

Re: problem with headers

2007-01-13 Thread Mark Lundquist
On Jan 12, 2007, at 1:43 AM, Joose Vettenranta wrote: Hello, I have like this in sitemap: map:match pattern=internal/action/upload map:read type=resource src={flow-attribute:path}/{flow-attribute:file} mime-type={flow-attribute:mimetype} / /map:match It works for some

Re: normalize-space and cocoon

2007-01-12 Thread Mark Lundquist
Hi km, On Jan 12, 2007, at 1:23 PM, km wrote: I use a lot of xsl with different params. Some of the params I catche with normalize-space($param). Why? Is it your own XSLT that you wrote, or did you inherit it from somebody else? I think I can delete all normalize-space, Why do you

Re: AW: Externalize sitemap.xmap location property

2007-01-12 Thread Mark Lundquist
On Jan 12, 2007, at 12:37 AM, Eichner, Sebastian wrote: Our war is to be used in different environments, and currently we use the convention that a root-sitemap is located/linked as webapp-dir/../sitemap.xmap, so cocoon.xconf currently contains sitemap file=../sitemap.xmap/ That's quite

Re: Passing from flowscript to sitemap

2007-01-11 Thread Mark Lundquist
On Jan 11, 2007, at 7:48 AM, rachid harradi wrote: i set two Parameter at flowscript main like filname and path in the Transfomer i will get it. but i dont what do i false? Which transformer? Anyway, you probably need to use something like parameter name=filename

Re: Externalize sitemap.xmap location property

2007-01-11 Thread Mark Lundquist
On Jan 11, 2007, at 8:51 AM, Eichner, Sebastian wrote: I have to modify the configuration of an Cocoon-based web application (Cocoon 2.1.9, Tomcat 5.5.17, JDK5), and I am trying to externalize some configuration parameters. I would like to configure the location of the base sitemap.xmap via

Re: How do you deploy your mounts?

2007-01-11 Thread Mark Lundquist
Hi... what version(s) of Cocoon are you using? On Jan 11, 2007, at 3:02 PM, Kamal Bhatt wrote: We have a number of cocoon projects and we are trying to create a deployment process for these various mounts. At the same time we want to manage the source in a version control system and have

Re: How do you deploy your mounts?

2007-01-11 Thread Mark Lundquist
On Jan 11, 2007, at 3:28 PM, Kamal Bhatt wrote: 2.1.9 Not really interested in deploying cocoon as I am in deploying the mounts. I guess I'm not really sure exactly what you mean by the mounts... ? —ml— - To

Re: How do you deploy your mounts?

2007-01-11 Thread Mark Lundquist
On Jan 11, 2007, at 3:40 PM, Kamal Bhatt wrote: The places on the filesystem you setup in mount-table.xml Ah. I don't use the mount table... what are you using it for? —ml— - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: How do you deploy your mounts?

2007-01-11 Thread Mark Lundquist
On Jan 11, 2007, at 4:09 PM, Kamal Bhatt wrote: Don't you need the mount table to indicate where in your filesystems your different URLs map to (ie where to find the sitemap)? How do you tell cocoon where to look for the sitemap? At any rate, for each client we have a different mount point

Re: Running cocoon as tomcat user on port 80

2007-01-08 Thread Mark Lundquist
On Jan 8, 2007, at 5:36 AM, Peter Flynn wrote: I've been running Cocoon as root while testing but I clearly don't want to do this for an open production server which will be writing to the server disk. How do I allow running it as the tomcat user but still binding to port 80? You don't

Re: cforms: tabs in an aggregated page

2007-01-08 Thread Mark Lundquist
On Jan 8, 2007, at 7:29 AM, ZongoZongo wrote: I really need to solve this problem. Otherwise I cant proceed my project :-( What problem, exactly? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: including multiple xml files into transformation

2007-01-07 Thread Mark Lundquist
On Jan 7, 2007, at 6:13 AM, Toby wrote: 2. XSLT's (actually XPath's) document() function The document() function allows you to access more than one xml source file from within a XSLT. See for example the styleless stylesheet approach (it was on some blog... I don't have the link handy right

Set request attribute from sitemap (was Re: passing Value from Pipline to another Pipline)

2007-01-05 Thread Mark Lundquist
On Jan 5, 2007, at 7:45 AM, Toby wrote: Thinking about it, I'm not sure if you can *set* a request attribute from the sitemap. You can. There are 2 ways: 1) Use a PropagatorAction configured with the RequestAttributeOutputModule 2) Use the SetterAction configured in request-attrubute

Re: CocoonForm mettre le focus sur un widget avec dans le flowScript.

2007-01-04 Thread Mark Lundquist
On Jan 4, 2007, at 3:23 AM, CHARLIER Cyril wrote: I want to focus on a widget in the flowScript but i don't find a setFocus() function or anything else to do it. Browser focus is client-side. Flowscript is server-side. When/why are you wanting to set the focus? Do you just want to

Re: Running Cocoon in debugger

2007-01-04 Thread Mark Lundquist
On Jan 4, 2007, at 7:49 AM, Lars Huttar wrote: If I don't find a solution for debugging with Jetty, I may try Eclipse as you suggest. The headache there is that if I really do have to maintain a SVN working copy of Cocoon for debugging, huh, why do you have to have Cocoon sources in

Re: Running Cocoon in debugger

2007-01-04 Thread Mark Lundquist
On Jan 4, 2007, at 7:49 AM, Lars Huttar wrote: If I don't find a solution for debugging with Jetty, I may try Eclipse as you suggest. NB we are actually talking about Eclipse either way... the distinction IIUC is just between two different types of debugging setup in Eclipse. The remote

Re: Running Cocoon in debugger

2007-01-04 Thread Mark Lundquist
On Jan 4, 2007, at 11:35 AM, Lars Huttar wrote: 09:42:46.355 WARN!! org.mortbay.util.MultiException[org.xml.sax.SAXParseException: Document root element web-app, must match DOCTYPE root null.] at org.mortbay.http.HttpServer.start(HttpServer.java:640) at

Re: Running Cocoon in debugger

2007-01-04 Thread Mark Lundquist
On Jan 4, 2007, at 12:08 PM, Lars Huttar wrote: However, Cocoon 2.1.7 runs fine with Tomcat. Right, but since your error is at the Jetty level... So I must have done something to the Jetty bundled with Cocoon 2.1.7. Apparently so... However the Jetty config files (tools\jetty\**) are

Re: Running Cocoon in debugger

2007-01-04 Thread Mark Lundquist
On Jan 4, 2007, at 12:56 PM, Grzegorz Kossakowski wrote: Mark explained in detail that this is not supposed to be that way, now I will explain how to turn on debug logging in Jetty ;) So before running cocoon.bat servlet[-debug] you have to set JAVA_OPTIONS environment variable to '-DDEBUG'

Re: Running Cocoon in debugger

2007-01-04 Thread Mark Lundquist
On Jan 4, 2007, at 1:02 PM, Lars Huttar wrote: I believe it *is* on the path... see previous response. D'oh, it is... not sure what I was thinking :-) —ml— - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Running Cocoon in debugger

2007-01-04 Thread Mark Lundquist
On Jan 4, 2007, at 1:02 PM, Lars Huttar wrote: Anyway, I've now got Jetty/Cocoon successfully running with cocoon servlet-debug. However, when I try connecting to them remotely with a debugger (jdb or Eclipse), it fails. (1) Trying with jdb: C:\Program Files\Java\jdk1.5.0_09\binjdb -attach

Re: Running Cocoon in debugger

2007-01-04 Thread Mark Lundquist
On Jan 4, 2007, at 1:28 PM, Lars Huttar wrote: [snipped] When this is all over, you will be well-qualified to write the Debugging Cocoon Applications in Eclipse on Windows document :-) —ml— - To unsubscribe, e-mail:

Re: Running Cocoon in debugger

2007-01-04 Thread Mark Lundquist
On Jan 4, 2007, at 8:49 PM, Lars Huttar wrote: Many thanks, Grzegorz and Mark! I've tried to get Cocoon running in Eclipse a number of times in the past, and now it's finally there. Awesome! :-) Next step is to figure out how to use this to trace data flow through the sitemap. You might

Re: Caching Problem

2007-01-02 Thread Mark Lundquist
On Jan 2, 2007, at 10:17 AM, ZongoZongo wrote: var factory = Packages.de.doccollector.ObjectFactory.getInstance(); var obj = factory.getFormObject(objectType, id, 0); //... //get XMLStream var doc = obj.getXmlData(); form.load(doc); When

Re: Caching Problem

2007-01-02 Thread Mark Lundquist
On Jan 2, 2007, at 12:27 PM, ZongoZongo wrote: I doubt this is not the case. After I changed the datafields of the form and the data is successfully written back to db, I ran the function getXmlData() outside in eclipse und it delivers the correct Data. The getXmlData simply fetches the data

[AW] Re: cocoon.context?

2007-01-01 Thread Mark Lundquist
Never mind, I figured it out... it is (in the http environment) the servlet context. cheers, —ml— - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

cocoon.context?

2006-12-31 Thread Mark Lundquist
Hi and happy new year :-) I don't understand the cocoon context property in the FOM. The documentation (http://cocoon.apache.org/2.1/userdocs/flow/api.html#context) is a little thin. It says Context Object The Context object represents the client context associated with the

Re: Using date difference with cocoon

2006-12-28 Thread Mark Lundquist
Hi Sanket, On Dec 28, 2006, at 9:31 AM, Sanket Pattekar wrote: snip If I run the same with saxon then, I get the correct difference, but the same doesnot work inside cocoon. Are you using Saxon in Cocoon? —ml— - To

Re: Using date difference with cocoon

2006-12-28 Thread Mark Lundquist
On Dec 28, 2006, at 10:03 AM, Sanket Pattekar wrote: I am not using Saxon inside cocoon, but run the same outside. Also I have not defined the transformer, so it should be using the default that is defined I would check the exslt date functions, but how can I get the same working using the

Re: set a session attribute in the sitemap

2006-12-20 Thread Mark Lundquist
On Dec 19, 2006, at 2:03 PM, Jeroen Reijn wrote: Well if I look back at my emails, I'm afraid that the emails are meant the way I wanted them. Both session-propagator emails were a reply to the part where Roel had problems with a 'namespace not defined' error in his sitemap after trying the

Re: set a session attribute in the sitemap

2006-12-19 Thread Mark Lundquist
On Dec 18, 2006, at 7:00 AM, Jeroen Reijn wrote: Or use the SetterAction http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/acting/ SetterAction.html Jeroen, can you post an example of how to use the SetterAction? The sitemap usage model wasn't clear to me from the API. thx, —ml—

Re: set a session attribute in the sitemap

2006-12-19 Thread Mark Lundquist
On Dec 19, 2006, at 11:04 AM, Jeroen Reijn wrote: Hmm I was a little bit to fast with the trigger :-) I mean that it should become map:act type=session-propagator map:parameter name=example1 value=xxx/ /map:act Hmmm, I don't think so... In your example, the action is configured with the

JX or JPath without flowscript

2006-12-18 Thread Mark Lundquist
Begin forwarded message: From: Jeroen Reijn [EMAIL PROTECTED] Hi Piotr, I'm afraid that questions like these should go to the cocoon user list instead of the developers list. I'm reposting it there :-). It's uncanny how often I've had a question that I thought was kind of obscure, only

Re: get fb:value path=/

2006-12-15 Thread Mark Lundquist
On Dec 15, 2006, at 12:07 AM, Merico Raffaele wrote: I'm looking for a way how to get the binding path-attribute information of a widget (fb:value path=/) starting from an object of the class org.apache.cocoon.forms.formmodel.Field. get it... in what context? In flowscript, in the JXT, or

Re: AW: get fb:value path=/

2006-12-15 Thread Mark Lundquist
Hmm, I don't really know of a way to do it, but maybe someone else does. I don't understand the internals of the binding framework all that well, but I do know that the bindings are a totally separate abstraction; the form load/save methods iterate through the binding, which operates on

Re: JX and sendmail transformer

2006-12-13 Thread Mark Lundquist
hi Andre, On Dec 13, 2006, at 12:10 PM, Andre Juffer wrote: Hi, I need to access one object in a JX generated response which is requested for by email:body using the src attribute. I have stored this object in the current session in flow using cocoon.session.setAttribute(object-name,

Re: Cinclude file not found - why?

2006-12-13 Thread Mark Lundquist
Hi Dan, don't know if you ever got this working, but... Anyway, when you say Apache, are you talking about the same Apache that's running in front of Cocoon w/ the JK connector, or are you talking about a different Apache (e.g., on a different host)? If it's the same Apache, then I'm not

Re: setting StatusCode

2006-12-13 Thread Mark Lundquist
Naw, writing a transformer to detect something and throw an exception so that you can use, e.g., the ExceptionGenerator is IMHO going about it the wrong way. Andreas, why do you need the error code to be variable? What error codes do you need to generate, and when? —ml— On Dec 13, 2006,

Re: (2) resource inheritance when using sub-sitemaps

2006-12-13 Thread Mark Lundquist
I do this all the time too, but there's a gotcha to know about. If you modify one of the included files, you have to touch the top-level sitemap file in order for the sitemap to get reloaded so that you can see your changes take effect. cheers, —ml— On Dec 11, 2006, at 3:57 AM, Janne K.

Re: Use xslt2.0

2006-12-08 Thread Mark Lundquist
On Dec 8, 2006, at 5:33 AM, Derek Hohls wrote: So, basically, we are stuck with XSLT 1.0 for the forseeable future unless we want to start messing with custom installations? Yes. But the custom installation is trivial. I've been using Saxon for maybe 2 years in all my Cocoon projects.

Re: context-root in cocoon.xconf

2006-12-07 Thread Mark Lundquist
On Dec 7, 2006, at 2:19 AM, trampus wrote: dburljdbc:hsqldb:file:cocoon://WEB-INF/db/example/dburl no, change nothing. Anybody else has any idea? I think the cocoon:// scheme is wrong there, that says resolve this to a pipeline. For a filesystem path you should use context://. Try

Re: Aggregation and CForms: redisplay

2006-12-07 Thread Mark Lundquist
Hi Niclas, Please see my reply on the thread, aggregating a flowscript page, I think you will find it applies to your question as well. cheers, —ml— - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

  1   2   3   4   5   6   >