Hello,
we need the possibility for our customer to put all essential configurations
of our system together in one file (outside the sitemap and the xconf). This
includes the configuration of all special flowscripts in this file, too. To
do so, we need to (re-)load these flowscripts at runtime.
Torsten Curdt wrote:
Cocoon trunk uses javaflow with the compiling classloader.
Do you have your source files under build/webapp/WEB-INF/src?
Yes.
I saw the classes in WEB-INF but they're not included in the build.
Just the source AbstractContinuation.java is included but not
compiled. Is this
Torsten Curdt wrote:
What is cocoon-trunk?
That would be the one from svn :) Being a versioning system there
are different branches. Trunk is the main development branch.
https://svn.apache.org/repos/asf/cocoon/trunk/
This might also help
http://wiki.apache.org/cocoon/SubversionMigration
Thanks
It would also be great if you could
try cocoon-trunk and report back.
Hi Torsten,
JavaFlow doesn't work in trunk at all, because the class
AbstractContinuation doesn't exist either in cocoon-javaflow.block.jar
nor in src. There are just these few classes in
Torsten Curdt wrote:
JavaFlow doesn't work in trunk at all, because the class
AbstractContinuation doesn't exist either in
cocoon-javaflow.block.jar nor in src. There are just these few
classes in org\apache\cocoon\components\flow\java:
CocoonContinuationContext.class
JavaInterpreter.class
Hello,
it's possible that I have found another bug in Cocoon. Using
getComponent within a JavaFlow causes a cryptical exception. I wrote an
example using Cocoon 2.1.6 which doesn't work. Can someone please verify
whether it is really a bug or just a mistake of mine?
# The Component Interface:
It would also be great if you could
try cocoon-trunk and report back.
What is cocoon-trunk? The nightly build or the version out from
subversion?
Stephan
Sylvain Wallez wrote:
Team, here's a formal vote about splitting cocoon.xconf.
I propose to add a new import feature in cocoon.xconf so that
adding/removing blocks to a Cocoon instance doesn't require do merge
each block's configuration in a unique cocoon.xconf file as of today.
With this
Hi,
after I had tried several times to iterate over a widget using
flowscript (model.lookupWidget()) I had realized that - in my opinion -
this is not easily possible. The problem: I don't know the id's of the
widgets! So there are two big questions I'm having:
1)
In Java I can use
Sylvain Wallez wrote:
Stephan Coboos wrote:
Hello,
is it possible to iterate other a model object within a flowscript?
The model object was retrieved before by calling form.getModel().
Yes, you can use lookupWidget() that accepts a path-like syntax (i.e.
a/b/c or ../d)
Another question
Hi Sylvain,
I have resolved my problem: I have to include the v2 Form.js and to
change form.getModel() to form.getWidget().
Thanks.
Regards
Stephan
Hello,
is it possible to iterate other a model object within a flowscript? The
model object was retrieved before by calling form.getModel().
Another question: Is there an API doc available for this object?
Thanx.
Stephan
Hello,
I had asked this question in the users list before but got no answer. So
I will try it here. I need to access a sitemap parameter within a
JavaFlow class. Is this possible?
map:call function=myJavaFlowMethod
map:parameter name=foo value=bar/
/map:call
How can I access the parameter foo
Hi Torsten,
I guess he is after JAVAflow ;-)
Yes.You're right! ;-)
IIRC the parameters are set inside the continuation context.
If you inherit from AbstractContinuable you should be able
to just use getParameters().
That's the problem! The AbstractContinuable contains no method
getParameters():
That's the problem! The AbstractContinuable contains no method
getParameters():
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/flow/java/AbstractContinuable.html
It exists in trunk.
Sorry, but I don't understand. What do you mean with It exists in trunk.?
Thank you.
Regards
Hi,
I need some internal informations. Therefore I'm posting on the dev list.
I'm using the SQLTransformer to receive a very very big set of values
out from a oracle database. Because the values are very very big, it
would be nice, if the the connection to the database will be closed if
the
I had forgotten to say: The database connection should be closed if the
user closes the browser _during reading_. So a hughe set of data which
are not needed should not read again out of the database to save resources.
Thank you.
Stephan
Stephan Coboos wrote:
Hi,
I need some internal
is not possible to detect a browser cancel? Is there a workaraound
available?
What happens on the first one (directly xml output) if the user stops
the transfer by closing the browser?
Thank you, Sylvain.
Regards
Stephan
Sylvain Wallez wrote:
Stephan Coboos wrote:
I had forgotten to say
Hello,
is it possible to access the current request within a avalon component
without passing it as parameter?
Thank you!
Regards
Stephan
Hello,
I need to implement a wizard using CForms. For this I had created one
form definition which contains all fields of all wizards. Within the
flowscript I only create one form instance for all shows. Each wizard
form will contain a subset of fields of the form definition. At the end
of the
Hello,
I don't need the samples and don't need the ojb block but the Javaflow
block, so I had only Javaflow marked as include=true.
But during build I got an exception:
PersistenceFlow.java:81: cannot resolve symbol
symbol : class Employee
location: class
Hello,
why it is not possible to use fb:on-bind/ aso. within
fb:simple-repeater/?. I need this repeater because I want to remove
all entries from the list and replace them by new values from the form.
Or is this behavior also possible with fb:repeater/? Wouldn't it be
better to add the
Joerg Heinicke wrote:
On 02.09.2004 20:08, Stephan Coboos wrote:
why it is not possible to use fb:on-bind/ aso. within
fb:simple-repeater/?. I need this repeater because I want to remove
all entries from the list and replace them by new values from the
form. Or is this behavior also possible
Hello,
I have a big problem using the HSSFSerializer. If I'm creating a xml
worksheet by hand and then serializing it using the HSSFSerializer everthing
works well. But If I'm using a XSLTransformer before to create the
structure, I got a NullPointerException:
Original Exception:
Because of a bug in serializer? Xalan catches NPE and re-throws it
loosing stacktrace. Catch original NPE and see where it is thrown; IMHO
it is coming from hssf serializer.
Hello Vadim,
this is the whole stacktrace, does it help?
org.apache.cocoon.ProcessingException: Failed to execute
Hello,
I had downloaded the nightly build cocoon-2.1_20040731161331. But what I
got after compiling was cocoon-2.2.0dev? Heahh? Is the snapshot
algorithm wrong?
Regards
Stephan
Hello,
is it possible to set a java.sql.ResultSet witin a JXTemplate and then
iterate over the contents?
I need this way to print out 60 Elements from a database into an
xml. So it is not possible to create beans before.
Thank you.
Regards
Stephan
Hello,
I'am using 2.1.5.1. It seems that the CForms samples doesn't work on
this release? If I'am trying to start such an example the following
error message will be thrown:
Caused by: org.apache.avalon.framework.component.ComponentException: Could not find
component (key
Hello,
why not implement a filter system like in a servlet container exists to
filter the request and the response? Because using the filter of the
servlet-container there is a bindig between cocoon and the servlet
container necessary. This filter technique would be useful eg for
closing
Jeremy Quinn wrote:
How would I organise this differently, in the situation where I had
several of these Components, each differently configured, that I
wanted to be able to load in FlowScript in a similar way. Maybe we
want one setup for read-only privs and another setup for read-write
privs
Adam Ratcliffe wrote:
I'm looking for a little direction on the most appropriate way to access
a database from the flow layer.
My application requires read-only access to the database only so an O/R
type approach would probably be
overkill.
What I would like to do in the flow layer is something
[EMAIL PROTECTED] wrote:
the problem is a ClassCastException because the code was changed to use a
ServiceSelector, but the configuration uses a ExtendedComponentSelector. I
send you the diff what was changed. You can replace ServiceSelector back to
ComponentSelector and it will work again. It
Hello,
why having bizData objects its own flow scope and not be stored e.g. in
session or request?
Is it possible to retrieve the object via session or request without
using extra setAttribute in flow?
Thank you.
Regards
Bruno Dumon wrote:
This is a problem in the Xalan serializer. You could file a bug report
with them. (but make sure you're using the latest version -- I seem to
remember that something like this was fixed before).
I can remember this bug already exists in Cocoon 2.1.x (!). I will see
to report
Pier Fumagalli wrote:
On 15 Jun 2004, at 17:28, Stephan Coboos wrote:
Hello,
in my XML doc I need to declare some entities. But if I do so, I cant
use the HTMLSerializer to output my doc because a braket appears on
the right top corner. Why? Is it a bug in HTMLSerializer? What can I
do
Stephan Coboos wrote:
Pier Fumagalli wrote:
On 15 Jun 2004, at 17:28, Stephan Coboos wrote:
Hello,
in my XML doc I need to declare some entities. But if I do so, I
cant use the HTMLSerializer to output my doc because a braket
appears on the right top corner. Why? Is it a bug in HTMLSerializer
Hello,
in my XML doc I need to declare some entities. But if I do so, I cant
use the HTMLSerializer to output my doc because a braket appears on
the right top corner. Why? Is it a bug in HTMLSerializer? What can I do
to avoid this?
My xml doc:
?xml version=1.0 encoding=ISO-8859-1 ?
!DOCTYPE
Stephan Michels wrote:
member variables have the scope of the seesion.
Ok. But makes this sense? If I have no continuation I need no member
variable.
Isn't it better to remove the member vars from the session scope and
bind them on the contonuation object?
What's the reason to bind member
Hello,
I'am sorry but I have another problem using JavaFlow. I want to use my
own Exceptions in JavaFlow. One Exception contains a long type as
parameter. But if so, the flows will not load at startup. Please have a
look into my source code example:
package foo.bar;
import
Hello,
please have a look at the following java flow code:
...
public class TestFlow extends AbstractContinuable{
private boolean foo= false;
public void doTest() throws Exception {
while(true) {
this.getLogger().debug(reload = + this.foo);
Hello,
I had tried to write my own taglib using the TagTransformer but it
doesn't work. I can't find some informations about it, so I had copied
the example and changed something but it doesn't work. I want to use a
tag hello/ to print out HELLO WORLD. My changes in detail:
1.) I had written
Stephan Michels wrote:
Am Do, den 03.06.2004 schrieb Stephan Michels um 15:00:
Am Di, den 01.06.2004 schrieb Stephan Coboos um 20:23:
Hello,
I have a problem using Objects in JavaFlow before a while loop. Please
see my first posting [JavaFlow] java.lang.VerifyException. In my opinion
Hello,
I'am using JavaFlow. All my JavaFlows works very well, except one. If I
use this Flow I got a empty page each first call. In the next call I got
an exception which displays that the method of the flow can not be found
but the name of the method is correct and it is correct registered:
Hello,
I have a problem using Objects in JavaFlow before a while loop. Please
see my first posting [JavaFlow] java.lang.VerifyException. In my opinion
it can be a bug in the JavaFlow block.
Because my fist posting was not so clear, I had tried to reproduce the
error for a while and I had
Anna Bikkina wrote:
I could put in a properties file but its just one property so didnt know if it
does make sense. Well if I cant reach web.xml then I have no other alternate
anway.
Anyone else successful trying to get access to initparameters in web.xml?
Thanks,
Anna.
On Thursday 29 April
Hello,
this construct doesn't show me the the content of the variable:
jx:set name=foo value=bar/
${foo}
This should print out bar but it doesn't!! Why? Is it another bug in
JXTemplateTransformer or did I something wrong?
Please help me.
Regards
Stephan
Ohh. I'am sorry. I had used attribute name instead var. It works fine!
Thank you.
Regards
Stephan
Christopher Oliver wrote:
Stephan Coboos wrote:
Is it a bug? Should I post it in the bugtracker?
It's a bug. The ServiceManager isn't initialized when you run
JXTemplateGenerator as a transformer. I'll commit a fix shortly.
Chris
Perfectly! Thank you!
Regards
Stephan
Hello,
is it possible to use the SourceResolver to resolve a path which
contains german umlauts? Is it possible to set the right encoding? I'm
getting hieroglyphes using the SourceResolver to resolve paths
containing german umlauts.
Thank you.
Regards
Hello,
the element jx:import uri=.../ doesnt work in JXTemplateTransformer.
If I'am using this element I got a java.lang.NullPointerException. In
the JXTemplateGenerator instead it works fine. Is it a bug? Should I add
it to the bugtracker?
PS: Im using Cocoon 2.1.4.
Thank you.
Regards
Hello,
is it possible to pass parameters from the pipeline to an action within
an action-set? I have the following structure in my sitemap:
...
map:action-sets
map:action-set name=example
map:act type=test
map:parameter name=name value={foo}/
/map:act
/map:action-set
Hello,
I need to include xml coming from a database as string into the pipline
via my own transformer. (Please do not ask why writing my own
transformer. I need it..). I had seen, including xml coming form sources
(xml files) is very easy using the SourceUtil. But how can I include xml
which
Hello,
I want to write my own transformer which iterates over a element and
repeates the content several times. For example:
iterate times=3
pI'm the content/p
/titerate
The content pI'm the content/p should be repeated 3 times, like this:
pI'm the content/p
pI'm the content/p
pI'm
Christopher Oliver wrote:
You could use the JXTemplate generator to do this without Java
programming:
jx:macro name=iterate
jx:parameter name=times/
jx:forEach start=1 end=${times}
jx:evalBody/
/jx:forEach
/jx:macro
--
Chris
Thank you, Chris. But I need to write my own transformer for
Hello,
if no map:pipes/ section is given in a sitemap, which implementation
of a ProcessingPipeline will be used?
CachingProcessingPipeline?
Thank you!
Regards
Stephan
Unico Hommes wrote:
See the root sitemap where it says:
map:pipes default=caching
;-)
Unico
And what happens if I dont specify an element map:pipes/ in the root
sitemap? ;-)
Which ProcessingPipeline is will be used then?
Regards
Stephan
Unico Hommes wrote:
Stephan Coboos wrote:
Unico Hommes wrote:
See the root sitemap where it says:
map:pipes default=caching
;-)
Unico
And what happens if I dont specify an element map:pipes/ in the
root sitemap? ;-)
Which ProcessingPipeline is will be used then?
AFAICT this would
Hello,
long long time ago I had heard that own roles can be configured in a
separate config file. But I have forgotten which structure this file
must have and how to set the path to this file. The only thing I know is
there was an attribuite in cocoon/ of cocoon.xconf to set the path,
but
Upayavira wrote:
Stephan Coboos wrote:
Hello,
long long time ago I had heard that own roles can be configured in a
separate config file. But I have forgotten which structure this file
must have and how to set the path to this file. The only thing I know
is there was an attribuite in cocoon
Miguel Griffa wrote:
Hi all,
I'm new to developing inside cocoon (I'm writing a generator now).
Since I have to migrate an old framework into cocoon, I need to access
data like request and response
How can I access these?
I have the idea that I'd need to use the manager to lookup() some
Antonio Gallardo wrote:
We already have map:action to this. With map:action the sitemap
complexity grows very fast in some times to unreadable sizes.
Yes, but why using Java on the one hand and JavaScript on the other? Why
not using for both solutions JavaScript as alternative way? This mix
Antonio Gallardo wrote:
AFAIK, there as an initiative to use javascript in XSP. But for a lack of
interest there is not fully developed.
Yes, I know. But I dont like XSP. I think XSP is not the best way to
integrate logic.
For historical reasons flow was introduced with flowscript for
Leszek Gawron wrote:
On Thu, Feb 26, 2004 at 10:22:12AM +0100, Stephan Coboos wrote:
I think a solution like this:
map:match pattern=first
map:call function=getValues return=true/
map:transform type=jxt/
map:serialize/
/map:match
is more easier to understand than this:
map:match
Antonio Gallardo wrote:
Stephan Coboos dijo:
is more easier to understand than this:
map:match pattern=first
map:call function=getValues/
/map:match
map:match pattern=second
map:generate type=jxt/
map:serialize/
/map:match
Did you already saw the advantage of this?:
map:pipeline
Hello,
in some discussions I'd heard that actions and XSP should be more and
more replaced by flowscript. I think, this is a good idea because
flowscript is a good way to integrate logic parts into an application.
But with one thing I cant agree. Why shouldn't it be possible to return
to the
Ralph Goers wrote:
I don't mean to start any kind of flame war here and the following is
strictly my opinion.
Actually the statement below is the exact reason I and my colleagues are
reticent to use flowscript. I have no problem with using flowscript to
manage a couple of pages that are linked
Hello,
in the cocoon docs
http://cocoon.apache.org/2.1/userdocs/flow/api.html#Request+Object
I can read that cocoon.request.getAttributeNames should return an object
of type java.util.Enumeration but this function seems to be not
implemented yet because a call of this funtion cases a Function
Hello,
is there a interface for the service manager avaiable which definies
that a method of a pooled component will be called right before I get it
from the pool?
I want to get a new Datasource each time I get the component from the
pool. How to do that?
Thank you.
Regards
Olivier Billard wrote:
On 04/02/2004 12:37, Vadim Gritsenko wrote:
Olivier Billard wrote:
Hi cocooners ! (again)
Is there a way to show the content at time t of objects pools ?
By debug traces ? a special-secret-powerfull-tool ;) ?
There is some secret super-powerful tool... Name is
Hello Marc,
thank you for this long statement about apples. In my opinion, apples is
a good counterpart to actions in struts because there are many things in
common between this two conecpts. So struts users can easier change to
Cocoon. Some people which are new to cocoon don't like the
Hello,
I had read about the apples block and I would like to use it in some
parts of my application. There is just one big question: I'd read that
apples is in alpha status, so will it be (really) supported in future
and when is the release planned? In 2.2?
Thank you.
Regards
Stephan
Hello,
I like the concept of own avalon components in cocoon very very well. So
I only work with flowscripts and avalon components but very seldom with
actions or xsp. I think, the concept flowscript + avalon component is
the future way to integrate logic into a cocoon app. But in my opnion
Giacomo Pati wrote:
Stephan Coboos wrote:
Hello,
I like the concept of own avalon components in cocoon very very well.
So I only work with flowscripts and avalon components but very seldom
with actions or xsp. I think, the concept flowscript + avalon
component is the future way
Geoff Howard wrote:
Stephan Coboos wrote:
Hello,
because I've got no answer for my question postet in the users list
before, I will try it on the dev list...
I have the following sitemap fragment:
...
map:resources
map:resource name=main
map:call function=main/
/map:resource
Hello,
because I've got no answer for my question postet in the users list
before, I will try it on the dev list...
I have the following sitemap fragment:
...
map:resources
map:resource name=main
map:call function=main/
/map:resource
/map:resources
map:flow language=javascript
map:script
Carlos Chávez wrote:
Stephan Coboos Escribio :-)
Hello,
because I've got no answer for my question postet in the users list
before, I will try it on the dev list...
I have the following sitemap fragment:
...
map:resources
map:resource name=main
map:call function=main/
/map:resource
Hello,
because I needed a CIncludeTransformer which is able to include dynamically
resources, I had modificated the CIncludeTransformer a little bit. Now its
possible to pass sitemap parameters to the transformer. Within the src
attribute the variable will be replaced by the value of the
- Original Message -
From: Carsten Ziegeler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 24, 2003 8:18 AM
Subject: RE: [suggestion] Method getParameterMap in Request?
I'm not very happy about changing our Request interface. The information
you need to get a parameter
- Original Message -
From: Carsten Ziegeler [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Friday, October 24, 2003 2:28 PM
Subject: RE: [suggestion] Method getParameterMap in Request?
Stephan Coboos wrote:
What do you think of adding a static helper method somewhere
Hello,
in my opnion it would be nice to have a method like getParameterMap() from
Servlet programming which returns all request parameters as name value pairs
in a hash map. This method should reside in interface
org.cocoon.apache.environment.Request oder http.HttpRequest.
Do you agree with
- Original Message -
From: Ugo Cei [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Sent: Thursday, October 23, 2003 9:11 PM
Subject: Re: [suggestion] Method getParameterMap in Request?
Stephan Coboos wrote:
in my opnion it would be nice to have a method like getParameterMap()
from
Servlet
81 matches
Mail list logo