Re: Cocoon Forms 2.1 - One of two fields required

2009-02-25 Thread Tobia Conforto
ion";> widget.setAttribute('phonemobile_valid', true); ... -Tobia - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail: users-h...@cocoon.apache.org

Re: Cocoon Forms 2.1 - One of two fields required

2009-02-25 Thread Tobia Conforto
Merico Raffaele wrote: Tobia Conforto wrote: In Cocoon 2.1, Forms, how do I require the user to fill at least one out of two (or more) fields? For example, I might have the 'phone' and 'mobile' fields. I want the user to fill at least one of them. Where should I put suc

Cocoon Forms 2.1 - One of two fields required

2009-02-16 Thread Tobia Conforto
form widget itself, but then the error message is not picked up by the jx template, and the user is stuck without knowing what is wrong. Where should I put such a validator? Tobia - To unsubscribe, e-mail: users-unsubscr...@coco

Re: Failing Mysql JDBC connections

2008-06-20 Thread Tobia Conforto
connections to the pool. I worked around the problem by uncapping the database connections: Now I'd like to know how to avoid the deadlock condition in the first place, with capped connections, but I'm not sure it can be done. I've asked the dev

Failing Mysql JDBC connections

2008-06-13 Thread Tobia Conforto
the prepared statements' fault? Any help will be appreciated. Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Old Cocoon query

2008-04-17 Thread Tobia Conforto
tags. How can the code be modified not to lose the nested tags? My fault for posting untested code! Try modifying the first XSLT, unescape-pre.xsl, like this: (still untested) Tobia - To unsubs

Re: Redirect to GET, strange bug

2008-04-01 Thread Tobia Conforto
ient-side redirect, and stopping the flow. Why is Cocoon complaining? Also, it is often a good idea to invalidate the form processing continuation tree, to free up memory and--even if user manages to submit the form again--he will receive 404. Interesting. How do I do this? Tobia

Re: Multiple or single cocoon instances

2008-03-31 Thread Tobia Conforto
have something like 30 apps split among 3 Cocoons. The next update to one of the older projects will trigger a switch to the newest Cocoon configuration, and so on. HTH Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Redirect to GET, strange bug

2008-03-31 Thread Tobia Conforto
} } The problem is: - if I leave out the cocoon.exit(), I get: IllegalStateException: Pipeline has already been processed for this request - if I put the cocoon.exit() as shown, I get: ProcessingException: Attempted to process incomplete pipe

NullPointerException without a stacktrace

2008-03-27 Thread Tobia Conforto
, without a stacktrace? Can a bug in flowscript (such as calling null Java objects, or calling them the wrong way) cause it? Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Sitemap pipelines

2008-03-10 Thread Tobia Conforto
sending a redirect to the browser) to the root sitemap. Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: AJAX forms: returning to previous page after submit using Apples

2008-03-10 Thread Tobia Conforto
Victor Oomens wrote: How can I return to another page after a user completes an ajax form? Put a cocoon.redirectTo(...) after your showForm See http://cocoon.apache.org/2.1/userdocs/flow/api.html Tobia - To unsubscribe, e

Re: Is there an "url wildcard" selector (equivalent)

2008-03-10 Thread Tobia Conforto
urces solution, you will have to write your own matcher or selector. Which is not hard at all, by the way. Just extend AbstractPreparableMatcher or AbstractSwitchSelector, put your class in WEB-INF/classes and give it a short name in your sitemap.xconf. Tobia -

Dom to Javascript object

2008-02-28 Thread Tobia Conforto
== "[EMAIL PROTECTED]" (This is just an example, I'm sure there's ambiguities with this model.) Alternatively, what is the standard Cocoon way of processing XML data in Flowscript? Tobia - To unsubscribe, e-mai

Re: MySQL "Year" vs CForms "Date"

2008-02-15 Thread Tobia Conforto
with some incompatible Jx, Flowscript, or other binding. Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: MySQL "Year" vs CForms "Date"

2008-02-14 Thread Tobia Conforto
or date validation to the integer field? (You shouldn't.) What component "complains that the widget is not a date type"? Does a simple integer text field work? Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED]

Re: REPOST: Losing request parameters during form error

2008-02-14 Thread Tobia Conforto
Derek Hohls wrote: upgrading on the servers is, unfortunately, a much longer and time- consuming process. I guess I was hoping it was not a bug. Maybe it's not. Can you post a minimal example (simple form with maybe 1 widget) and minimal sitemap that exhibits the problem?

Re: Doing string operations over sitemap values

2008-02-14 Thread Tobia Conforto
{1}','-','')} and I thought I'd alert against possible problems. But maybe I'm wrong. Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Doing string operations over sitemap values

2008-02-14 Thread Tobia Conforto
7;t quote the argument correctly and is susceptible to "JX code injection" or other problems. For example the user might go to: http://localhost:8080/b/hello',nasty.java.call(),'world If I'm not mistaken, the ' after hello would close the Jx string and damage would en

Re: Using xsl variables in javascript

2008-02-14 Thread Tobia Conforto
nerating a HTML script tag containing Javascript code that, when run by the browser, will declare a global string variable called myParam. From that moment on, every piece of Javascript code run on the browser will have access to that global variable. Also, this is generic web programming matter,

Re: modular database action

2008-02-12 Thread Tobia Conforto
!= null) conn.close(); } catch (Exception e) { throw new CascadingRuntimeException("Cannot close the connection for \""+DATASOURCE+"\".", e); } } } } HTH Tobia --

Re: Cache Browser

2008-02-12 Thread Tobia Conforto
page, including all dependencies, I believe on both browsers. I use it all the time while developing, so I forgot to mention it. Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Cache Browser

2008-02-11 Thread Tobia Conforto
ort of one of your servers, as the browser cache has its uses. Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Cforms fd:assert validation

2008-02-04 Thread Tobia Conforto
Carlos Martínez wrote: I use the language from the page http://cocoondev.org/xreporter/docs/core/exprlang.html and it seems that work properly. Yes, that link comes straight from the "Most obscure and valuable" subfolder of my "Cocoon" bookmarks

Re: Attempting to Install Cocoon-2.2

2008-02-04 Thread Tobia Conforto
d XSL (=Cocoon) to people using Win98 PCs. If Maven2 will not run on Win98, neither will Cocoon-2.2. I'll use Cocoon-2.1 for the class. I'm sure I've seen people mention on this mailing list that Maven is by no means necessary to compi

Re: Cforms fd:assert validation

2008-02-02 Thread Tobia Conforto
Carlos Martínez wrote: I don't know how the expression of the assert should be. I believe this is the language used in fd:assert, at least in Cocoon 2.1: http://cocoondev.org/xreporter/docs/core/exprlang.html Don't ask me why.

Re: Cforms and Character Encoding

2008-01-23 Thread Tobia Conforto
. I've had trouble with this setting in the past. Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: keypress events

2008-01-18 Thread Tobia Conforto
totals - on-change fires only when the user leaves the text field - if the user jumps directly to the submit button, the two ajax requests collide and bad things happen (mostly the change to the text field is lost, but I've s

Re: Proper way to cache pipelines with SQL Transformer?

2008-01-10 Thread Tobia
s and Cincludes, all using the cocoon: schema. Unless you purposefully make a raw sub- request, and until the initial request processing is over, all sub- requests will be able to see the request attributes, because they share the request

Re: REPOST: HTML Tags from a database field

2008-01-10 Thread Tobia
Derek Hohls wrote: Tobia wrote: I use the HTMLTransformer for that purpose, with a couple of XSLT stylesheets before and after it. The first one writes tags around each piece of escaped HTML. Then the HTMLTransformer is instructed to only transform text nodes inside those tags

Re: REPOST: HTML Tags from a database field

2008-01-09 Thread Tobia
along with the fake and inserted by the transformer, and does a bit of magic with & and < characters. Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Cached AbstractReader

2007-12-21 Thread Tobia Conforto
!) but every Cocoon Reader must implement setup() (see: http://tinyurl.com/ynkwv2 ) and if the 4th argument to setup() is called pars, you can just do: pars.getParameter("defaultFilename"); Tobia - To unsubscribe, e-mail

Re: JXTemplate: blank lines in source code

2007-12-20 Thread Tobia Conforto
oo, and I'd like to know whether this feature is already there in the JX components and I'm just missing a configuration parameter. Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Cached AbstractReader

2007-12-20 Thread Tobia Conforto
es, I think this is the best course of action. You might want to make the path to the default image a configuration parameter, of course, so that you won't have to recompile your reader when the path changes, or if you want different defaul

Re: Converting CRLF to in pipeline

2007-12-20 Thread Tobia Conforto
in html but that may be > another option. , or the CSS equivalent { white-space: pre }, does output a newline for each CR and/or LF character, but on the other hand won't wrap the text when there is no CR/LF, so usually it's not an option. Tobia --

Re: Regular Expression Help

2007-12-14 Thread Tobia Conforto
ot;Please insert an existing URL", false)) return false } return true HTH Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: What is COB-INF?

2007-12-05 Thread Tobia Conforto
ter's and contributor's section. Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: different Stylesheets to be applied within a folder

2007-12-03 Thread Tobia Conforto
ee this recent thread for a few ideas: http://marc.info/?l=xml-cocoon-users&m=119607094225772 Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Cocoon and content-negotiation

2007-11-29 Thread Tobia Conforto
Other kinds of content negotiation, such as detecting patterns in the HTTP Accept header, can be performed with the RegexpHeaderSelector: http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/selection/RegexpHeaderSelector.html or similar selectors and matchers that access the HTTP headers.

Re: New server recommendations?

2007-11-26 Thread Tobia Conforto
/?l=xml-cocoon-users&m=119201336509954 We haven't switched to Cocoon 2.2 yet, so I can't say much about it. Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: xpath condition on xml data in sitemap

2007-11-26 Thread Tobia Conforto
cal suggestions without knowing what your pipeline does. By the way, this whole email applies to Cocoon 2.1. I don't know how much of it is still true in 2.2. Tobia * A notable exception to this streaming behaviour is the XSL transformer, in the general case an

Re: Flowscripts - are they cached?

2007-11-12 Thread Tobia Conforto
Another thing: sometimes I run into missing reloads caused by differences in the system time on servers or workstations. That is, a newer file is not reloaded if Cocoon doesn't see it as newer, based on the system clock. Depending on your setup, you might want to investigate that.

Re: Flowscripts - are they cached?

2007-11-12 Thread Tobia Conforto
oad yes Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Flowscripts - are they cached?

2007-11-12 Thread Tobia Conforto
Derek Hohls wrote: > on this server it did not seem to have any effect, so I was wondering > if there was some other setting I had overlooked. There is a setting in cocoon.xconf that might be related: /cocoon/flow-interpreters/component-instance/reload-scripts

document() and xsltc

2007-11-07 Thread Tobia Conforto
s this a known bug? Can anybody confirm/reproduce it? Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: limited number of loops with call-template?

2007-11-06 Thread Tobia
ppet, you could try something like this: ... Of course, I don't have the slightest idea what baums and ebenes are, so this is probably not what you need :-) Tobia ---

Re: Compiled XSLT

2007-10-23 Thread Tobia Conforto
it is, if anybody is interested or wants to take it from here. Suggestions are welcome. Tobia === cocoon.xconf === === sitemap.xmap ===

Re: Compiled XSLT

2007-10-22 Thread Tobia Conforto
scratch that uses the Xalan XSLTC runtime to operate the translets, or is there a better way? Do you foresee problems in integrating the pre-compiled translets with Cocoon's source resolver? Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Compiled XSLT

2007-10-22 Thread Tobia Conforto
Hello, I'm wondering if there is a way to pre-compile XSLT into Java classes, using the command-line xsltc compiler, put those classes somewhere in Cocoon's classpath and use them as transformers. Tobia - To unsu

Re: Calling an InputModule from flowscript

2007-10-19 Thread Tobia Conforto
I wrote: > I'm saving the input module into a global flowscript variable, because > it's supposed to be request-independent. Nevermind that. I realized I must acquire the input module from the selector every time, lest I end up with IllegalStateExc

Re: Newbie question:

2007-10-19 Thread Tobia Conforto
ty", such as (IIRC) 0, false, undefined, null, empty string, empty array... See: http://commons.apache.org/jexl/reference/syntax.html Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Calling an InputModule from flowscript

2007-10-19 Thread Tobia Conforto
Joerg Heinicke wrote: > Tobia Conforto wrote: > > But I cannot pass null to my own input module in place of the third > > parameter (Map objectModel) because I use that objectModel in my > > class > > Another workaround is to create a map in your flowscript with the &g

Re: .DOC and .PPT modifying

2007-10-18 Thread Tobia Conforto
the format requires... no big deal. Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: .DOC and .PPT modifying

2007-10-18 Thread Tobia
tation on Cocoon's website and study the samples provided with Cocoon, to learn how to put a simple web-application together. Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Calling an InputModule from flowscript

2007-10-17 Thread Tobia Conforto
ector, after calling getComponent() on it. I was under the impression that you should go to great lengths (try/finally) to release every Avalon component you acquire. Is it not so? Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Tabs and CForms

2007-10-16 Thread Tobia Conforto
dates at the end. Did you figure out what should happen when there is a validation error on a group that's in the background? Just a thought... Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional command

Re: Cocoon 2.1 environment objects from a Java XSLT extension

2007-10-11 Thread Tobia Conforto
good idea. Very well, lesson taken. Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: SendMail & smart host (was sendmail)

2007-10-11 Thread Tobia Conforto
you can configure for the first two. Notice that the transformer wants "smtphost", while the action wants "smtp-host". ... ... Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Cocoon 2.1 environment objects from a Java XSLT extension

2007-10-11 Thread Tobia Conforto
g a bunch of attribute values.) Although it wouldn't be too hard with Sax either... Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Cocoon Installation problems on SunOS

2007-10-10 Thread Tobia Conforto
f a fine-grained control over which requests go to Cocoon and which ones stay in Apache, you can use rewrite rules with the [P] flag. Note #2: when using reverse proxy, you won't find the remote IP address (that of the web browser) in request.getRemoteAddr(), but rather in request.g

Re: Cocoon Installation problems on SunOS

2007-10-10 Thread Tobia Conforto
it. Sorry! Now we are running Cocoon 2.1.10 on the bundled Jetty 4.2.23 (which I recommend over Tomcat, by the way) with MySQL Connector 5.0.6 on the same old server and everything works well. But we did run on Tomcat for a while, so I'm sure that problem was solv

Cocoon 2.1 environment objects from a Java XSLT extension

2007-10-10 Thread Tobia Conforto
it. Is there a better way? Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: .DOC and .PPT modifying

2007-10-09 Thread Tobia Conforto
r element IDs as placeholders, or anything else that can easily be replaced with an XSLT stylesheet. Then have Cocoon perform the substitution, zip the resulting XML with other needed resources (such as images) using the ZipArchiveSerializer, and serve it to users. Just a fe

Re: SendMail

2007-10-09 Thread Tobia
st: localhost, port: 25" Stupid question, but... are you sure you have a MTA running on localhost? Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: global:home param local and remote

2007-10-08 Thread Tobia Conforto
e*, as the hosts file does not support wildcards, as far as I know. Tobia *: /etc/hosts or c:\windows\system32\drivers\etc\hosts - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Parsing HTML entities

2007-09-17 Thread Tobia Conforto
Andrew Stevens wrote: > Tobia Conforto writes: > > I cannot change this data source component, therefore I need a > > transformer to examine every text node in the stream, split it at the > > fake "" tags, substitute them with elements, and > > replace every

Re: XSLT Transformation error in C2.2

2007-09-11 Thread Tobia Conforto
custom function: And then use it like this: See here for custom functions: http://exslt.org/func/index.html > it works with C2.1 I can't see how. Maybe it's a custom extension of the XSLT processor you use? Tobia ---

Problem with CInclude and nested exceptions

2007-09-10 Thread Tobia Conforto
? I don't recall having this problem before, so it could very well be that I've reached a nesting limit. Any help will be appreciated! Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

mod_gzip -like functionality?

2007-09-05 Thread Tobia Conforto
jo.js) Is my only (or best) option to do this on the front-end Apache server that I'm already using? TIA Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: xhtml serialization and form textarea

2007-09-03 Thread Tobia Conforto
x.xsl adds the following element to , which is needed in legacy mode but does harm in XHTML mode: HTH Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Parsing HTML entities

2007-08-31 Thread Tobia Conforto
mine takes 2ms! If anybody is interested, I can post or email the code. Joerg Heinicke wrote: > That's one of the rare cases where I consider > a valid approach Yes, that was the first thing I tried, but I discarded it as it was causing more p

Parsing HTML entities

2007-08-31 Thread Tobia Conforto
somewhere in a library that Cocoon is already using, that can parse and convert HTML 4.0 entities with a single pass on the string? Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Java strings vs. Javascript strings

2007-08-28 Thread Tobia Conforto
ed projects. But only if Things Just Work™, and having to deal with only one class of primitive types is part of it. I'd like to suggest making it the default in Cocoon. Should I post an issue to JIRA or a message to the dev mailing list? Tobia > [1] > http://www.mozilla.org/rhino

Re: Java strings vs. Javascript strings

2007-08-27 Thread Tobia Conforto
null) return ''; else return String(javaString); } Which means every cocoon.request.get*() call, every string coming from forms... What a mess! Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Java strings vs. Javascript strings

2007-08-27 Thread Tobia Conforto
#x27;t Rhino, or whatever piece of software is bridging Javascript to Java, do the Right Thing and present every string as a Javascript string when I'm programming in Javascript? Can it be configured to do so? Am I doing something wrong? Tobia --

Re: I'm losing my faith in SQL Transformer!

2007-08-24 Thread Tobia Conforto
ent query (2). If you need some other sort of correlation between each row and its child rowset, such as an "id" attribute, then you will need to do it in XSLT. Otherwise, please post the correct version. Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: output indent yes?

2007-08-16 Thread Tobia Conforto
his Firefox extension: https://addons.mozilla.org/en-US/firefox/addon/697 HTH Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: expire setting

2007-08-12 Thread Tobia Conforto
the Http Cache Action useful: http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/acting/HttpCacheAction.html > If so, we can improve the speed of running cocoon. I'm not sure how that would work, but more power to y

Re: Database connection problems during upgrade

2007-08-06 Thread Tobia Conforto
Johannes Textor wrote: > this is probably because you have not included com.mysql.jdbc.Driver > (not sure if this is the exact class name) in web.xml. Or maybe he didn't copy the actual driver class. For example, mine is: WEB-INF/lib/mysql-connector-java-5.0.6-bin.

Re: access remote jpg

2007-08-03 Thread Tobia Conforto
ver/blah/blah/{1}.jpeg"/> Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: access remote jpg

2007-08-03 Thread Tobia Conforto
hout permission, even if the copyright would allow it. I suppose you should fetch the image once only, with a blank referrer header, and serve it to your users from your server. You should also cache it in a database or in the filesystem for future requests. I don't

Re: regexpUriMatcher

2007-08-02 Thread Tobia Conforto
ot;temp/a/b/c/" as ("a", "b/c") and ("a/b", "c") resp. What you described is true when the regexp is not anchored: ^temp/(.*?)/ matches temp/hello/ ^temp/(.*)/ matches temp/hello/dir/ Anyways, I believe Cocoon uses Java's builtin regexp classes

Re: [Flowscript] everything converted to "number" type?

2007-07-31 Thread Tobia Conforto
terpreter used by Cocoon. Now, if it also converted java.lang.String to JS strings automatically, it would have spared me many a headache... unfortunately that's a conversion that Rhino seems reluctant to do. > and truncated to an integer value. I believe

Re: error using java method id flowscript

2007-07-26 Thread Tobia Conforto
be it's something else... Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Problem with SQLTransformer

2007-07-26 Thread Tobia Conforto
select-themes.xml > > > > > > http://apache.org/cocoon/SQL/v2";> ^^^ > > SELECT nom FROM Theme > > > > Tobia --

Re: Simple Java from flowscript ?

2007-07-25 Thread Tobia Conforto
el "/" + inputType + "In/" + inputFile + ... ^ :-) Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Disable url rewriting

2007-07-25 Thread Tobia Conforto
: if (cocoon.request.getSession(false)) cocoon.session.invalidate() Otherwise redirectTo, which ends up calling response.encodeRedirectURL() (in HttpEnvironment.java:138) will add ;jsessionid to the URL. Tobia - To unsubscribe, e

Re: Disable url rewriting

2007-07-25 Thread Tobia Conforto
w can I disable it? The workaround I've found is calling redirectTo like this: cocoon.redirectTo('http://my.server/test', true) With both a full URL as the first parameter and true as the second one, the Location URL doesn't get rewritten. Tobia ---

Disable url rewriting

2007-07-25 Thread Tobia Conforto
Does anybody know how to disable url encoding in Cocoon on Jetty? For a certain web application I want sessions to be handled only through cookies (and not to work when cookies aren't available.) Is it a Cocoon or a Jetty configuration parameter?

Re: Error while evaluating 'cocoon:/{../1}/...not so many levels

2007-07-23 Thread Tobia Conforto
est:requestURI} The first solution seems more "correct", but of course it depends on your particular sitemap layout. Also I don't know exactly how to do the latter point. I'd wager there is a matcher somewhere that

Client-side cache handling

2007-07-23 Thread Tobia Conforto
o tell Cocoon: "this pipeline only depends on these resources, so please compute and send a Last-Modified header". Any idea? Should I do it by hand in a piece of flowscript? Tobia - To unsubscribe, e-mail: [EMAIL PROTECT

Re: Namespace: behaviour differences

2007-07-20 Thread Tobia Conforto
e result is always the same, with both "found page" and "found rowset" It looks like something is broken in your server installation. Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Cocoon sessions and cookies

2007-07-20 Thread Tobia Conforto
n your browser and Cocoon, and between Cocoon and the blog server. This way you can see what's happening "on the wire" and you can easily spot any problems. Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For a

Re: The continuation ID is invalid

2007-07-19 Thread Tobia Conforto
machine .. the form is working again So the problem lies in another process, external to Tomcat... a process which is wrongly caching the pages generated by Cocoon and serving them to the users, with stale continuation ids. Apache? Tobia -

Re: Access to bizData in

2007-07-19 Thread Tobia Conforto
Do it! ---- Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Namespace: behaviour differences

2007-07-19 Thread Tobia Conforto
Here's an interesting question: is one of the following more efficient than the other? http://whatever"/> http://whatever']"/> I'm talking about runtime efficiency, not compilation speed (assuming stylesheets are compiled in some way, which

Re: howto call xsp from xsp

2007-07-16 Thread Tobia Conforto
The util logicsheet has a few useful functions, but I don't think it's well documented. You can look at the sources though (look for util.xsl) Tobia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Calling map:handle-errors from flowscript

2007-07-11 Thread Tobia Conforto
Joerg Heinicke wrote: > Tobia Conforto wrote: > > throw new Packages.org.apache.cocoon.ResourceNotFoundException("") > > > > produces the following Java stacktrace: > > > > org.mozilla.javascript.JavaScriptException > > Caused by: org.

Re: Calling map:handle-errors from flowscript

2007-07-10 Thread Tobia Conforto
Joerg Heinicke wrote: > Tobia wrote: > > cocoon.sendStatus(404) > > cocoon.response.setStatus(404) > > cocoon.response.sendError(404) > > throw new Packages.java.io.FileNotFoundException() > > throw new Packages.org.apache.cocoon.ResourceNotFoundException("&qu

Re: Basic error handling

2007-07-06 Thread Tobia
Derek Hohls wrote: > right at the end of the sitemap, after *all* of the > sections I have: > > > > > > > > > > > > > I believe handle-errors goes inside a pipeline. Tobia ---

  1   2   >