CForms and selection list question

2005-05-09 Thread Jakub Kaniewski
I have a CForms form with selection widget. The selection widgets gets its data from JXPath. I flowscript I set : form.getChild(city).setSelectionlist(cityList,id,name); where city list is the List of City bean (with properties int id and String name). Now i have client bean, which I bind to the

Problem with ImageReader (migration 2.1.5 - 2.1.7)

2005-04-22 Thread Jakub Kaniewski
I am site using ImageReader on my site to reduce my images size to have width 150px. Sometimes the image width is smaller than 150px, in this case I want to leave original width. Before migration to Cocoon 2.1.7 I was setting simply allow-englare to no and everything was OK. After migration

Re: Cocoon live site

2005-04-16 Thread Jakub Kaniewski
Grzegorz Taczyk wrote: Hello Jakub, http://www.e-teatr.pl/en/redakcja/dane.html I receive Cocoon error when I try to send message. Thank's for information. After migration to Cocoon 2.1.7, I discover many flows error, because in this version of Rhino FlowScript must be declared with

Re: Using Hibernate via Java, not Flow

2005-04-14 Thread Jakub Kaniewski
beyanet.com wrote: I use hibernate within JBoss 4 as follows: InitialContext ctx = new InitialContext(); sessionfactory = (SessionFactory)ctx.lookup(java:/hibernate/SessionFactory); session = sessionfactory.openSession(); transaction =

Re: Using Hibernate via Java, not Flow

2005-04-14 Thread Jakub Kaniewski
Brent Johnson wrote: I searched the Wiki for servletfilter, servlet-filter, servlet filter and didn't find anything. Is there an example of closing Hibernate sessions using a servlet filter on the Wiki? Here is the wiki article I mentioned before -

Re: Using Hibernate via Java, not Flow

2005-04-14 Thread Jakub Kaniewski
JD Daniels wrote: I didn't see the need for a cocoon component. I looked again, but still can't find the article that got me going... basically here is my setup: I use cocoon component put method, that gets JDBC connection from cocoon pool. My flow looks like described in article : function

Cocoon live site

2005-04-14 Thread Jakub Kaniewski
Because we recently presented english version to public(before was only polish) i present link below - http://www.e-teatr.pl/en/index.html Solution - Apache 2 + connectors + Java 1.5 + Jetty 4 + Cocoon 2.1.7 + PostgreSQL (with OJB)

Re: Using Hibernate via Java, not Flow

2005-04-13 Thread Jakub Kaniewski
beyanet.com wrote: Brent, the way I use hibernate with flowscript is to simply call the method from flowscript and allow the java method to handle all transaction-session open and closing processes. I place no hibernate code in cocoon. All the hibernate code is self contained within the java

FlowScript and Upload after upgrade to Cocoon 2.1.7

2005-04-07 Thread Jakub Kaniewski
Recently I upgraded Cocoon from 2.1.5 to 2.1.7. Most of things works fine, except one FlowScript function. I have this HTML form (hidden fields values are passed from flow) : form enctype=multipart/form-data method=POST aaction=upload.html inputtype=file name=plik input type=submit name=upload

Re: FlowScript and Upload after upgrade to Cocoon 2.1.7

2005-04-07 Thread Jakub Kaniewski
SOLVED, I simply didn't enabled uploads in web.xml, this also implicated that simple parameters from multi part forms was not decoded. J.K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Authentication and ROLES

2005-04-04 Thread Jakub Kaniewski
Is there possible to authenticate one pipeline, only when user have a certain ROLE (ie. admin). J.K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

FlowScript and DOM, question

2005-03-29 Thread Jakub Kaniewski
I have a org.w3c.dom.Document in my FlowScript and I want to send it to pipeline. Is this possible with JXGenerator, or should I write a custom generator? J.K. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Problems with CForms

2004-09-05 Thread Jakub Kaniewski
Uz.ytkownik Johnson napisa?: tks would you tell the cocoon bugzilla about this to solve it. OK best regards johnson Regards J.Kaniewski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail:

Re: Problems with CForms

2004-09-04 Thread Jakub Kaniewski
Uz.ytkownik Johnson napisa?: Hi: I've the same problem too,I do some exam and found that's the daylight time problem in the date input in javascript 1.if you input a summer time,the hour will -1 automatically,so your input 1993-10-15,it must be 1993-10-15 0:00:00,be the system will -1 hour to

Re: Problems with CForms

2004-09-04 Thread Jakub Kaniewski
I investigated with those convertors I mentioned before and I discovered that this wrong conversion is caused by IBM ICU4J classes. This is the way to solve the problem 1) Delete /WEB-INF/lib/icu4j.jar 2) Download most recent version of this library from

Re: Repeter - addRow();

2004-05-17 Thread Jakub Kaniewski
Uz.ytkownik Bartosz Zgodzinski napisa?: Please tell mi where and how should I call function addRow();. In a form definition I've got the definiton of my repeter (id=my_repeter). Now I want to add a row... I have something like that in my project (embeeded into woody form descriptor)

Problem with character encoding

2003-12-02 Thread Jakub Kaniewski
I have problem with character encoding, when using standart Cocoon database actions (like explained in tutorial action-set, that use class org.apache.cocoon.acting.DatabaseAddAction). All my Cocoon engine i set to encode in iso-8859-2 charset, I have no problem in fetching good encoded record