RE: Cocoon 2.1.9 and Saxon 9.6

2016-05-06 Thread Gary Larsen
It works if I install the app on a folder path without spaces. If that’s the limitation I can live with that, but would like to figure out a solution. Gary Larsen Envisn Inc. 508 259-6465 From: Francesco Chicchiriccò [mailto:ilgro...@apache.org] Sent: Friday, May 06, 2016 7:26 AM

RE: Cocoon 2.1.9 and Saxon 9.6

2016-05-06 Thread Gary Larsen
Thanks. Was trying to avoid adding a jar. I’m guessing it would look something like this: URI(source.getURI()).toASCIIString() Gary Larsen Envisn Inc. 508 259-6465 From: Francesco Chicchiriccò [mailto:ilgro...@apache.org] Sent: Friday, May 06, 2016 7:02 AM To: users

RE: Cocoon 2.1.9 and Saxon 9.6

2016-05-06 Thread Gary Larsen
icchiriccò [mailto:ilgro...@apache.org] Sent: Friday, May 06, 2016 2:51 AM To: users@cocoon.apache.org Subject: Re: Cocoon 2.1.9 and Saxon 9.6 On 05/05/2016 18:49, Gary Larsen wrote: Hi, In order to support JDK 8 it was necessary to update to SaxonHE 9. (can’t remember exactly why right no

Cocoon 2.1.9 and Saxon 9.6

2016-05-05 Thread Gary Larsen
Hi, In order to support JDK 8 it was necessary to update to SaxonHE 9. (can't remember exactly why right now) New problem is that when the Cocoon app is installed on a path with spaces (say 'a-test 2') there's a new exception: net.sf.saxon.trans.XPathException: Invalid URI for

RE: hiding a multiselect field widget

2013-10-16 Thread Gary Larsen
Hi Paul, I'm using 2.1.7. You may need to add a template to forms-advanced-field-styling.xsl. There is something for fi:field in forms-field-styling.xsl: xsl:template match=fi:field[fi:styling/@type='hidden'] priority=2 input type=hidden name={@id} id={@id} value={fi:value}

RE: ok/cancel prompt followed by submit?

2012-05-30 Thread Gary Larsen
Hi Paul What I've done is have the delete button action make visible a group where the real delete button lives, along with a cancel button which will make the group invisible again. Some YUI stuff does the popup with background disabled. Gary -Original Message- From: Paul Joseph

RE: where controlled from?

2011-11-17 Thread Gary Larsen
I never did find that. Thanks! -Original Message- From: Paul Joseph [mailto:pjos...@gmail.com] Sent: Thursday, November 17, 2011 9:59 AM To: Gary Larsen Cc: users@cocoon.apache.org Subject: Re: where controlled from? I found it was easy enough to change the exclamation to anything else

RE: where controlled from?

2011-11-16 Thread Gary Larsen
[using 2.1.9] I think the styling is buried in the cocoon-forms-block jar so if you locate the source you can change it there and recompile. Use Firebug to determine the CSS class used. What I ended up doing is make my own copies and modifications to the form XSL and included a CSS with the

RE: Enviroment missing in cron class?

2011-09-15 Thread Gary Larsen
Hi Alfred, This seems to be a problem with the generator that I was overlooking. Thanks for resetting my focus. gary - To unsubscribe, e-mail: users-unsubscr...@cocoon.apache.org For additional commands, e-mail:

Enviroment missing in cron class?

2011-09-14 Thread Gary Larsen
I'm attempting something new for me in Cocoon 2.1.9 and would appreciate some advice. Basically it's a cron class which not seem to have complete access to the Cocoon environment. The class extends ServiceableCronJob and runs this code to execute the pipeline request:

RE: Enviroment missing in cron class?

2011-09-14 Thread Gary Larsen
== null here when exception } You have to propagate exception out of setup / generate. Otherwise the container try to recycle and returns it to the component pool. HTH, Alfred. From: Gary Larsen [mailto:gary.lar...@envisn.com] Sent: Mittwoch, 14. September 2011 21:23 To: users@cocoon.apache.org

RE: Validator ?s

2010-02-18 Thread Gary Larsen
Hi Jeff, I think the error condition needs to be set in the validator: ((ValidationErrorAware)widget).setValidationError(new ValidationError(date_selection_error, true)); Hope that's what you're looking for. There are a few constructors - this one uses i18n. gary -Original Message-

Help stopping cron job during tomcat shutdown

2009-11-18 Thread Gary Larsen
Thanks for any help with this. I'm currently running version 2.1.7. I've been unable to get a running Cron job to be interrupted after the Tomcat shutdown has been initiated. I can see from the cocoon.log that the QuartzScheduler is catching the interruption after the shutdown-wait-time-ms:

RE: Help stopping cron job during tomcat shutdown

2009-11-18 Thread Gary Larsen
, daemon, schedExpr.toString(), false); _ From: Gary Larsen [mailto:gary.lar...@envisn.com] Sent: Wednesday, November 18, 2009 10:36 AM To: users@cocoon.apache.org Subject: Help stopping cron job during

Form level validation 2.1.9

2009-08-14 Thread Gary Larsen
Hi, I am trying to implement validation on a form to make sure a repeater has at least one row. I can do this by adding a field with that check, but the field has to be active and visible. Is there a way to hide a field and still have validation? Thanks for any advice! gary

Logging of java.net.SocketException (2.1.9)

2009-08-01 Thread Gary Larsen
Hi, If a user clicks a link in the cocoon app and then clicks another link before for first is displayed, an error shows up in the log: ERROR [http-8080-Processor20] sitemap.handled-errors 2009-08-01 07:50:11,484 - Failed to process pipeline at [DynamicError] -

RE: CForms 2.1 javascript validation not working

2009-07-18 Thread Gary Larsen
) { form.save(my-data); ... } Barbara On 11 Jul, 2009, at 2:42 pm, Gary Larsen wrote: Hi, For some reason javascript validation stopped working on all forms (2.1.9): fd:validation fd:javascript cocoon.log.error(test validation: return false

CForms 2.1 javascript validation not working

2009-07-11 Thread Gary Larsen
Hi, For some reason javascript validation stopped working on all forms (2.1.9): fd:validation fd:javascript cocoon.log.error(test validation: return false); return false; /fd:javascript /fd:validation The

RE: Cocoon 2.2 XQueryGenerator support ?

2009-06-30 Thread Gary Larsen
Hi, Are you sure you have exist-optional.jar in the lib folder? gary -Original Message- From: Tomek Piechowicz [mailto:tomasz.piechow...@gmail.com] Sent: Tuesday, June 30, 2009 12:39 PM To: users@cocoon.apache.org Subject: Cocoon 2.2 XQueryGenerator support ? Hi.

CForms - disable on-value-changed while inside ValueChangedListener

2009-02-09 Thread Gary Larsen
Hi, I need to avoid triggering additional value-changed events while processing inside of a ValueChangedListener. Since I'm setting values of other widgets on the form in the listener, those events are causing a cascade effect. While in the ValueChangedListener, is there a way to keep

RE: CForms - disable on-value-changed while inside ValueChangedListener

2009-02-09 Thread Gary Larsen
); /fd:javascript /fd:on-value-changed Maybe there is a method to empty the event queue? gary _ From: Gary Larsen [mailto:gary.lar...@envisn.com] Sent: Monday, February 09, 2009 10:36 AM To: users@cocoon.apache.org Subject: CForms - disable on-value-changed while

RE: Cocoon 2.1.8 Forms + AJAX : Final call for help!

2009-01-19 Thread Gary Larsen
...@onehippo.com, Jeroen Reijn j.re...@onehippo.com wrote: Hi Gary, you probably mean in the cocoon-ajax-block.jar? Regards, Jeroen Gary Larsen wrote: Hi Derek, It's been a while since I got ajax working (2.1.9) so I'm not sure if this will help. (and I haven't read the thread) The ajax

RE: Cocoon 2.1.8 Forms + AJAX : Final call for help!

2009-01-16 Thread Gary Larsen
Hi Derek, It's been a while since I got ajax working (2.1.9) so I'm not sure if this will help. (and I haven't read the thread) The ajax resources are in the cocoon-axis-block.jar. map:match pattern=resources/*/** map:read src=resource://org/apache/cocoon/{1}/resources/{2}/

RE: Cocoon 2.1.8 Forms + AJAX : Final call for help!

2009-01-16 Thread Gary Larsen
you probably mean in the cocoon-ajax-block.jar? Oops, you're correct. Are you using the (external) matcher to get at the resources? Perhaps this changed between versions. gary map:match pattern=resources/*/** map:read src=resource://org/apache/cocoon/{1}/resources/{2}/

RE: CForm Get all Widgets

2008-11-21 Thread Gary Larsen
Thanks Grzegorz, I can't believe I didn't see that! (new glasses even) gary Hi Gary, Take a look at WidgetEvent[1], from there you can obtain original widget. Once you have a widget, you can obtain a Form using getForm() and from there you call getChildren(). HTH. [1]

CForm Get all Widgets

2008-11-20 Thread Gary Larsen
Hi Gurus, I'm creating a form definition dynamically and have set up a Java ValueChangedListener on all the Widgets. My problem if that I need to iterate though all the widgets on the form in the listener. Since the form is dynamic I do not know the widget names. I could not find any

RE: length to fi:styling maxlength

2008-10-29 Thread Gary Larsen
Try fd:length validator: fd:length min=2 max=4/ http://cocoon.apache.org/2.1/userdocs/widgetconcepts/validation.html gary -Original Message- From: Christian Decker [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 29, 2008 2:40 PM To: users@cocoon.apache.org Subject:

RE: length to fi:styling maxlength

2008-10-29 Thread Gary Larsen
imposed by the validation model. Any better idea? Regards, Chris Gary Larsen wrote: Try fd:length validator: fd:length min=2 max=4/ http://cocoon.apache.org/2.1/userdocs/widgetconcepts/validation.html gary -- View this message in context: http://www.nabble.com/fd

RE: flowscript and multiple submit button

2008-09-24 Thread Gary Larsen
Hi Jeff, I use something like this: form.showForm(form/myform); if (null == form.submitId || form.submitId.equals(cancelButton)) { gary -Original Message- From: Jeff Schmitz [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 24, 2008 1:39 PM To: users@cocoon.apache.org

Selection list from multivaluefield

2008-08-04 Thread Gary Larsen
Hi All, Is it possible to set a selection list from a multivaluefield definition on the same form? The multivaluefield definition would use binding (direction=load) to move the values into the form. Currently I'm using 2.1.9. Thanks! gary attachment:

RE: I18N Transformer keeping namespace declarations

2008-07-30 Thread Gary Larsen
Hi Jasha, I found a version in 2.1.11 which I copied to my 2.1.9 application. Thanks! gary What abut the StripNameSpacesTransformer [1]? [1] http://cocoon.apache.org/2.2/core-modules/core/2.2/1340_1_1.html Jasha -

I18N Transformer keeping namespace declarations

2008-07-29 Thread Gary Larsen
Hi, Before executing the I18NTransformer in the pipeline the xml contains the i18n tags each with a namespace declaration. td class=dataCell width=20% i18n:text xmlns:i18n=http://apache.org/cocoon/i18n/2.1;administration_2_brief/i18n: text /td The namespace declarations are being

Accessing Cocoon context from class (2.1)

2008-07-21 Thread Gary Larsen
I'm running Cocoon 2.1.9. Could someone tell me how to access the Cocoon context from a class? I've built generators which have the ObjectModel passed to it, but in this case the class is isolated (it also implements HttpSessionBindingListener). Does this class need to implement an

Change widget label in action listener

2008-07-17 Thread Gary Larsen
I'm trying to change the label on an Action widget as part of the action. There does not seem to be a 'label' member or Widget so I guessed it would be an attribute, but these do not work: widget.setAttribute(label, new I18nMessage(text));

RE: Change widget label in action listener

2008-07-17 Thread Gary Larsen
I'm using Cocoon 2.1.9 _ From: Gary Larsen [mailto:[EMAIL PROTECTED] Sent: Thursday, July 17, 2008 10:52 AM To: users@cocoon.apache.org Subject: Change widget label in action listener I'm trying to change the label on an Action widget as part of the action. There does not seem

RE: Change widget label in action listener

2008-07-17 Thread Gary Larsen
reverse engineered this approach from the Cocoon 2.1.10 source and haven't tired it . would be very interested if it worked though ;) Chris Von: Gary Larsen [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 17. Juli 2008 17:28 An: users@cocoon.apache.org Betreff: RE: Change widget label

RE: Ajax form global validation

2008-05-22 Thread Gary Larsen
Hi, I don't completely understand the details but from what I've read here this type of form validation is not possible with ajax enabled. http://markmail.org/message/2loa7qecgc6d33yd gary -Original Message- From: DAVIGNON Andre - CETE NP/DIODé/PANDOC [mailto:[EMAIL PROTECTED]

RE: [Exist-open] Startup problem with cocoon 2.2 and embedded Exist1.1.1

2008-03-14 Thread Gary Larsen
Hi Marc, I've run into similar symptoms with eXist and Cocoon 2.1, usually when upgrading the eXist version (no logs or messages - just db not running). One time for me it was a jar compatibility problem where rolling back log4j-1.2.15.jar to log4j-1.2.14.jar in the eXist build fixed it. I

Sendmail Action return parameters

2008-02-22 Thread Gary Larsen
Hi - using 2.1.9 currently. I'm having a problem understanding how to process return parameters from an action. The goal is to create a notification when a Sendmail action fails. According to the docs: The following is the list of parameters which are passed from Sendmail action back

Get ServiceManager in form event handler

2008-02-07 Thread Gary Larsen
Hi, I'm trying to add a 'Test Mail' button on a form to check the configuration settings - smtp server, user, etc. I can send mail from other parts of the application using: resolver = (SourceResolver) manager.lookup(SourceResolver.ROLE); src =

RE: Run Action from Java?

2008-02-05 Thread Gary Larsen
I posted to early. Looking at TestCronJob.java is helping me out. Thanks for pointing me in the right direction. gary Hi Karen, Thanks for your response. I've attempted to do more research but I'm still having a problem understanding Cocoon components.

RE: Run Action from Java?

2008-02-05 Thread Gary Larsen
Hi Karen, Thanks for your response. I've attempted to do more research but I'm still having a problem understanding Cocoon components. Here is the component that gets executed by CocoonQuartzJobScheduler: component role=com.envisn.nv.config.ConfigurationManager

Run Action from Java?

2008-02-04 Thread Gary Larsen
I'm running Cocoon 2.1.9. The application periodically runs some background processing with CocoonQuartzJobScheduler. I want to send an email at the end of processing and thought that a SendMail action would be the easiest solution. Can I run this Action from Java, or do something similar

RE: Problem integrating with websphere 6

2007-12-13 Thread Gary Larsen
Hi Stephane, I've had problems running (2.1.9) in Websphere also. Would you mind providing more details on your solution? Thanks, gary -Original Message- From: roro [mailto:[EMAIL PROTECTED] Sent: Thursday, December 13, 2007 10:32 AM To: users@cocoon.apache.org Subject: Re:

RE: Problem integrating with websphere 6

2007-12-13 Thread Gary Larsen
Thanks for the pointer! gary -Original Message- From: roro [mailto:[EMAIL PROTECTED] Sent: Thursday, December 13, 2007 11:26 AM To: users@cocoon.apache.org Subject: RE: Problem integrating with websphere 6 hello, the solution for this problem is to add a reference to

RE: Process multiple XML files

2007-10-26 Thread Gary Larsen
Sounds like something is preventing the streaming. I'd assume you have to revisit your XSLTs. I'm no expert here but I read somewhere that some XSL syntax, such as xsl:sort will prevent streaming. gary - To unsubscribe,

RE: CForms repeater with Ajax problem

2007-10-26 Thread Gary Larsen
and the action code too. Robin On 23 Oct 2007, at 15:10, Gary Larsen wrote: I'm using Cocoon 2.1.9. I have a repeater grid where each row contains a booleanfield to select a row. My problem is I only want one row selected at a time. Without Ajax the on-change event I created

RE: CForms repeater with Ajax problem

2007-10-26 Thread Gary Larsen
for our own puropose. table dojoType=CFormsRepeater class=list multiple=false select=select width=100% class=list and width=100% are is for Html/Css layout, it's optional ! multiple=false refers to CFormsRepeater new property On 10/26/07, Gary Larsen [EMAIL PROTECTED] wrote: Hi Michel, Thanks

RE: CForms event - display javascript confirm dialog?

2007-10-23 Thread Gary Larsen
in the past is to put the confirm dialog contents in a hidden ft:group/ and use custom styling to render it as a visible dojo dialog box. The event that should trigger the confirmation can simply set the ft:group/ to active. Cheers, Robin On 22 Oct 2007, at 22:33, Gary Larsen wrote

CForms repeater with Ajax problem

2007-10-23 Thread Gary Larsen
I'm using Cocoon 2.1.9. I have a repeater grid where each row contains a booleanfield to select a row. My problem is I only want one row selected at a time. Without Ajax the on-change event I created will successfully toggle off other rows when one is selected. With Ajax turned on it seems

RE: CForms event - display javascript confirm dialog?

2007-10-23 Thread Gary Larsen
the dialog appears within your HTML, especially if it appears within other elements which have 'position:absolute' . Hope this helps, Robin On 23 Oct 2007, at 15:01, Gary Larsen wrote: Hi Robin, Thanks for the advice. I hope you don't mind another question. Is it possible

RE: CForms repeater with Ajax problem

2007-10-23 Thread Gary Larsen
in a repeater where you are updating widgets in different rows. If this doesn't help maybe you could post the relevant parts of your form definition and template and the action code too. Robin On 23 Oct 2007, at 15:10, Gary Larsen wrote: I'm using Cocoon 2.1.9. I have a repeater grid where

CForms event - display javascript confirm dialog?

2007-10-22 Thread Gary Larsen
Is there an easy way to show a confirm dialog, like windows.confirm(), while processing an event in Cocoon Forms? Thanks for any help. gary

indented xml in CForms widget

2007-10-20 Thread Gary Larsen
I think this should be easy but I'm stuck. I have an action button on a Cocoon form that displays xml in a widget. What's the best way to display the xml with indenting? A string containing indented xml does not display indented in a textarea widget. Do I need to transform with xsl to

RE: indented xml in CForms widget

2007-10-20 Thread Gary Larsen
Never mind. Changing widget definition from fd:output to fd:field fixed the problem. gary _ From: Gary Larsen [mailto:[EMAIL PROTECTED] Sent: Saturday, October 20, 2007 9:08 AM To: users@cocoon.apache.org Subject: indented xml in CForms widget I think this should be easy

RE: Form binding problem

2007-07-17 Thread Gary Larsen
setupLogger(java.lang.Object object, java.lang.String string) { /* compiled code */ } protected void setupLogger(java.lang.Object object, org.apache.avalon.framework.logger.Logger logger) { /* compiled code */ } } Thanks, gary _ From: Gary Larsen [mailto:[EMAIL PROTECTED] Sent

Form binding problem

2007-07-16 Thread Gary Larsen
I'm still trying to get Cocoon 2.1.9 working in WebLogic. Now it's forms. Would anyone have a clue what may be cauing this exception when opening a form. I tried placing avalon-framework-impl-4.3.jar in the class path but that had no affect. I'm running with JDK 1.4. Thanks, gary Caused by:

RE: R: Convert to java flow?

2007-06-15 Thread Gary Larsen
-Original Message- From: Gary Larsen [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 13, 2007 8:43 PM To: users@cocoon.apache.org Subject: RE: R: Convert to java flow? Hi Joerg, Thanks for the info. I ended up rebuilding the Rhino jar with an altered package path. It's

RE: R: Convert to java flow?

2007-06-13 Thread Gary Larsen
Hi Joerg, Thanks for the info. I ended up rebuilding the Rhino jar with an altered package path. It's possible that WebLogic may have introduced the incompatibility here also. After I fixed the Cocoon dependency problem I ran into an Antlr compatibility with WebLogic and eXist. This may be

RE: Convert to java flow?

2007-06-05 Thread Gary Larsen
on weblogic 8.1 cocoon rhino package has been renamed from org.mozilla.rhino to org.nozilla.rhino version used has been rhino 1.5.4 branch, otherwise rhino 1.6.1 should work the same Leonardo -Messaggio originale- Da: Gary Larsen [EMAIL PROTECTED] [mailto:Gary Larsen [EMAIL PROTECTED

RE: Convert to java flow?

2007-06-05 Thread Gary Larsen
this can be found? http://cocoondev.org/main/117-cd/31-cd.html -Messaggio originale- Da: Gary Larsen [EMAIL PROTECTED] [mailto:Gary Larsen [EMAIL PROTECTED]] Inviato: martedì 5 giugno 2007 14.33 A: users@cocoon.apache.org Cc: [EMAIL PROTECTED] Oggetto: RE: Convert to java flow? Hi Leonardo

Convert to java flow?

2007-06-04 Thread Gary Larsen
I've never been able to get my Cocoon application running in BEA WebLogic, first with 2.1.7 and now with 2.1.9. I believe the only problem is the incompatibility of the Cocoon and WebLogic rhino*.jar implementations that has been discussed in this list before. I'm thinking a solution would be to

Ajax add-row problem in IE

2007-05-03 Thread Gary Larsen
Wondering if anyone has run into this problem. I'm using 2.1.9 and have a CForm with binding to edit an xml file in Ajax mode. If Firefox everything works great, but with Internet Explorer 6 the add-rows widget deletes all the rows in the repeater. Converting to non-ajax mode IE behaves

I18N and left brace

2007-05-02 Thread Gary Larsen
Hope this is not too far off topic. I have an annoying problem where a left brace { in a translation is doubled {{ after applying the i18n transformer. Is there an escape or something to prevent this? Thanks, gary

RE: I18N and left brace

2007-05-02 Thread Gary Larsen
/ -- -Original Message- From: Gary Larsen [mailto:[EMAIL PROTECTED] Posted At: woensdag 2 mei 2007 19:05 Posted To: Cocoon User List Conversation: I18N and left brace Subject: I18N and left brace Hope this is not too far off topic. I have an annoying

RE: I18N and left brace

2007-05-02 Thread Gary Larsen
What about {{? Believe it or not it translates to: {{?{{? What Cocoon version do you use? 2.1.9 I haven't looked at the transformer code yet. Maybe I'll find something. Thanks for the ideas! Gary Joerg On 02.05.2007 21:41, Gary Larsen wrote: Thanks Ard

RE: I18N and left brace

2007-05-02 Thread Gary Larsen
Hi Joerg, If there is really a problem, it is probably in ParamSaxBuffer as it does the replacement. Thanks for the pointer. I was able to add a test for \{ to bypass special processing between braces. (I guess the braces are for embedded xsl commands but not sure) The change seems to

RE: URL of servlet container

2007-04-09 Thread Gary Larsen
Hi Andrew, map:transform src=mypage.xsl map:parameter name=contextroot value={request:contextPath}/ /map:transform That makes sense. Thanks! gary - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

URL of servlet container

2007-04-08 Thread Gary Larsen
Hi, Is it possible to determine the url of the Cocoon servlet container or even the Cocoon servlet itself? I see that the StatusGenerator can determine the host name, but need something like http://hostname:port or http://hostname:port/appname I want to deliver data to external applications.

problem trapping exception in map:handle-errors

2007-03-31 Thread Gary Larsen
Hi, I can't figure out what I'm doing wrong. using Cocoon 2.1.9 I'm trying to catch this exception from org.exist.cocoon.XQueryGenerator: Caused by: org.exist.xquery.TerminatedException$TimeoutException: The query exceeded the predefined timeout and has been killed. [at line 13, column 2]

Open pipeline in new window

2007-03-23 Thread Gary Larsen
HI, I there some way to programatically add the equivilent to a target=_blank into a pipeline so the the result is serialized to a new browser window? Thanks, gary

RE: Open pipeline in new window

2007-03-23 Thread Gary Larsen
Oops. I just realized I had already posted a similiar question. Looks like this is not possible. gary _ From: Gary Larsen [mailto:[EMAIL PROTECTED] Sent: Friday, March 23, 2007 6:26 PM To: users@cocoon.apache.org Subject: Open pipeline in new window HI, I there some way

RE: get selectionList for widget?

2007-03-08 Thread Gary Larsen
The solution below works for selection lists that defined in the form definition with fd:selection-list. For flow-jxpath selection lists I set up a hidden field with a delimited string of possible values I could parse in the listener: String valuestext = (String) selectionsWidget.getValue();

Question on Ajax and continuations

2007-03-08 Thread Gary Larsen
I just have a question on Ajax processing to help me understand what's happening. I'm using 2.1.9. Here's the scenario: - an on-change listener set values on a form - form is submitted - back button on browser - the values are no longer set When

RE: get selectionList for widget?

2007-03-07 Thread Gary Larsen
Hi Manuel, Thanks for your suggestions to my problem. It got me thinking more about how to do this from java and finally found the solution. I'm sure the java could be compacted a bit but it works! AbstractDatatypeWidgetDefinition widgetDef = (AbstractDatatypeWidgetDefinition)

get selectionList for widget?

2007-03-06 Thread Gary Larsen
I'm trying to get the selection list for a widget from within an ActionListener. The goal is to select all/none for a MultiValueField (or Field for that matter) widget. From the listener I can use setValues() on the widget, but the possible values need to be hard-coded. I would like to set

Problem with group state and ajax mode

2007-03-05 Thread Gary Larsen
An ft:group is defined on the form template which is initally invisible. An action on the form will make the group active. An action in the now visible group tries to make it invisible again. This works in Firefox but not in IE. IE now has an Error on page warning: Line: 1 Char: 1 Error:

RE: Problem with group state and ajax mode

2007-03-05 Thread Gary Larsen
The problem turned out to be some javascript in the template: for (counter = 0; counter lt; elements.length; counter++) { I guess that IE script compiler does not like xml entities, I guess. gary Line: 1 Char: 1 Error: Expected ')' Code: 0

HSSFSerializer cell style

2007-02-28 Thread Gary Larsen
It seems that the only way to apply styles to cells is with StyleRegion but in my case it's difficult to predict beforehand which cells will need formatting. Is there a way to apply formatting in the Cell element? I found this in the Gnumeric File Format doc: gmr:Cell Col=0 Row=0

Serialize HTML to new window

2007-02-28 Thread Gary Larsen
I assume that I'm missing something basic again. I would like to serialize the HTML as though it was called with a target=_blank request parameter. The reason for this is, due to a user option in a form, the page being generated will have no link back to the application. (Sort of a print view)

RE: Serialize HTML to new window

2007-02-28 Thread Gary Larsen
Hi Steve, I don't believe that this has anything to do with how cocoon serializes or serves the output -- this is a browser UI issue. I don't think you want a 'target=' request parameter. You want a 'target=' attribute on the link to the page, so that the browser is directed to handle

RE: Serialize to file?

2007-02-23 Thread Gary Larsen
I have another question on this. I'm able to get the browser to prompt to save a file: map:match pattern=download-*-zip map:generate src=cocoon:/generate-{1}-zip/ map:act type=set-header map:parameter name=Content-Type value=application/x-download/

Accessing cocoon.session in CForms action listener

2007-02-22 Thread Gary Larsen
In a CForm java action listener I want to access the cocoon.session object to cache some data. So - is there a way to access cocoon.session directly from the listener? or - if I pass cocoon.session as a parameter what is it's object class? Thanks, Gary

RE: Accessing cocoon.session in CForms action listener

2007-02-22 Thread Gary Larsen
- if I pass cocoon.session as a parameter what is it's object class? import org.apache.cocoon.environment.Session - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: Cforms and Ajax validation workaround?

2007-02-16 Thread Gary Larsen
Hi Jason, Thanks for all the information on this issue. I don't believe my skills in this area are adequate to provide a solution but I'll give the workaround you suggested a try. I think that as a temporary workaround one should be able to manually wrap the fi:validation-errors within a

Cforms and Ajax validation workaround?

2007-02-15 Thread Gary Larsen
The Ajax implementation in Cforms is fantastic, not not being able to use fi:validation-errors is causing me a problem. I need to use tab styling with groups since there are so many widgets on the form. The issue is that when a use submits the form, a validation error could occur on a non-active

RE: Cforms and Ajax validation workaround?

2007-02-15 Thread Gary Larsen
Hi Grzegorz, Do you know what causes this limitation? Dojo, Ajax nature of requests/responses, DOM processing on the browser side, flaw in architecture or just simple bug that should be fixed? AFAIK most functionality of CForms should work equally well in Ajax and non-Ajax mode. Here

RE: Cforms and Ajax validation workaround?

2007-02-15 Thread Gary Larsen
Thanks Tobia. I think the ajax problem is not populating fi:validation-message. It generates a javascript popup that informs the user about the fields that need attention. I like the idea of the popup though and will try it once this other issue is resolved. Gary

RE: Cforms and Ajax validation workaround?

2007-02-15 Thread Gary Larsen
Hi Felix, http://issues.apache.org/jira/browse/COCOON-1774. It affects to cocoon 2.1.8 but it seems to affecting also later versions. Maybe the comments can give you an idea why it doesn't works. I had taken a look at this patch but was confused. The patch makes modification to a resource

REsolved: CForms components for 2.1.9

2007-02-13 Thread Gary Larsen
Sorry for my previous ranting... It just seems like a treasure hunt to figure out what's required and where all the pieces are located. Are they in samples, src, build, blocks or buried in jars?? Well, I should have looked closer at the 2.1.9 samples. The key to all my problems was a missing

ft:class and ajax?

2007-02-12 Thread Gary Larsen
I'm having some success converting forms to use ajax but have run into a problem. My guess is that Ajax does not work with ft:class elements. Does someone know for sure? Thanks, Gary - To unsubscribe, e-mail: [EMAIL

Serialize to file?

2007-02-09 Thread Gary Larsen
I can't say I get all the pipeline concepts yet so excuse be if I'm missing something simple. Right now I only use the HTML serializer, but want to provide options in the app to use both the Text and HSSF serializers. Is is possible to configure the sitemap or serializer to 'save to file' and

RE: Serialize to file?

2007-02-09 Thread Gary Larsen
Hi Jeroen, Thanks for your advice and pointers. I'll give these a try. Gary You could try to set the content-type of the serializer to a type which is not recognized by the browser. For instance: application/x-download or application/x-unknown Next to that you can use an sitemap

RE: Serialize to file?

2007-02-09 Thread Gary Larsen
Thanks Geert. This helps me understand actions a bit more also! Gary map:match pattern=download-*-zip map:generate src=cocoon:/generate-{1}-zip/ map:act type=set-header map:parameter name=Content-Type value=application/x-download/

Losing flowscript variables values

2007-02-06 Thread Gary Larsen
I have this problem after upgrading from 2.1.7 to 2.1.9. 1. Flowscript stores request attrs to vars. 2. Flowscript calls function in another script 3. If neccesary a SendPageAndWait in the other script 4. Back in flowscript vars are null It looks as if the vars are getting nulled from calling

RE: two bugs in form block

2007-02-02 Thread Gary Larsen
Hi, net.sf.saxon.trans.DynamicError: Ambiguous rule match for I just changed to Saxon and ran into this. My fix (it seems to work) was to change the fi:styling/@* template to: xsl:template match=fi:styling/@*[not(local-name()='type')] mode=styling xsl:copy-of select=./ /xsl:template

RE: two bugs in form block

2007-02-02 Thread Gary Larsen
Hi Grzegorz, According to spec: It is an error if this leaves more than one matching template rule. An XSLT processor may signal the error; if it does not signal the error, it must recover by choosing, from amongst the matching template rules that are left, the one that occurs last in the

CForms components for 2.1.9

2007-01-26 Thread Gary Larsen
I'm keep getting more confused upgrading cforms to 2.1.9. I know a lot of work went into ajax and I want to use that soon but I can't figure out all the components. First the onChange event is not working as forms_submitForm() is now oldforms_submitForm() in forms-lib.js. I found a

RE: CForms components for 2.1.9

2007-01-26 Thread Gary Larsen
Hi Grzegorz, Jeremy Quinn (who has done great amount of dojofing Forms recently) explained where Dojo resources are stored: http://article.gmane.org/gmane.text.xml.cocoon.devel/69692 Thanks for the pointer. It seems that the ajax-block jar in 2.1.9 does not contain dojo.js. I can't upgrade

RE: CForms components for 2.1.9

2007-01-26 Thread Gary Larsen
Message- From: Grzegorz Kossakowski [mailto:[EMAIL PROTECTED] Sent: Friday, January 26, 2007 10:26 AM To: users@cocoon.apache.org Subject: Re: CForms components for 2.1.9 Gary Larsen napisal(a): Hi Grzegorz, Jeremy Quinn (who has done great amount of dojofing Forms recently

  1   2   >