Salut Laurent,
A mon avis, ce que tu veux faire est possible. Ton pb ressemble a une
erreur ds l'enchainement des pipes.
J'ai une config a peu pres similaire au niveau des composantes (menu,
header, page centrale etc...), et je me souviens avoir longtemps tourné
en rond pour arriver a regler
Hi Joshua, thanks for the response. It makes no difference if I add
the sql prefix or not.
Mike
At 20:30 13/09/2005, [EMAIL PROTECTED] wrote:
Mike,
Try placing sql: in front of the execute query/ and query/ tags.
Hi,
I'm perplexed by an error that I keep receiving when trying to process
Hi Holger
This confirms what we were thinking.
Thanks for taking the time to answer.
Duncan
1. In the pipeline, the cocoon app is the client which requests the data.
The cocoon app obviusly doesn't maintain a session connection.
2. If the servlet is not in the Cocoon context, it will not
Mike
My XSP is a bit rusty now (having mostly moved to JXTemplates)
but isn't the problem with the XSP and not the XSLT ie.
Exception in ServerPagesGenerator.generate()
Do you get the same error when you run:
map:match pattern=*.xsp
map:generate type=serverpages src=pages/{1}.xsp /
Tahnks for your hints. I guess I will try to achive this by using jx.
Gruss, Florian
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Yes offcause I cant do this :)
But some things have changed. Insted of using a Reader I extandet the
fo2pdf Serializer.
package
swl.test.cocoon.serialization; import
java.io.FileNotFoundException; import
java.io.FileOutputStream; import
org.apache.cocoon.serialization.FOPSerializer;
Yes offcause I cant do this :)
But some things have changed. Insted of using a Reader I extandet the
fo2pdf Serializer.
package
swl.test.cocoon.serialization; import
java.io.FileNotFoundException; import
java.io.FileOutputStream; import
org.apache.cocoon.serialization.FOPSerializer;
Jan,
at a first glimpse, your class is not
doing anything but creating an empty file. There's no link between your
OutputStream and the data.
The serializer provides its own output
stream (super.output according to this http://wiki.apache.org/cocoon/WritingSerializers
)
Perhaps you need to
Hi,
this might not be the right list, but since it involves cocoon, maybe
someone could answer my question.
My application is similar to the CHS (Cocoon Hibernate Spring)-Petstore
from Ugo.
In university we learned about the n-tier architecture. So now I'm
trying to assign the different
Hi Derek, thanks for the suggestion but no, the problem is not with the
XSP page. I've created a very simple XML page containing a basic query
and still get the same outcome. The error appears to
indicate this is something to do with the result type not being defined
or cast. Perhaps this is
Hello Mike,
what result do you get if you save the result of the query as an xml
file and transform the result in a second step with syxon and
your xslt? Which step generates the error?
MarkusOn 9/14/05, Mike Holt [EMAIL PROTECTED] wrote:
Hi Derek, thanks for the suggestion but no, the problem
Johannes Becker wrote:
Hi,
this might not be the right list, but since it involves cocoon, maybe
someone could answer my question.
My application is similar to the CHS (Cocoon Hibernate Spring)-Petstore
from Ugo.
In university we learned about the n-tier architecture. So now I'm
trying
Hi,
I don't use xsp and I don't known what you have in their API, but you can
try to do a lookup like this:
o.a.c.c.CocoonComponentManager.getSitemapComponentManager().lookup(ContextManager.ROLE);
probably it isn't the best way, but just try it.
Bye,
Daniele
--
The box said Requires Windows
My 2c is that I agree with Johannes - he puts it more
elegantly than I could ! - for Presentation Layer you
could also add in JXTemplates and XSLT...
[EMAIL PROTECTED] 2005/09/14 03:54:21 PM
Johannes Becker wrote:
Hi,
this might not be the right list, but since it involves cocoon, maybe
Hi Markus, the processing fails during the retrieval step from the
database - there are no apparent errors in my source or stylesheet. If I
place the SQL transformer after the Trax transformer in the pipeline, I
get the literal text of the query.
At 14:49 14/09/2005, Markus Vaterlaus wrote:
Hi,
thanks for the answers.
add in JXTemplates and XSLT
Thanks for the hint. I'll add them
So what I understood is, that Flow is present in both layers: Presentation and
Control Layer?
Is the Sitemap also both (since it has a navigating-function in the
presentation layer)? My answer would
Hi,
thanks for the answers.
add in JXTemplates and XSLT
Thanks for the hint. I'll add them
So what I understood is, that Flow is present in both layers: Presentation
and Control Layer?
I'm not sure how you'd consider Flow being presentation. It seems pretty
clearly in the control
I think you are mixing paradigms.
In MVC terms (Model - View - Controller) you have:
Model: Business logic which includes the domain model (the data layer is
simply the persistent representation of your domain model)
View: The pipelines defined in your sitemap that take whatever data is
fed to
When first using CForms within Javaflow, I created a
big if...then...else statement for insantiating the
form, adding validators and the correct bean depending
on the particular form.
I then decided that I didn't like the big, ugly
if...then...else statement in my flow so I conceived a
way to do
I've just begun using Yourkit with Cocoon , following your suggestion, but
as i'm a newbie on this i'm having trouble understanding the results i'm
getting.
I would like to check 2 things if possible:
1st - what is the cpu/memory usage on generating PDF/RTF files ?
2nd - does the cpu/memory
You can instantiate and manipulate Form objects wherever you want.
However, my experience is that you must show them from a class that
extends AbstractContinuable which was loaded by the ContinuationClassLoader.
Ralph
footh wrote:
When first using CForms within Javaflow, I created a
big
In my form definition, I have added a macro as follows:
jx:macro name=form-widget-value
targetNamespace=http://apache.org/cocoon/forms/1.0#template;
jx:parameter name=id/
span${cformsHelper.getWidget(widget,id).getValue()}/span
/jx:macro
The JX generator properly executes the macro,
Hi,
Thanks again for the answers and opinions.
I guess it depends on how you define the presentation layer
That's the point of confusion. What I learned at university, and this
mustn't be right of course:
Presentation layer consists of
a) the presentation
b) dialog control
So my opinion is
Hi,
I think you are mixing paradigms
This is (probably) the case.
Now in terms of layers or tiers you typically have: ...
This explanation was very, very helpful. Makes things a lot clearer to
me. (And I somehow can stick to my layer-architecture that I'm already
writing about in my work
It should be easier if you think in Cocoon as framework that implements
the pyramid model of web contracts as stated in Cocoon developer's
Handbook by Lazlo Moczar and also on
http://cocoon.apache.org/2.1/introduction.html
The idea of confining cocoon with a 3/4-tier architecture is probably
Thanks for the reply.
I guess that makes sense. I was wondering, is there a
lot of overhead to loading a bunch of
AbstractContinuable classes via the
ContinuationClassLoader? If so, I might just do it
once, or not at all and stick with the
if...then...else.
--- Ralph Goers [EMAIL PROTECTED]
Mike
Sorry, I am not familiar with XSLT2.0 - can this be handled by Saxon8?
Do you have the same problem if you remove the 2.0 specific functions
from the stylesheets?
Derek
[EMAIL PROTECTED] 2005/09/14 02:52:35 PM
Hi Derek, thanks for the suggestion but no, the problem is not with the XSP
footh wrote:
Thanks for the reply.
I guess that makes sense. I was wondering, is there a
lot of overhead to loading a bunch of
AbstractContinuable classes via the
ContinuationClassLoader? If so, I might just do it
once, or not at all and stick with the
if...then...else.
You are planning
Hi,
I am working on a small CForm application and have
run into a problem.
I have two forms. The first shows a list of news-headlines.
Each news-entry has an id, which is available as a standard cforms widget. I
dont want to output the id but want to use it to open a popup showing
the
Use an
JXpath _expression_ like:
${form.lookupWidget("someWidget").getValue()}
or...
${someWidget.getValue()}
See if
that helps.
From: Christofer Dutz [mailto:[EMAIL PROTECTED]
Sent: Wednesday, September 14, 2005 3:07 PMTo:
users@cocoon.apache.orgSubject: Accessing widget-content for
Ah, I see where you're getting at. Create another
javaflow, register it in the sitemap and let cocoon
take care of it.
I may end up doing that and moving the form code over
to a separate class, but I really don't see much
improvement over simply relocating the big
if...then...else.
The way I
footh wrote:
Ah, I see where you're getting at. Create another
javaflow, register it in the sitemap and let cocoon
take care of it.
I'm pretty sure it is even simpler than that. If your Javaflow class
references another class that also extends AbstractContinuable it will
also be able to
Il giorno 14/set/05, alle 16:51, Johannes Becker ha scritto:
Ugo wrote in his presentation at the ApacheCon about a service layer.
Which layer (from the ones above) does this match?
Well, I haven't been looking at the CHS code for a while, but I seem to
remember there's a PetstoreService
We use the
org.apache.cocoon.transformation.IncludeTransformer class from the scratchpad
blockin Cocoon 2.1.6. We've just downloaded 2.1.7 and discovered that the
scratchpad block is not part of the release.
I understand why
this has been done, but I would like to request that this class
While this worked, the rule syntax turned out to be
very unintuitive so
we have dropped that approach. Since then we have
defined an XML syntax
that is similar in some respects to JSF navigation
rules, but it also
includes definitions of the actions to perform. In
my infinite spare
35 matches
Mail list logo