Re: XSP Validation XSP-formval
Anna, You're better off using a DateFormat object to parse the request parameter instead of the deprecated new Date(String). Then you can catch a ParseException and take action based on this. You can instantiate a SimpleDateFormat object using a pattern matching the input you expect. If the XSP is an action, you can use xsp-action:set-success and xsp-action:set-failure to communicate the result to the sitemap. John Anna Bikkina wrote: Hi, I have another question using XSP form validation. I used XSP-formval using the descriptor file and it worked. Now there are some other validations that I have to do and display errors other than what I can do with the descriptor file. Like I have to check the startdate and enddate entered by user and display error if startdate is after the enddate and things like that. I created a xsp logic tag and did the necessary validations but I am getting error while running the xsp file error is : org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.lang.RuntimeException: org.apache.cocoon.ProcessingException: Exception in ServerPagesGenerator.generate(): java.lang.IllegalArgumentException the xsp:logic paragraph that I add looks like this xsp:logic if(notnew) { System.out.println(entering into not new); Date sd = new Date(request.getParameter(startdate)); Date ed = new Date(request.getParameter(enddate)); if(sd==null) sd= new Date(); if(ed==null) ed=new Date(); if(sd.after(new Date())){ System.out.println(Start date is greater than today); font color=red xsp:text* Startdate invalid. Date greater than today/ xsp:text /font bad=true; } else if(ed.after(new Date())){ font color=red xsp:text* Enddate invalid. Date greater than today/xsp:text /font bad=true; } } /xsp:logic Is there a way I can check errors in the input other than the formvalidation method. I understand that I can write multiple action classes for each of the error I can represent but from there how can I come back to the same file with the error messages. -- - Jentro Technologies GmbH John L. Webber, Software Development - Rosenheimer Str. 145e 81671 München Tel. +49 89 189 169 80 mailto:[EMAIL PROTECTED] Fax +49 89 189 169 99 http://www.jentro.com - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to set the jdo environment with ojb for multiple databases
Hi! The sample for woody ojb is ok now,I've a question for how to set the jdo environment with ojb for multiple databases. ie. how to set the package.jdo repository.xml ... in classes path Johnson
Woody integration in Portal
Title: Woody integration in Portal Hi, I'm struggling with the implementation of woody in a coplet. I've managed to create simple coplets where I manage to rewrite the links using the portal-coplet transformer a href="" = portal-event. And, as suggested, I always use the same uri for my coplet. Trying to integrate woody seems to be more complex. 1. Using the form2bean.flow sample: each time I click a button, the woody form leaves the portal fills the whole screen again. 2. Next to that, Using the html-output of the woody sample for my woody-coplet, the title on the top of the browser window is set to the title of the woody-html-page There are a lot of usefull tips in the cocoon-mailing-lists, but they don't solve my major question how do I keep my woody-form in my coplet ? I've been guessing to fix the problem (no success) with following approaches: 1. Using a linktransformer: this generates ev:eventlinks/ = very interesting, but I don't know what to do with this 2. Using ApplicationCoplet as CopletBaseData: didn't get it running ... My questions: 1. How can I get a woody-form properly running in a coplet? (avoid jumping out of the portal, after one click) 2. How can I avoid that the portal pagetitle is set to the woody coplet title ? (based on the html-output of the form2bean transformation) 3. Intrigued by what I found: what's the purpose for ApplicationCoplet ? I know it is intended to get external apps running in a portlet, but I could use some more detail. My sitemap: The URICoplet points to cocoon:/test !-- form2bean.flow generates output in html, therefore I've split it up in 2 parts, test test2 test2 results in xml-output which I can use in my test-pipeline. There is probably a better way to do this -- map:match pattern=test2 map:generate src=""> map:serialize type=xml/ /map:match map:match pattern=test map:generate src=""> map:transform type=xslt src=""> !-- link2coplet.xsl transforms a href="" elements into cl:link parameter=attributes/inCopletPath value=foo/ -- map:transform type=portal-coplet/-- !-- transforms the cl:link/ elements into portal-events !-- map:transform type=portal-link/-- !-- I don't know what this one exactly does -- map:serialize/ /map:match Long message, lots of questions, ... Thanks, Bart This message and its attachments may contain confidential information protected by intellectual property rights or other rights & is strictly for the exclusive use of the intended recipient. It is strictly prohibited to copy, alter or disclose this message or its contents to any other person without Elia's prior consent. If you are not the intended recipient of this message, please inform the person who sent it and delete the message from your system. Elia is not liable for any direct or indirect damage arising from errors, inaccuracies or any loss in the message, from unauthorized use, disclosure, copying or alteration of it or as a result of any virus being passed on. This message does not constitute any commitment from Elia except when expressly otherwise agreed between the intended recipient and Elia. U vindt de Nederlandse versie van deze disclaimer op onze internetsite www.elia.be Vous pouvez découvrir la version française de ce disclaimer sur notre site internet www.elia.be
Re: Link Livesites: Cocoon 2.1 -- working now.
Thank you for your comments. Sometimes things which must be done in 5 min are made in two days :) Now DNS record is refreshed and site works ok. RA Peter Velychko wrote: My sincere apologies for incorrect work of our server. It is occured sometimes because of technical causes and it will be eliminated to tommorow morning (at Kyiv time). RA It must be morning in Kyiv -- Good Morning! The site looks very nice in RA Both English and Russian. I am Using Mozilla 1.6 on a Sun SPARC. RA Ray Allis RA - RA To unsubscribe, e-mail: [EMAIL PROTECTED] RA For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Peter Velychko [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: portal engine in 2.1.4
Yes, this is true - this is related to the used container (the pluto project). So, if this can be fixed, it has to be fixed there. Carsten -Original Message- From: Ralph Goers [mailto:[EMAIL PROTECTED] Sent: Thursday, February 19, 2004 8:20 PM To: '[EMAIL PROTECTED]'; '[EMAIL PROTECTED]' Subject: RE: portal engine in 2.1.4 I believe I have figured out the problem. My webapp is a war so I suspect servletContext.getRealPath() is returning null (which is the documented behavior). I suppose this means that the Cocoon portal can only be used in an exploded app? Ralph -Original Message- From: Ralph Goers Sent: Thursday, February 19, 2004 10:44 AM To: '[EMAIL PROTECTED]' Subject: portal engine in 2.1.4 I'm trying to upgrade to 2.1.4 in my webapp. I included the portal engine block in my cocoon build. When my webapp tries to deploy it fails with a NullPointerException. I'm wondering if there is some configuration I am missing. java.lang.NullPointerException at org.apache.cocoon.portal.pluto.om.PortletDefinitionRegistryImp l.initialize(P ortletDefinitionRegistryImpl.java:178) at org.apache.avalon.framework.container.ContainerUtil.initialize (ContainerUtil .java:282) at org.apache.cocoon.portal.pluto.PortletContainerEnvironmentImpl .init(PortletC ontainerEnvironmentImpl.java:137) at org.apache.cocoon.portal.pluto.PortletContainerEnvironmentImpl .initialize(Po rtletContainerEnvironmentImpl.java:116) at org.apache.avalon.framework.container.ContainerUtil.initialize (ContainerUtil .java:282) at org.apache.cocoon.portal.impl.PortletPortalManager.initContain er(PortletPort alManager.java:206) at org.apache.cocoon.portal.impl.PortletPortalManager.initialize( PortletPortalM anager.java:173) at org.apache.avalon.framework.container.ContainerUtil.initialize (ContainerUtil .java:282) at org.apache.avalon.excalibur.component.DefaultComponentFactory. newInstance(De faultComponentFactory.java:313) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandl er.initialize( ThreadSafeComponentHandler.java:143) at org.apache.avalon.excalibur.component.ExcaliburComponentManage r.initialize(E xcaliburComponentManager.java:558) at org.apache.cocoon.components.CocoonComponentManager.initialize (CocoonCompone ntManager.java:547) at org.apache.avalon.framework.container.ContainerUtil.initialize (ContainerUtil .java:282) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:340) at org.apache.avalon.framework.container.ContainerUtil.initialize (ContainerUtil .java:282) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonSer vlet.java:1371 ) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:514) at weblogic.servlet.internal.ServletStubImpl$ServletInitAction.ru n(ServletStubI mpl.java:993) at weblogic.security.acl.internal.AuthenticatedSubject.doAs(Authe nticatedSubjec t.java:317) at weblogic.security.service.SecurityManager.runAs(SecurityManage r.java:118) at weblogic.servlet.internal.ServletStubImpl.createServlet(Servle tStubImpl.java :869) at weblogic.servlet.internal.ServletStubImpl.createInstances(Serv letStubImpl.ja va:848) at weblogic.servlet.internal.ServletStubImpl.prepareServlet(Servl etStubImpl.jav a:787) at weblogic.servlet.internal.WebAppServletContext.preloadServlet( WebAppServletC ontext.java:3252) at weblogic.servlet.internal.WebAppServletContext.preloadServlets (WebAppServlet Context.java:3197) at weblogic.servlet.internal.WebAppServletContext.preloadResource s(WebAppServle tContext.java:3174) at weblogic.servlet.internal.HttpServer.preloadResources(HttpServ er.java:688) at weblogic.servlet.internal.WebService.preloadResources(WebServi ce.java:483) at weblogic.servlet.internal.ServletInitService.resume(ServletIni tService.java: 30) at weblogic.t3.srvr.SubsystemManager.resume(SubsystemManager.java:131) at weblogic.t3.srvr.T3Srvr.resume(T3Srvr.java:964) at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:359) at weblogic.Server.main(Server.java:32) - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Link Livesites: Cocoon 2.1 -- working now.
Thank you for your comments. Sometimes things which must be done in 5 min are made in two days :) Now DNS record is refreshed and site works ok. http://www.olympic-plaza.com.ua/ http://www.olympic-plaza.com.ua/ru/ RA Peter Velychko wrote: My sincere apologies for incorrect work of our server. It is occured sometimes because of technical causes and it will be eliminated to tommorow morning (at Kyiv time). RA It must be morning in Kyiv -- Good Morning! The site looks very nice in RA Both English and Russian. I am Using Mozilla 1.6 on a Sun SPARC. RA Ray Allis RA - RA To unsubscribe, e-mail: [EMAIL PROTECTED] RA For additional commands, e-mail: [EMAIL PROTECTED] -- Best regards, Peter Velychko [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Woody] Possible to set wd:label dynamically?
Hi Stefan, You can generate you def file via XSP. -- Olivier Billard On 18/02/2004 22:20, Stephan Coboos wrote: Is it possible to set the content wd:label/ dynamically? I know only at runtime the label of the widget(s). I want to use the binding framework and my JavaBean holds the label. How can I put the label from the bean to the wd:label/ element with woody? Is it possible? Thank you. Regards Stephan - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
to create my own application
Hello, i would like to create my own application in a context ( $TOMCAT_HOME/webapps/myApplication) different from cocoon context ($TOMCAT/webapps/cocoon). I looked forcocoon's site but don't find any informations. what is the way the proceed? I need help because i am blocked THANKS
Re: to create my own application
pls refer to http://wiki.cocoondev.org/Wiki.jsp?page=BeginnerDefaultContext Johnson - Original Message - From: franck LAMY To: [EMAIL PROTECTED] Sent: Friday, February 20, 2004 5:30 PM Subject: to create my own application Hello, i would like to create my own application in a context ( $TOMCAT_HOME/webapps/myApplication) different from cocoon context ($TOMCAT/webapps/cocoon). I looked forcocoon's site but don't find any informations. what is the way the proceed? I need help because i am blocked THANKS
Re: to create my own application
I've not donethis before, but I guess you should take the main sitemap and the WEB-INF dir to your own servlet, then adjust your WEB-INF/web.xml to the correct servlet settings. Check the main sitemap to see if there are any unwanted pipes there (error handling and stuff needs to be adjusted to your own if you do not copy anything else). With the web.xml adjusted, tomcat can find your servlet. If not succesful, search for more info on that web.xml and how to deploy servlets with tomcat. Hope this helps, Jan - Original Message - From: franck LAMY To: [EMAIL PROTECTED] Sent: Friday, February 20, 2004 10:30 AM Subject: to create my own application Hello, i would like to create my own application in a context ( $TOMCAT_HOME/webapps/myApplication) different from cocoon context ($TOMCAT/webapps/cocoon). I looked forcocoon's site but don't find any informations. what is the way the proceed? I need help because i am blocked THANKS
how to enhancer a class
Can some body tell me how to enhance a class for OJB. Johnson
Initialization Problem
Hi, went to fire up my app this morning and was greeted with the following message: Message: null Description: No details available. Sender: org.apache.cocoon.servlet.CocoonServlet Source: Cocoon Servlet cause: Cannot load properties file resource://org/apache/cocoon/cocoon.properties request-uri: /cocoon/beyarecords/login.html Any ideas as to what may be causing this and how to resolve it? Re-build? many thanks in advance
Cron implementation in Apache Cocoon: Hugo Marcelino
Hi users fo cocoon. I've came forward to a small problem. i need to implement a cron job in to an application that i'm developing. After i read the documentation i came to the following problem. There is no reference on how to make the cron job execute a parcel of a sitemap. The cron job must execute a link on my Apache Cocoon. Setting the triggers and defining the cron job to execute the message as shown in the documentation(example) was done in no time but what about executing links ? Does anyone have an idea on how to make this happening ? Thank you in advance. Hugo Marcelino. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: how to enhancer a class
I think you want the OJB mailing list, not the Cocoon mailing list. [EMAIL PROTECTED] John Johnson wrote: Can some body tell me how to enhance a class for OJB. Johnson -- - Jentro Technologies GmbH John L. Webber, Software Development - Rosenheimer Str. 145e 81671 München Tel. +49 89 189 169 80 mailto:[EMAIL PROTECTED] Fax +49 89 189 169 99 http://www.jentro.com - NOTICE: The information contained in this e-mail is confidential or may otherwise be legally privileged. It is intended for the named recipient only. If you have received it in error, please notify us immediately by reply or by calling the telephone number above and delete this message and all its attachments without any use or further distribution of its contents. Please note that any unauthorised review, copying, disclosing or otherwise making use of the information is strictly prohibited. Thank you. - - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Portal Engine bookmarks
Hi Laurent, On 20 Feb 2004, at 04:31, Laurent Trillaud wrote: You can use portal bookmark, it's a shortcut for events. Edit the .../portal/resources/bookmarks.xml for each event you need and use the following URL http://.../portal/bookmark?OutTab=0LeftNav=0PageTab=1CopletA=123 Thanks for the tip, I get it now. I thought I could define in bookmarks.xml a set of events which would all be triggered from just one URL parameter. Anyway, I now have the following situation. One of my coplets creates links with URLs like this: app?id=123 I have the following matcher (lines split to prevent wrapping): !-- Handle app?id=123 by redirecting to a bookmark URL which does the right thing -- map:match pattern=app map:redirect-to uri=bookmark?top=0amp;leftnav-home=0 amp;home-apps=1 amp;app1={request-param:id} amp;app2={request-param:id}/ /map:match This works great, except the user now has to wait for 2 redirects. First they are redirected to the bookmark URL, then the bookmark URL redirects them to the portal URL. Is there any way to make it so that the app?id=123 URL returns the page without needing the redirects? Thanks, Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Cron implementation in Apache Cocoon: Hugo Marcelino
Hugo, Have a look at http://wrpo:8080/samples/cron/cron.html and the implementation of it at src\blocks\cron\java\org\apache\cocoon\components\cron\TestCronJob.java You have to configure your own job in cocoon.xconf. Look again for TestCronJob. HTH now Reinhard -Original Message- From: Hugo Marcelino [mailto:[EMAIL PROTECTED] Sent: Friday, February 20, 2004 11:06 AM To: Apache Cocoon (Correio electrónico) Subject: Cron implementation in Apache Cocoon: Hugo Marcelino Hi users fo cocoon. I've came forward to a small problem. i need to implement a cron job in to an application that i'm developing. After i read the documentation i came to the following problem. There is no reference on how to make the cron job execute a parcel of a sitemap. The cron job must execute a link on my Apache Cocoon. Setting the triggers and defining the cron job to execute the message as shown in the documentation(example) was done in no time but what about executing links ? Does anyone have an idea on how to make this happening ? Thank you in advance. Hugo Marcelino. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Portal Engine bookmarks
Hi Laurent, On 20 Feb 2004, at 04:31, Laurent Trillaud wrote: You can use portal bookmark, it's a shortcut for events. Edit the .../portal/resources/bookmarks.xml for each event you need and use the following URL http://.../portal/bookmark?OutTab=0LeftNav=0PageTab=1CopletA=123 I've now written this up on the Wiki: http://wiki.cocoondev.org/Wiki.jsp?page=PortalEngineBookmarks Thanks, Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Processing errors from Database Actions
Perhaps I have used the wrong keywords, but I cannot find anything in the docs that deals with this I am trying to present to the user the reason why a Database Add (or Update) action may have failed. The sitemap is set up for the entry form to be redisplayed on failure (via XSP)... but I would like to know how to access the specific error condition that triggered the failure, from within the XSP and then present a suitable message. Any help or a pointer to examples would be appreciated. Derek -- This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. MailScanner thanks transtec Computers for their support. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Portal Engine bookmarks
Hi Laurent, On 20 Feb 2004, at 04:31, Laurent Trillaud wrote: You can use portal bookmark, it's a shortcut for events. Edit the .../portal/resources/bookmarks.xml for each event you need and use the following URL http://.../portal/bookmark?OutTab=0LeftNav=0PageTab=1CopletA=123 Thanks for the tip, I get it now. I thought I could define in bookmarks.xml a set of events which would all be triggered from just one URL parameter. Anyway, I now have the following situation. One of my coplets creates links with URLs like this: app?id=123 I have the following matcher (lines split to prevent wrapping): !-- Handle app?id=123 by redirecting to a bookmark URL which does the right thing -- map:match pattern=app map:redirect-to uri=bookmark?top=0amp;leftnav-home=0 amp;home-apps=1 amp;app1={request-param:id} amp;app2={request-param:id}/ /map:match This works great, except the user now has to wait for 2 redirects. First they are redirected to the bookmark URL, then the bookmark URL redirects them to the portal URL. Is there any way to make it so that the app?id=123 URL returns the page without needing the redirects? Thanks, Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Build 2.1.4
hi guys, I have a build related question if I may. Just installed 2.1.4 of cocoon and tried to run my app as per usual and nothing happens, no links work nothing the site just seems dead. Also, I ran the hello world example in the main cocoon home page area (http://www.mysite.com/cocoon), and from the block`s Hello world section I clicked the jpeg link. When I do this i get an (org.apache.catalina.startup.Bootstrap) message box appear on my desktop, which would seem to suggest that another instance of tomcat/cocoon is being launched!!!??? In the local.blocks.properties file, how do I makes sure that i block is activated? Do I change as follows: un-comment the line #exclude.block.batik=true and: 1. leave as is - exclude.block.batik=true (block is not included in build)? or 2. exclude.block.batik=false (block is included in build)? many thanks in advance
[Woody] What is the java class type for a multivaluefield field?
I'm running woody+flow using cvs version 2.1.4 from end of January 2004. I define a widget: wd:multivaluefield id=server wd:datatype base=string/ wd:selection-list src=cocoon:/serverlist dynamic=true/ /wd:multivaluefield I define an action widget: wd:action id=allservers action-command=allservers wd:labelAll Servers/wd:label wd:on-action javascript var serverlist = event.source.parent.getWidget(server); serverlist.value = ?; /javascript /wd:on-action /wd:action I action widget should choose all the server entries in the multivaluedfield widget above. I got java.lang.RuntimeException: Cannot set value of field rechner ... What is the correct way of setting a list? What is the expected datatype? Thank you. Michael Roth Michael Roth Technische Universität Wien Zentraler Informatik Dienst - Zentrale Services Wiedner Hauptstraße 8-10, 1040 Wien Tel.: 58801 42091 / Fax: 58801 42099 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Portal Engine bookmarks
Oops sorry for my previous mail, it was empty Jon It's not the way I follow. I don't care about the length of the URL. Why are you concern about that? Do you reach the http limit size? Form the user, point of view, he see always the same url http://MyServ/MyApp/portal and he see the name of the link, not the href. In my opinion, the best way to make links in the portal is the cl:link. It's straight forward. Bookmarks are design to access to the portal by link hosted outside the portal. For example, to put a link in an email. Laurent You can use portal bookmark, it's a shortcut for events. Edit the .../portal/resources/bookmarks.xml for each event you need and use the following URL http://.../portal/bookmark?OutTab=0LeftNav=0PageTab=1CopletA=123 Thanks for the tip, I get it now. I thought I could define in bookmarks.xml a set of events which would all be triggered from just one URL parameter. Anyway, I now have the following situation. One of my coplets creates links with URLs like this: app?id=123 I have the following matcher (lines split to prevent wrapping): !-- Handle app?id=123 by redirecting to a bookmark URL which does the right thing -- map:match pattern=app map:redirect-to uri=bookmark?top=0amp;leftnav-home=0 amp;home-apps=1 amp;app1={request-param:id} amp;app2={request-param:id}/ /map:match This works great, except the user now has to wait for 2 redirects. First they are redirected to the bookmark URL, then the bookmark URL redirects them to the portal URL. Is there any way to make it so that the app?id=123 URL returns the page without needing the redirects? Thanks, Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Portal Engine bookmarks
Hi Jon On 20 Feb 2004, at 5:35, Jon Evans wrote: I have the following matcher (lines split to prevent wrapping): !-- Handle app?id=123 by redirecting to a bookmark URL which does the right thing -- map:match pattern=app map:redirect-to uri=bookmark?top=0amp;leftnav-home=0 amp;home-apps=1 amp;app1={request-param:id} amp;app2={request-param:id}/ /map:match This works great, except the user now has to wait for 2 redirects. First they are redirected to the bookmark URL, then the bookmark URL redirects them to the portal URL. Is there any way to make it so that the app?id=123 URL returns the page without needing the redirects? I've found that by using the cocoon:// Internal protocol, the redirect takes place internally and not on the client side. You might try: !-- Handle app?id=123 by redirecting to a bookmark URL which does the right thing -- map:match pattern=app map:redirect-to uri=cocoon://bookmark?top=0amp;leftnav-home=0 amp;home-apps=1 amp;app1={request-param:id} amp;app2={request-param:id}/ /map:match I don't have any references that explicitly state this, but it is the behavior I get. Please note: http://cocoon.apache.org/2.1/userdocs/concepts/sitemap.html#Protocols cocoon:// takes from the root sitemap. cocoon:/ takes from the current sitemap. HTH! Thanks! David Day - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Portal Engine bookmarks
Hi Laurent., On 20 Feb 2004, at 12:50, Laurent Trillaud wrote: It's not the way I follow. I don't care about the length of the URL. Why are you concern about that? Do you reach the http limit size? Form the user, point of view, he see always the same url http://MyServ/MyApp/portal and he see the name of the link, not the href. In my opinion, the best way to make links in the portal is the cl:link. It's straight forward. Bookmarks are design to access to the portal by link hosted outside the portal. For example, to put a link in an email. Well, with the site I'm building, once you are logged in the front page displays a list of icons which, when clicked on, take you to a search page for that icon. Because the links have to switch 3 different layouts to the correct tab, and pass a value to two different coplets, the URLs generated for each app were big, and as the front page could contain about 100 of these icons (depending on how the user has configured it), that's a lot of data to send to the browser. I've cut down my page weight by using an app?id=123 form of link, and the matcher redirects that to a bookmark URL, which then redirects it to a portlet URL. So, I've made the site quicker by reducing the page weight, now I want to speed it up again by avoiding two extra round trips for the browser. Also it's aesthetically nicer to have a short URL. Just look at Linotype for example. :-) Cheers, Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Portal Engine bookmarks
Hi David, On 20 Feb 2004, at 13:06, [EMAIL PROTECTED] wrote: I've found that by using the cocoon:// Internal protocol, the redirect takes place internally and not on the client side. You might try: !-- Handle app?id=123 by redirecting to a bookmark URL which does the right thing -- map:match pattern=app map:redirect-to uri=cocoon://bookmark?top=0amp;leftnav-home=0 amp;home-apps=1 amp;app1={request-param:id} amp;app2={request-param:id}/ /map:match Actually I couldn't get that to work (it produces a blank page), but this works fine: map:match pattern=app map:generate src=cocoon://bookmark?top=0amp;leftnav-home=0 amp;home-apps=1 amp;app1={request-param:id} amp;app2={request-param:id}/ map:serialize type=html/ /map:match I also tried map:read src=.../ but that didn't work either (Firefox complains about the HTML). Thanks, Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Portal Engine bookmarks
Hi, On 20 Feb 2004, at 13:28, Jon Evans wrote: Actually I couldn't get that to work (it produces a blank page), but this works fine: map:match pattern=app map:generate src=cocoon://bookmark?top=0amp;leftnav-home=0 amp;home-apps=1 amp;app1={request-param:id} amp;app2={request-param:id}/ map:serialize type=html/ /map:match Actually there is a slight fly in the ointment with that approach. The page renders fine, but then the first click of any cocoon link on the resulting page just reloads the same page. The second click works. I don't understand why... Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Best practice for database manipulation?
Hello Christian, -Original Message- From: Christian Haul [mailto:[EMAIL PROTECTED] Sent: Monday, 16 February 2004 13:51 To: [EMAIL PROTECTED] Subject: Re: Best practice for database manipulation? Other than that, my advice is to put your database access into a java class (better: Avalon components) and access it from flow. If This sounds like a good idea. I've been studying several *.js files and I get a general idea of how it should work, but...what do I get from building my classes into Avalon components and... what should I do to convert my classes into Avalon components? I cannot afford to spend a considerable amount of time to study yet another framework. Bye, Helma - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Portal Engine bookmarks
Jon You're great. I'm so busy by my projects, that I haven't the time to write doc, neither the docs of my projects. Laurent -Message d'origine- De : Jon Evans [mailto:[EMAIL PROTECTED] Envoyé : vendredi 20 février 2004 12:05 À : [EMAIL PROTECTED] Objet : Re: Portal Engine bookmarks Hi Laurent, On 20 Feb 2004, at 04:31, Laurent Trillaud wrote: You can use portal bookmark, it's a shortcut for events. Edit the .../portal/resources/bookmarks.xml for each event you need and use the following URL http://.../portal/bookmark?OutTab=0LeftNav=0PageTab=1CopletA=123 I've now written this up on the Wiki: http://wiki.cocoondev.org/Wiki.jsp?page=PortalEngineBookmarks Thanks, Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
building Collection from JDO problems
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 things, read a zillion docs, but can't figure out what's srong. :-( Here's a snip from my flow: var linksBean = new Packages.be.bvar.admin.links.LinksBean(); var dao = new Packages.be.bvar.admin.links.LinksDAO(); dao.retrieve(linksBean, factory); And here's the code I use to fill the Collection: public void retrieve(LinksBean bean, JdoPMF pmf) { /* 1. Get the PersistenceManager */ PersistenceManager persistenceManager = pmf.getPersistenceManager(); System.out.println(persistanceManager instantiated); // 2. start transaction persistenceManager.currentTransaction().begin(); Query query = persistenceManager.newQuery(Link.class); Collection thisCollection = (Collection) query.execute(); System.out.println(collection = + thisCollection); bean.setLinks(thisCollection); System.out.println(); System.out.println(bean); // 3. End transaction persistenceManager.currentTransaction().commit(); } The error I get is ConversionError: The undefined value has no properties. (file:/D:/java/projects/bvar/links/linkFlow.js; line 12) Line 12 is where dao.retrieve is called. Full stack trace is below. I'm certain the LinkDAO class can be found. The class in the same directory as the LinksBean class, which is instantiated perfectly. What can be wrong here? Am I retreiving the Collection teh wrong way??? Please advise. :-/ Bert Original Exception: ConversionError: The undefined value has no properties. (file:/D:/java/projects/bvar/links/linkFlow.js; line 12) at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:581) at org.mozilla.javascript.NativeGlobal.constructError(NativeGlobal.java:541) at org.mozilla.javascript.ScriptRuntime.getProp(ScriptRuntime.java:716) at org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(Conti nuationInterpreter.java:677) at org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(Conti nuationInterpreter.java:190) at org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(Conti nuationInterpreter.java:138) at org.mozilla.javascript.continuations.InterpretedFunctionImpl.call(Interprete dFunctionImpl.java:121) at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1244) at org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.c allFunction(FOM_JavaScriptInterpreter.java:719) at org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(C allFunctionNode.java:160) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok e(PreparableMatchNode.java:165) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel ineNode.java:162) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe linesNode.java:136) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:371) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:312) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNod e.java:133) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:84) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invok e(PreparableMatchNode.java:165) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(Pipel ineNode.java:162) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invo keNodes(AbstractParentProcessingNode.java:107) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(Pipe linesNode.java:136) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:371) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcess or.java:312) at org.apache.cocoon.Cocoon.process(Cocoon.java:656) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1112) at
Re: Portal Engine bookmarks
Hi Laurent, On 20 Feb 2004, at 14:05, Laurent Trillaud wrote: You're great. I'm so busy by my projects, that I haven't the time to write doc, neither the docs of my projects. Well, I need people like you to answer my questions first, so: you're great too! :) Thanks again, Jon - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
how to envoke CLI with ant and cli.xconf
Hallo everyone, i'am trying to deploy a webpage with the offlinegeneration-mode off cocoon with the cocoon-anttask. Mycustomized sample from the cocoon-docs worked well. Because ofthe similar syntax of the cocoon-task and the cli.xconf-file i tried to add uri-fileuri.txt/uri-file to the cocoon-task. That doesn't worked. 'ElementWrapper doesn't support nested text data' was the errormessage. Is there an element or attribute to use or how is it possible to give the cli.xconf-file to the task? Regards Boris
Re: how to envoke CLI with ant and cli.xconf
Boris Althaus wrote: Hallo everyone, i'am trying to deploy a webpage with the offlinegeneration-mode off cocoon with the cocoon-anttask. My customized sample from the cocoon-docs worked well. Because of the similar syntax of the cocoon-task and the cli.xconf-file i tried to add uri-fileuri.txt/uri-file to the cocoon-task. That doesn't worked. 'ElementWrapper doesn't support nested text data' was the errormessage. Is there an element or attribute to use or how is it possible to give the cli.xconf-file to the task? Regards Boris The Ant code for reading XML can't handle 'nested text data', i.e. uri-filexyz/uri-file. So, you need to use an attribute of uri-file=xyz on the root Cocoon node instead. This applies to all of those nodes of the form default-filenamexxx/default-filename. This format will work on both the CLI and the Ant task. Regards, Upayavira - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
I18n sample - question about sitemap
Hello, I'm looking at the i18n sample shipped with the cocoon 2.1.3 build. I would like to know the meaning of cocoon:/menu/{../0} value={../0} value={../../locale} {request:contextPath} in the followingsitemap snippet: map:resources !-- This resource is used to create a composite page from menu and content -- map:resource name=composite map:aggregate element=root map:part src=cocoon:/menu/{../0}/ map:part src=cocoon:/content/{../0} label=content/ /map:aggregate map:transform type=xalan src=simple2page.xsl map:parameter name=page value={../0}/ map:parameter name=locale value={../../locale}/ /map:transform map:transform src=context://samples/common/style/xsl/html/complex-page2html.xsl map:parameter name=contextPath value={request:contextPath}/ /map:transform map:serialize type=html/ /map:resource /map:resources How are the things in brackets resolved ? Thanks wouter - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XSP Validation XSP-formval
Thank you. I tried doing that and now I get the following error org.apache.cocoon.ProcessingException: action logicsheet cannot be used in generators I used action in my xsp file and my sitemap uses generate for the xsp. Is there a way I can get around this. my site map map:match pattern=security.xsp map:act type=validator map:parameter name=descriptor value=/usr/local/jboss/tomcat/webapps/ cocoon/server/styles/descriptor.xml/ map:parameter name=validate-set value=securityquote/ map:act type=xsp-action map:generate type=serverpages src=securityresult.xsp/ map:transform src=search.xsl/ map:transform src=context:/historyserver/styles/ dynamic-page2html.xsl map:parameter name=servletPath value={request:servletPath}/ map:parameter name=sitemapURI value={request:sitemapURI}/ map:parameter name=contextPath value={request:contextPath}/ map:parameter name=file value={0}.xsp/ map:parameter name=remove value={0}/ /map:transform map:serialize/ /map:act /map:act map:generate src=security.xsp type=serverpages/ map:transform src=search.xsl/ map:transform src=context:/historyserver/styles/dynamic-page2html.xsl map:parameter name=servletPath value={request:servletPath}/ map:parameter name=sitemapURI value={request:sitemapURI}/ map:parameter name=contextPath value={request:contextPath}/ map:parameter name=file value={0}.xsp/ map:parameter name=remove value={0}/ /map:transform map:serialize/ /map:match my xsp:logic tag below xsp:logic if(notnew) { String error = action:get-result name=error/ if(error!=null) { font color = red error /font } SimpleDataFormat sdf = new SimpleDataFormat(mm/dd/); try { System.out.println(entering into not new); Date sd = new Date(); Date ed = new Date(); if(request.getParameter(startdate)!=null) sd = sdf.parse(request.getParameter(startdate)); if(sd==null || sd.after(new Date())) { action:set-result action:param name=errorStartDate not valid/action:param /action:set-result action:set-failure/ } } action:set-success/ } catch(Exception e) { action:set-failure/ } } /xsp:logic When I have my xsp logic code in the xsp its giving a differnt error. java.lang.RuntimeException: java.lang.RuntimeException: Stylesheet directed termination: java.lang.RuntimeException: java.lang.RuntimeException: java.lang.RuntimeException: Stylesheet directed termination Please help me solve this problem. I dont know what I am missing Thanks, Anna. On Friday 20 February 2004 03:01 am, John L. Webber wrote: Anna, You're better off using a DateFormat object to parse the request parameter instead of the deprecated new Date(String). Then you can catch a ParseException and take action based on this. You can instantiate a SimpleDateFormat object using a pattern matching the input you expect. If the XSP is an action, you can use xsp-action:set-success and xsp-action:set-failure to communicate the result to the sitemap. John Anna Bikkina wrote: Hi, I have another question using XSP form validation. I used XSP-formval using the descriptor file and it worked. Now there are some other validations that I have to do and display errors other than what I can do with the descriptor file. Like I have to check the startdate and enddate entered by user and display error if startdate is after the enddate and things like
ojb Collection
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 the whole table as a Collection fails miserably. I have tried to use th eway it is explained in the OJB site, but get unmeaningful errors from my flowscript. Filling the Collection manually in the bean works, but filling it up using OJB doesn't. So I'm sure it's the DAO calls that don't work. I have a class containing an ID (int) and three strings. This class is used to fill the Collection. The repository.xml file points to this class, not to the bean. Thanks, Bert - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Best practice for database manipulation?
Le Vendredi, 20 fév 2004, à 15:01 Europe/Zurich, [EMAIL PROTECTED] a écrit : ...This sounds like a good idea. I've been studying several *.js files and I get a general idea of how it should work, but...what do I get from building my classes into Avalon components and... what should I do to convert my classes into Avalon components? I cannot afford to spend a considerable amount of time to study yet another framework. FYI, I recently put some thoughts to paper about implementing business logic in Cocoon, I've posted a summary on my weblog at http://codeconsult.ch/bertrand/archives/000242.html -Bertrand - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Recursive Resources...
Thanks for the tip Dave. With a little tweaking, this'll do what I need. Gabriel [EMAIL PROTECTED] wrote: Gabriel, I was looking into another issue, and came across this Input Module that looks like it does exactly what you want? It'll walk up a directory tree looking for a file. See the following URLs (not in any specific order): http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/components/modules/input/LocateResource.html http://wiki.cocoondev.org/Wiki.jsp?page=InputModules http://cocoon.apache.org/2.1/userdocs/concepts/modules.html http://cocoon.apache.org/2.1/userdocs/concepts/modules-ref.html I didn't see much documentation specifically for LocateResource other than in the javadoc: quote sic=true public class LocateResource extends AbstractInputModule implements Composable, ThreadSafe Loacte a resource in a resource tree. Any attribute name is interpreted as a URI with the last part being the resource name unless it ends with a slash. The URI is checked if the resource exists and the URI is returned. If the resource does not exist, the URI is shortened until the resource name is found and the new URI is returned. If no resource with the given name exists, null is returned. A use case is to locate the closest menu file or when moving a site from a filesystem path == URL system from a httpd to Cocoon and provide similar functions to .htaccess files. Example: for context:/some/path/to/a/file.xml the following URIs are tested: context:/some/path/to/a/file.xml, context:/some/path/to/file.xml, context:/some/path/file.xml, context:/some/file.xml, and context:/file.xml. For the attribute name context:/some/path/foo/ tests context:/some/path/foo/, context:/some/path/, context:/some/, and context:/ are tested. The getAttribute() method will return the URI for the first match while getAttributeValues() will return an array of all existing paths. getAttributeNames() will return an Iterator to an empty collection. /quote HTH. Dave Day. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Xinclude/Xpointer problem with XHTML Namespace
-Ursprüngliche Nachricht- Von: Bruno Dumon [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 17. Februar 2004 00:51 An: [EMAIL PROTECTED] Betreff: Re: AW: Xinclude/Xpointer problem with XHTML Namespace On Mon, 2004-02-16 at 19:17, Christian Kreutz wrote: First of all thanks very trying to help me with this. It is good to know there seems more behind this problem then just a small error - played to long with this problem to be just easy to solve. :-) It seems it has to do something with the html tag combined with the XHTML namespace. I tried your things and had the same results. I found this point what might has do somehting with it: http://archives.real- time.com/pipermail/cocoon-devel/2003-May/013622.h tm l That issue has been fixed for a while: http://nagoya.apache.org/bugzilla/show_bug.cgi ?id=19423 It refered to the fact that you couldn't use the xmlns() stuff in xpointer expressions. I am using Xalan 2.5.0. Is this maybe a reason? Xalan does however indeed have something to do with it. To build a DOM from SAX events, we use the trax API whose implementation is provided by Xalan. And I know Xalan does different stuff for HTML then XML, and does this by checking the root element. The only thing I still have to find out is what it does exactly do different here. It must be something with the DOM it builds (since two completely independent XPath implementations can't handle it). I can't promise when I'll be able to look into this further. Maybe some evening this week. If you want to have a look at it yourself, the DOM-tree is made in XPointerContent.getDocument() and the XPath is evaluated on this in XPointerPart.process(). I tried it the last days with Xalan 2.5.2 but it didn't work. I also tried it with Xlink but the same error ocurs. With java I am unfortunately not experienced enough to go to deep in the above mentioned functions. I am going to investigate the next days further but honestly I am quite hopeless solving this problem myself and think about changing to something other then xhtml files. Cheers and thanks very much for your help so far Christian -- Bruno Dumon http://outerthought.org/ Outerthought - Open Source, Java XML Competence Support Center [EMAIL PROTECTED] [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Error running 2.1.3 app in 2.1.4
hi tony i'm just suggesting, but if you're using flow-script, try to add an explicit declaration of the used language: map:flow language=javascript map:script src=path to your js-flow-files/ /map:flow greetings stefan Tony Edwards wrote: Folks, I'm still interested to hear if I can generate woody forms on the fly - but it isn't really a show stopper at this stage (I'm quite happy to just insert a configuration step that generates the necessary forms and move these to a 'production' area). In the meantime, I just downloaded the latest 2.1.4 build and got everything running. I then copied over a 2.1.3 working application and got this error: org.apache.cocoon.ProcessingException: Failed to load sitemap from file:/C:/cocoon-2.1.4/build/webapp/SGSAssets/SGSAssets.xmap: org.apache.avalon.framework.configuration.ConfigurationException: No languages defined! What has changed from 2.1.3 to 2.1.4??? As always, thanks for you help! Tony - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
users@cocoon.apache.org
Hi, I am trying to use ServerPagesAction in cocoon. I have a wierd problem where I get an error saying org.apache.cocoon.ProcessingException: action logicsheet cannot be used in generators My sitemap goes like this map:match pattern=security.xsp map:act type=validator map:parameter name=descriptor value=/usr/local/jboss/ tomcat/webapps/ cocoon/server/styles/descriptor.xml/ map:parameter name=validate-set value=securityquote/ map:act type=xsp-action map:generate type=serverpages src=securityresult.xsp/ map:transform src=search.xsl/ map:serialize/ /map:act /map:act map:generate src=security.xsp type=serverpages/ map:transform src=search.xsl/ map:serialize/ /map:match Can we not use actions with generators. I have the following code in my xsp file. map:action logger=sitemap.action.xsp-action name=xsp-action src=org.apache.cocoon.acting.ServerPagesAction/ and then I have a xsp:logic part of code which does success and failure stuff. Can someone please tell me what I am doing wrong here. Thanks, Anna. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Map return type in action
Hi, I just a need a gory detail I am not able to find. When I write my own action file and its returns a map. How can I use the map in my xsp which gets executed when my action is succesful. Something like getParamter etc... can someone please write the syntax to get the Map details from a action. Thanks, Anna. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: [Woody] What is the java class type for a multivaluefield field?
On 20.02.2004 13:48, Michael Roth wrote: I'm running woody+flow using cvs version 2.1.4 from end of January 2004. I define a widget: wd:multivaluefield id=server wd:datatype base=string/ wd:selection-list src=cocoon:/serverlist dynamic=true/ /wd:multivaluefield I define an action widget: wd:action id=allservers action-command=allservers wd:labelAll Servers/wd:label wd:on-action javascript var serverlist = event.source.parent.getWidget(server); serverlist.value = ?; /javascript /wd:on-action /wd:action I action widget should choose all the server entries in the multivaluedfield widget above. I got java.lang.RuntimeException: Cannot set value of field rechner ... What is the correct way of setting a list? What is the expected datatype? Object[] http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/src/blocks/woody/java/org/apache/cocoon/woody/formmodel/MultiValueField.java?annotate=1.17#197 Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Status of Fins Block
On 10.02.2004 20:50, joakim verona wrote: I also use Fins, and I agree with Rudi that its a great cocoon block. I think the problem is the GPL license of the Jfreechart library. But wasnt the Apache license recently changed to be more compatible with the GPL? GPL licensed libraries or code must still not be redistributed by Apache. Fins is therefore maintained at cocoondev.org [1], to get access, provide patches or similar you should contact Steven Noels or Jeff Turner as written on the cocoondev.org homepage. Joerg [1] http://cocoondev.org/projects/fins.html - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: i18n - how to get localized message after form validation
On 10.02.2004 17:54, Joern Wallstabe wrote: How can I get a localized (!!) message from these function back in my form if validation fails ? I tried different approaches, but it's not working (cocoon snapshot 2.1.4 - 24.11.03) I'm always getting the key String an not the catalogue value. (1) var validationError = new Packages.org.apache.cocoon.woody.datatype.ValidationError(xxx); form.getWidget(my_widget).setValidationError(validationError,true); This one should work. Did you tried it with a more recent snapshot or the 2.1.4 release? Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Build 2.1.4
On 20.02.2004 13:45, beyaNet Consultancy wrote: hi guys, I have a build related question if I may. Just installed 2.1.4 of cocoon and tried to run my app as per usual and nothing happens, no links work nothing the site just seems dead. Also, I ran the hello world example in the main cocoon home page area (http://www.mysite.com/cocoon), and from the block`s Hello world section I clicked the jpeg link. When I do this i get an (org.apache.catalina.startup.Bootstrap) message box appear on my desktop, which would seem to suggest that another instance of tomcat/cocoon is being launched!!!??? In the local.blocks.properties file, how do I makes sure that i block is activated? Do I change as follows: un-comment the line #exclude.block.batik=true and: Don't change this line at all, it must be in comments. 1. leave as is - exclude.block.batik=true (block is not included in build)? or 2. exclude.block.batik=false (block is included in build)? Both mean the batik block is excluded as ant tests only if the property is set, not its value. Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Handling redirects with file generator?
I am trying to harvest some data from a website that returns an initial redirect. Using the file generator, I get the following error: org.apache.cocoon.ProcessingException: Failed to execute pipeline.: java.io.IOException which I'm guessing is caused by the redirect not being handled within the generator. If I use the url returned from the redirect, it works fine. My question, is there an easy and/or graceful to handle a redirect using existing components. I haven't dived into building my own generator yet which is the only other way I can think of to solve this. Thanks much. joel - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: building Collection from JDO problems
Hi Bert: Review variable names. Based on the error looks like you are trying to use a method or property of a JS variable that was not initializated. Check for the new Packages if they are correct written. Best Regards, Antonio Gallardo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
what's no pbkey error
I try to bind the registration example to database by OJB JDO. my database is postgres,had primary key setup ok,every thing seemed right. But when Itest it,the system has a error below, "file:/jakarta-tomcat-5.0.18/webapps/cocoon/test/flow/registration.js", line 8: uncaught _javascript_ exception: at registration (file:/jakarta-tomcat-5.0.18/webapps/cocoon/test/flow/registration.js, Line 8): org.apache.ojb.broker.PBFactoryException: There was no default-PBKey specified what's this. Best Regards Johnson
Re: what's no pbkey error
got it It reository.xml setting error,default-connection must 'true' Johnson - Original Message - From: Johnson To: [EMAIL PROTECTED] Sent: Saturday, February 21, 2004 10:13 AM Subject: what's no pbkey error I try to bind the registration example to database by OJB JDO. my database is postgres,had primary key setup ok,every thing seemed right. But when Itest it,the system has a error below, "file:/jakarta-tomcat-5.0.18/webapps/cocoon/test/flow/registration.js", line 8: uncaught _javascript_ exception: at registration (file:/jakarta-tomcat-5.0.18/webapps/cocoon/test/flow/registration.js, Line 8): org.apache.ojb.broker.PBFactoryException: There was no default-PBKey specified what's this. Best Regards Johnson