Re: cocoon&hibernate tutorial

2006-02-14 Thread Thomas Lutz
classpath argument of the javac to reference to the avalong jar (in /WEB-INF/lib, that's right). usually you can't just unzip a jar and take one class file out, much too much dependencies :-) hth better :-), tom Thomas Lutz wrote: this is a part of my build file which should fit your needs, t

Re: cocoon&hibernate tutorial

2006-02-14 Thread Thomas Lutz
this is a part of my build file which should fit your needs, too. (it's a bit too much, as i use javaflow, just comment the not needed jars) destdir="${build.server.war.ant.dir}" debug="on"> location="${lib.dir}/cocoon/avalon-framework-api-4.3.jar"/

Re: Forms encoding problem

2006-02-08 Thread Thomas Lutz
ok, tried to dig in this issue "remote" (I am not working for the company any more, where we had this problem, so no sources to try :-)). obviously this error is not thrown by cocoon itself, but by the sax parser: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.R

Re: Forms encoding problem

2006-02-07 Thread Thomas Lutz
first thought: i think we had this error message when using escaped utf-8 chars... our source files are encoded in utf-8, and some guy inserted a escaped " " in utf 8 with is   in utf-8 () this crashed the forms. didn't figure out why, not enough time, just threw out the escaped chars. but a

Re: Checking all keys are translated - done before ?

2005-10-04 Thread Thomas Lutz
Well, I'll need this soon :-). I was thinking of some sort of grep shellscript stuff, but this could be achieved with some java classes using regular expressions too. here you get a problem with regex when you have sth. like this: Best would be to enable I18N Transformer to log the mis

Re: Minimum number of rows for repeater

2005-10-04 Thread Thomas Lutz
Thomas Lutz wrote: Jorg Heymans wrote: http://issues.apache.org/bugzilla/show_bug.cgi?id=36781 to start. If someone could add the Validation stuff that'ld be great, otherwise i'll have a look at this myself later. I'll give it a try next week... should be worki

Re: Checking all keys are translated - done before ?

2005-10-04 Thread Thomas Lutz
Philippe Guillard wrote: I need this too. I would say the easiest way is to navigate in your site and then see the core logs in debug mode, unfortunately i only see the [core.i18n-bundles] catalog resolution messages, and not the keys resolution... Maybe the question could be transformed to :

Re: [CForms] SOLVED repeater-actions in union groups do not work

2005-09-29 Thread Thomas Lutz
Sorry for the noise, I finally solved it and I think I am starting to get grey hair soon if this goes on .-). I got confused by the id's... my problem was that I tried to name the groups nested in the union in my own way. But, the id of each nested group has to be exact the same value as cas

[CForms] repeater-actions in union groups do not work

2005-09-29 Thread Thomas Lutz
Hi list ! I have repeaters nested in a union/group construct. Everything looks fine, the only problem is that the repeater-action buttons do not work. I think this is because the form engine does not notice I submitted the form with these particular buttons because of some namespace issues.

Re: Minimum number of rows for repeater

2005-09-23 Thread Thomas Lutz
Jorg Heymans wrote: http://issues.apache.org/bugzilla/show_bug.cgi?id=36781 to start. If someone could add the Validation stuff that'ld be great, otherwise i'll have a look at this myself later. I'll give it a try next week... regards, tom -

Re: Minimum number of rows for repeater

2005-09-23 Thread Thomas Lutz
Jorg Heymans wrote: A few weeks ago I had the same need/idea, and hacked together a max-size and min-size attribute for the repeater widget. If you want i can put it in bugzilla so you can see if it helps your usecase. If this is useful for other people as well we should nail down the behavio

Re: E-CRUD Design Pattern

2005-09-16 Thread Thomas Lutz
ays is time for new resolution !!! I think I'll have a look at bluexml.org this weekend :-) ! regards and a nice weekend :-), tom Jean-Christophe Thomas Lutz a écrit : Jean-Christophe Kermagoret wrote: There might be some interesting code and documentation (I hope :-) Grea

Re: E-CRUD Design Pattern

2005-09-16 Thread Thomas Lutz
Jean-Christophe Kermagoret wrote: There might be some interesting code and documentation (I hope :-) Great work ! Your discussion is welcome, and, I will say more, awaited with great enthousiasm :-) I didn't have too much time to have a closer look at it yet, but :-), one remark to the

Re: i18n, date & binding framework.

2005-09-15 Thread Thomas Lutz
Aurélien DEHAY wrote: Hi. Thomas Lutz a écrit : What exactly does not work ? The displayed date & the date in the input field are not consistant. For example I'd like, in en locale, the following behaviour: the client enter 01/13/2000 in the forms. When displaying in

Re: i18n, date & binding framework.

2005-09-15 Thread Thomas Lutz
What exactly does not work ? I had problems with forms, dates and i18n, too. With some debugging I figured out that the form engine took the hosts locale as default, so no matter which locale I set in the browser, the date formatter always took the hosts locale, so setting the locale for the

Re: E-CRUD interest ?

2005-09-15 Thread Thomas Lutz
Very interested :-) ! I tried to solve this repetitive tasks with intensive usage of metadata information... basically everything is "configured" with metadata from the database. So I only have on JavaFlow form handling function... which is of course a rather complicated one, but does the job

Generate CForms files from hibernate metadata

2005-09-02 Thread Thomas Lutz
Hi list ! Is there anything out there that generates CForms -formdefinitions -templates -bindings from Hibernate 3 metadata objects ? Any help, snippet or ready-made-up framework welcome .-), regards, tom - To unsubscribe, e

Re: New Xml files with CForm bindings

2005-08-29 Thread Thomas Lutz
Victoria Vitaver wrote: Thanks, unfortunately this also doesnt work ... after experimenting a little I have realised that my bindings seem to be completely ignored! ie if I simply have xmlns:fb="http://apache.org/cocoon/forms/1.0#binding"; xmlns:fd="http://apache.org/cocoon/forms/1.0#defini

Re: New Xml files with CForm bindings

2005-08-26 Thread Thomas Lutz
Are you sure your binding is correct ? As far as I see your root fb:context binds to /, and the next binding tag is a fb:set-attribute ? Try moving the info of the second fb:context path into the root context. HTH, tom Victoria Vitaver wrote: Hi, I am trying to create an input form, which

Re: HTML embedded in XML

2005-08-25 Thread Thomas Lutz
Maybe you'd be successfull with a small service pipeline, that uses xml/xslt instead of jx. I did this once, the basic idea was: - writing a custom generator, that parsed the string to a DOM Document (in your case I think this could be done by simply wrap your service response with a tag). I

Re: Cocoon and IntelliJ Idea

2005-08-25 Thread Thomas Lutz
I -created an empty project -copied the cocoon sources into a dir in this project dir -made another dir with my non cocoon librarier -and then added the copied directories with new module to my project -- although its "new" module, it detects your sources and imports them (no copying like in ecli

Re: SOLVED I18NMessage in ValidationError not translated.

2005-08-24 Thread Thomas Lutz
template, otherwise the forms-samples-styling.xsl won't be able to insert its stylings and js stuff... Thomas Lutz wrote: Well, actually I don't have a Forms and a Other catalogue, I have: src="org.apache.cocoon.transformation.I18nTransformer">

Re: I18NMessage in ValidationError not translated.

2005-08-24 Thread Thomas Lutz
; catalogue, it translated fine. I pulled my hair out for a while on that one. --- Thomas Lutz <[EMAIL PROTECTED]> wrote: Hi list ! I think I am missing something, but I can't figure out where... Short :-) description: I add a ValidationError to a form widget in a custom binding, thi

I18NMessage in ValidationError not translated.

2005-08-23 Thread Thomas Lutz
Hi list ! I think I am missing something, but I can't figure out where... Short :-) description: I add a ValidationError to a form widget in a custom binding, this is done via (tErrorMessage is the message key, and yes, I double checked it exists in my message catalogue :-) ): ((Fiel

CForms: Binding errormessages to cforms validation errors

2005-08-22 Thread Thomas Lutz
Hi list ! I have quite a lot CForms in my application. All data is retrieved and submitted to a middle tier using a xml document. For each field there is an attribute containing an error status, empty string if there is no error. Now, if I submit the form, it is validated by the middle tier, an

Re: CForms: need some design help

2005-08-09 Thread Thomas Lutz
t really care. Anyway, thanks for the tips. Based on your sitemap, I think I can improve mine by consolidating some of my pipelines. Regards, JF --- Thomas Lutz <[EMAIL PROTECTED]> wrote: yep, thats quite the same approach. there's only one difference, my html renderer takes ca

Re: CForms: need some design help

2005-08-09 Thread Thomas Lutz
e variable was constructed gets lost because I'm going several pipelines deep rather than just directly using the form transformer. Is this similar to what you are doing? Can you give me some pointer as to how I might be able to fix this? --- Thomas Lutz <[EMAIL PROTECTED]> wrote:

Re: CForms: need some design help

2005-08-08 Thread Thomas Lutz
I had quite similar problems as you have, here's what I did: -each request is handled by a javaflow function -the request has some magic chars separating object from view type, so i have something like person.form.edit.do -so when i am in the right flow function, i prepare all data, do some CFo

Re: java flow samples error

2005-08-05 Thread Thomas Lutz
Where is your cocoon app running in ? I've been using jboss 3.2.7 some time and had to put some libraries into the lib/endorsed dir to get things working, David wrote: When I try to goto any of the java flow samples I get the error below. I am using Cocoon 2.1.7. Thanks in advance for any he

Re: CForms - adding style to labels

2005-08-04 Thread Thomas Lutz
Isn't there something like a fi:styling tag in the form template ? I think I used this for some additional javascript hacks.. everything you pass in the fi:styling is copied to the output tag... footh wrote: Hello, I'm trying to add a class attribute to the tag that gets generated from the

Re: JavaFlow: getting the application context

2005-07-27 Thread Thomas Lutz
Copy of my answer to your previous posting: I am using quite the same environment as you do...javaflow, jxtemplates, some custom generators. Looking around I found no application object, too, but :-) maybe the this concept might help: Create a "standalone" cocoon independent class, that is

Re: Application and Session objects in cocoon

2005-07-22 Thread Thomas Lutz
I am using quite the same environment as you do...javaflow, jxtemplates, some custom generators. Looking around I found no application object, too, but :-) maybe the this concept might help: Create a "standalone" cocoon independent class, that is responsible for building your items cache. If

Re: CForms: Accessing javaflow continuation or session from java event handler...

2005-07-21 Thread Thomas Lutz
onEvent); } } } public void handleValueChangedEvent(ValueChangedEvent valueChangedEvent) { // TODO Auto-generated method stub } Thomas Lutz schrieb: Hi list ! I use java as flow language, not javascript. This forces me to use java in all places, where

CForms: Accessing javaflow continuation or session from java event handler...

2005-07-20 Thread Thomas Lutz
Hi list ! I use java as flow language, not javascript. This forces me to use java in all places, where javascript is used in the samples, and my problem are action event listeners. I managed to write a event listener in java, accessing all the form elements via the event param, but... How do

CForms: Java class for action events, call with parameter

2005-07-20 Thread Thomas Lutz
Hi list ! Is it possible to pass parameter to a java action event handler ? So I could write a generic action event handler, that recieves two strings with group id's... switching them from group state invisible to active and vice versa ? thanks, tom

CForms: Using javascript action event handler while using java flow in sitemap

2005-07-19 Thread Thomas Lutz
Hi list ! All my "sitemap flowscript" is written in javaflow. Now I am trying to copy-paste some action event handler from the multi-page example, and do not have access to the classes used.. The action event definition follows below, what I get is that WidgetState is unknown. In the exmaple

Re: cocoon in jboss

2005-06-21 Thread Thomas Lutz
That depends on the jBoss version you want to use. I am currently using the 3.2.7 and all I had to do is to place some libs in the endorsed directory. So, step for step it would be: o) place commons-collection*.jar (commons-collections-3.1.jar in my env) from cocoon/lib in jboss/server/defa

WhatTheHack come together ?

2005-06-20 Thread Thomas Lutz
Hi ! Sorry for the cross post, I was not sure wether all the dev readers check the users group, too. As I read the GT2005 announcements, I was wondering if there are some cocooners at the WhatTheHack (http://www.whatthehack.org) in the end of july. Maybe this would be a good chance for at le