Hi,
I'm need to iterate over a map and have access to both the keys and
values. I was hoping for something like like:
jx2:forEach items=${pages} var=p
page key=${p.key} value=${p.value}/
This doesn't work. What I've found is that the variable p actually
has the value in it.
jx2:forEach items=${pages.entrySet()} var=p
On 2/14/06, Ben Anderson [EMAIL PROTECTED] wrote:
Hi,
I'm need to iterate over a map and have access to both the keys and
values. I was hoping for something like like:
jx2:forEach items=${pages} var=p
page key=${p.key} value
Hi,
I'm messing with using global variables in my flow files and am
observing that these variables get stuffed in the session. Is there a
way to set these in the request instead?
Thanks,
Ben
-
To unsubscribe, e-mail: [EMAIL
Hi,
I believe I have one of the exceptional cases where I need to use the
xsl:test element with disable-output-escaping=yes. Here's my
dilemma:
xsl:for-each ...
xsl:variable name=pos select=position()/
xsl:variable name=cellContent
!-- some snazzy html --
xsl:copy-of select=. /
/td
td
xsl:copy-of select=../list[position() = ($pos + 1)] /
/td
/tr
/xsl:if
/xsl:for-each
- Joose
Ben Anderson kirjoitti 6.1.2006 kello 16:33:
Hi,
I believe I have one of the exceptional cases where I need to use the
xsl:test element with disable-output
Hi,
I'm running into a problem with using a datasource in websphere.
Previously I've used what I thought to be the same configuration on a
different box and it worked fine. I'm using the sqltransformer.
Here's my stacktrace:
ERROR 2005-12-07 12:16:28,050 [Servlet.Engine.Transports : 9]
Hi,
I'm using xhr and would like to get the response as a dom document.
The responseText property is there, but the responseXML property is
null. I believe the problem is that the response isn't valid xml.
What's the best approach to this? Currently I'm using the HTML
Serializer which does
Hi,
Has anyone had this problem before? It's happening in the
jxtemplategenerator (see full browser output below). I'm just trying
to create my own example following the dream team example, which is
running fine on the same machine. I'm using BRANCH_2_1_X.
If I comment out this line:
finally got around to installing it - looks good!On 10/27/05, Sylvain Wallez [EMAIL PROTECTED] wrote:
Bruno Dumon wrote: In the _javascript_ validation (or in any validation for that matter), if
you return false, you should also set a validation error on the widget to which the validator belongs,
Hi,
So I was trying to put _javascript_ validation right into my form
definition, but ran into some funkiness (at least from my perspective).
First of all I realized that putting the _javascript_ in a field doesn't invalidate the form:
Here's my form definition:
fd:validation
fd:_javascript_
Hi,
I'm converting some flowscript to javaflow and can't seem to figure
something out. I have this in my sitemap:
map:match type=request-parameter pattern=continuation-id
map:call continuation={1}
map:parameter name=cssDir value={global:cssDir}/
map:parameter
Hi,
I'm trying to do my first javaflow, but getting this exception. It
doesn't make much sense to me. I've got this in my sitemap:
map:flow language=java
map:script src=com.dotech.cocoon.flow.MyFlow/
/map:flow
and this is from my class:
public class MyFlow extends AbstractContinuable {
Hi,
I converted my flowscript code to javaflow. I'm curious about my form
definitions where I have validation in javascript. For instance I had
this:
fd:form xmlns:fd=http://apache.org/cocoon/forms/1.0#definition;
fd:widgets
fd:field id=raSearch
fd:labelRA# Search:/fd:label
got rid of the exception. I haven't yet figured out
why this should be a problem, but suspect it has to do with the magic
Cocoon performs on your class to make it work with continuations.
Regards
Steinar Jonsson
On Tuesday 05 July 2005 19:44, Ben Anderson wrote:
Hi,
I'm trying to do
Hi,
So I was cruising along with cocoon on websphere, when I came crashing
down. We have deployed it on 2 servers now. The first one worked
fine. Now, this next one is erroring when it tries to use flow.
Unfortunatly, I can no longer access the first server that it worked
on. I've googled and
Hi,
I need to hit the database from outside of cocoon, but within the same
webapp. I would like to share the same datasource. My first thought
was to follow this example:
http://cocoon.apache.org/2.1/developing/datasources.html
which is to implement the Composable interface. However, I'm not
Hi,
Does anyone know what might be causing this? I get the exception
trying to access any url in my entire cocoon app. This happened to me
yesterday and then went away from some reason. But now it's back.
Googling and searching the archives didn't prove much help.
Thanks,
Ben
doh! I had a third party copying an older version of rhino into the
web-inf/lib.
On 6/7/05, Ben Anderson [EMAIL PROTECTED] wrote:
Hi,
Does anyone know what might be causing this? I get the exception
trying to access any url in my entire cocoon app. This happened to me
yesterday
this in it:
org.apache.commons.logging.Logfactory=org.apache.commons.logging.impl.LogFactoryImpl
I don't know what this all means and it seems a darn sight more
complicated than setting it up on Tomcat but once its going, its fine.
Hope this helps.
Regards,
Tony
Ben Anderson wrote:
Hi,
Just curious
Hi,
Just curious if anyone has successfully deployed cocoon on websphere
5. My initial attempt failed. Before I delve into all the possible
problems, I'm wondering if anyone can throw out some
tips/tricks/stumbing blocks I may encounter.
Thanks much,
Ben
Hi,
I'm wodering if there are any concerns about using saxon8 in
production? Does saxon go through the same qa process in cocoon that
xalan does? Can anyone comment on the validity of using saxon in
production? What risks might it entail?
Thanks,
Ben
if the field is disabled, then it isn't validated - go figure.
I am correct in this assumption, right?
Is there any way to specify that I want a field to be validated even
if it's disabled?
Thanks,
Ben
-
To unsubscribe, e-mail:
continuation={request-param:continuation-id}/
/map:match
Adam
Ben Anderson wrote:
Hi,
I've been battling this problem for a while and I'm not sure what I'm
missing. I need to validate my form to make sure the required values
are present, so in my form definition I have something like
You can also have a look at the
org.apache.cocoon.components.flow.util.PipelineUtil class. It's a
generalization of cocoon.processPipelineTo not only for streams, but
also DOM and SAX handlers.
This is working nicely. Thanks for the help, Sylvain.
Hi,
I have one text field which, once changed, will populate 2 drop down
lists. However, the 2nd drop down is dependent on the 1st drop down.
So, I have this in my text field's definition
fd:on-value-changed
javascript
...
// this populates the 1st drop down
ok, I won't use broadcastEvent()...
Is there a way to specify a default value for the selection-list
throught the pipeline specified? For instance my pipeline could
return something like:
fd:selection-list default=1
fd:item value=1
fd:labelfoo/fd:label
/fd:item
fd:item value=2
Hi,
What's the easiest way to post xml? Right now I'm using the jakarta
common's httpclient api. It looks like maybe the cinclude transformer
might do it, but I can't nail down exactly how. I see that you can
post parameters as key/value pairs, but that's not what we want. If
the cinclude
:33 -0600, Lars Huttar [EMAIL PROTECTED] wrote:
Ben Anderson wrote:
Hi,
What's the easiest way to post xml? Right now I'm using the jakarta
common's httpclient api. It looks like maybe the cinclude transformer
might do it, but I can't nail down exactly how. I see that you can
post
Hi,
what's the best way to get the
org.apache.cocoon.environment.Context in flow? I'd like to call the
method getResourceAsStream() which I don't see as a method in any of
the objects already in flow's scope.
Thanks,
Ben
-
To
Hi,
I'm writing a custom transformer which extends AbstractSaxTransformer
(which I think is irrelevant to my question). I think my question is
geared more towards sax or perhaps xerces, but hopefully someone can
help...
public void endTransformingElement( String uri,
beautiful - thanks!
On Wed, 9 Mar 2005 15:00:18 +1300, Conal Tuohy [EMAIL PROTECTED] wrote:
Ben Anderson wrote:
public void endTransformingElement( String uri,
String name,
String raw
that we could
store the XMLBean as an attribute that implements XMLizable. You can
then use the xmodule to generate directly from that object.
Irv
Ben Anderson wrote:
Hi,
I'd like to take the state of my current pipeline and populate an
xmlbean from this in the flowscript
Hi,
I'd like to take the state of my current pipeline and populate an
xmlbean from this in the flowscript. Is this something that's already
easy to do? Here's what I'd like to do:
map:match pattern=somePattern*
map:generate type=request/
map:transform src=someXsl.xsl
Looking in the XQueryGenerator
code, it would be fairly trivial to automatically pass all request
parameters to exist.
I found this to be necessary for request parameters with multiple
values, ie /someUri?status=completestatus=waiting
I just inserted the following code at the end of the
. Looking in the XQueryGenerator
code, it would be fairly trivial to automatically pass all request
parameters to exist.
It talks about it here:
http://wiki.exist-db.org/space/Running
Irv
On Tue, 22 Feb 2005 18:14:03 -0500, Ben Anderson
[EMAIL PROTECTED] wrote:
Hi,
I'd like to use
This is kind of a jetty question, but hopefully fit for this list.
I'm intereseted in authenticating using the embedded jetty server
distributed w/ cocoon. I got authentication working, but only for the
user admin. I can't seem to find where the users/passwords are set so
that I can add a new
I think you just need to add end the sql:execute-query tag and restart
it again...
?xml version=1.0 encoding=ISO-8859-1?
result xmlns:sql=http://apache.org/cocoon/SQL/2.0;
sql:execute-query
sql:query name=personSELECT lastname FROM person WHERE
id=123/sql:query
/sql:execute-query
The verdict - enhydra shark rules! If you're looking into workflow -
definitely check out shark.
-Ben
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
we've actually been evaluating open source workflow engines. I
focused on osworkflow for a while and was rather indifferent about it
and have now (just the last day) started investigating enhydra shark.
So far, it seems to be the best, but I haven't played with it too much
yet.
-Ben
On Wed, 12
Oliver,
Thanks for the input...
van der Aalst?
actually I've got his paper open right now, but haven't finished it yet.
there is *NO* standard BPM language
My jury is still out on this (xpdl)... I haven't made my yet through
the entire spec yet.
Did you consider this in your search, or do
Hi,
I've written a custom action like this:
public class RedirectorAction extends AbstractAction {
public Map act( Redirector redirector,
SourceResolver resolver,
Map objectModel,
String source,
Parameters
Hi,
I'm trying to use ScriptAction documented here:
http://cocoon.apache.org/2.1/userdocs/actions/script-action.html
but it's not working right. Is anyone using this or know if it works?
I'd like to be able to write actions w/out the need to recompile
everytime. The documentation doesn't say
Hi,
I'm looking at this example:
http://localhost:/samples/blocks/forms/form1
which uses a custom action to assign an initial value to a date field.
My problem is a little different as I need to query our database to
assign an initial value. I'd like to use the SQLTransformer to do
this as
Hi,
I'd like to get at this object from the flowscript so that I can call
the method - getRealPath(), so I can delete a file. However, it looks
the the objects in scope are the javax.servlet.* objects, which don't
allow me to do this. Is there a way to get at this object - perhaps
it's set in
Hi,
Does anyone have an elegant solution for overriding the default
stylesheets. Basically I don't want to modify the sample stylesheets,
because I still want to these to be used as is for most of my forms.
I want to be able to specify somehow that the xsl can be overridden,
but isn't by
yeah - actually if I just change my example from xsl:import to
xsl:include - it works fine... wonder why the import doesn't work.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
even better - thanks!
map:match type=request-parameter pattern=continuation-id
map:call continuation={1}/
/map:match
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
to validate that it is a number):
fd:field id=age
fd:labelYour age:/fd:label
fd:datatype base=long/
fd:validation
fd:range min=0 max=150/
/fd:validation
/fd:field
-Ben
On Sat, 18 Dec 2004 12:56:54 +0100, oceatoon [EMAIL PROTECTED] wrote:
Ben Anderson wrote
Does cocoon have the ability to generate javascript validation for me?
I thought it did, but I can't the documentation anywhere and don't
see anything in the samples.
Thanks,
Ben
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For
Hi,
I'm trying to use the ft:continuation-id/ which seems to be working
fine, but what I don't understand is the sitemap part. For instance I
had been using this:
map:match pattern=forms/task/*.continue
map:call continuation={1}/
/map:match
which was cool when the url
found it in the examples. its easy enough.
map:select type=request-method
map:when test=POST
map:call continuation={request-param:continuation-id}/
...
On Fri, 17 Dec 2004 12:14:52 -0500, Ben Anderson
[EMAIL PROTECTED] wrote:
Hi,
I'm trying to use the ft:continuation-id
I just want to set a field in a form before I display it. I'm
assuming I can set a default value in the form definition, but I was
trying to set it explicity in my flow script.
simple form definition
fd:field id=documentName required=true
fd:labelDocument
Hi,
I'm trying to use the RequestParamAction, but when I do so, it blocks
use of my normal {1} variable? Is there a way around this? Below is
my sitemap excerpt. The first {1} works fine, but the second one does
not. Is there a way to get at the {1} variable inside from within
this map:act?
53 matches
Mail list logo