Re: NullPointerException @ cocoon+ mysql //thank you!

2004-02-28 Thread Johannes Textor
Han, you have to setup user name and password according to the mysql user settings. The default settings are user root and no password (), but I would strongly advise you to change this. Greetings Liqiao Han wrote: I have struggled with cocoon+mysql for a week and failed to make themwork! I

Re: 2.1.4-dev -- 2.1.4 release No languages defined!

2004-03-03 Thread Johannes Textor
I also had this problem, but it was because I inserted the following fragment from the cocoon doc's flowscript tutorial (http://cocoon.apache.org/2.1/userdocs/flow/tutor.html) into my sitemap: map:components map:generators default=file !-- in this example we use JXTemplateGenerator to insert

Re: [beginner] Installing Cocoon on Debian.

2004-03-18 Thread Johannes Textor
Hi, you can use the ParanoidCocoonServlet to make sure that libraries located in WEB-INF/lib are searched before those of the JDK or the common\endorsed libraries. You can find a detailed description of this issue at: http://wiki.cocoondev.org/Wiki.jsp?page=EndorsedLibsProblem Laurent

Re: [beginner] Installing Cocoon on Debian.

2004-03-18 Thread Johannes Textor
cocoon directory are just list by tomcat. Regards, Laurent - Original Message - From: Johannes Textor [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Thursday, March 18, 2004 1:24 PM Subject: Re: [beginner] Installing Cocoon on Debian

Re: cocoon stalls/freezes - big problem

2004-03-19 Thread Johannes Textor
Hi, I also had this kind of problem. My fault was opening database connections and not closing them properly, so after a while the connection pool was full. The next time a page wanted to access the database, it stalled because it was waiting for a free connection from the pool - so I thought

Re: can I use action in cocoon flowscript ?

2004-04-02 Thread Johannes Textor
hi, i actually don't know if it is possible to access sitemap actions from flowscript, but i think it would not be the preferred way to control flow as you should not mix sitemap flow control (actions) with advanced control flow (flowscript). If you want to access a file you can use the

Re: Problem passing parameter values from sitemap into flowscript..

2004-04-25 Thread Johannes Textor
Hi, I think you are confusing sitemap parameters with request parameters. You can fetch sitemap parameters from the parameters object: var svgWidth = cocoon.parameters.getParameter(svgWidth); HTH, Johannes beyaNet Consultancy wrote: Hi, I have a sitemap pipe: map:match

Re: Problem passing parameter values from sitemap into flowscript..

2004-04-25 Thread Johannes Textor
true, the docs seem incorrect (or misleading at least). does it work out when using the parameter object ? if so, can you report the bug in bugzilla ? I can also do it if you don't have a bugzilla account. beyaNet Consultancy wrote: Thanks guys, but the source of my initial information was from

Re: Problem passing parameter values from sitemap into flowscript..

2004-04-25 Thread Johannes Textor
. Peter On 25 Apr 2004, at 13:39, Johannes Textor wrote: true, the docs seem incorrect (or misleading at least). does it work out when using the parameter object ? if so, can you report the bug in bugzilla ? I can also do it if you don't have a bugzilla account

Re: Problem passing parameter values from sitemap into flowscript..

2004-04-25 Thread Johannes Textor
OK, thats clear enough to be understood by flow-newbies. Thank you :-) The docs are correct, but a little misleading. I have therefore changed the page to say: map:flow language=javascript map:script src=myApplication.js/ /map:flow map:pipelines

Re: How to pass request value to generator

2004-05-10 Thread Johannes Textor
Hi, you can use the following syntax: map:generate type=directory src={request-param:hiddenPath} HTH, Johannes [EMAIL PROTECTED] wrote: Hi, How can we retrieve the parameters sent by a html form and send this as an input to a generator I have a html page form name=test actionTestPage

Re: IE does not reload updated javascript

2004-05-18 Thread Johannes Textor
Hi Andreas, I guess you can enforce script reloading by appending a random get parameter to the script URL, i.e. script src=myscript.js?p={timestamp}/ or something like that. (I know that's ugly brute force ...) HTH, Johannes Andreas Hartmann wrote: Hi Cocoon community, I'm using a javascript tree

Strange Caching (?) Issue

2004-06-06 Thread Johannes Textor
Hi all, I have a strange problem that seems to be related to caching. (refers to cocoon 2.1.4). I have the following sitemap entries to serve images and stylesheets (they're part of a semi-complex webapp) : map:match pattern=*.css map:read mime-type=text/css src=css/{1}.css/ /map:match

Re: Link Livesites: SIA Cocoon 2.1.3

2004-06-09 Thread Johannes Textor
Colombian spanish is still spanish, even if there are some differences in pronounciation and vocabulary. Colombians prefer to call it castillian (castellano). Joerg Heinicke wrote: On 09.06.2004 21:51, Joerg Heinicke wrote: but the portal at http://www.sia.unal.edu.co/academia/portal/ is

[CForms] How to set multivalue widget's values ?

2004-06-20 Thread Johannes Textor
Hi all, I'm going nuts trying to set values in a CForm multivalue widget. I obtained the Form model with: var model = form.getModel(); Then I tried to set the values like this: model.rubriken = Array(size); for( i = 0 ; i size; i++) model.rubriken[i] = new java.lang.Integer(val[i]); When

Re: [CForms] How to set multivalue widget's values ?

2004-06-21 Thread Johannes Textor
Hi Derek + all, I got this solved in the meantime. Actually I had to create a temporary array and then set the multivalue model to this array: var model = form.getModel(); var rubriken = Array(); for( i = 0 ; i size ; i ++ ) rubriken[i] = new java.lang.Integer(val[i]); model.rubriken =

Re: [CForms] How to set multivalue widget's values ?

2004-06-21 Thread Johannes Textor
Derek, I actually don't use the values this way, I insert them directly into the database after the form was submitted. Let's examine your code though, since you should be able to use the values in jxt as well. var model = form.getModel(); var atheme = model.theme; /* theme is multiselect

Re: [CForms] How to set multivalue widget's values ?

2004-06-21 Thread Johannes Textor
Hi Derek, now while trying out your code I discovered something that really has nothing to do with CForms: jx:forEach var=thisTheme items=atheme liA Selection 1: ${atheme}/li /jx:forEach the syntax is simply wrong. it should say jx:forEach var=thisTheme items=${atheme} liA Selection 1:

Re: Low to zero-cost Cocoon hosting?

2004-06-23 Thread Johannes Textor
Derek, the greatnet hosting service starts at eur 15 for a virtual server. The cheapest cocoon hosting service I know is at http://www.starline-net.de/ (zis is german to though :) and costs eur 10. A friend of mine hosts his private page there and it works OK. If bandwidth and stability are not so

Re: Low to zero-cost Cocoon hosting?

2004-06-23 Thread Johannes Textor
well their support might not be the right word, as the page states that the company is run by a sole student :) so you might just try and ask www.mirsky.de is also mentionable, we host our commercial projects there and despite some unannounced maintainment server shutdowns, the overall impression

Re: Problem with picture upload

2004-07-30 Thread Johannes Textor
Karim, add image/pjpeg to the mime-types list. ie 6 uses this mime type for jpeg images. does that help? Regard Johannes Karim ALKHADER wrote: Hello, You 're rigth Joose. I just forgot to mentioned I tried this way. And it's only working fine with bmp and jpeg. Sorry : it's only working

Re: Flow : File class delete() pb?

2004-08-26 Thread Johannes Textor
Hi, you probably wrote theFile[delete]; try theFile[delete](); instead. oceatoon wrote: Hello JD Thanks for the answer I tried your call, it calls the right function because it outputs a log.warn like this : function delete() {/* boolean delete() */} which seems correct, but unfortunetly has no

Hibernate with Cocoon connection pool

2004-09-02 Thread Johannes Textor
Hi all, I have a webapp which uses Hibernate for persistency. Hibernate connects to the database (MySQL) using its own connection pool (where the settings are specified in hibernate.properties) I read that Hibernate's builtin connection pool is no good for production use, and indeed I'm facing

Re: Advantage using Hibernate with Cocoon

2004-09-09 Thread Johannes Textor
Hi Pat, I have am now finishing my first project I used Hibernate and Cocoon together in, so maybe you are interested in some thoughts from a beginner's point of view. The issue Hibernate addresses is how to get objects to and from the database. When I started to use cocoon, I was impressed by

Re: Advantage using Hibernate with Cocoon

2004-09-10 Thread Johannes Textor
Derek, I created a wiki page that wants to grow up to be a new Tutorial about Cocoon and Hibernate. [CocoonAndHibernateTutorial]. As time allows I will add (resp. *create*) content, check back from time to time and add your comments. Hope we can shrink the Elephant :-) Greetings, Johannes Derek

Re: [CForms] flow problems

2004-09-28 Thread Johannes Textor
Hi, let's see if I got you right, if you have a subset of elements that should appear in form1 AND form2 and some elements that are unique for both, you could - write a javascript function that manually copies values from form1 to form2 - use just ONE form object for both forms with two

Re: [sorry but not all done yet] RE: pass a variable from flowscript into cfrom text input field

2004-10-26 Thread Johannes Textor
hi philipp, the error message seems quite clear, you have to supply a boolean value (true or false) to a booleanfield. if you did that it's maybe a javascript-java-interaction problem. can you post the actual code that generated the error message ? from below i can only see you try to set the

Re: [sorry but not all done yet] RE: pass a variable from flowscript into cfrom text input field

2004-10-26 Thread Johannes Textor
hi philipp, var mail = ; //here is the boolean field mail mail is a booleanfield, so you have to set either var mail = true; or var mail = false; as you can see from the error message: java.lang.RuntimeException: Cannot set value of boolean field test to a non-Boolean value. is

Re: iteration problem with flow

2004-11-06 Thread Johannes Textor
Hi Andrew, not sure about this but cocoon behaves the following way for multiple checkboxes: - if no checkbox is selected, you get no value, i.e. cocoon.request.get(delItem) is null. - if one checkbox is selected, you get a simple value, i.e. cocoon.request.get(delItem) is for example 5. - if

Re: JXtemplate session-context

2004-11-10 Thread Johannes Textor
Hi Jan, afaik there is no way to do this directly in jxt. Anyway I think that's more a design decision than a lacking feature, since you should not use jxt to do complex stuff - it's a mere formatting language. You can, of course, retrieve this information in your flow script and pass it to jxt

Re: JXtemplate session-context

2004-11-10 Thread Johannes Textor
. This seems like making a simple page more difficult, if you know what I mean ;-) Thanks for your reply Johannes, Kind Regards, Jan Johannes Textor wrote: Hi Jan, afaik there is no way to do this directly in jxt. Anyway I think that's more a design decision than a lacking feature, since you should not use

Re: Cocoon portal and META Tag

2004-11-22 Thread Johannes Textor
Hi Anna, I'm having a hard time figuring out what your problem might be ... it would be useful if you could include source codes for your xsp and provide more information about how you actually pass your parameters. cocoon itself does not differentiate between post and get request methods neither

Re: Cocoon and Hibernate (connection-pool) ...since it is getting colder outside

2004-11-23 Thread Johannes Textor
Hi Phillipp, Ugo Cei wrote: Il giorno 23/nov/04, alle 13:52, Philipp Rech ha scritto: 1) i have a connection-pool and datascource in Tomcat, Cocoon and Hibernate which of the 3 should - and can I use? And if i use one how to tell other players in the team? i would like to use a cocoon.xconf

Re: Hibernate and Cocoon database pool question

2004-12-03 Thread Johannes Textor
hi george, I just started last week to write the below mentioned tutorial and it is not finished yet. net.sf.hibernate.MappingException: Unknown entity class: my.test.Mutex I would say that this happens because you did not add the class my.test.Mutex to your Hibernate configuration. Can you

Re: [CLOSED] Hibernate and Cocoon database pool question

2004-12-06 Thread Johannes Textor
Hi again George, strange, the code in the page works for me and also for some people who have tested the page. just out of curiosity: which version of Hibernate are you using ? Regards, Johannes george georgovassilis wrote: Guten Morgen Johannes Thank you very much for your help. Your

Re: [CLOSED] Hibernate and Cocoon database pool question

2004-12-06 Thread Johannes Textor
ok, next time I will read more thoroughly :) You needed to call configure() because you are using the hibernate.cfg.xml file, as opposed to hibernate.properties used by me and in the tutorial, which is read automatically when the session is created. I will add this information to the page.

Re: newlines to br

2004-12-09 Thread Johannes Textor
Hi Merico, I have attached a stylesheet that I use for doing this. Works for me with xalan, hopefully also with saxon. HTH, Johannes Merico Raffaele wrote: Dear Community I'm looking for a way to translate the newlines in a text into HTML-BR when serializing to HTML. Can anybody give me a tip. I'm

Re: AW: newlines to br

2004-12-10 Thread Johannes Textor
Hi Merico, You might want to use white-space:pre-line, which still collapses white space, breaks lines at box borders and on occurence of \n in text. However, pre is the only one that works at least in Mozilla. None seem to work in early IE versions, so I still prefer the XSL solution. Some words

Re: Cocoon Foms help needed!!!

2004-12-13 Thread Johannes Textor
Hi Lincoln, Any how my current problem is that moving the files (and I think I got them all) causes the form to disappear - I just get an blank white page - however the source is there. Getting a blank white page is quite strange. There are two explanations I can think of: - Is one of the

Re: Cocoon File upload HELP

2004-12-15 Thread Johannes Textor
did you enable file uploads in web.xml and set the upload path accordingly ? angeloimm wrote: Hi... first of all thanks for your help. I have tried to do what you said but i have always that error. any ither ideas? Thanks -- Initial Header --- From : Mark Lundquist

Re: NOT-SOLVED....WHY?? Re: Cocoon File upload HELP

2004-12-15 Thread Johannes Textor
angeloimm wrote: Hi. Yes i have enable all; this is my cocoon-servlet configuration in web.xml: servlet init-param param-nameenable-uploads/param-name param-valuetrue/param-value /init-param init-param param-nameupload-directory/param-name param-valueXPDL/param-value

Re: NOT-SOLVED....WHY?? Re: Cocoon File upload HELP

2004-12-15 Thread Johannes Textor
from your html code: form action=046f555101524b3d56527613485c82466e6e2977.kont method=POST onsubmit=forms_onsubmit(); the enctype=multipart/form-data attribute is missing. check your stylesheet ! HTH, Johannes - To

Re: Cocoon, Hibernate and HSQL

2005-04-09 Thread Johannes Textor
Leszek Gawron schrieb: You can put all your database configuration data in hibernate.cfg.xml and it will work just fine. No need to use cocoon connection pools. Although this is slightly offtopic, I'd like to give my 2c on this (since it would mean that my poor tutorial would be useless ;) ):

Re: CocoonAndHibernateTutorial precisions

2005-04-14 Thread Johannes Textor
Hi Sebastien, which version of hibernate are you using ? Nothing seems wrong with these messages though, Hibernate would complain explicitly if anything went wrong. Greetings, Johannes Sebastien Arbogast schrieb: Hi, I'm following wiki CocoonAndHibernateTutorial ti integrate Hibernate into Cocoon

Re: Using Hibernate via Java, not Flow

2005-04-19 Thread Johannes Textor
Actually, when putting all the Hibernate stuff into java you would write some kind of wrapper class to handle all the transactions, so that there would be no need to have the session as a global variable. To be sincere, I think you do not need it anyway ... I was just to lazy to pass hs as an

Re: Using Hibernate via Java, not Flow

2005-04-19 Thread Johannes Textor
Yeah, the problem I have is that I may call 5 different methods on 3 different hibernate wrapper classes in Flow, all of which use the hibernate session. So I'd need a sort of global session that only gets opened the first time one of the classes is called, then gets closed by the filter. OK,

Re: [CForms] Getting selectedValues from a multivaluefield ?

2005-05-22 Thread Johannes Textor
I tried : form.getModel().myFieldId = Cannot convert from... exception form.getModel().myFieldId.getValue() = getValue is not a function exception The multivalue field has a getValue() function which returns an Object[] (see org.apache.cocoon.forms.formmodel.MultiValueFiled) You

Re: Flowscript class not found problem

2005-05-22 Thread Johannes Textor
Hi Carlos ! You should not need to import the class explicitly when addressing it via packages. Another question, though: Do you also have the HibernateFactory class in WEB-INF/classes/hib ? If so, please post the source codes of both to have a look. Greetings, Johannes Carlos M. S. Bento

Re: Flowscript class not found problem

2005-05-23 Thread Johannes Textor
Carlos M. S. Bento Nogueira schrieb: Hallo Johannes, Yes. They are both in the same directory WEB-INF/classes/hib. Here is the source code for both file. Hmm the sources look OK. From my limited Java knowledge, I would say the $1 at the end of the error message means that Java tries to

Re: [CForms] Getting selectedValues from a multivaluefield ?

2005-05-23 Thread Johannes Textor
Please help ! I tried to find a solution in samples but the only multivaluefield I found was not used from flowscript. The whole form is just forwarded to some XSP logicsheet as a request parameter. Maybe you cannot pass the model.userRoles directly. Keep in mind that the flowscript form

Flowscript, global Object()

2005-06-15 Thread Johannes Textor
Hi List, I've noticed a behaviour in Flowscript that seems somewhat strange to me, but before thinking it is a bug I'd like to ask around if someone thinks that this actually makes sense. As we all know, global variables in Flowscript correspond to the User's Session. This should lead to the

Re: configuring cocoon with hibernate

2005-06-15 Thread Johannes Textor
Searching the wiki at wiki.apache.org/cocoon will yield some answers to this somehow complex question :) Jubin Thomas Kuriakose schrieb: Could anyone tell me how to configure cocoon with hibernate - To unsubscribe, e-mail:

Re: [FYI] Planet Cocoon Search queries for June: Hibernate wins again

2005-07-08 Thread Johannes Textor
Hi Mark, Strictly for those miserable souls like me who are interested in search statistics: http://www.planetcocoon.com/node/2684 I find this pretty interesting (so this must mean I'm another miserable soul :). How come so many people are searching for

Re: Accessing the cocoon session from my Hibernate User-Type

2005-08-01 Thread Johannes Textor
Hello, could you please provide a few more details on how you are actually taking the user locale in your hibernate object (constructor parameter / system property / etc.) ? How are you accessing your objects - directly or via a Data Access Object (DAO) ? Regards, Johannes Hello all I

Re: AW: Accessing the cocoon session from my Hibernate User-Type

2005-08-01 Thread Johannes Textor
Hi Elad, I think I have a suggestion for this: Since there is no way (I am aware of) to access Cocoon from a Hibernate object, the most straightforward solution might be using an InheritedThreadLocale to store the HTTPRequest in. A User object which would retrieve the current locale from the

Re: AW: AW: Accessing the cocoon session from my Hibernate User-Type

2005-08-02 Thread Johannes Textor
Hi Elad, I actually came to the same conclusion myself, when waiting to your reply and doing some googling :). well that should mean it's not such a bad idea I hope :) However I have used the ThreadLocal object. I didn't quite understand the differences between the Inherited

Re: Flow Script Output

2005-09-26 Thread Johannes Textor
Hi Jan, [EMAIL PROTECTED] schrieb: This method has some seriouse drawbacks. First and most important for me is, that it look quite silly. I think it is not supposed to be done this way. Would'nt it be much smarter to just drop the XML into the result stream that is send to the client anyway

Re: AW: Flow Script Output

2005-09-26 Thread Johannes Textor
Hi Jan, All three Jobs are using the same Styleshteets. I just want to stylsheets to generade PDF files and not to contain any Job logic. This is why I have the job logic somewhere else. Do I correctly understand that the XML tree you are generating is the status xml ? I m using

AJAX and Cocoon - Design Patterns

2005-10-03 Thread Johannes Textor
Hi everybody, I have some thoughts about Cocoon and AJAX that I want to share with you. They are somehow related to the Is cocoon obsolete?-thread on the dev list, but I think users also should express their opininons :) To sum it up, it has come into my mind that AJAX strengthens the classic

Re: AJAX and Cocoon - Design Patterns

2005-10-03 Thread Johannes Textor
Hi Ralph, Johannes, If you actually do this you will be creating a website with a big security hole. Anyone would be able to send fake requests to your server with bogus data. Client side validation is nice - it gives a faster response to the user and does take a load off the server as

Re: AJAX and Cocoon - Design Patterns

2005-10-04 Thread Johannes Textor
Doesn't this mean writing a full-blown App in Javascript? Yes, an AJAX-Client (as I see it) is esentially a full-blown App in JavaScript. Think about the classic examples, Google Mail and Google Maps. They provide a stunning user experience - but they are written in Cross-Browser

Re: AJAX and Cocoon - Design Patterns

2005-10-05 Thread Johannes Textor
Derek Hohls schrieb: Ah. .So you were actually saying you can define a single set of validation criteria _could be_ used to generate whatever validation is performed both client side and server side Obviously, Cocoon only generates the server side validation code at present - but it seems

Re: AJAX and Cocoon - Design Patterns

2005-10-05 Thread Johannes Textor
Sylvain Wallez schrieb: I disagree with the statement that Ajax makes CForms obsolete. Even with Ajax, you still need to input some data, validate it and relate it to back-end data. Now the way we interact with forms will change, and rather than filling everything and submitting to see what

Re: AJAX and Cocoon - Design Patterns

2005-10-07 Thread Johannes Textor
(anybody else unable to post to users@ from certain accounts?) Sylvain Wallez schrieb: Some validations can be moved on the client-side. There are a number of different kinds of validations: 1 - individual syntactic/format validations (e.g. number / date / regexp) 2 - individual semantic

Re: generating emails from flow dom object

2005-10-09 Thread Johannes Textor
Hi Christofer, one suggestion how to do this: Generate and send a nicely formatted Email from the dom-object: 1. somehow generate content form the flow object 2. do an XSLT to make it look nice Create a pipeline that generates (X)HTML from your flow object. use the module source

Re: AJAX and Cocoon - Design Patterns

2005-10-10 Thread Johannes Textor
But if there was a way to use CForms in a service-call-like fashion, (e.g. call form rendering service, which returns xhtml you can place in a div - call validation service - call data update service which implies validation service - and so on), as such somehow decoupling the form object

Re: AJAX and Cocoon - Design Patterns

2005-10-10 Thread Johannes Textor
Is there already a way to just retrieve XML error messages and handle them client-side ? This would enable, for example, to have an AJAX client programmed by somebody who doesn't need to know Cocoon CForms inside-out, as long as he adheres to a well-defined interface. (He'd call CForms like

Re: [CForms] Encoding Problem with CForms

2005-10-16 Thread Johannes Textor
Hi Christofer, make sure the encoding you use in your files form definition matches the form-encoding parameter of your servlet engine, specified in web.xml - I'm devoloping on linux, using utf-8 as default file encoding + form encoding and had to set the form-encoding param to utf-8 like this:

Re: pooling + hibernate

2005-10-31 Thread Johannes Textor
Hi Andre, even though it _is_ possible to persist objects from within layers that don't know anything about cocoon by propagating the connection pool in an InheritableThreadLocal, there is basically no reason why you shouldn't use an external C3P0 pool, and move all persistence related logic out

Re: Connection Pooling for Spring and Hibernate3

2005-11-15 Thread Johannes Textor
Hi William, William Moore schrieb: Hello, Is it possible to use the Cocoon database connection pool inside an application based on Cocoon, Spring and Hibernate? I have looked at CHS (http://www.cocoondev.org/main/117/43.html) and CocoonAndHibernateTutorial

Re: Cocoon PHP integration

2006-01-16 Thread Johannes Textor
Hi Tarun, my suggested way of integration would be not to integrate them at all, but to rather aggregate them using apache's ModProxy or some similar technology. Cocoon wiki has a great article about ModProxy at http://wiki.apache.org/cocoon/ApacheModProxy Example: You have a cocoon based site

Re: Simple Page Editor for Cocoon?

2006-01-23 Thread Johannes Textor
Hi Derek, I did something like that, but it think it is still more 'simple' than you describe: - no database connection, all you do is edit XHTML fragments which are stored as flat XML files in a directory - no title, no section for a page, just the (unique) filename It is based on the freeware

Re: cocoon.sendPage and bizData

2006-02-21 Thread Johannes Textor
Bertrand Delacretaz schrieb: Le 21 févr. 06 à 14:57, Angelo Immediata a écrit : ...var bizData = { name : test, id : identifier } cocoon.sendPage(test.jx, bizData);.. Should be cocoon.sendPage(test.jx, { bizData : bizData} ); -Bertrand Sure ? if I get this correctly, it is

Re: cocoonhibernate tutorial

2006-02-22 Thread Johannes Textor
hi abu, this is more a basic java question since you did not yet get to the point where the real problems arise, but let's see ... First of all, are you using Hiberrnate 2 or 3 ? Might finally update the tutorial since I don't know how many people still use Hibernate 2 ... Next, if your java file

Re: [poll] Java 5 as minimum requirement for Cocoon 2.2

2006-08-16 Thread Johannes Textor
+1 This comes from my user perspective, since I don't normally depend on large entities to host my applications, but can rather set up my own servers and install the software I need. In fact, I think that entities with a more conservative migration strategy would not typically use cocoon to

Re: CForms/Flowscript and Hibernate long sessions

2007-05-15 Thread Johannes Textor
Hi Fabrizio, I wrote most of the tutorial you cite two years ago, but from the discussions on the list got the impression that most people switched to the CHS (Cocoon, Hibernate, Swing). Thus it is interesting to see that someone is actually still using this technique. I do it still, as well,

Re: CForms/Flowscript and Hibernate long sessions

2007-05-16 Thread Johannes Textor
Hi Baptiste, Being a newbie, I struggled quite a time on the model and finally used Generic DAO like described here : http://www.hibernate.org/328.html For sure having the FlowScript to open Hibernate Sessions is messy in the MVC pattern, in your implementation are you using some

Re: CForms/Flowscript and Hibernate long sessions

2007-05-18 Thread Johannes Textor
Hi Fabrizio, it seems that you alread have a very elaborate solution. I do not understand some points completely yet, so let me ask some further questions: I tend to be more pragmatic, rather than philosophical ;-) Therefore I ran various stress-tests using the 'ab' tool ('apache benchmark',

Re: Pass the content of a pipeline to a flow

2007-05-20 Thread Johannes Textor
hi ypomonh, try cocoon.processPipelineTo() as documented (http://cocoon.apache.org/2.1/userdocs/flow/api.html) regards, johannes ypomonh wrote: Is it possible to pass the contents of a pipeline to a flow? I tried: map:pipeline map:match pattern=myflowurl

Re: CForms/Flowscript and Hibernate long sessions

2007-05-22 Thread Johannes Textor
Hi Fabrizio, Beware, as this post is a rather lengthy one :-) I'm trying to be a bit more brief this time :-) I've read up a bit on the Hibernate docs / forums, and wow that stuff is much more detailed now than when I last checked (can't remember when that was though). I think I have to

Re: Formatting decimal values in a form

2007-05-25 Thread Johannes Textor
Hi Joerg, Derek, quoting Joergs sample code: DecimalFormat decimalFormat = (DecimalFormat)NumberFormat.getNumberInstance(locale); decimalFormat.applyPattern(### ### ###.###); decimalFormat.format(value); Guessing from the Java DecimalFormat docs (which are REALLY confusing BTW), this should

Cocoon / Hibernate revisited

2007-05-28 Thread Johannes Textor
Hello, following an inspiring discussion with Fabrizio here on the User's list, I reworked the Cocoon and Hibernate tutorial and the underlying glue classes. The solution is now free of major architectural sins (as far as I can say) and allows a clean implementation of DAOs. No more opening

Re: lost database connection

2007-05-30 Thread Johannes Textor
Hi Varga, use jdbc:mysql://localhost:3306/YourDatabaseName?autoReconnect=true as described here: http://wiki.apache.org/cocoon/MySQL Regards, Johannes

Re: Cocoon / Hibernate revisited

2007-05-30 Thread Johannes Textor
Hi Tricia, What is the advantage of using a DAO? I'm not sure if I am the right person to answer this question, but I'll give it a try. Quoting from Wikipedia at http://en.wikipedia.org/wiki/Data_Access_Object: Data Access Objects are a Core J2EE

Re: Cocoon / Hibernate revisited

2007-05-30 Thread Johannes Textor
Hi Fabio, Fabrizio Sitzia wrote: I've looked your page up in the Wiki - Wow! (Einfach geil!) Thanks for the props :) As soon as I've got something I can trust in production, I'll write up the Wiki page describing it. I'll keep you posted. I'm looking forward to see that. Let's get rid of

Re: Re: Cocoon / Hibernate revisited

2007-05-31 Thread Johannes Textor
Hi Baptiste, how is your filter-mapping defined in web.xml ? This looks like you map the filter to all URLs, including images, css, non-database-dependent HTML and so on ... you should map the filter only to those URLs which actually use the hibernate session. This is a little difficult,

Re: ImageReader not working on fedora 6

2007-06-06 Thread Johannes Textor
This question is actually covered in the Fedora FAQ: http://www.fedorafaq.org/ For running cocoon, additonally set JAVA_HOME to the root of the sun JDK installation instead of gcj. (jeroen, my mail provider is trying a new fancy web 2.0 interface which first decided to send this mail to you

Re: Styling an fd:multivaluefield item?

2007-06-08 Thread Johannes Textor
Derek, I think Joerg is making the following point: In the form *definition*, you just define the set of *possible* values for a field, e.g.: fd:multivaluefield id=language fd:labelSelect language/fd:label fd:datatype base=integer/ fd:selection-list fd:item

Re: Styling an fd:multivaluefield item?

2007-06-08 Thread Johannes Textor
Derek, Thanks; that is clearer. Am I correct in assuming that the : fi:values fi:value1/fi:value fi:value3/fi:value /fi:values will be displayed as checked input boxes with a: fi:styling list-type=checkbox/ I don't really know, since I do not use the default CForms

Re: How to get a jdbc connection or jdbc url(defined in cocoon.xconf) from flowscript

2007-07-17 Thread Johannes Textor
Hi Phillipe, you can do it like this: cocoon.load(resource://org/apache/cocoon/components/flow/javascript/Database.js); and then var db_conn = Database.getConnection(CordobaJDBC); Unfortunately, the load will just work if you have the samples included (it's from the petstore block). In case

Re: Database connection problems during upgrade

2007-08-06 Thread Johannes Textor
Hi Derek, this is probably because you have not included com.mysql.jdbc.Driver (not sure if this is the exact class name) in web.xml. Cheers, Johannes Original-Nachricht Datum: Mon, 06 Aug 2007 11:05:17 +0200 Von: Derek Hohls [EMAIL PROTECTED] An: users@cocoon.apache.org

Re: Database connection problems during upgrade

2007-08-06 Thread Johannes Textor
this is probably because you have not included com.mysql.jdbc.Driver (not sure if this is the exact class name) in web.xml. Or maybe he didn't copy the actual driver class. For example, mine is: WEB-INF/lib/mysql-connector-java-5.0.6-bin.jar Tobia That might also be, although I'd

Re: Flowscripts - are they cached?

2007-11-10 Thread Johannes Textor
From my experience the situation is like this: - if you have an active http session, log out (or delete the cookie using crl+shift+del in firefox or whatever) and the new script should be used. - if you have a main flow script file which includes other scripts, changes in the included

Re: Need help Character Encoding :-((

2007-12-12 Thread Johannes Textor
Hi Andreas, if something goes wrong with the encoding, it's almost certainly a generator issue. Which generator are you using? Could you post the corresponding part of sitemap.xmap so we can have a look at your pipeline? Johannes Andreas Busch wrote: Hello, I have a problem with search

Re: Need help Character Encoding :-((

2007-12-12 Thread Johannes Textor
Unfortunately, creating your own links does not work with special characters. While your pages are in ISO-8859-1 and probably work fine with all forms and stuff since the server also expects ISO-8859-1, these links get *always* UTF-8 encoded so that you have a mismatch on the server.

Re: RE: Need help Character Encoding :-((

2007-12-12 Thread Johannes Textor
Hi Andreas, I'd bet that the screwed umlaut arises already at the level of the multisearch generator, can you confirm this? (by looking at search.xml?cocoon-view=debug and checking the source code). If this is indeed the problem, your generator is not using the correct encoding to decode the

Re: Passing flowscript data to a form

2008-03-03 Thread Johannes Textor
What do I need to change? [snip] The flowscript looks like: var tForm = new Form(cocoon:/db/update/form/test, {foo:foob}); var tmodel = tForm.getModel(); tForm.showForm(db/test.uforms); var tForm = new Form(cocoon:/db/update/form/test); var tmodel = tForm.getModel();

Re: Catching errors in flowscript

2008-03-13 Thread Johannes Textor
not sure where the print output ends up, though. I'd use try { //do something stupid! } catch(err) { cocoon.log.error( err ); } or, if you want it less verbose, try { //do something stupid! } catch(err) { cocoon.log.error( err.getMessage() ); } In these cases the error

Re: error in html serialization

2008-04-16 Thread Johannes Textor
Hi Mika, I can confirm this, although it did not crash after 11 times, but about 15 ... whatever, can you please - provide the pipeline that generates this error - set pool-max and pool-min for all involved components to 1 in sitemap.xmap, restart cocoon and tell us what happens? Regards,

Re: error in html serialization

2008-04-16 Thread Johannes Textor
Hi Mika, am I guessing right that you are using Java 1.6? The NullPointerException means that This abstract pathname does not denote a directory, or if an I/O error occurs (quote from Java spec). Maybe you're running out of file handles ... which operating system are you using? Also, if you set

  1   2   >