Re: generate pdf from xml with embedded image?

2008-12-26 Thread Jason Johnston
Marten van der Honing wrote: Now i tried: fo:external-graphic src=url('data:image/gif;base64,R0lGODlhMAAzALMAAMe8UuTZWggCDq2lQzAAYCQASJSP ... I think you should omit the url() wrapper: fo:external-graphic src=data:image/gif;base64,R0lGODlhMAAzALMAAMe8UuTZWggC.../ An example from the FOP

Re: bug with double-listbox?

2008-11-09 Thread Jason Johnston
On 11/09/2008 07:41 AM, Paul Joseph wrote: well...the code below seems to work fine on IE7. IF I uncomment out the line, I get the mis-match error. : function addEvent( element, type, handler ) { if( element.addEventListener ) { element.addEventListener( type, handler, false ); } else { //this

Re: bug with double-listbox?

2008-11-08 Thread Jason Johnston
On 11/07/2008 09:52 AM, Paul Joseph wrote: element.attachEvent( 'on' + type, handler ); is giving me a runtime type mismatch error in IE7. What does it do really. When I comment it out, things seem to continue to work ;-) It is the IE-proprietary event attachment method. See

Re: bug with double-listbox?

2008-11-07 Thread Jason Johnston
On 11/06/2008 06:05 PM, Paul Joseph wrote: But if I have a JavaScript function say: function myFunction() { alert (loaded); } and if I call this function on page load either by using window.onload=myFunction; OR by body onLoad=javascript:scrollToPosition(); then the double-list box stops

Re: Can a Serializer acceess the Request Object ?

2008-10-28 Thread Jason Johnston
On 10/27/2008 05:21 AM, Thorsten Mauch wrote: Hi I wonder if a Serializer can access the request object ? My problem is that i want to pass a java Object to the Serializer that is created somewhere else. Is this possible ? Your serializer can implement the Contextualizable interface, and get

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

2008-10-28 Thread Jason Johnston
On 10/28/2008 05:00 PM, hussayn wrote: Hi, mark; thanks fo your response. To answer your question: I want to use the MySQL drivers for development, but the final production application shall run with MS sqlserver. So from your remark what shall i conclude ? I have to add a class loader of my

Re: flowscript and multiple submit button

2008-09-24 Thread Jason Johnston
Jeff Schmitz wrote: I was close, but I was actually using button tags, e.g. button type=submit name=ManageUsers id=ManageUsers value=Manage User AccountsManage User Accounts/button but I wasn't setting the value attribute since what shows on the button is whatever is between the tags. By

Re: how to get size of formMap ?

2008-07-27 Thread Jason Johnston
Мария Григорьева wrote: var form = new Form(forms/components.xml); var formMap = form.asMap(); var repeater = formMap.get(test); form.showForm(viewform-component-template.html); I need to know the size of formMap. How can I get it? Trying: var repeater_length =

Re: Passing a node-set from XSLT to Java

2008-07-03 Thread Jason Johnston
Andrew Chamberlain wrote: Hi Luca/All, Sorry. On further testing, we're still not getting through the full tree fragment to Java. I've adapted the java method to give details of what it receives: public String addGML(org.w3c.dom.Node myNode) { System.out.println(Class =

Re: Database to Excel Spreadsheet

2008-06-05 Thread Jason Johnston
Matthew Monkan wrote: Alright, I'm really close to getting this application to work but am stumped over one thing. Here is my initial XML file: ?xml version=1.0? execute-query xmlns=http://apache.org/cocoon/SQL/2.0; querySELECT test_data from test_table;/query /execute-query It gets passed

Re: Redirect to GET, strange bug

2008-03-31 Thread Jason Johnston
Tobia Conforto wrote: Hello I'm trying to implement in Cocoon a somewhat standard web behaviour: at the end of a form (final POST request, form fully validated, etc.) I'd like to redirect the user to a GET request before showing him the final 'Thank you' page. This is often done in web

Re: Passing flowscript data to a form

2008-03-03 Thread Jason Johnston
Derek Hohls wrote: Working with Cocoon 2.1.8 I am trying to pass data from flowscript to a from, but with no success. The value of foo in the scenario below simply does not show up (although normal widgets, which I have stripped out in the sample below, show up fine). What do I need to

Re: Cocoon source build

2008-02-10 Thread Jason Johnston
Mansour wrote: I have deleted the whole .m2 directory and started over. Still there's an error. Well I can't reproduce this one. The Nekohtml artifact is definitely in the central repository. The only thing I can suggest is that maybe it was a temporary network issue and to try again. If

Re: Cocoon source build

2008-02-09 Thread Jason Johnston
I was able to reproduce the error with that command. The key was clearing out the org/apache/cocoon area in my local repository. The problem is that by skipping the tests, maven doesn't produce the test-jar artifacts which are needed later on by other modules' tests. It seems like that

Re: Cocoon source build

2008-02-09 Thread Jason Johnston
The fix has been checked in. Please update and see if your build succeeds now. Mansour wrote: Jason, Yep, I am getting the same thing. Thank you for helping. Jason Johnston wrote: I was able to reproduce the error with that command. The key was clearing out the org/apache/cocoon area

Re: Cocoon source build

2008-02-09 Thread Jason Johnston
Mansour wrote: Getting further but failing with a different error: [INFO] [resources:testResources] [INFO] Using default encoding to copy filtered resources. [INFO] [compiler:testCompile] [INFO] Nothing to compile - all classes are up to date [INFO] [surefire:test] [WARNING] POM for

Re: Attempting to Install Cocoon-2.2

2008-02-03 Thread Jason Johnston
mvn --version Maven version: 2.0.8 Java version: 1.6.0_03 OS name: windows 98 version: 4.10 arch: x86 Family: win9x I see you're using Windows 98. From the maven download/installation instructions page: Operating System ... No minimum requirement. On Windows, Windows NT and above or

Re: Error handler in sitemap

2008-01-29 Thread Jason Johnston
Bobby Quninne wrote: I have been struggling with this issue for a while. I have consulted the docs on the cocoon site and looked at the forums but cannot find a resolution. There seems to be no failure loading the sitemap.xamp on startup. Basically the pages I want displayed when an exception

Re: HashMap in repeater binding via javascript

2008-01-04 Thread Jason Johnston
Dev at weitling wrote: Hi Harald, thanks for your help, but it I'm sorry to say it doesn't match my problem. An example: MapString,String locales = new HashMapString,String(); locales.put(de,deutsch); locales.put(en,english); locales.put(fr,francais); I now want a repeater

Re: HashMap in repeater binding via javascript

2008-01-04 Thread Jason Johnston
On Fri, 04 Jan 2008 17:10:13 +0100, Dev at weitling [EMAIL PROTECTED] wrote: Hi Jason, this looks great, thanks a lot, but I'm stuck again :-/ The first row of my repeater example should now be something like: fb:repeater id=localeRepeater

Re: Starting with Cocoon

2007-11-18 Thread Jason Johnston
Mansour wrote: This was not help at all. What is the part that is hard to understand in my first question? I asked about how to write a small hello world application from scratch and dump it in my tomcat/webapp. I Struts2, I include the jars in the WEB-INF/lib and configure web.xml and other

Re: forms with ajax and cinclude

2007-09-22 Thread Jason Johnston
cocoon.erard wrote: Hi, I've another problem in my application. I've extracted a piece of my form template in a separate xml to have a module that can be reused. With this include Iinclude the commented part into my template. In the form I enabled ajax, and when I have Errors while the

Re: Javascript Source File can not be directly loaded

2007-09-15 Thread Jason Johnston
Felix Knecht wrote: [EMAIL PROTECTED] schrieb: Hi there, i´ve since a few days much more problems with Javascript and Cocoon then ever... ... Example(in this case there is in test.js a function named test and within of them an alert invocation ): xsl:template match=body body script

Re: [cocoon 2.2] Spring configuration of transformers

2007-09-13 Thread Jason Johnston
On Thu, 13 Sep 2007 17:56:27 +0200, Raphaël Piéroni [EMAIL PROTECTED] wrote: Thanks, I tried, but it doesn't work. Here what i did exactly: ... export defines it's spring stuff in src/main/resources/META-INF/cocoon/spring/ It defines the block and the generator i try to test like this:

Re: Cocoon Forms Validation

2007-08-29 Thread Jason Johnston
On Wed, 29 Aug 2007 10:54:34 -0700, Edward Elhauge [EMAIL PROTECTED] wrote: That should have been: 1) When the user hits the Delete button, don't run any of the validation just delete. 2) When the user hits the Save button, run all the validation before save. It sounds

Re: Java strings vs. Javascript strings

2007-08-28 Thread Jason Johnston
On Tue, 28 Aug 2007 16:25:25 +0200, Tobia Conforto [EMAIL PROTECTED] wrote: Packages.org.mozilla.javascript.Context.getCurrentContext().getWrapFactory().setJavaPrimitiveWrap(false); Thank you! This is going to be a noticeable time saver for us, by eliminating lots of small errors. Great!

Re: Java strings vs. Javascript strings

2007-08-28 Thread Jason Johnston
On Tue, 28 Aug 2007 20:36:09 +0200, Grzegorz Kossakowski [EMAIL PROTECTED] wrote: FYI I personally would vote against making it the default, partly because I prefer the framework not do unexpected magic conversions, but mostly because it's a backward-incompatible change and would break lots

Re: Java strings vs. Javascript strings

2007-08-27 Thread Jason Johnston
Tobia Conforto wrote: Hello Am I the only Cocoon user who is extremely annoyed by the fact that Java strings are not Javascript strings are not Java strings? ... Can't Rhino, or whatever piece of software is bridging Javascript to Java, do the Right Thing and present every string as a

Re: Java strings vs. Javascript strings

2007-08-27 Thread Jason Johnston
Tobia Conforto wrote: Jason Johnston wrote: Rhino also makes the JavaScript methods available to Java strings if the java.lang.String class doesn't already define them. For example: js javaString.match(/a.*/) Thanks, that clears part of the confusion to me. It also explains why sometimes

Re: control fd:initial-value in flowscript

2007-08-10 Thread Jason Johnston
johnson wrote: I've a form for several purpose, I need to set different fd:initial-value for them, how to do it in flowscript? You have access to the form model in your flowscript, so you can just set the value of the field directly. Or is there some reason you need to use fd:initial-value

Re: Sending DOM from flowscript to pipeline

2007-08-08 Thread Jason Johnston
Hugh Sparks wrote: Kazó Csaba [EMAIL PROTECTED] writes: I'm trying to get a generator to work with a DOM Node that I pass it from flowscript. The method seems to be described at http://cocoon.apache.org/2.1/861.daisy.html - basically I do cocoon.sendPage(page,{input:dom}) in my script and

Re: Many i18n transformations in sitemap

2007-08-07 Thread Jason Johnston
On Tue, 7 Aug 2007 11:00:11 +0200, Alan Menant [EMAIL PROTECTED] wrote: Hello, I was looking for a way to apply many i18n transforms in a pipeline. Here is my catalog definition : ... On my home page, I need to internationalize elements that are in both home and buttons catalogs. I tried

Re: Using Variables/attributes in CForm/Ajax/Jexl

2007-08-05 Thread Jason Johnston
Dev at weitling wrote: My personal Hydra looks like this: ... - My ${}'s in the template are either in the second run (Ajax) not evaluated or are filtered and therefore not redisplayed in the browser. The last point is heavy weight for me. Hm, I could circumvent it by doing without Ajax, but

Re: form.getChild() function problem

2007-08-01 Thread Jason Johnston
Alan Menant wrote: Hello, I'm trying to get all widgets from a form with the getChildren function : var form = new Form(myForm.xml); var myWidgets = form.getChildren(); form.showForm(myform-display-pipeline); But I get an error message telling getChildren() is not function

Re: [CForms] q'n about fd:group

2007-07-31 Thread Jason Johnston
Mark Lundquist wrote: 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

Re: problem mounting

2007-07-23 Thread Jason Johnston
Vaduvoiu Tiberiu wrote: Hi, I am having a problem mounting some sitemaps. Right now, for my application I am using a single sitemap...that has become to big...and for performance/mentainance reasons, I've decided to split the big sitemap in smaller ones using mount. ... in this case the first

Re: Sending DOM from flowscript to pipeline

2007-07-19 Thread Jason Johnston
Kazó Csaba wrote: Hi, I'm trying to get a generator to work with a DOM Node that I pass it from flowscript. The method seems to be described at http://cocoon.apache.org/2.1/861.daisy.html - basically I do cocoon.sendPage(page,{input:dom}) in my script and src=xmodule:flow-attr:input in my

Re: Including a js file

2007-06-17 Thread Jason Johnston
lfhc wrote: Hi all, I'm using cocoon to translate an xml file to html, to generate the interface from a content I get from a cms. On that interface I want to include some javascripts such as : ... And I would like this to be allocated within cocoon, since it should handle all that is interface.

Re: About Client side Javascript in Cform

2007-06-17 Thread Jason Johnston
Grzegorz Kossakowski wrote: Dev at weitling pisze: Hi Johnson senior, This is Johnson, Jason is my son :-D Seems I'm becoming old... missed a 't' and made a wrong guess :-) I'm suffering with CDMA(3G) connection :'( Well, then let's see what we can do: We need a Generator that

Re: Redirect at the end of a form

2007-06-04 Thread Jason Johnston
Tobia wrote: Cocoon users, I would like to get your feedback on a piece of flowscript I just wrote to solve what I believe to be a common problem. Suppose you have a form that asks the user for some data, validates it and inserts it into a database, using a DB access layer for flowscript, such

Re: repeater state and children

2007-05-17 Thread Jason Johnston
Rashel Shehata wrote: Hi, Im having a problem setting the state of a certain child of a repeater . I have a simple repeater defined as: ... Initially the response child is disabled but at some point i want to activate all instances of the response child in the repeater I have tried:

Re: ScriptableConnection error

2007-05-14 Thread Jason Johnston
ypomonh wrote: I'm trying to see how ScriptableConnection works so I have a basic flow: importPackage(Packages.org.apache.cocoon.components.flow.javascript.ScriptableConnection); var db = Database.getConnection(myConnection); var queryVal = cocoon.parameters[rid]; var startRow

Re: Binding on-insert-row is ignored

2007-05-12 Thread Jason Johnston
Dev at weitling wrote: Hello folks, I'm working for days on a binding problem. Narrowing the context of my problem (nested repeaters) I'm still stuck with the configuration described below (with 2.1.10, standard config). Everything loads fine but when I hit the Add row-button a row is created

Re: Further information needed on cform binding

2007-05-06 Thread Jason Johnston
Dev at weitling wrote: Hi folks, I want to reach the higher level of cform binding zen, but can't find enough information. The questions bothering me are at least: - What does e.g. fb:value id=id path=@id/ mean? Does it make any sense in Java-binding? I believe that in Java binding, path=id

Re: cforms showForm and memory leaks: quick question

2007-05-04 Thread Jason Johnston
bart remmerie wrote: Dear all, I'm rewriting some of my cocoon-code and I have the following question that continues to bother me. I use flow to show a cform (see code below), and I'm wondering if I need to terminate each function in flow in a clean way to avoid memory leaks (after the

Re: cforms showForm and memory leaks: quick question

2007-05-04 Thread Jason Johnston
On Fri, 04 May 2007 22:33:31 +0200, Dev at weitling [EMAIL PROTECTED] wrote: I use flow to show a cform (see code below), and I'm wondering if I need to terminate each function in flow in a clean way to avoid memory leaks (after the form.showForm(...) provide some action (redirect the user)

Re: CForms - need help to set error messages using the i18 transformer

2007-04-26 Thread Jason Johnston
Diogo Matos wrote: I'm trying to set a error message on a widget using the i18n transformer and for some strange reason i cannot. On the forms definition file i'm setting a widget like: fd:field id=generic_error state=output fd:datatype base=string/ /fd:field On my

Re: Logs

2007-04-25 Thread Jason Johnston
Peter Flynn wrote: Grzegorz Kossakowski wrote: Peter Flynn pisze: But none of those files have any information about where the request has come from (eg IP address), which makes them virtually useless. AFAIR, they should contain information you need. Nope. There is no trace of IP

Re: Catching exceptions in binding

2007-04-23 Thread Jason Johnston
Andre Juffer wrote: Hi, suppose I have the following: fb:javascript id=someId path=. direction=save fb:save-form object.setValues(values); /fb:save-form /fb:javascript Suppose the 'object.setValues(values)' throws an exception for whatever reason. With flow I have

Re: dynamic cForm generation

2007-04-18 Thread Jason Johnston
Philippe Gauthier - INSERM SIRH wrote: Hi Rashel, U shouldn't use a dynamic form definition, because it means for each call, cocoon will have to compile a new form and can't use any caching. I did the same mistake using xslt transformation to generate the definition (using pipelineToStream

Re: AW: AW: AW: AW: Continuations: Snapshot or Pointers?

2007-04-17 Thread Jason Johnston
On Tue, 17 Apr 2007 22:23:42 +0200, Joerg Heinicke [EMAIL PROTECTED] wrote: On 17.04.2007 16:28, Franziska Witzani wrote: Invocation of getClassName returns an error. org.mozilla.javascript.EcmaError: TypeError: Cannot find function getClassName.

Re: AW: AW: AW: AW: Continuations: Snapshot or Pointers?

2007-04-17 Thread Jason Johnston
Joerg Heinicke wrote: On 18.04.2007 00:21, Jason Johnston wrote: If the goal is to be able to traverse the actual Java objects, you can use form.getWidget() rather than form.getModel(). That returns the actual org.apache.cocoon.forms.formmodel.Form object rather than a ScriptableWidget

Re: Continuations: Snapshot or Pointers?

2007-04-12 Thread Jason Johnston
On Thu, 12 Apr 2007 21:41:06 +0200, Joerg Heinicke [EMAIL PROTECTED] wrote: On 12.04.2007 16:02, Franziska Witzani wrote: According to the documentation I have (especially the book of Stephan Niedermeier), a continuation is a snapshot of the variables of the flowscript (by the time the

Re: Building NekoHTML on Unix?

2007-04-08 Thread Jason Johnston
Rich Morin wrote: Although Bertrand Delacretaz prefers NekoHTML, he also mentioned JTidy. So, I tried downloading and building that, in order to maintain forward momentum. However, this got me no further than before. I really don't think you need to fight with compiling your own JTidy and

Re: Building NekoHTML on Unix?

2007-04-08 Thread Jason Johnston
Rich Morin wrote: Thanks; that's useful information. Looking at .../cocoon-2.1.10/INSTALL.txt I see that Blocks provide services that you might not need, therefore the build system allows you to remove them from the build. This seems to imply that the default build includes (pretty

Re: Cocoon Portal 2.1.9 - Load Testing

2007-04-06 Thread Jason Johnston
Erron Austin wrote: In load testing our portal on Linux, Java 1.4.x (not quite sure of the Ram), I was throwing concurrent 400 users. An issue that I'm seeing is that I keep getting this message in the logs for each page: .. DEBUG (2007-04-06) 12:07.40:905 [sitemap] (/home/ese)

Re: XHTML Serializer block/Ajax: Bug

2007-03-19 Thread Jason Johnston
Carsten Ziegeler wrote: Jason Johnston wrote: Carsten Ziegeler wrote: Actually I was too fast in answering :( Yes, I only fixed the html serializer and that fix is not appropriate for the xhtml. In html, the contents of the script tag is defined as a cdata section, therefore there should

Re: XHTML Serializer block/Ajax: Bug

2007-03-19 Thread Jason Johnston
On Mon, 19 Mar 2007 15:28:10 + (UTC), Joerg Heinicke [EMAIL PROTECTED] wrote: Andrew Madu andrewmadu at gmail.com writes: Wouldn't xhtml serializer need to be fixed anyway, as anyone using it as serializer will still encounter the problems with javascript irrespective of whether they

Re: Link in PDF document

2007-03-18 Thread Jason Johnston
The XSLFO-to-PDF generation in Cocoon is handled by the Apache FOP library. You should ask this question on the FOP mailing lists. km wrote: hi I use show-destination but it does not work. In Error-Log I can find a message: property show-destination is not implemented yet. How can I

Re: modifying form definition at runtime

2007-03-18 Thread Jason Johnston
Rice Yeh wrote: On 3/18/07, *Tobia* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Rice Yeh wrote: Is it possible to modify form definition at runtime? Can't you put fd:repeater, fd:group, and other containers in your form where appropriate, and then add, remove, or

Re: XHTML Serializer block/Ajax: Bug

2007-03-16 Thread Jason Johnston
Joerg Heinicke wrote: Jason Johnston cocoon at lojjic.net writes: The first issue is that XHTMLSerializer encodes all double-quotes in text content as quot;, which is of course absolutely valid XML/XHTML. Unfortunately, when an XHTML document is served up with a text/html mime-type

Re: XHTML Serializer block/Ajax: Bug

2007-03-16 Thread Jason Johnston
Carsten Ziegeler wrote: Actually I was too fast in answering :( Yes, I only fixed the html serializer and that fix is not appropriate for the xhtml. In html, the contents of the script tag is defined as a cdata section, therefore there should be no encoding inside the script. And that's what I

Re: XHTML Serializer block/Ajax: Bug

2007-03-15 Thread Jason Johnston
I've done some investigation. The first issue is that XHTMLSerializer encodes all double-quotes in text content as quot;, which is of course absolutely valid XML/XHTML. Unfortunately, when an XHTML document is served up with a text/html mime-type, as you're doing, Firefox doesn't actually

Re: XHTML Serialization error

2007-03-13 Thread Jason Johnston
Just a wild-guess thing to try: Replace the 2 jars cocoon-serializers-block.jar and cocoon-serializers-charsets-0.2.jar with the single jar from the Cocoon 2.2 snapshot:

Re: XHTML Serialization error

2007-03-13 Thread Jason Johnston
. Unfortunately it did not work. There is another xhtml serialiser I have been using but this does not format the document as a true xhtml document. Maybe I should stick with that instead? JD On 13/03/07, *Jason Johnston* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote

Re: Xhtml and Ajax...no go!!

2007-03-10 Thread Jason Johnston
Andrew Madu wrote: Hi, my site can now be viewed at www.beyarecords.com http://www.beyarecords.com. I have changed my ajax-request block to xhtml. On clicking the submit button you will see that the whole page reloads! I am using the very latest version of cocoon on winXP/SP2. Thanks for

Re: Xhtml and Ajax...no go!!

2007-03-10 Thread Jason Johnston
and the serializers block has been set to: include.block.serializers=true I checked my WEB-INF\lib directory and the cocoon-serializers-block.jar file exists. What is the issue here? There should also be a cocoon-serializers-charsets-0.2.jar file, is that there? -- Regards Andrew On 10/03/07, *Jason

Re: Xhtml and Ajax...no go!!

2007-03-10 Thread Jason Johnston
Andrew Madu wrote: Hi, java.lang.NoClassDefFoundError : Could not initialize class org.apache.cocoon.components.serializers.encoding.CharsetFactory I remember having this very issue with a previous version of cocoon, but for the lief of me I can't remember how the issue was resolved.

Re: How to get this widget

2007-03-05 Thread Jason Johnston
許議中 wrote: Hi! I've a form, the def is like. fd:form xmlns:fd=http://apache.org/cocoon/forms/1.0#definition; xmlns:i18n=http://apache.org/cocoon/i18n/2.1; fd:widgets . fd:repeater id=repeaterList orderable=true fd:widgets fd:output

Re: How to get this widget

2007-03-05 Thread Jason Johnston
: repeaterList.getRow(i).lookupWidget(item/01/url); Jason Johnston 提到: 許議中 wrote: Hi! I've a form, the def is like. fd:form xmlns:fd=http://apache.org/cocoon/forms/1.0#definition; xmlns:i18n=http://apache.org/cocoon/i18n/2.1; fd:widgets . fd:repeater id=repeaterList orderable

Re: How to get this widget

2007-03-05 Thread Jason Johnston
asking. Are you already using the CForms binding framework? Jason Johnston 提到: 許議中 wrote: In Javascript (FlowScript) There're several rows in the repeater, I can get the itemno wigdet with repeaterList.getRow(i).getChild(itemno) But I can't get the url widget in the 01 group. What

Re: Xhtml and Ajax...no go!!

2007-03-04 Thread Jason Johnston
Andrew Madu wrote: Hi, I have also realized that the: xmlns=http://www.w3.org/1999/xhtml; xml:lang=en is not being written to the opening html tag! (And yes...the page tags have been removed!! ;-) ) What attribute in the sitemap xhtml serialize definition do I need to tweak to ensure that

Re: Implementing a series of transformations

2007-02-28 Thread Jason Johnston
Schmitz, Jeffrey A wrote: Hello, I've been struggling with the following scenario for some time and thought it was time to post. Basically, I need to be able to perform the following types of translations, in the order specified, all with one pipeline, and I can't figure out how to do it

Re: SVN address for latest snapshot builds of 2.1.10

2007-02-20 Thread Jason Johnston
Andrew Madu wrote: Hi, source code at https://svn.apache.org/repos/asf/cocoon/tags/cocoon-2.1/RELEASE_2_1_10/ Is this the latest snapshot build No, that is the tag from which the 2.1.10 release was created. It's exactly the same as 2.1.10. If you want the current development

Re: xpointers work in 2.0, but not in 2.1

2007-02-20 Thread Jason Johnston
Stefan Shoeman wrote: Hello *, i have an old application, which works fine with Cocoon 2.0. It uses xpointers (in combination with xinclude) to define special parts in a xml-document. For example: xsl:attribute name=hrefprefs.xml#xpointer(/sec:title/sec:subtitle)/xsl:attribute In Cocoon

Re: Weird CForms/Ajax errors

2007-02-16 Thread Jason Johnston
I guess it's not clear what the problem is. You say that everything in the display is fine, so are you just concerned that you're seeing unexpected HTTP response codes? Is there some other symptom? When you get the 500 and 404 errors, there should be something useful logged to the servlet

Re: Problem with PDF and Cocoon

2007-02-16 Thread Jason Johnston
It doesn't seem that requesting the PDF twice should affect the contents of the PDF. Like we've said before, we really need some sample code to help you out. If you're not comfortable sending it to the list you can send it directly to me. km wrote: Hello I found (propably) why I have a

Re: [was: Stripping down Cocoon] AW: JSON

2007-02-16 Thread Jason Johnston
On Fri, 16 Feb 2007 08:10:22 -0800 (PST), Michael C. [EMAIL PROTECTED] wrote: I am using Ajax to post a request to a servlet which formats the response as a JSON string resembling: { prop1:prop1Value, prop2:prop2Value, prop3:prop3Value } I use this client code to convert it

Re: Cforms and Ajax validation workaround?

2007-02-15 Thread Jason Johnston
Grzegorz Kossakowski wrote: Gary Larsen napisał(a): The Ajax implementation in Cforms is fantastic, not not being able to use fi:validation-errors is causing me a problem. I need to use tab styling with groups since there are so many widgets on the form. The issue is that when a use submits

Re: Problem with PDF and Cocoon

2007-02-05 Thread Jason Johnston
km wrote: Hello Thank you for the answer. The pictures are in database and they are called as a webservice. when I do a static file (document.fo) and put this file on generator, no transform, only with fo2pdf serializer, then pictures are called twice too. I use a standard serializer from

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

2007-02-05 Thread Jason Johnston
On Mon, 5 Feb 2007 17:50:21 -0500, Steven D. Majewski [EMAIL PROTECTED] wrote: And when I fix the misspelling of {flow-attr:alt_kont} in the sitemap, the one I explicitly passed works -- but that's not the current continuation -- that the one I bookmarked right before the sendPageAndWait()

Re: recursively calling a flowscript function

2007-01-30 Thread Jason Johnston
Kirn Khaira wrote: I have a flowscript function that takes in start and end parameters and creates a form that includes a previous and next button on the form page. After the form has been submitted, with either a next submit call or previous submit call, it calls itself with new values for

Re: from flowscript to pipline

2007-01-25 Thread Jason Johnston
Dear All, i get a error like : org.apache.excalibur.source.SourceException: The attribute: myXml is empty any idea Rachid Harradi Original-Nachricht Datum: Thu, 25 Jan 2007 15:12:03 +0100 Von: rachid harradi [EMAIL PROTECTED] An: users@cocoon.apache.org Betreff:

Re: Aplly transformation to a xml post data

2007-01-18 Thread Jason Johnston
Sébastien Geindre wrote: hello all, I handle a upload request send by cocoon forms with flowscript : var uploadWidget = form.lookupWidget(upload); var stream = uploadWidget.getValue().getInputStream(); I'd like to transform the upload stream (which is XML) via a pipeline :

Re: Regular Expressions, flowscript and java.lang.Character

2007-01-15 Thread Jason Johnston
I'm new to flowscript work in Cocoon, but I've gotten to this point from a number of variable manipulations which are just a whole lot easier (theoretically) with regular expressions than in XSLT. The following is a simple variation that illustrates the problem. There are 40 or so other

Re: Regular Expressions, flowscript and java.lang.Character

2007-01-15 Thread Jason Johnston
I'm new to flowscript work in Cocoon, but I've gotten to this point from a number of variable manipulations which are just a whole lot easier (theoretically) with regular expressions than in XSLT. The following is a simple variation that illustrates the problem. There are 40 or so other

Re: Formtdefinition and -template from a org.w3c.dom.Document stream

2007-01-15 Thread Jason Johnston
-template /div kind regards, Niclas Jason Johnston-3 wrote: ZongoZongo wrote: Hi Inside the flow I get the formtemplate and the formdefinition from a javamethod as an org.w3c.dom.Document stream. How can I use this streams to: - generate the form I believe you can pass a DOM element to the Form

Re: Formtdefinition and -template from a org.w3c.dom.Document stream

2007-01-09 Thread Jason Johnston
ZongoZongo wrote: Hi Inside the flow I get the formtemplate and the formdefinition from a javamethod as an org.w3c.dom.Document stream. How can I use this streams to: - generate the form I believe you can pass a DOM element to the Form flowscript constructor: var form = new

Re: how to catch and throw exceptions in cocoon2.1.10 (javascript)

2007-01-09 Thread Jason Johnston
Robby Pelssers, AGP wrote: Hi, I'm facing a problem that my old javascript file no longer works properly with constructions like instanceof, getClass(), throw. Can someone point me out how to do this? try { } catch (ex) { if (ex instanceof Packages...) { //Do

Re: Which one to use Cocoon 2.1 or 2.2?

2007-01-05 Thread Jason Johnston
Mikael Olenfalk wrote: Hi Everybody! I want to use cocoon to create a webdav enabled webapp with a plugin architecture and I just want to know which version to use. Should I go for 2.1 or for 2.2? 2.2 seems like a more natural choice because it contains OSGi support (so I have read), but maybe

Re: validation

2006-12-20 Thread Jason Johnston
/ in your display template and it should work. Let us know if you still have trouble. --Jason Roel Croonenberghs wrote: It does not work *snif *Jason Johnston [EMAIL PROTECTED]* 20/12/2006 15:28 Please respond to users@cocoon.apache.org To users@cocoon.apache.org cc

Re: Looking for help in upcoming release

2006-12-13 Thread Jason Johnston
Dev at weitling wrote: Hi Jasha, Jasha Joachimsthal wrote: are you sure there's no firewall in your network that blocks propfinds? I don't have any problems with checking out Cocoon. For http-connections we have a proxy. As far as I know svn uses standard http to prevent problems with a

Re: JX and sendmail transformer

2006-12-13 Thread Jason Johnston
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, object). The flowscript then subsequently

Re: Problem with Session under Cocoon 2.1

2006-11-16 Thread Jason Johnston
km wrote: Hello Thanks for your answer. Sorry for my english :) I try to do it with other browsers - one catalog in ie and another in ffox. but it didn't work. I think I rewrite the cocoon session, not only the browser session. Is cocoon able to handle multisession? Yes, absolutely -- it would

Re: jx:forEach returns JXTExpression where com.xxxx.Group is Expected

2006-10-31 Thread Jason Johnston
Robby Pelssers, AGP wrote: jx:set var=subGroupIterator value=${planboard.analyzer.rootGroup.subGroupIterator(planboard.projectGroupRule)}/ jx:forEach var=projectGroup items={subGroupIterator} jx:set value=${java.lang.System.err.println(projectGroup)}/ /jx:forEach A print of

Re: using temporary session-context to share value

2006-10-30 Thread Jason Johnston
Kaj Kandler wrote: -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hi Joeren, thanks for helping me here. I tried a lot of things, off course. But after hours of experimenting and trying to find some decent logging that would reveal my problem, I resorted to looking for help. According to

Re: Field that is either required or output

2006-10-27 Thread Jason Johnston
Bruce Atherton wrote: I have a problem with form fields that are editable for some people and just displayed to others. When they are editable, they are required. When they are not editable, they have data already and just need to be displayed (and must not be required since no data will be

Re: calling javascript:opener does not work

2006-10-25 Thread Jason Johnston
Frank MW wrote: Hi all, I'm trying to generate some Javascript in my stylesheet, but when I try to close the opener window from the child window, it doesn't work. xsl:template match ... html a href=javascript:opener.close()Close main window/a Is this impossible because of the

Re: Dynamic HTML Values and AJAX

2006-10-25 Thread Jason Johnston
Stewart, Gary wrote: Hi people, I'm using CForms in Cocoon 2.1.8 and I've run into a bit of a problem (I sort of posted about this a while back so a bit of this is a repost). I was trying to feed some HTML into the form to provide output to the user. To do this I use a pipe that generates XML

Re: JSON

2006-10-17 Thread Jason Johnston
Jeremy Quinn wrote: Hi Maurizio I have not tried this yet, but my guess is you should output your JS Object as a String cocoon.sendPage(myTemplate.jx, {json: myObject.toSource()}); or similar and send that to JXTemplate text json: ${json} /text or similar Then output that using the

  1   2   3   4   >