Re: Bulletin Board?

2004-10-30 Thread Bert Van Kets
Hi Monali, What do mean by integrating? Is Cocoon managing all requests and piping them to the PHPbb or did you use a different approach? I'm using this BBS too on my site and would love to have it more integrated with the main site which runs on Cocoon. Bert On Fri, 2004-10-29 at 18:00, Monali

Re: Cocoon and JDK 1.5

2004-10-27 Thread Bert Van Kets
Hi Antonio, I did a CVS checkout today before I started with the attempt to compile with JDK 1.5.0. So I can tell that the 2.1 branch of Cocoon certainly does not comply with 1.5 yet. The source=1.4 trick does not allow full optimization of the code so should be avoided. It's correct that some

Re: Cocoon and JDK 1.5

2004-10-27 Thread Bert Van Kets
wrote: http://marc.theaimsgroup.com/?l=xml-cocoon-devm=109710228801931w=2 and http://marc.theaimsgroup.com/?l=xml-cocoon-devm=109691665429634w=2 Bert Van Kets said: This rant is about Cocoon 2.1.5 The biggest problem using JDK 1.5 is the use of enum in the source code. This variable

Re: [SPAM] Re: Cocoon and JDK 1.5

2004-10-27 Thread Bert Van Kets
to the basics. :-( On Wed, 2004-10-27 at 18:32, Antonio Gallardo wrote: Bert: I hope you saw the other mail with this link: http://wiki.apache.org/cocoon/SubversionMigration Best Regards, Antonio Gallardo Bert Van Kets dijo: Your remarks are correct. I do read the dev list too

Re: Sharing sessions and authentication across sites

2004-10-26 Thread Bert Van Kets
Use Apache httpd in front of your servlet engine and have mod_proxy pipe the requests from httpd to 1 servlet webapp. The session can remain in Tomcat while Cocoon uses different stylings or sub sitemaps. Just a thought. Bert On Tue, 2004-10-26 at 19:27, Oscar Picasso wrote: Hi, I have a

Cocoon and JDK 1.5

2004-10-26 Thread Bert Van Kets
This rant is about Cocoon 2.1.5 The biggest problem using JDK 1.5 is the use of enum in the source code. This variable or object name is not allowed any more as enum is a new type of variable in JDK 1.5. There are however still quite a lot of uses of enum in the Cocoon source. First I rebuilt

woody repeater with output only

2004-03-11 Thread Bert Van Kets
I'm using Cocoon 2.1.4 I have a repeater in a woody form with static output. Just 1 element in the list may be changed (a member status). I display most of the data with wi:styling type=output/ but there's one major dicadvantage here. When I use the delete-row action, non of the output fields are

Re: XML To Excel

2004-02-25 Thread Bert Van Kets
If you don't need formula, you can create an html page with a table and send that to the browser with the application/excel mime type. This data will be opened by Excel and all data shown. It's very easy to do and doesn't require any fancy programming. Just a hint. Bert - Original Message

Re: building Collection from JDO problems

2004-02-23 Thread Bert Van Kets
Instead, try to use OJB-PB (PersistenceBroker). Yesterday, I extended Cocoon CVS to allow the use of PBFactory. Currently, seems like the JDO implementation in OJB is broken. The persistence broker is stable and can be used. You can very easy switch to PB. For a tutorial see:

Re: saving woody data after insert

2004-02-23 Thread Bert Van Kets
It works. :-D Thanks Marcin. - Original Message - From: Marcin Okraszewski [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, February 22, 2004 9:34 PM Subject: Re: saving woody data after insert I think it might be the same I had some time ago. What type does the /addLink/

nested woody repeater

2004-02-23 Thread Bert Van Kets
I have a table containing link data (linkid, url, title, groupid) and a table containing the link group data (groupid, groupDescription). Is it possible to have two nested woody repeater widgets so I get + groupdescription1 - link data for group 1 - ... + groupdescription2 - link data for

Re: Change encoding to ISO-8859-1

2004-02-23 Thread Bert Van Kets
I use JEdit to change file encodings. It allows you to read a file in a certain encoding, change the buffer to a different encodig, make corrections where necessary and write out in the new encodig. I thought I'd mention for those not knowing JEdit. Bert - Original Message - From:

Re: building Collection from JDO problems

2004-02-22 Thread Bert Van Kets
AFAIK, the problem is that you need to JDO enhance your classes. See the build.xml that Druid did for you. Also remeber you need to use jdo 1.01 NOT jdo 1.00 OK, more reading to do. I haven't touched Druid yet (I think). I'll try that today. I am using 1.01. I read that on the JDOand OJB Wiki

Re: building Collection from JDO problems

2004-02-22 Thread Bert Van Kets
Antonio, I got Druid to run, imported my databse, configured the JDO generation and got the build.xml file you speak of. It took me a bit longer than it souncs though. Then I copied jdo 1.01 libraries (double checked the version) to the lib directory in my output dir and built. The class file is

saving woody data after insert

2004-02-22 Thread Bert Van Kets
I have a repeater widget displaying a list of data provided form a Collection in a bean. When I insert a record in the form an empty row is immediately displayed, however, the method in wb:on-insert-row/wb:[EMAIL PROTECTED] is not executed. This method is defined in the bean class. When I submit

Re: building Collection from JDO problems

2004-02-21 Thread Bert Van Kets
Antonio, thanks for the help. The funny thing is everything worked fine getting one record. I used the ojb sample and modified that to use my database and table. I then tried to modify the bean and DAO class to return a collection instead is strings and integers so I can build a list instead of a

Re: building Collection from JDO problems

2004-02-21 Thread Bert Van Kets
Hmm. I think it is not a good idea to have a list as a bean in the repository.xml. My approach is similar as yours but in the repository.xml there are beans not lists of beans. Sorry for the confusion. I meant that I created a class called Link containing integers and strings to fill the

Re: building Collection from JDO problems

2004-02-21 Thread Bert Van Kets
: Antonio Gallardo [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Saturday, February 21, 2004 11:16 AM Subject: Re: building Collection from JDO problems Bert Van Kets dijo: Hmm. I think it is not a good idea to have a list as a bean in the repository.xml. My approach is similar as yours

Re: building Collection from JDO problems

2004-02-21 Thread Bert Van Kets
Are you jaring the DAO classes? No, just compiling them in the classes folder in the right package directory. I tried to jar them at first, but then none of them were found. Where are you puting this classes? see above Are the classes visibles at all? Aparently not in the Cocoon package. I did

Re: building Collection from JDO problems

2004-02-21 Thread Bert Van Kets
Here is my flowscript. In this form it fails on dao.retrieve(linksBean, factory); because dao is undefined. cocoon.load(resource://org/apache/cocoon/woody/flow/javascript/woody2.js); function linksForm_JDO(form) { // Get OJB factory var factory =

Re: building Collection from JDO problems

2004-02-21 Thread Bert Van Kets
Hint: Set the above line in sitemap to avoid writing it over and over: OK, did that. It does indeed make life easier in the long run. :-) When dao will got a right Object, the above line will print something like: [EMAIL PROTECTED] but you got dao=undefined right So this means you are

Re: building Collection from JDO problems

2004-02-21 Thread Bert Van Kets
I saw in your flow script: var dao = new Packages.be.bvar.admin.links.LinksDAO(); but in your Java file: public class linksDAO { Just a typo? No, it is not a typo and probably the reason why I have this problem. I'm not going to repeat what I was just shouting, but it wasn't pretty.

Re: building Collection from JDO problems

2004-02-21 Thread Bert Van Kets
And the woes continue... :-( The LinkDAO class is now instantiated, but when I get to building the Query I get an error saying I don't implement javax.jdo.spi.persistenceCapable on the class used for putting data in my collection. No document references the need for a persistanceCapable

building Collection from JDO problems

2004-02-20 Thread Bert Van Kets
Using Cocoon 2.1.4 with Woody, flow and JDO I have a bean containing a Collection to build an editable list with woody. If I fill the Bean manually, everything is displayed properly without any problems, but as soon as I try to fill the bean using JDO I get errors. I have tried all kinds of

ojb Collection

2004-02-20 Thread Bert Van Kets
Can somebody give me a code snip on how to fill a Collection using OJB, please? I am calling the OJB method from FlowScript and use teh Collection to fill a Woody form. I have been trying to get this to work for some time now but failed. Requesting a single record works fine, but trying to get

Re: Message error : UnnamedSelector

2004-02-19 Thread Bert Van Kets
I think you erased the selectors. You cannot just erase nodes, even if you don't use them. Replace them with empty nodes. Add this in the map:components node map:selectors/ HTH Bert - Original Message - From: franck LAMY To: [EMAIL PROTECTED] Sent: Thursday,

woody, flow and database confusion

2004-02-18 Thread Bert Van Kets
I have been trying for several days to get grips on the super trio Woody, Flow and OJB/JDO. I don't have any succes yet, but that is mainly to the complexity of getting OJB/JDO to run. Could someone please shed a light on this to get me going again? I have created a bean to store all form data.

Re: woody, flow and database confusion

2004-02-18 Thread Bert Van Kets
I was planning on doing this for sure, but I must get it running first with the bare minimum. The ojb/woody sample suffers from over-sampling. Different technologies are merged into one sample block which is very confusing if you dont' have a clue yet on how to use it. More over the OJB/JDO

Re: woody, flow and database confusion

2004-02-18 Thread Bert Van Kets
I managed to get the ojb sample working in my own webapp. In other words, I managed to get the sample to read and write to the mySQL database. I still haven't managed to get a minimal jdo/ojb application working of my own doing. Right now I'm getting an error saying

Re: woody, flow and database confusion

2004-02-18 Thread Bert Van Kets
Thanks for the help Chris, Here's copy of the script: - cocoon.load(resource://org/apache/cocoon/woody/flow/javascript/woody2.js); function linksForm_JDO(form) { // Get OJB factory var factory =

Re: woody, flow and database confusion

2004-02-18 Thread Bert Van Kets
Thanks for the help Chris, Here's copy of the script: - cocoon.load(resource://org/apache/cocoon/woody/flow/javascript/woody2.js); function linksForm_JDO(form) { // Get OJB factory var factory =

Re: woody, flow and database confusion

2004-02-18 Thread Bert Van Kets
// Create a empty Bean var linksBean = new Packages.be.bvar.admin.links.LinksBean(); var dao = new Packages.be.bvar.admin.links.LinksDAO(); The problem is on the above line. Apparently the Java class LinksDAO is not found, so instead this is treated as a Java package by Rhino. HTH,

Re: woody, flow and database confusion

2004-02-18 Thread Bert Van Kets
I put the classes for binding and DAO in the classes folder and BINGO, it all works. I'm a happy kiddo now with a new toy!!! I'll write up a Wiki document on this as soon as I have time. Thanks a lot for the help Bert - Original Message - From: Bert Van Kets [EMAIL PROTECTED

Re: FileUploadsWithFlow problem

2004-02-16 Thread Bert Van Kets
Hmmm... well, it looks like if you use a relative path there, it's relative to the working directory of the process that started the servlet container. I'm using Jetty on Unix, so YMMV. Anyway, I do this: upload_manager

Re: FileUploadsWithFlow problem

2004-02-14 Thread Bert Van Kets
Message - From: Mark Lundquist [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Bert Van Kets [EMAIL PROTECTED] Sent: Thursday, February 12, 2004 7:27 PM Subject: Re: FileUploadsWithFlow problem On Feb 12, 2004, at 5:31 AM, Bert Van Kets wrote: It seems that this line is causing the problem

Woody and database

2004-02-14 Thread Bert Van Kets
Hi all, I'm using mySQL and Cocoon 2.1.4 and have to start creating a bunchload of web forms. What is the best way to connect a database to Woody? I checked out the OJB block, but find it a bit cumbersome for complex forms. Any suggestions? Bert

JDO sample with query

2004-02-14 Thread Bert Van Kets
I have been going through the JDO samples and as far as I can see there's a direct mapping from JDO to the tables in a mySQL database. How can I map the fields to a query? Can anybody elaborate this a little bit please. Thanks, Bert

Re: FileUploadsWithFlow problem

2004-02-12 Thread Bert Van Kets
It seems that this line is causing the problem in the FileUploadManagerImpl.java file String destfilename=this.uploadFolder.getAbsolutePath() + File.separator + source.getFileName(); The method getFileName() returns the full path instead of just the filename. I checked the PartOnDisk class and

Re: org.apache.cocoon.transformation.SourceWritingTransformer

2004-02-12 Thread Bert Van Kets
Hi Anthony, I was strugling with the SourceWriterTransformer yesterday too. It seemed like the transformer didn't work at all. Checking the logs showed that indent settings are not allowed. Try getting rid of indent=yes on the xsl:output tag. HTH, Bert - Original Message - From:

Re: FileUploadsWithFlow problem

2004-02-12 Thread Bert Van Kets
Hi Mark, I've got the upload running in a hacked way. I'm still waiting for further info on how to get the filename manipulations correct. That's actually the reason for all the current problems. Here's a corrected JAR file that works for me. You still need to set the full path in the

upload dir cleared at Cocoon startup

2004-02-11 Thread Bert Van Kets
Hi all, I have a very annoying problem regarding uploads. To be able to do multi part uploads I went to web.xml and set the enable-uploads init-param to true and the upload-directory to data (no quotes of course). As I need ony one upload directory, it looked like the obvious choice to me to have

Re: upload dir cleared at Cocoon startup

2004-02-11 Thread Bert Van Kets
Doesn't anybody have an idea on this one. This is just a bump back up the list. Bert - Original Message - From: Bert Van Kets [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 11, 2004 4:02 PM Subject: upload dir cleared at Cocoon startup Hi all, I have a very

FileUploadsWithFlow problem

2004-02-11 Thread Bert Van Kets
Hi all, I have finally gotten the FileUploadsWithFlow sample working without errors, but I still can't see anything arriving on the server. :-( I get no error anywhere. Not in the console, not in the browser, not in the logs. The Flow script throws me to the success page, which should mean the

ClassNotFoundException and not unique container name : cocoon-portal

2004-02-09 Thread Bert Van Kets
Hi all, I just did an update of my CVS Head and built the whole thing (clean built!). Checking the logs I saw that I got an ClassNotFoundException org.exolab.jms.jndi.InitialContextFactory. So, I go to Sourceforge, get the needed classes, build and add the lib to Cooon. Now, when I start up Cocoon

Re: ClassNotFoundException and not unique container name : cocoon-portal

2004-02-09 Thread Bert Van Kets
Checking the logs I saw that I got an ClassNotFoundException org.exolab.jms.jndi.InitialContextFactory. So, I go to Sourceforge, get the needed classes, build and add the lib to Cooon. Yes, this comes from the jms block which by default is configured to use OpenJMS but we do not bundle

Re: ClassNotFoundException and not unique container name : cocoon-portal

2004-02-09 Thread Bert Van Kets
PROTECTED] Sent: Monday, February 09, 2004 4:21 PM Subject: Re: ClassNotFoundException and not unique container name : cocoon-portal Bert Van Kets wrote: Checking the logs I saw that I got an ClassNotFoundException org.exolab.jms.jndi.InitialContextFactory. So, I go to Sourceforge, get the needed

Re: ClassNotFoundException and not unique container name : cocoon-portal

2004-02-09 Thread Bert Van Kets
Ok, that's bizarre. Can anyone else confirm this? There are very few logical places where any interaction between the jms and portal block should be happening. You're saying that the portal block works as long as you remove the openJMS library? I did another test to pin down the problem a

Re: redirect-to

2004-02-09 Thread Bert Van Kets
The only way I know to do this is using URL request parameters Like this map:match pattern= map:redirect-to uri=index.html?param=xyz/ /map:match Hope this helps, Bert - Original Message - From: Lionel Crine [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, February 09, 2004

Portal-fw problem

2004-02-06 Thread Bert Van Kets
Hi all, I had some problems saving the role profiles in the portal framework and did the following test : - downloaded a fresh CVS ROOT snapshop today at 2PM Belgian time :-) - built using J2SDK 1.4.2_3 - started cocoon servlet - went straight to the Portal Framework sample, logged in with the

Re: Portal-fw problem

2004-02-06 Thread Bert Van Kets
will commit a fix in 5 minutes. Thanks for reporting! Carsten -Original Message- From: Bert Van Kets [mailto:[EMAIL PROTECTED] Sent: Friday, February 06, 2004 3:54 PM To: [EMAIL PROTECTED] Subject: Portal-fw problem Hi all, I had some problems saving the role profiles

redirect problems

2003-07-16 Thread Bert Van Kets
I'm using Cocoon 2.1 M3. I've got several subdirectories in my site and would like to map the requests to the directory with and without a trailing slash to a pipeline. The one without the slash is pretty easy, but I can't get the one with the trailing slash to work. So I'd like to redirects

Re: redirect problems

2003-07-16 Thread Bert Van Kets
I knew it was something stupid I was overlooking. :-/ My recent burn out hasn't faded from my system yet. (bad excuse, but an excuse non the less) Thanks for the help, it works now. Bert At 20:42 16/07/2003 +0200, you wrote: Bert Van Kets wrote: I'm using Cocoon 2.1 M3. I've got several