Re: map:redirect-to...

2004-08-03 Thread John L. Webber
Have you tried Firefox 0.9? (It's no longer called Firebird) John Sonny Sukumar wrote: Alright, I finally isolated the problem: it's Mozilla Firebird 0.7! It has a bizarre problem where it sends 2 requests when I only click once. And somehow this only occurs when I use internal redirects within

Re: Sorting html tables dynamically

2004-08-03 Thread Derek Hohls
Anna I am not a cocoon portal user (yet!) but normally I handle sorting in the stylesheet that is generating that HTML table; add a ?sort=xyz to the hyperlink (usually wrapped around the column title) and access this in the stylesheet to perform the sort. I suspect you'll have to dig into the cod

CForms: collapsing repeaters

2004-08-03 Thread Scott Yeadon
Hello, Is there a facility via the Java API to be able to make widgets hidden on redisplay of a page, e.g. for providing a facility for collapsing repeaters or treeview-type structures in a form? Although I could remove rows and keep the repeater info elsewhere that doesn't seem to be an ideal

Re: Where to store a hibernate session in Flow?

2004-08-03 Thread Joel McConaughy
Good to hear from you, Mark. Actually, what I'd like to do is keep the session factory open during the course of either the session or application context. Then I can just open and close sessions as needed -- hopefully providing a performance improvement. If there really isn't any way to get

Re: Where to store a hibernate session in Flow?

2004-08-03 Thread Mark Lundquist
On Aug 3, 2004, at 6:20 PM, Joel McConaughy wrote: I would like to open one hibernate session for each user session and close it when the session is invalidated or times out. I can see how save the hibernate session in Flow using cocoon.session.setAttribute() and cocoon.session.getAttribute() h

CForms: Validation via Java

2004-08-03 Thread Scott Yeadon
Hello, The CForms doco states that custom validators can be written in Java, however I couldn't find any examples of this. How is the java class reference set up in the fd:validation element - I tried the java element (as per listener setup) however this is not recognised. Thanks. Scott. --

Where to store a hibernate session in Flow?

2004-08-03 Thread Joel McConaughy
I would like to open one hibernate session for each user session and close it when the session is invalidated or times out. I can see how save the hibernate session in Flow using cocoon.session.setAttribute() and cocoon.session.getAttribute() however there doesn't seem to be a way to get notif

CForms: configuration access via Java

2004-08-03 Thread Scott Yeadon
Hello, Does anyone know how to access the cocoon-wide configuration values using the Java API? Also is it possible to get web.xml config values without an HttpServlet object (or get access to web.xml values within a listener)? Scott. -

Re: Flow : Accessing Repeater Rows value in Flow

2004-08-03 Thread Joerg Heinicke
On 04.08.2004 01:18, oceatoon wrote: I still get a result null form.getWidget().houseuploads.getRow(0).getChild("path").value => returns null ("path" being my upload widget) and the field widget in the same repeater returns its content ??? Another funny reaction is when I add an element to the r

Re: Flow : Accessing Repeater Rows value in Flow

2004-08-03 Thread oceatoon
Hi Joerg I still get a result null form.getWidget().houseuploads.getRow(0).getChild("path").value => returns null ("path" being my upload widget) and the field widget in the same repeater returns its content ??? Another funny reaction is when I add an element to the repeater,all the previously

Re: [CForm] javascript validation doesn't work?

2004-08-03 Thread Phil Snowdon
Ok, I found some references in the mailing list to this functionality being removed at 2.1.5 in favour of widget validators. (http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=108639582110249&w=2) So how do they work? Anyone have a sample peice of code? >>> Phil Snowdon 4/08/2004 9:08:51 a.m.

[CForm] javascript validation doesn't work?

2004-08-03 Thread Phil Snowdon
Take this snippet from the samples. Supposedly if the price is less than one, then it will show a validation error. It doesn't. var success = true; var price = widget.lookupWidget("dieselprice"); if (price.value < 1) { price.setValidationError(new Packages

Sorting html tables dynamically

2004-08-03 Thread Anna Bikkina
Hi, I have a cocoon portal appliation that displays information in html tables. I have to provide sorting of columns in this table to users. How can we do this? Can someone please shed some light on this and send me some code snippets. Thanks, Anna. --

Re: Flow : Accessing Repeater Rows value in Flow

2004-08-03 Thread Joerg Heinicke
On 03.08.2004 21:41, oceatoon wrote: form.getWidget().repeaterName.getRow(0).widgetName.value (for row 0) Can you try form.getWidget().repeaterName.getRow(0).getChild("widgetName").value instead? The upload widget itself should not behave different than a field widget, but maybe the JS wrapper i

Re: Flow : Accessing Repeater Rows value in Flow

2004-08-03 Thread oceatoon
This is a Bug !! The problem comes from the fact that the widget in my repeater is an upload widget cause I tried adding a field widget and it works fine. otherwise the way to access these fields are form.getWidget().repeaterName.getRow(0).widgetName.value (for row 0) Doesn't change my needs, if

getting rid of SunBow debugger in Tomcat?

2004-08-03 Thread Lars Huttar
Hi all, I feel dumb: I set up something and can't figure out how to un-set it up. Here's the deal: I have Cocoon 2.1.2 running under Tomcat 4.1. I installed Sunbow (http://radio.weblogs.com/0108489/) with its XSLT tracer for use in Eclipse. In order to make it work, I did something to Tomcat to ma

RE: SendMailTransformer session issue

2004-08-03 Thread Carsten Ziegeler
Rui Alberto L. Gonçalves wrote: > > I all, > > I need to use SendMailTransformer to send the user the > current page that he/she is viewing. > To do this, I'm doing: > > > ... >mime-type="text/html" > src="cocoon:/display_user_page"/> ... > > > I'm us

Re: map:redirect-to...

2004-08-03 Thread Sonny Sukumar
Alright, I finally isolated the problem: it's Mozilla Firebird 0.7! It has a bizarre problem where it sends 2 requests when I only click once. And somehow this only occurs when I use internal redirects within Cocoon. Go figure. I verified that it works correctly in both KDE Konqueror on RedH

Re: Flow : Accessing Repeater Rows value in Flow

2004-08-03 Thread oceatoon
Hi Bruno I'm using V2 Form.js on Cocoon 2.2.0 Thanks fo ryour help Tibor Bruno Dumon wrote: > Hi oceatoon, > > On Tue, 2004-08-03 at 12:56, oceatoon wrote: >> Hi Bruno >> >> Sorry for not being to clear, >> Yes, I'm in the Flow >> wid = form.getWidget(); >> //"houseuploads" is my repeater >>

SendMailTransformer session issue

2004-08-03 Thread Rui Alberto L.
I all, I need to use SendMailTransformer to send the user the current page that he/she is viewing. To do this, I'm doing: ... ... I'm using cookies to identify the user session, and the target cocoon:/display_user_page uses user session values. It looks like SendMailTransformer ignores this

Re: Flow : Accessing Repeater Rows value in Flow

2004-08-03 Thread oceatoon
Nop I haven't seen getModel() as part of the Javascript specification of the Form Object ?? Is it? I tried it out and get an Avalon.Excepetion: org.apache.avalon.framework.CascadingRuntimeException: getModel is not a function The getRow(int) solution seems to be a good path but I tried about a

Re: (newbie question) xmldb from flowscript

2004-08-03 Thread Brent Johnson
Umm - I think you can just write a Java class that accesses your xmldb and then make calls to that directly from flowscript. Hope this helps, - Brent On Tue, 3 Aug 2004 20:47:37 +0700, qMax <[EMAIL PROTECTED]> wrote: > Hi. > > Is there a way to access and update xmldb from flowscript ? > > I'm

Re: Passing a pipeline exception\error to an error handler function?

2004-08-03 Thread Bruno Dumon
On Tue, 2004-08-03 at 16:15, Thomas Kjeldahl Nilsson wrote: > > > > The exception (throwable) object is available in the objectModel, and > > can be retrieved from it using ObjectModelHelper.getThrowable(). I don't > > think there's a proper way to access this from flowscript, though there > > are

Re: Passing a pipeline exception\error to an error handler function?

2004-08-03 Thread Thomas Kjeldahl Nilsson
The exception (throwable) object is available in the objectModel, and can be retrieved from it using ObjectModelHelper.getThrowable(). I don't think there's a proper way to access this from flowscript, though there are a variety of workarounds. Hmm, isn't the whole object model accessible from the

Re: Passing a pipeline exception\error to an error handler function?

2004-08-03 Thread Bruno Dumon
On Tue, 2004-08-03 at 14:50, Thomas Kjeldahl Nilsson wrote: > Hello all, > > I'm writing some cocoon error handling for my project, and I'm a little > stumped here. I've got a single error handle now, looking like this: > > > > > > > What I'd like to do is call a flowscript function

(newbie question) xmldb from flowscript

2004-08-03 Thread qMax
Hi. Is there a way to access and update xmldb from flowscript ? I'm not experienced with avalon framework and all cocoon java background. But i guess this should be enough simple with help of using cocoon components directly from script. -- qMax -

i18n:attr Problem -->> can't translate the label of a button from an upload widget

2004-08-03 Thread Bald, Michael
Hi all, I hope someone can help me with this... My problem: I want to translate the label of buttons. I don't have any problems with the tanslation of normal buttons. The only exception is the button of the upload widget (Isn't it possible to configure the button in any way?)!!! I went throu

Re[2]: Does cocoon support xq files?

2004-08-03 Thread qMax
Tuesday, August 3, 2004, 2:08:02 PM, [EMAIL PROTECTED] wrote: TL> Example of an xq file does like this as shown below: TL> xquery version "1.0"; cocoon supports XUpdate files via XMLDB transformer. these XUpdate can be applied to aby xmldb (either eXist or xindice) via xmldb protocol. -- qMax

Passing a pipeline exception\error to an error handler function?

2004-08-03 Thread Thomas Kjeldahl Nilsson
Hello all, I'm writing some cocoon error handling for my project, and I'm a little stumped here. I've got a single error handle now, looking like this: What I'd like to do is call a flowscript function called "errorFlow" which does some logging and other misc. logic before sending a jx

Re: HTMLArea in a table

2004-08-03 Thread Derek Hohls
Ugo Unfortunate news as it effectively renders this component unusable for general access sites (80% of the web browsers are IE5 or IE6) UNLESS we can try using s for layout .. anyone want to test this?? Derek >>> [EMAIL PROTECTED] 2004/08/03 02:13:02 PM >>> Il giorno 03/ago/04, alle 11:01, [EM

Re: HTMLArea in a table

2004-08-03 Thread Ugo Cei
Il giorno 03/ago/04, alle 11:01, [EMAIL PROTECTED] ha scritto: Hi I modified the HTMLArea example form template using a table. The head (buttons) is displayed but not the textArea (using IE 6)... Suggestions of what can be wrong are welcome. It's a bug in IE6. I investigated a little on the project

forming new url with a parameter set

2004-08-03 Thread qMax
Hi. How it would be better to perform following task: for given url (requestedURI) i need to form new url with single parameter added or changed, and all other left untouched. Egg: http://mysite/foo/bar/stuff.html?view=printfriendly&lang=ru&slang=foo&mode=detailed and i want to form new URL: http

Re: Flow : Accessing Repeater Rows value in Flow

2004-08-03 Thread Derek Hohls
What about: model = form.getModel(); file = model.houseuploads[0]; //or i for any row... noOfRows = model.houseuploads.length - 1; //zero based array >>> [EMAIL PROTECTED] 2004/08/03 12:56:30 PM >>> Hi Bruno Sorry for not being to clear, Yes, I'm in the Flow wid = form.getWidget(); //"houseu

Re: Flow : Accessing Repeater Rows value in Flow

2004-08-03 Thread Bruno Dumon
Hi oceatoon, On Tue, 2004-08-03 at 12:56, oceatoon wrote: > Hi Bruno > > Sorry for not being to clear, > Yes, I'm in the Flow > wid = form.getWidget(); > //"houseuploads" is my repeater > //"path" would be the upload widget I want to retreive the content off > wid.houseuploads.getRow(0).getVal

Re: Flow : Accessing Repeater Rows value in Flow

2004-08-03 Thread oceatoon
Hi Bruno Sorry for not being to clear, Yes, I'm in the Flow wid = form.getWidget(); //"houseuploads" is my repeater //"path" would be the upload widget I want to retreive the content off wid.houseuploads.getRow(0).getValue(); (return = null) wid.houseuploads.getRow(0).path.getValue(); (also r

RE: Cocoon 2.1.5.1 build fails under Windows 98SE

2004-08-03 Thread Perez Carmona, David
Maybe the JAVA_HOME environment variable doesn't point to the JDK root, but the JRE root. > -Mensaje original- > De: Trevor Turton [mailto:[EMAIL PROTECTED] > Enviado el: martes, 03 de agosto de 2004 11:02 > Para: [EMAIL PROTECTED] > Asunto: Cocoon 2.1.5.1 build fails under Windows 98SE

Re: Encoding problems

2004-08-03 Thread [EMAIL PROTECTED]
Gerald Aichholzer wrote: On Tue, 03 Aug 2004 11:02:43 +0200, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Jan Hoskens wrote: You may want to take a look at the wiki page: http://wiki.apache.org/cocoon/RequestParameterEncoding I had this problem a while ago: http://marc.theaimsgroup.com/?l=xml-c

Re: Encoding problems

2004-08-03 Thread Gerald Aichholzer
On Tue, 03 Aug 2004 11:02:43 +0200, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: Jan Hoskens wrote: You may want to take a look at the wiki page: http://wiki.apache.org/cocoon/RequestParameterEncoding I had this problem a while ago: http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=10910090260

Re: Encoding problems

2004-08-03 Thread FREDERIC MOSER
I did not know some settings have to be done in web.xml, here is what I was looking for: form-encoding UTF-8 I uncommented it and now it works perfectly! Thanks to you guys, Fred Messages d´origine --

Cocoon 2.1.5.1 build fails under Windows 98SE

2004-08-03 Thread Trevor Turton
I downloaded Cocoon 2.1.5.1 onto Windows 98SE with j2sdk1.4.1_01 installed and ran the Cocoon build.bat, with results as shown in the console log appended. Build expects to find tools.jar in %JAVA_HOME%\JRE\lib\, but it's actually in %JAVA_HOME%\lib\. I tried copying all jars from lib into JR

Re: Encoding problems

2004-08-03 Thread [EMAIL PROTECTED]
Jan Hoskens wrote: You may want to take a look at the wiki page: http://wiki.apache.org/cocoon/RequestParameterEncoding I had this problem a while ago: http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=109100902605917&w=2 I'm wondering what the best solution is and which encoding is preferred f

HTMLArea in a table

2004-08-03 Thread karim . alkhader
Hi I modified the HTMLArea example form template using a table. The head (buttons) is displayed but not the textArea (using IE 6)... Suggestions of what can be wrong are welcome. Regards Karim http://apache.org/cocoon/forms/1.0#template"; xmlns:fi="http://apache.org/cocoon/forms/1.0#instance

Re: Flow : Accessing Repeater Rows value in Flow

2004-08-03 Thread Bruno Dumon
On Mon, 2004-08-02 at 17:21, oceatoon wrote: > Hi > > I found a post "POPUALTING SELECTIONLISTS INA REPEATER FROM FLOW " where a > similar question was asked but I can't seem to get Joergs technique(getRow > before getting the value) to function. > > my repeater only contains an upload widget

Re: memory issues, SAX

2004-08-03 Thread Bruno Dumon
Lars, are you aware that the Java VM doesn't automatically use all available memory? IIRC on Windows by default it uses maximum 64 MB. You can augment that by adding a parameter like -Xmx192m to the java startup command. If you search the cocoon wiki or the internet you'll find plenty of informati

Re: Why Cocoon 2.1.5 hasn't the sample of portal engine ?

2004-08-03 Thread Vladimir Lisin
Very thanks and sorry  for my inattention :-))) On  HTML page of samples ( in v. 2.1.5 )  refrence at  "portal engine"  was  moved  in section "Unstable block". Question  was closed :-) Regards >My installation still contains the portal engine. >Try the "your cocoon directory"/samples/blocks/

Re: Does cocoon support xq files?

2004-08-03 Thread Tun Lin
Example of an xq file does like this as shown below: xquery version "1.0"; declare namespace util="http://exist-db.org/xquery/util";; declare namespace dc="http://purl.org/dc/elements/1.1/";; declare namespace fn="http://exist-db.org/local-functions";; declare namespace rdf="http://www.w3.org/199

Re: Why Cocoon 2.1.5 hasn't the sample of portal engine ?

2004-08-03 Thread Claudius Spellmann
My installation still contains the portal engine. Try the "your cocoon directory"/samples/blocks/portal directory, there you'll find your portal engine. Claudius Vladimir Lisin schrieb: Hi, Cocoon v.2.1.4 have the sample with the newer portal engine but to my regret with bugs. When I have inst