Re: Does cocoon support xq files?

2004-08-03 Thread Derek Hohls
If you supply some more info about the file type, someone might be able to help [EMAIL PROTECTED] 2004/08/02 04:56:06 PM Hi everyone, Does cocoon support xq files? -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean.

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

2004-08-03 Thread Vladimir Lisin
Hi, Cocoon v.2.1.4 have the sample with the newer portal engine but to my regret with bugs. When I have installed Cocoon 2.1.5 I detected that this sample is absent. Can anyone comment this situation ? Thanks. Regards, Vladimir

Re: Encoding problems

2004-08-03 Thread Jan Hoskens
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-usersm=109100902605917w=2 I'm wondering what the best solution is and which encoding is preferred for handling special

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

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

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/portal

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

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 (minimum

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 page xmlns:ft=http://apache.org/cocoon/forms/1.0#template;

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-usersm=109100902605917w=2 I'm wondering what the best solution is and which encoding is preferred

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

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: init-param param-nameform-encoding/param-name param-valueUTF-8/param-value /init-param I uncommented it and now it works

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:

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:

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: 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

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).getValue();

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(); //houseuploads

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=printfriendlylang=ruslang=foomode=detailed and i want to form new URL:

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

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 divs 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,

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: map:handle-errors map:generate src=documents/html/cocoon_error.html/ map:serialize/ /map:handle-errors What I'd like to do is call a

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

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

(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

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: map:handle-errors map:generate src=documents/html/cocoon_error.html/

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

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 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 not

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

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: email:sendmail ... email:attachment name=Your page mime-type=text/html src=cocoon:/display_user_page/ ... /email:sendmail I'm using

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 //path would be

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

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: email:sendmail ... email:attachment name=Your page mime-type=text/html

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

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

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: [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-usersm=108639582110249w=2) So how do they work? Anyone have a sample peice of code? Phil Snowdon 4/08/2004 9:08:51 a.m.

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: 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

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.

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

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.

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()

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

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