jx:forEach items=${[java.util.Map]}

2006-02-14 Thread Ben Anderson
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.

Re: jx:forEach items=${[java.util.Map]} [SOLVED]

2006-02-14 Thread Ben Anderson
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

global javascript variables in flow

2006-01-09 Thread Ben Anderson
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

disable-output-escaping htmlserializer

2006-01-06 Thread Ben Anderson
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 --

Re: disable-output-escaping htmlserializer

2006-01-06 Thread Ben Anderson
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

websphere oracle datasource

2005-12-07 Thread Ben Anderson
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]

valid xml serializer

2005-11-29 Thread Ben Anderson
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

bu:replace must include a single child element and no text.

2005-11-02 Thread Ben Anderson
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:

Re: fd:validationfd:javascript

2005-10-28 Thread Ben Anderson
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,

fd:validationfd:javascript

2005-10-26 Thread Ben Anderson
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_

javaflow map:parameter

2005-07-05 Thread Ben Anderson
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

javaflow exception

2005-07-05 Thread Ben Anderson
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 {

javaflow fd:validation

2005-07-05 Thread Ben Anderson
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

Re: javaflow exception

2005-07-05 Thread Ben Anderson
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

ws5.1 cocoon2.1.6

2005-07-01 Thread Ben Anderson
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

static method to get a component?

2005-06-09 Thread Ben Anderson
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

Continuation is not defined.

2005-06-07 Thread Ben Anderson
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

[SOLVED] Re: Continuation is not defined.

2005-06-07 Thread Ben Anderson
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

Re: cocoon on websphere 5

2005-06-03 Thread Ben Anderson
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

cocoon on websphere 5

2005-05-19 Thread Ben Anderson
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

saxon in production?

2005-05-13 Thread Ben Anderson
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

Re: [Forms] validation mystery

2005-04-12 Thread Ben Anderson
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:

Re: [Forms] validation mystery

2005-04-11 Thread Ben Anderson
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

Re: [Forms] broadcastEvent

2005-04-06 Thread Ben Anderson
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.

[Forms] broadcastEvent

2005-04-05 Thread Ben Anderson
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

Re: [Forms] broadcastEvent

2005-04-05 Thread Ben Anderson
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

posting xml

2005-03-25 Thread Ben Anderson
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

Re: posting xml

2005-03-25 Thread Ben Anderson
: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

org.apache.cocoon.environment.Context in flow

2005-03-11 Thread Ben Anderson
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

custom transformer

2005-03-08 Thread Ben Anderson
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,

Re: custom transformer

2005-03-08 Thread Ben Anderson
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

Re: populate xmlbean in flow w/ pipeline

2005-03-05 Thread Ben Anderson
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

populate xmlbean in flow w/ pipeline

2005-03-04 Thread Ben Anderson
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

Re: [eXist-open] $request using xmlrpc?

2005-02-28 Thread Ben Anderson
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

Re: [eXist-open] $request using xmlrpc?

2005-02-27 Thread Ben Anderson
. 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

jetty authentication

2005-02-02 Thread Ben Anderson
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

Re: Big Problems with the SQL-Transformator

2005-01-28 Thread Ben Anderson
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

Re: Business-Process-Management with Cocoon?

2005-01-14 Thread Ben Anderson
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]

Re: Business-Process-Management with Cocoon?

2005-01-13 Thread Ben Anderson
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

Re: Business-Process-Management with Cocoon?

2005-01-13 Thread Ben Anderson
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

Redirector

2005-01-06 Thread Ben Anderson
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

ScriptAction

2005-01-06 Thread Ben Anderson
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

dynamic initial form values

2005-01-04 Thread Ben Anderson
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

org.apache.cocoon.environment.Context from flowscript

2004-12-29 Thread Ben Anderson
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

[FORMS] overriding default stylesheets

2004-12-24 Thread Ben Anderson
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

Re: [FORMS] overriding default stylesheets

2004-12-24 Thread Ben Anderson
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]

Re: ft:continuation-id/

2004-12-23 Thread Ben Anderson
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]

Re: javascript validation

2004-12-20 Thread Ben Anderson
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

javascript validation

2004-12-17 Thread Ben Anderson
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

ft:continuation-id/

2004-12-17 Thread Ben Anderson
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

Re: ft:continuation-id/

2004-12-17 Thread Ben Anderson
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

forms newbie

2004-12-16 Thread Ben Anderson
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

act: hiding {1}

2004-12-15 Thread Ben Anderson
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?