Re: [Slightly Off Topic] Tool for viewing Browsers live DOM

2006-07-20 Thread Brian Maddy
Additionally, if you are using firefox, make a selection, then right click and select 'View Selection Source'. This will show you the modified source of the selection (not the original source). Brian Bertrand Delacretaz wrote: On 7/20/06, Alain Pannetier <[EMAIL PROTECTED]> wrote: ... - F

Re: binding framework and multivaluefields

2006-03-29 Thread Brian Maddy
(java.lang.Integer.class, 0); (not sure this works perfectly in _javascript_, otherwise use Class.forName('java.lang.Integer') instead of java.lang.Integer.class). Hope this helps, Simone Brian Maddy wrote: Does anyone know how to use the binding framework to set a

Re: binding framework and multivaluefields

2006-03-28 Thread Brian Maddy
Oops, I should have mentioned, the below code gives me this error: java.lang.ClassCastException: at the widget.setValue(values); line. Brian Brian Maddy wrote: Does anyone know how to use the binding framework to set a multivaluefield? My XML file has a string that is comma separated

binding framework and multivaluefields

2006-03-28 Thread Brian Maddy
Does anyone know how to use the binding framework to set a multivaluefield? My XML file has a string that is comma separated values that I need to load in, but I can't even get a simple array to work. Here's what I have so far: Form Definition: Unit

Re: how to save results to disk?

2006-03-27 Thread Brian Maddy
Check out the xml binding example. There's a saveDocument(document, uri) function in the flowscript. See the file cocoon-2.1.8\build\webapp\samples\blocks\forms\flow\binding_example.js Perhaps that will contain something to help you. See ya, Brian Paula Estrella wrote: Hi, I'm developing

Re: output - outputting a formatted number

2006-03-23 Thread Brian Maddy
Thanks for the suggestion, but I unfortunately couldn't get this to work either. This will work: 1234567890 Returns: 1,234,567,890 But this will not because the ft:widget is replaced with the number surrounded by a tag id="unitCount"/> Returns: id="developmentselector.unitCount">28182 and th

Re: is it possible to cache sql queries?

2006-03-15 Thread Brian Maddy
AFAIK, the SQL tranformer is not cacheable. Best Regards, Antonio Gallardo. Brian Maddy wrote: Does anyone know if it is possible to cache sql queries? I'm using the sql tra

Re: is it possible to cache sql queries?

2006-03-14 Thread Brian Maddy
ur caching strategy. Have a look at other transformers that are cacheable how to do this. AFAIK, the SQL tranformer is not cacheable. Best Regards, Antonio Gallardo. Brian Maddy wrote: Does anyone know if it is possible to cache sql queries? I'm using the sql transformer a lot and many

fd:output - outputting a formatted number

2006-03-14 Thread Brian Maddy
Hi, I am using the output widget to output a number to the user. I would like to format it so it looks like this 1,234,567 instead of 1234567. I figured this would be a styling thing, but couldn't find anything in the docs. I've also tried the following, but it doesn't seem to work:

How to catch an InvalidContinuationException?

2006-03-07 Thread Brian Maddy
Has anyone successfully been able to catch an InvalidContinuationException? I've basically copied exactly what is described here: http://cocoon.apache.org/2.1/userdocs/flow/tutor.html but Cocoon still uses the default handling of an exception (showing the stacktrace and such). I believe it's

is it possible to cache sql queries?

2006-02-23 Thread Brian Maddy
Does anyone know if it is possible to cache sql queries? I'm using the sql transformer a lot and many of the queries don't need to be done more than once every few hours. But they're being done all the time. Is it possible to cache the results somehow with cocoon's caching system? Thanks, B

Re: How do you make the sendmail action work?

2006-02-13 Thread Brian Maddy
F/lib/mail.jar So it seems as if the appropriate jar files are being loaded... Anyone know where to look next for this? Thanks, Brian Bertrand Delacretaz wrote: Le 13 févr. 06, à 16:54, Brian Maddy a écrit : ...Is the sendmail transformer one of those or is it something I haven't found yet?

Re: How do you make the sendmail action work?

2006-02-13 Thread Brian Maddy
s the sendmail transformer one of those or is it something I haven't found yet? Thanks, Brian Bertrand Delacretaz wrote: Le 13 févr. 06, à 16:04, Brian Maddy a écrit : Has anyone gotten the sendmail action to work (http://cocoon.apache.org/2.1/userdocs/optional/sendmail-action.html)? I ad

How do you make the sendmail action work?

2006-02-13 Thread Brian Maddy
Has anyone gotten the sendmail action to work (http://cocoon.apache.org/2.1/userdocs/optional/sendmail-action.html)? I added the mail.jar and activation.jar libraries in WEB-INF as described here: http://wiki.apache.org/cocoon/RecipeXSPSendMailExample?highlight=%28sendmail%29 and here: http://

get URI inside flowscript

2006-02-10 Thread Brian Maddy
Does anyone know how to get your base URI from within flowscript? I am trying to do a cocoon.redirectTo("somePage"), but it seems to be redirecting to the root directory of my webapp. I figure I could do something like: cocoon.redirectTo("/" + base_uri + "somePage"); Additionally, the follo

Re: Antwort: Re: Getting XML data into Flowscript

2006-02-06 Thread Brian Maddy
Oops, I wish I had been playing closer attention to the list.  I would have posted this sooner.  I was trying to get this to work a while back.  Here's how someone in the cocoon chat room showed me how to do it:     // Get our xml string that tells our totals     var output = new Packages.java

Re: ParanoidCocoonServlet cannot run in an undeployed WAR file (solved)

2006-01-31 Thread Brian Maddy
on. Looks like it's time to start negotiations with my hosting company. :) Brian Brian Maddy wrote: Anyone know what may be causing this error in the logs? I'm deploying as a war file on Tomcat 4.1.24 with a hosting company. I'm only getting a white screen when I visit /coc

ParanoidCocoonServlet cannot run in an undeployed WAR file

2006-01-31 Thread Brian Maddy
Anyone know what may be causing this error in the logs? I'm deploying as a war file on Tomcat 4.1.24 with a hosting company. I'm only getting a white screen when I visit /cocoon. It works fine on my local Tomcat 4.1.24 server though... "Servlet /cocoon threw load() exception: javax.servlet.

Re: CForms, Ajax, Visual Effects and onchange events

2006-01-31 Thread Brian Maddy
Jason Johnston wrote: Brian Maddy wrote: Hello, I am making a form that uses ajax like in the car selector sample. I would like to make another on the page have the fade out visual effect when the form widgets are updated. I am able to add events to the onchange attribute (I have to

Where do database connections go when making a .war file?

2006-01-27 Thread Brian Maddy
When making a .war file, does anyone know where you should place database connections? I was guessing they should go in src/webapp/WEB-INF/cocoon.xconf, but the section doesn't seem to exist until after you build it. It does seem kind of strange to me that I'm having to edit stuff under the

Re: Using Cocoon when you don't have access to the $TOMCAT_HOME/common/endorsed directory.

2006-01-26 Thread Brian Maddy
ror I was getting before when I didn't have the Xerces and Xalan libraries in the $TOMCAT_HOME/common/endorsed directory. In case it helps, that error was: org.quartz.SchedulerException: Scheduler with name 'Cocoon' already exists. Thoughts anyone? Thanks again! Brian Antonio Gal

Using Cocoon when you don't have access to the $TOMCAT_HOME/common/endorsed directory.

2006-01-26 Thread Brian Maddy
Hello, According to the page http://cocoon.apache.org/2.1/installing/index.html, Cocoon requires some Xerces and Xalan libraries to be placed in the $TOMCAT_HOME/common/endorsed directory. I don't believe our hosting provider provides us with access to this directory, so is there any way ar

CForms, Ajax, Visual Effects and onchange events

2006-01-19 Thread Brian Maddy
Hello, I am making a form that uses ajax like in the car selector sample. I would like to make another on the page have the fade out visual effect when the form widgets are updated. I am able to add events to the onchange attribute (I have to add the forms_submitForm() function also though

where is the form.getWidget() documentation?

2006-01-04 Thread Brian Maddy
Hello, Does anyone know where I can find the documentation for form.getWidget()? I'm looking at the following lines in the ajax car selector sample. form.showForm("carselector-display-pipeline.jx"); cocoon.request.setAttribute("carselectorform", form.getWidget()); cocoon.sendPage("c

How do you call a pipeline from flowscript?

2005-12-29 Thread Brian Maddy
Hello everyone, I'm trying to make a page similar to the Ajax Car selector example.  I would like to set the at the bottom with some information gathered from a database.  I have set up a pipeline to get the information I need, but I can't seem to figure out how to call it from the flowscript