Re: [C3] Can i18n transformer use an internal pipeline as bundle?

2014-01-18 Thread Alberto Brosich
throws Exception { > > // get properties out from database > --> custom jdbc code here > ResultSet rs = properties_from_db; > > // put it inside Map > > Map data = new HashMap(); > > while (rs.hasNext()) { >

Re: [C3] Can i18n transformer use an internal pipeline as bundle?

2014-01-17 Thread Alberto Brosich
uce an html page, querying a database. etc... > > > > Greetings, > Greg > > > > 2014/1/17 Alberto Brosich > > Yes, it's really simple. > The source file is an xml file with a sqltransfor

Re: [C3] Can i18n transformer use an internal pipeline as bundle?

2014-01-17 Thread Alberto Brosich
stylesheet: = Alberto On Fri, 2014-01-17 at 15:30 +0100, gelo1234 wrote: > Can you show here your full original Cocoon pipeline ? Do you store > property files content or property filenames inside db ? > > > Greetings, > Greg > &g

Re: [C3] Can i18n transformer use an internal pipeline as bundle?

2014-01-17 Thread Alberto Brosich
om within > XIncludeTransformer (x:xinclude) but not as a map:parameter so far. > > > > Greetings, > Greg > > > > 2014/1/17 Alberto Brosich > > Hi Greg, > >

Re: [C3] Can i18n transformer use an internal pipeline as bundle?

2014-01-17 Thread Alberto Brosich
> > will not work as expected. > > > Take a look at C3 samples sitemap.xmap [1] which shows correct > definition of service consumer. > > > Greetings, > Greg > > [1] >

[C3] Can i18n transformer use an internal pipeline as bundle?

2014-01-17 Thread Alberto Brosich
Hi, I'm migrating a 2.1 cocoon application to 3.0, using beta1-SNAPSHOT because I need the sql transformer. As I wrote in the subject, I'm need to specify an internal pipeline as bundle for the i18n transformer, because the properties file has to be derived from database. Using a plain file it wo

Missing packages

2013-01-16 Thread Alberto Brosich
Hi, I'm trying to port an application from cocoon version 2.1.11 to version 2.2.0. The application uses the petstore block that I cannot find in the central maven repository. I tried to compile cocoon 2.2.0 from sources (from svn repository) but I got an error at captcha block. Is there any maven

Re: How can I create a new browser window from flowscript?

2010-05-11 Thread Alberto Brosich
success (with tag). Any other way to do it? A Robby -Original Message- From: Andre Juffer [mailto:andre.juf...@oulu.fi] Sent: Tuesday, May 11, 2010 4:40 PM To: users@cocoon.apache.org Subject: Re: How can I create a new browser window from flowscript? On 05/11/2010 05:27 PM, Alberto Brosich

How can I create a new browser window from flowscript?

2010-05-11 Thread Alberto Brosich
Hi, I have to create a new window (tab or popup, it's the same) where to put results after the user submits a form (builded with cform and controlled by a flowscript). The result is a page generated with a pipeline that I call now with cocoon.sendPage(). How can I achieve it? I tried some te

Re: How to obtain a java.sql.Connection object in a flowscript?

2008-09-13 Thread Alberto Brosich
SQLTYPE must be an array type defined in your database This work only with jdbc driver 11g. With older versions you have to follow another way, slightly different, using ArrayDescriptor class. Alberto Alberto Brosich wrote: I need to use PreparedStatement with parameters that are array

How to obtain a java.sql.Connection object in a flowscript?

2008-09-10 Thread Alberto Brosich
I need to use PreparedStatement with parameters that are arrays within a flowscript. Dealing with arrays onto a jdbc connection means use special functions provided by the jdbc driver. In my case the oracle driver has a function |*ArrayDescriptor.createDescriptor

Strange problem with 2.1.11, tomcat and saxon

2008-02-11 Thread Alberto Brosich
I'm using cocoon 2.1.11 with java 1.6. I defined the saxon transformer and I use it in some pipelines. Running it in the embedded jetty works all fine but after installing the war under tomcat I get the following error: java.lang.IllegalArgumentException: Unknown type of result: class javax

Re: authfw auth-logout action delete session contexts

2007-10-31 Thread Alberto Brosich
Carsten Ziegeler wrote: > Alberto Brosich wrote: > >> I'm fighting with session contexts. >> I write a new session context (named "exceptions") in a flowscript. >> If I call a pipeline that contains an auth-logout action t

authfw auth-logout action delete session contexts

2007-10-31 Thread Alberto Brosich
I'm fighting with session contexts. I write a new session context (named "exceptions") in a flowscript. If I call a pipeline that contains an auth-logout action that context is deleted. As sample: If I commented out the auth-logout

Exception handling doesn't work

2007-10-29 Thread Alberto Brosich
Strange thing. I'm trying to enable exception handling in a sitemap. I wrote the selector section and the handle-errors section just after the last pipeline. No exception is handled. Another sitemap with the same selector and handle-errors sections works fine. So the question is: what can prevent

Re: Process multiple XML files

2007-10-26 Thread Alberto Brosich
thomas908 wrote: > Please help me find a solution to this problem. The requirement I have is > something like this: > > 1. We have, as an input, XML files ranging from 20-400MB which we need to > process. > 2. A series of XSLTs (12 in number) need to be applied on these XMLs to > process them (XML

How to write a session with writeDOMsession transformer and access it?

2007-10-19 Thread Alberto Brosich
I'm trying to do a kind of exception handling in an authentication pipeline. It contains 2 ldap queries and 1 sql query. I decided to use the writeDOMsession transformer to save the exceptions information (xml fragments generated with xsl transformers) in a session and access it later from a param

SOAP logicsheet places XML result as text

2007-09-26 Thread Alberto Brosich
I'm trying to use SOAP xsp logicsheet to query a web service. This is the content of my xsp file: http://apache.org/xsp"; xmlns:xsp-request="http://apache.org/xsp/request/2.0"; xmlns:soap="http://apache.org/xsp/soap/3.0"; > http://grid.bodc.nerc.ac.uk/axis/services/VocabServerAPI";> ,

Reset button doesn't work properly

2007-09-17 Thread Alberto Brosich
form.showForm(""); } else ... Maybe something about javascript code? I cannot find any useful hint within cocoon samples. Thanks in advance Alberto Brosich Cocoon 2.1.10 Debian/Linux lenny Java 1.5

Re: jxtemplate doesn't read pipeline parameters

2007-09-05 Thread Alberto Brosich
Alberto > > Kind regards, > > Jeroen Reijn > > Alberto Brosich wrote: >> I have a strange problem with a really simple pipeline using jxtemplate >> generator. >> >> The pipeline is: >> >> >> >> > value=

jxtemplate doesn't read pipeline parameters

2007-09-05 Thread Alberto Brosich
cessing other cocoon objects (cocoon.request, for example) works right. No useful information in the logs. Cocoon version 2.1.10 on debian 4.0 with jdk 1.5.0_11. Where is the mistake? Thanks in advance Alberto Brosich - To unsubscribe, e

Re: Importing a javascript file in cform

2007-06-12 Thread Alberto Brosich
Dev at weitling wrote: > Alberto Brosich wrote: > >>> I think it's tiem to ask the question: Should this javascript run >>> client- or server-side? >>> > > >>> Client-side. I have to use the function in the "" >>>

Re: Importing a javascript file in cform

2007-06-12 Thread Alberto Brosich
Dev at weitling wrote: > Hi Alberto, > > I think it's tiem to ask the question: Should this javascript run > client- or server-side? > Client-side. I have to use the function in the "" tag of some widgets. Alberto > Bye, > Florian > > Alberto Brosich w

Importing a javascript file in cform

2007-06-12 Thread Alberto Brosich
ution without change cform stylesheets (solution I don't like). Thank's in advance Alberto Brosich - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

upload widget hangs a form in IE6

2006-12-29 Thread Alberto Brosich
Is there a known issue with upload widget and internet explorer in cocoon 2.1.10? I have a multipage form (2 pages) with an upload widget in page 2. model definition: template definition: When I try to submit the form a dialog shows the message "No response data found". In cocoon 2.1.9

Accessing an applet from flow

2006-12-05 Thread Alberto Brosich
f the html page from flowscript or from an event handler of the submit widget. I do not found any useful example in mailing-list archive or googling around. Any suggest? Thanks Alberto Brosich P.S. cocoon 2.1.9 - To unsu

Re: Date validation in cforms

2006-11-21 Thread Alberto Brosich
n requires 3 argument(s) at line 0, column 0 What's wrong? Both Javascript and Java Date class have Date() constructor (without parameters). So, isn't javascript code that I put in min or max attributes? Thanks in advance Alberto Brosich ---

Re: xslt transformer doesn't find the value of attributes

2006-09-01 Thread Alberto Brosich
Bertrand Delacretaz wrote: On 9/1/06, Alberto Brosich <[EMAIL PROTECTED]> wrote: ..Here is the mistake... But you said it worked with xalan at the command-line? If yes, can you indicate with which version of Xalan it works? Might be an "interesting" bug. Yes, it works. d

Re: xslt transformer doesn't find the value of attributes

2006-09-01 Thread Alberto Brosich
Bertrand Delacretaz wrote: On 9/1/06, Alberto Brosich <[EMAIL PROTECTED]> wrote: ...xsl:value-of retrieves no value and so on in the other templates. Did you try with @rfc:name, in case the attribute has a namespace as well? No, of course! :-) Here is the mistake. Thank yo

xslt transformer doesn't find the value of attributes

2006-09-01 Thread Alberto Brosich
I have a strange problem. I have a simple stylesheet where I match nodes and use their attribute. Follow a snip: ... ... rfc:include is matched, element "" is written but xsl:value-of retrieves no value and so on in the other templates. I tried also saxon but the resu

Re: Converting string to array in jxtemplategenerator

2006-08-31 Thread Alberto Brosich
Ard Schrijvers wrote: Hello Alberto, I need to convert a string (words delimited with commas) in something that "jx:forEach" can iterates. I found a nice example in documentation (http://cocoon.apache.org/2.1/userdocs/flow/jxtemplate.html). items="${java.util.StringTo

Converting string to array in jxtemplategenerator

2006-08-31 Thread Alberto Brosich
I need to convert a string (words delimited with commas) in something that "jx:forEach" can iterates. I found a nice example in documentation (http://cocoon.apache.org/2.1/userdocs/flow/jxtemplate.html). items="${java.util.StringTokenizer(items, delims)}"> letter =

Re: the first call of on-value-changed retrieve wrong value in cforms

2006-06-15 Thread Alberto Brosich
My big mistake. My apologies. Alberto Alberto Brosich wrote: I'm using cocoon 2.1.9 on jetty, debian linux etch, jdk 1.5. I have a form with a field (type string) with a selection list. The list fills correctly and html source contains correct values. The field contains an writt

the first call of on-value-changed retrieve wrong value in cforms

2006-06-14 Thread Alberto Brosich
e should be a 4 character sequence (numbers and letters). The following times (after an on-value-changed on another field, for example) the value is correctly retrieved. Any suggest? Alberto Brosich - To unsubscribe, e-ma

Re: LDAP over SSL

2005-09-05 Thread Alberto Brosich
On Mon, 2005-09-05 at 16:26 +0200, Christoph Hermann wrote: > Alberto Brosich schrieb: > > Hello, > > >>So, is it possible (i.e. with ldaps://-url)? Or would i have to patch > >>the LDAPTransformer? > > > ldaps:// works with port 636 but you must import

Re: LDAP over SSL

2005-09-05 Thread Alberto Brosich
On Mon, 2005-09-05 at 14:56 +0200, Christoph Hermann wrote: > Hello, > > is it possible to use the LDAP transformer to connect via SSL? > The only thing i found about this is: > http://66.249.93.104/search?q=cache:UpAk340B8tEJ:archives.real-time.com/pipermail/cocoon-users/2004-February/047030.html

Re: zip serializer gives zero lenght output with large file

2005-08-22 Thread Alberto Brosich
ake year xsp encapsulate the document in this tags! > HTH, > Rui > > > > > > On Wed, 2005-07-20 at 14:01 +0200, Alberto Brosich wrote: > > On Wed, 2005-07-20 at 12:28 +0100, Rui Alberto wrote: > > > Hi, > > > try moving ... into a noncaching >

Re: zip serializer gives zero lenght output with large file

2005-07-20 Thread Alberto Brosich
using: > > http://apache.org/cocoon/zip-archive/1.0";> > >... >LARGE AMOUNT OF DATA HERE >... > > > and it worked. It's slow and not the most clean way of doing things, but > works! Make year xsp encapsulate the document in this tags! &g

Re: zip serializer gives zero lenght output with large file

2005-07-20 Thread Alberto Brosich
t; Rui > > On Wed, 2005-07-20 at 12:58 +0200, Alberto Brosich wrote: > > I have some problems with zip serializer. > > > > I use cocoon 2.1.7, tomcat 5.5.9, jdk 1.5.0_04-b05 > > > > With small files (1-10 MByte) works all fine. With ~18 Mbyte > > the zi

zip serializer gives zero lenght output with large file

2005-07-20 Thread Alberto Brosich
Alberto Brosich Follow two slices of sitemap ... ... ... where extract_params_zip.xml is the following file http://apache.org/cocoon/zip-archive/1.0