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
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
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
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
the
prepared statements' fault?
Any help will be appreciated.
Tobia
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
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
}
}
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
, 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]
sending a redirect to the browser) to the
root sitemap.
Tobia
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
-
== "[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
with some incompatible Jx,
Flowscript, or other binding.
Tobia
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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]
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?
{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]
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
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,
!= null) conn.close();
} catch (Exception e) {
throw new CascadingRuntimeException("Cannot close the connection for
\""+DATASOURCE+"\".", e);
}
}
}
}
HTH
Tobia
--
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]
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]
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
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
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.
.
I've had trouble with this setting in the past.
Tobia
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
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
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]
!) 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
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]
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
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
--
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]
ter's and contributor's section.
Tobia
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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]
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.
/?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]
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
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.
oad
yes
Tobia
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
s this a known bug? Can anybody confirm/reproduce it?
Tobia
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
---
it is, if anybody is interested or wants to take it from here.
Suggestions are welcome.
Tobia
=== cocoon.xconf ===
=== sitemap.xmap ===
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]
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
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
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]
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
the format requires... no big deal.
Tobia
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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]
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]
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
good idea.
Very well, lesson taken.
Tobia
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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]
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]
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
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
it.
Is there a better way?
Tobia
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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]
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]
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
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
---
?
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]
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]
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]
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
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]
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
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]
#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
--
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]
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]
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
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.
ver/blah/blah/{1}.jpeg"/>
Tobia
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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
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
be it's something else...
Tobia
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
select-themes.xml
> >
> >
> > http://apache.org/cocoon/SQL/v2";>
^^^
> > SELECT nom FROM Theme
> >
> >
Tobia
--
el "/" + inputType + "In/" + inputFile + ...
^
:-)
Tobia
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
:
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
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
---
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?
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
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
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]
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
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
-
Do it!
----
Tobia
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
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
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]
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.
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
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 - 100 of 162 matches
Mail list logo