Re: How to obtain db connection from pool ?

2003-12-15 Thread Mariusz Sieraczkiewicz
based I dont think there's other (non-Avalon) possibility to achieve what you asked. Flowscript gives you access to some Cocoon Avalon Components, which you can make use of mixing with your own java components (not necesserily Avalon Components). I did so and it works. Regards Mariusz Sier

Re: Form validation problem

2003-12-14 Thread Mariusz Sieraczkiewicz
I don't know the answer, but I've a suggestion. Using actions is old way of creating forms. There is great stuff developed recently for handling forms (validatin, binding etc.) called CocoonForms (WOODY). Dig into user docs and wiki pages and you'll find helpful information on flexible and powerful

Re: How to obtain db connection from pool ?

2003-12-14 Thread Mariusz Sieraczkiewicz
Suggested using flowscript, then try sth like this: try { var dbSelector = cocoon.getComponent(Packages.org.apache.avalon.excalibur.datasource.DataSourceComponent.ROLE + "Selector"); var dataSrc = dbSelector.select("your counnection"); conn = dataSrc.getConnection();

JXTemplate problem

2003-12-06 Thread Mariusz Sieraczkiewicz
just like in Useedocs article, doesn't work. I have with an empty value. It works properly when only JXPath expression is used (value="#{myData}"). Everytime I use anything else I get an empty value. Is it a bug or do I use it incorrectly? Regards ---

Flowscipt sendPage() with another flowscript

2003-12-06 Thread Mariusz Sieraczkiewicz
I have sendPage("another-flow-page", {a : a, b : b}); in one flowscript page and I want to call another flow page with sendPage() function. How can I get passed object in the second flowscipt?? Regards, Mariusz - To unsubscrib

Re: Global data

2003-11-14 Thread Mariusz Sieraczkiewicz
Use the context object for this. I still don't get what you mean by this. Could you suggest me some links or samples? Thanks in advance. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Re: Global data

2003-11-13 Thread Mariusz Sieraczkiewicz
Did you mean Flowscript Context Object?? http://cocoon.apache.org/2.1/userdocs/flow/api.html#Context+Object ?? I have never used flowscripts, i'm reading now... When I use Java objects in flowscript, do I have to use only those safe-threaded?? Regards --

Re: Global data

2003-11-13 Thread Mariusz Sieraczkiewicz
Use the context object for this. Links?? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Global data

2003-11-13 Thread Mariusz Sieraczkiewicz
I wonder what cocoon mechanisms to use in order to keep global information (XML) (the same for cocoon instance and different user sessions), which are loaded dynamically (e.g. from DB) or even could change. What do you suggest?? Regards --

Re: xsp session remove attribute problem

2003-11-06 Thread Mariusz Sieraczkiewicz
Any idea?? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

xsp session remove attribute problem

2003-11-06 Thread Mariusz Sieraczkiewicz
With code like Enumeration enum = null; enum = session.getAttributeNames(); while (enum.hasMoreElements()) { String curName = (String)enum.nextElement(); String value = (String)session.getAttribute(curName); if (curName.startsWith(PREFIX)

Session Transformer

2003-11-04 Thread Mariusz Sieraczkiewicz
sitemap: xsl ( based on the example from doc): == http://www.w3.org/1999/XSL/Transform"; xmlns:req-gen="http://apache.org/cocoon/request/2.0"; xmlns:session

Ready to use Coocon 'components'?

2003-10-28 Thread Mariusz Sieraczkiewicz
ot of things that could be reused by the others. Why not to share it? Or maybe Im missing something? What do you think about it? Regards, Mariusz Sieraczkiewicz - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e

jpath and position() problem

2003-10-24 Thread Mariusz Sieraczkiewicz
A piece of code tst/v[position() > 3] works properly but is always 0. Why? Regards -- Używam M2 - innowacyjnego klienta poczty wbudowanego w Operę: http://www.opera.com/ - To unsubscribe, e-

Pooled connection from flowscript

2003-10-24 Thread Mariusz Sieraczkiewicz
(I'm afraid the question has already been answered, but I couldn't find it.) How to get a connection from a pool using flowscripts? Regards -- Używam M2 - innowacyjnego klienta poczty wbudowanego w Operę: http://www.opera.com/ ---

Rhino editor

2003-10-24 Thread Mariusz Sieraczkiewicz
Is there a Rhino JavaScript editor (helpful in coding flowscrips) available at the net? Syntax checking, coloring etc.? Regards -- Używam M2 - innowacyjnego klienta poczty wbudowanego w Operę: http://www.opera.com/ - To unsubs

More HTML than Cocoon but...

2003-08-28 Thread Mariusz Sieraczkiewicz
when checkbox is unchecked the HTTP request doesn't contain bool_field entry. The code like sets only 'checked value'. _________ Regards, Mariusz Sieraczkiewicz - To unsubscribe, e-mail: [

Re: Desperated about encoding issues

2003-08-04 Thread Mariusz Sieraczkiewicz
Hello, > container-encoding must be set to ISO-8859-1 > form-encoding should be set to ISO-8859-2 Yes, that really helped!!! thank you so much, I'm your deptor. This is what I've been looking for. I may go on holiday now ;-) Best regards ---

Desperated about encoding issues

2003-08-04 Thread Mariusz Sieraczkiewicz
eople had similar problem, not solved so far). (Additional info: web.xml (of COcoon) form-encoding and container-encoding set to utf-8 !! - the only good working setting with the others I've described earlier.) _____

How to enumerate parameters values with xsp-request logicsheet

2003-08-04 Thread Mariusz Sieraczkiewicz
As in subject. There exists xsp-request:get-parameter-names that enumerates parameters names, but how to build pairs 'name <-> value'? _ Best regards, Mariusz Sieraczkiewicz - To uns

Form encoding and database action

2003-08-04 Thread Mariusz Sieraczkiewicz
Hello, I used to use

Databse Action debugging

2003-08-01 Thread Mariusz Sieraczkiewicz
How to debug (Cocoon 2.0.4) Database Actions? I use simple DatabaseUpdateAction and something goes wrong, where can I find inormation about it ?(I dont use Form Validator, my debug level is DEBUG) _ Regards, Mariusz Sieraczkiewicz

Database transaction handling

2003-07-26 Thread Mariusz Sieraczkiewicz
Hello, i'm still a newbie ;-) How to realize the database transaction handling? What do you suggest? What kind of C2 components should I use? Example: Editing data in a DB via WWW. How to exclude the possibilty of editing the same row by two different users at the same time. Thankful for help --

Re: database transaction handling

2003-07-25 Thread mariusz-sieraczkiewicz
> Obviously you will have to implement an algorythm to detect > the locks so that other users can detect the locks, wait and go back > for the data. I don't think i have to, because setting transaction isolation level should be enough for what you described. I asked for some pattern, solution tes

database transaction handling

2003-07-25 Thread mariusz-sieraczkiewicz
Hello, i'm still a newbie ;-) How to realize the database transaction handling? What do you suggest? What kind of C2 components should I use? Example: Editing data in a DB via WWW. How to exclude the possibilty of editing the same row by two different users at the same time. Thankful for help --

Re: Very slow images processing

2003-07-23 Thread mariusz-sieraczkiewicz
> you might consider using Apache in front of Tomcat (connected for > instance by mod_proxy) > and serve the images from Apache instead through Cocoon. > > Michael > is there any description of that configuration in the net? I'd be thankful :-) -

Very slow images processing

2003-07-23 Thread mariusz-sieraczkiewicz
puter. What may be the cause? Best regards, Mariusz Sieraczkiewicz (Poland) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]