Re: Selection list populated from Hibernate POJO

2005-05-27 Thread Jakub Kaniewski
Ugo Cei wrote: B) possibly simpler: var form = new Form("formdef.xml"); var list = hibernateSession.find("from ..."); form.lookupWidget("widget-id").setSelectionList(list, "id", "name"); form.showForm("form-template"); Or declare selection list as JXPath in scheme value-path="id" label-path=

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 t

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 the

Re: Cocoon live site

2005-04-16 Thread Jakub Kaniewski
Grzegorz TaƄczyk 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 keywo

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

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 - http://wiki.apache.org/cocoon/CocoonAnd

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 = session.begin

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 me

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 PROTE

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) : In FlowScript if I try to access my hidden fields var action = cocoon.request.get("action"); I always receive null.

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

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

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 http://oss.software.ibm.com/icu4j/downloa

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 hou

Problems with CForms

2004-09-03 Thread Jakub Kaniewski
n i autumn months. I am using Cocoon 2.1.5, the error appears both on Windows and Linux machine (JVM SUN 1.4.2). Regars Jakub Kaniewski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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) rpt=even

Problem with attributes encoding

2003-12-05 Thread Jakub Kaniewski
I have a problem with adding attribute value to the input tag. I can't insert encoded with ISO-8859-2 text into this tag attributes (value attribute). I always receive Xalan error (inproper integral value etc.). There is no problem to insert encoded text anywhere else. My coocoon i properly

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 f