Hello,
I'm trying to format currency using i18n:number. In the docs, there is an
example:
i18n:number type=currency value=1703.7434 /
which should return: $1,703.74 using US-locale. I get 1703,00 e using
finnish locale. After trying different combinations, it seems that the
decimal part is
Answering to my own question:
I added @src-locale=en_US to the i18n-tag, which helped. The transformer
was using the locale from my server, which caused incorrect formatting.
-Tuomo
On Tue, 23 May 2006, Tuomo L wrote:
Hello,
I'm trying to format currency using i18n:number. In the docs
Hey,
Could someone check out this patch I submitted a while ago for the
Databases-block? It's a fix for the DatabaseSelectAction.
http://issues.apache.org/jira/browse/COCOON-1740
Thanks,
Tuomo
2006, Tuomo L wrote:
Hi,
I need to select all username and password -columns of specific users.
Here's a simple configuration:
table name=user
keys
key name=id type=int set=master
mode name=request-param parameter=id* type=all/
/key
/keys
values
value name=username type=string
Hi,
I need to select all username and password -columns of specific users.
Here's a simple configuration:
table name=user
keys
key name=id type=int set=master
mode name=request-param parameter=id* type=all/
/key
/keys
values
value name=username type=string/
value
Thanks, this works. :)
-Tuomo
On Tue, 27 Sep 2005, Upayavira wrote:
Tuomo L wrote:
Hi,
I'm writing a custom DOM-based transformer (extends
AbstractDOMTransformer), but I cannot figure out, how to produce output
with no whitespace. It's propably very simple thing...
Anyone?
Whitespace
Hi,
I'm writing a custom DOM-based transformer (extends
AbstractDOMTransformer), but I cannot figure out, how to produce output
with no whitespace. It's propably very simple thing...
Anyone?
-Tuomo
Updated the JDBC-driver to the latest: Microsoft SQL Server 2005 JDBC
Driver Beta 1. This works fine with Cocoon 2.1.7.
-Tuomo
On Sun, 17 Jul 2005, Joerg Heinicke wrote:
On 17.07.2005 00:36, Tuomo L wrote:
Thanks, I tested the sample, and it does work with HSQLDB. But when I
tested
=${qkpi.columnNames}tdc:out
value=${columnName}//td/c:forEach
c:forEach var=row items=${qkpi.rowsByIndex} varStatus=vs
trc:forEach var=col items=${row}tdc:out
value=${col}//td/c:forEach/tr
/c:forEach
/table
/body
/html
/jsp:root
Tuomo L wrote:
Thanks, I tested the sample, and it does work
00:36, Tuomo L wrote:
Thanks, I tested the sample, and it does work with HSQLDB. But when I
tested it against SQL Server with similar results I got before: Upload
works but reading the file with DatabaseReader returns 0 bytes. :(
So, my guess is, something has changed between 2.1.5 and 2.1.7
(Cocoon 2.1.7, Tomcat 5.5)
After upload, this uses DatabaseReader to retrieve the image from HSQLDB.
If this works ok, then the problems are with SQL Server maybe the column
definition
Tuomo L wrote:
Hi,
Is anyone using the DatabaseReader with Cocooon 2.1.7 ? We just cannot get
Posting this here, since no reply from users@cocoon.apache.org
- Forwarded message from Tuomo L [EMAIL PROTECTED] -
Hi,
What's wrong, when this warning appears in log: Assuming client reset
stream ?
Every file we're trying to return from db comes out as 0 bytes, and the
error (warning
In the login page html we had the form's encoding set to
multipart/form-data. In Cocoon's web.xml enable-uploads was set to
false (default), which prevented the request parameters being forwarded.
After setting it to true everything works.
-Tuomo
On Mon, 18 Apr 2005, Tuomo L wrote:
Hi,
We just
Hi,
We just updated from 2.1.5 to 2.1.7, and the authentication (login-action)
stopped functioning. It seems that no parameters are no longer forwarded
to the authentication resource. We have the same configuration as in
the samples, using: cocoon:raw:/authenticate as the authentication
to happen
by Cocoon. A web page that called this source 10 times took 20 seconds to
load on a fairly fast machine. The zip file is only 84Kb!
Any optimization tips? Didn't think Java's zip-utilities are so slow...
-Tuomo
On Wed, 29 Dec 2004, Carsten Ziegeler wrote:
Tuomo L wrote:
Hi,
I'm writing
Hi,
I'm writing a custom Source and SourceFactory for Cocoon, which takes uris in
this form: mysource:context://foo/bar.zip:mydir/myfile.gif.
The part between the two :'s is a sub-uri, which I need to resolve. How can
I do this, so that any Cocoon URI works, for example: cocoon://foo.bar and
Hi,
Could someone please check, if the PrpagatorAction is functional? I'm
trying to propagate some values to session-attr and/or request-attr, but cannot read
them back (Cocoon 2.1.5)! :(
-Tuomo
Hi,
Is there an input module for getting the values of sitemap parameters? I'd
like to use this with the modular database actions.
-Tuomo
in DatabaseAction.java.
Anyway, my workaround was to use the jxpath module.
-Tuomo
On Wed, 23 Jun 2004, Tuomo L wrote:
Hi,
Could someone please confirm, is there an issue with saving session
context data in database using the modular DatabaseAddAction ? I cannot
get this to function.
My earlier
Hi,
Could someone please confirm, is there an issue with saving session
context data in database using the modular DatabaseAddAction ? I cannot
get this to function.
My earlier post from april:
http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=108080945007607w=2
Cocoon 2.1.5.
Thanks in
Hi,
I saw in the database samples, that one needs to use the raw-request-param
to save binary data correctly. Now, is it possible to upload multiple
files with same request, using the raw-request-param? I wasn't able to
achieve this functionality, but got a nullpointer. Here's the critical
Hi,
We need to store large files (30MB) in a database (MS SQL). The upload
seems to work, because we've compared the filesize in db to the actual
file. But when downloading, browser (IE or Mozilla) does not succeed. IE
saves 0 bytes to disk, and Mozilla doesn't even start the download
process.
, Tuomo L wrote:
Hi,
We need to store large files (30MB) in a database (MS SQL). The upload
seems to work, because we've compared the filesize in db to the actual
file. But when downloading, browser (IE or Mozilla) does not succeed. IE
saves 0 bytes to disk, and Mozilla doesn't even start
When doing this:
sql:execute-query
sql:querysome query on 1st level.../sql:query
sql:execute-query
sql:querysome query on 2nd level.../sql:query
/sql:execute-query
sql:execute-query
sql:querysome other query on 2nd level.../sql:query
/sql:execute-query
/sql:execute-query
...the
Hi,
In addition to my earlier post
(http://marc.theaimsgroup.com/?l=xml-cocoon-devm=108746592616192w=2),
I found that when doing nested queries with more than 2 levels, one cannot
reference other ancestors than the parent. The level-attribute seems to
reference to immediate parent in any case.
Does this possibly fix this too? Haven't gotten any replies on this yet...
:(
It'd be nice, if someone could at least try it out, if it works or not.
http://marc.theaimsgroup.com/?l=xml-cocoon-devm=108272532719287w=2
-Tuomo
On Wed, 28 Apr 2004, Christian Haul wrote:
Christian Haul wrote:
Hi,
I posted this about month ago to both lists, but haven't gotten any
answer. I think it's pretty serious, if it's a bug.
I need to insert data from session context in database. This is what I
have in the descriptor:
value name=owner_id type=all
mode name=session-context type=all
Hi all,
Is it possible to provide configuration parameters in sitemap for
generators? Like this:
map:generator name=my-generator src=MyGenerator
some-parameterfoobar/some-parameter
/map:generator
This is possible for at least transformers and actions.
If so, how do I read those parameters in
(some-parameter).getValue();
...
-Ursprungliche Nachricht-
Von: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] Auftrag
von Tuomo L
Gesendet: Freitag, 16. April 2004 11:49
An: [EMAIL PROTECTED]
Betreff: Custom generators and configuration parameters
Hi all
Posting this here for a faster response...
I need to save the user's id in db. Here's what I have in database
descriptor:
value name=owner_id type=int
mode name=session-context type=all
parameterauthentication/authentication/ID/parameter
/mode
/value
All I get is NULL in the db. Is the
Hi,
I'm using the ZipArchiveSerializer to zip up some files. I need to give
the user an option to check a box saying Delete original files after
compression. I wrote a FileDeleteAction, which uses
org.apache.avalon.excalibur.io.FileUtil.forceDelete method to delete these
files. The action works
Hi,
I'm doing login and logout in sub-sitemap, and all works except the
logout-action, which gives this:
org.apache.avalon.framework.configuration.ConfigurationException: Handler
names must be unique: my-handler
In sub-sitemap:
map:match pattern=logout
map:act type=auth-logout
idea, but you could use XML entities to include the
resources part.
HTH
Carsten
-Original Message-
From: Tuomo L [mailto:[EMAIL PROTECTED]
Sent: Friday, February 06, 2004 2:06 PM
To: [EMAIL PROTECTED]
Subject: Browser based content in a multi-sub-sitemap system
Hi
Hi,
Should anyone have a hint, how to do this, please let me know!
I have a site with dozens of sub-sitemaps, for which I need to support
different client devices (pda, wap etc.).
Each sub-sitemap has pipelines. I need to provide an exit point for each
pipeline, without replicating it into each
I see. Thought they were passed as regular sitemap parameters (as it
is with Cocoon resources). But this is probably a better way. Thanks! :)
-Tuomo
On Wed, 5 Nov 2003, Carsten Ziegeler wrote:
Tuomo L wrote:
Hi,
Is this still an issue? I can't get the LoginAction to pass through
Hey, that fixed it! :) But what is the logic of this?
-Tuomo
On Tue, 4 Nov 2003, Unico Hommes wrote:
In your logkit.xconf try category name=sitemap.mycategory instead of
just category name=mycategory
-- Unico
-Original Message-
From: Tuomo L [mailto:[EMAIL PROTECTED]
Sent
Hi,
Is this still an issue? I can't get the LoginAction to pass through. It
seems that the authentication-resource is not getting the parameters from
LoginAction. I have in mounted sitemap:
map:act type=auth-login
map:parameter name=handler value=default/
map:parameter name=parameter_username
Thank you!
On Tue, 21 Oct 2003, Carsten Ziegeler wrote:
Hi,
I just reverted the change. The behaviour now should be as you
descripe it. But this means, that you get your NPE again if you
don't take care of it.
Carsten
-Original Message-
From: Tuomo L [mailto:[EMAIL PROTECTED
Thanks, sounds like a solution. I'll give it a try! :)
-Tuomo
On Tue, 14 Oct 2003, Antonio Gallardo wrote:
Tuomo L dijo:
Here's the line of code, that gives the error (No error, if
/authentication/data/bar/ is actually available. The data section is
created dynamically for every user, so
Hi Carsten,
I'd say null is the way to go, no matter what @as is. Isn't empty
DocumentFragment just like an empty string? Empty string is still a
string, and sometimes usefull in XSP.
So, returning null if:
@path does not exist in the session context (or @path is an empty string)
@path does not
=/authentication/data/bar/;
-Tuomo
On Mon, 13 Oct 2003, Antonio Gallardo wrote:
Tuomo L dijo:
Hi,
I finally had the chance to try this, but now I get:
java.lang.ClassCastException
Can you show the code from where are you calling the tag?
Antonio Gallardo
Hi,
I finally had the chance to try this, but now I get:
java.lang.ClassCastException
-Tuomo
On Fri, 10 Oct 2003, Carsten Ziegeler wrote:
Hi,
you have to update the session jar.
Carsten
-Original Message-
From: Tuomo L [mailto:[EMAIL PROTECTED]
Sent: Friday, October 10
$ControlRunnable.run(ThreadPool.java:619)
at java.lang.Thread.run(Unknown Source)
-Original Message-
From: Tuomo L [mailto:[EMAIL PROTECTED]
Sent: Monday, October 13, 2003 12:44 PM
To: [EMAIL PROTECTED]
Subject: RE: getxml in XSP throws NPE if @path is invalid
Hi,
I
in a patch that should fix this problem.
Could you please test it?
Thanks
Carsten
-Original Message-
From: Tuomo L [mailto:[EMAIL PROTECTED]
Sent: Wednesday, October 08, 2003 10:26 PM
To: [EMAIL PROTECTED]
Subject: getxml in XSP throws NPE if @path is invalid
Hi
Hi,
This gives me a nasty NPE in XSP:
String foo = xsp-session-fw:getxml context=authentication
path=/authentication/data/bar/;
This does not:
String foo = xsp-session-fw:getxml context=authentication
path=/authentication/ID/;
Shouldn't it return null, if the given path is not available? It
Hi,
I've been playing with the upload-mechanism of Cocoon, and noticed that
it's now required to cath the uploaded file since cocoon deletes it (At
least this is the behaviour on my 2.1 installation with autosave-upload
true and allow-uploads true)
I'm working on a ZipArchiveExtractorAction,
46 matches
Mail list logo