Re: pdf serializer
Thanks for the response1)Yes Xindice is returning XML no problem2)What is valid xsl-fo code? If it helps the XHTML serializer, HTML serializer and text serializer are working correctly3)I am currently using 2.1.8Thanks heapsMIkeOn 2/11/06, Antonio Gallardo <[EMAIL PROTECTED]> wrote: Hi,1- Verify that xindice returns a valid xml file. Using a pipeline as this:src="" PROTECTED]'{1}']"/> 2-Make sure you xslt tranformation works and produce valid xsl-fo code: src="" PROTECTED]'{1}']"/> value="{request:contextPath}"/> 3-If both pipelines returns valid code, then it can be a fop error. There are some constructions that fop does not support [1]BTW, wich cocoon version are you using.Best Regards,Antonio Gallardo.[1] - http://xmlgraphics.apache.org/fop/compliance.htmlMike Casey wrote:> Hi guys,>> I am currently trying to get the pdf serializer to work and am having> a rather large amount of difficulty. >> My serializer in the sitemap is declared as the default>> > mime-type="application/pdf" name="fo2pdf" > src="">> >> becasue I am not interested in adding any extra configuration files.>> My pipeline when calling the pdf is > > > src="" PROTECTED]'{1}']"/>> > > value="{request:contextPath}"/>> > > >> However I get the following error>> *java.lang.NullPointerException*> context://resources/xslt/text.xslt - 0:0 //>>> *Failed to process pipeline* > context://resources/xslt/text.xslt - 0:0 /[TransformerException]/> context://sitemap.xmap - 806:39 //> context://sitemap.xmap - 803:53 // > context://sitemap.xmap - 802:87 //>>> This has been bugging me for a couple of days considering I thought it> would be rather straight foward to used the pdf serializer. I have > tried adding a config file but that did not alter the> error. If anyone could point me in the right direction I would be more> that grateful>> Regards>> Mike Casey> NZ -To unsubscribe, e-mail: [EMAIL PROTECTED]For additional commands, e-mail: [EMAIL PROTECTED]
Re: pdf serializer
Hi, 1- Verify that xindice returns a valid xml file. Using a pipeline as this: src="xmldb:xindice://localhost:/db/pages/#/[EMAIL PROTECTED]'{1}']"/> 2-Make sure you xslt tranformation works and produce valid xsl-fo code: src="xmldb:xindice://localhost:/db/pages/#/[EMAIL PROTECTED]'{1}']"/> value="{request:contextPath}"/> 3-If both pipelines returns valid code, then it can be a fop error. There are some constructions that fop does not support [1] BTW, wich cocoon version are you using. Best Regards, Antonio Gallardo. [1] - http://xmlgraphics.apache.org/fop/compliance.html Mike Casey wrote: Hi guys, I am currently trying to get the pdf serializer to work and am having a rather large amount of difficulty. My serializer in the sitemap is declared as the default mime-type="application/pdf" name="fo2pdf" src="org.apache.cocoon.serialization.FOPSerializer"> becasue I am not interested in adding any extra configuration files. My pipeline when calling the pdf is src="xmldb:xindice://localhost:/db/pages/#/[EMAIL PROTECTED]'{1}']"/> value="{request:contextPath}"/> However I get the following error *java.lang.NullPointerException* context://resources/xslt/text.xslt - 0:0// *Failed to process pipeline* context://resources/xslt/text.xslt - 0:0/[TransformerException]/ context://sitemap.xmap - 806:39 // context://sitemap.xmap - 803:53 // context://sitemap.xmap - 802:87 // This has been bugging me for a couple of days considering I thought it would be rather straight foward to used the pdf serializer. I have tried adding a config file but that did not alter the error. If anyone could point me in the right direction I would be more that grateful Regards Mike Casey NZ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
pdf serializer
Hi guys,I am currently trying to get the pdf serializer to work and am having a rather large amount of difficulty.My serializer in the sitemap is declared as the default becasue I am not interested in adding any extra configuration files. My pipeline when calling the pdf is However I get the following errorjava.lang.NullPointerException context://resources/xslt/text.xslt - 0:0 Failed to process pipeline context://resources/xslt/text.xslt - 0:0[TransformerException] context://sitemap.xmap - 806:39 context://sitemap.xmap - 803:53 context://sitemap.xmap - 802:87This has been bugging me for a couple of days considering I thought it would be rather straight foward to used the pdf serializer. I have tried adding a config file but that did not alter the error. If anyone could point me in the right direction I would be more that gratefulRegardsMike CaseyNZ
Re: CForms: textarea widget?
[EMAIL PROTECTED] wrote: Where is this PDF manual? http://cocoon.zones.apache.org/daisy/books/ Best Regards, Antonio Gallardo. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon scheduler
Hi. I have configured a CMT Job Store for Cocoon scheduler in cocoon.xconf to: java:/DefaultDS since I am using Container Managed Transactions (Jboss 4.0.3sp1, Cocoon 2.1.8). But when I run Jboss I get the following exception: org.quartz.SchedulerConfigException: Non-ManagedTX DataSource name not set! After looking in Quartz documentation I found that in order to use CMT store you must also configure a NON-ManagedTX DataSource in quartz.properties file. But how can I do that using cocoon.xconf? Regards, Borut - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems in rows deletion with repeater
Simone Masoni wrote: table="PASSISTE"> ... element-class-ref="w4b.com.cassagest.db.Docassiste" auto-update="true" auto-delete="true" proxy="false" auto-retrieve="false"> I think you need put auto-retrieve to "true", because when you retrieve the bean, the collection is empty. ... public void update(Passiste bean, JDO pmf) { PersistenceBroker broker = PersistenceBrokerFactory.defaultPersistenceBroker(); Query query = new QueryByIdentity(bean); Passiste result = (Passiste) broker.getObjectByQuery(query); copyData(bean, result); broker.beginTransaction(); broker.store(result,ObjectModificationDefaultImpl.UPDATE); broker.store(result.getDocassisteList()); broker.commitTransaction(); broker.close(); } For me work fine if i store directly the bean modified, I meant, is not necessary reload the object and replace with the bean from the cocoon forms, just do store(bean). The O/R mapping knows the collection has changed and it has to be modify the databases too. Cheers, Carlos Chávez. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: get URI inside flowscript
I don't remember well, there should be cocoon.request.getServerName, and if you don't find for context and sitemapUri simply pass it as parameter from sitemap where it easy to get these values.. For your redirection try cocoon.redirectTo("http://www.google.com";, true) to make an external redirect. Phil Brian Maddy wrote: Does anyone know how to get your base URI from within flowscript? I am trying to do a cocoon.redirectTo("somePage"), but it seems to be redirecting to the root directory of my webapp. I figure I could do something like: cocoon.redirectTo("/" + base_uri + "somePage"); Additionally, the following line should work shouldn't it? cocoon.redirectTo("http://www.google.com";); It gives me this error: org.xml.sax.SAXParseException: The element type "meta" must be terminated by the matching end-tag "". Any ideas? Thanks, Brian - 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: Cocoon Portal and browser back button problems
philguillard wrote: > Hi Angelo, > > I had this trouble too. But i didn't solve it definitely. > > My opinion : > - portal is not 100% ready for internet web site production because of > this, since 99% of internet users use intensively using back and refresh > buttons! (if you really insist on back and mostly refresh buttons i bet > you'll find an exception quickly) > - It seems all the concept of events cause problem since the browser > back button is not informing portal we want event no 4 on the last page > we had, and thinks we need the event no 4 on the actual page. > - But this is open source, so up to us to arrange this problem, but i > didn't feel competent for this. > It's correct that using the event id in the urls is actually one of the worst parts of the portal which definitly needs some more work. The version in the current development branch for 2.2 is far better in this aspect as it only creates event ids in some rare cases by default. In additions each page uses it's own number range for the ids. This, in combination to expire the portal page and forcing the browser to reload the page when using the back button should solve all these issues. I think the expiring/reloading mechanism should be used in a portal anyway; otherwise you'll end up with inconsistent state very soon. Imagine a user removing a portlet and then hitting the back button. Unfortunately, 2.2 is under going currently some heavy changes in the build system, so you are even not able to have a look at the new version :( Btw, the portal can and is used in several production sites without problems :) Carsten -- Carsten Ziegeler - Open Source Group, S&N AG http://www.s-und-n.de http://www.osoco.org/weblogs/rael/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
get URI inside flowscript
Does anyone know how to get your base URI from within flowscript? I am trying to do a cocoon.redirectTo("somePage"), but it seems to be redirecting to the root directory of my webapp. I figure I could do something like: cocoon.redirectTo("/" + base_uri + "somePage"); Additionally, the following line should work shouldn't it? cocoon.redirectTo("http://www.google.com";); It gives me this error: org.xml.sax.SAXParseException: The element type "meta" must be terminated by the matching end-tag "". Any ideas? Thanks, Brian - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CForms: creating dynamic widgets
Andrew,From flow you can do...cocoon.load("resource://org/apache/cocoon/forms/flow/_javascript_/Form.js");...var questions = someMethodToGetQuestions();var model = loadDOM("forms/application/definition.jxt ", {"questions": questions});var form = new Form(model.getDocumentElement());form.showForm("forms/application/template.jxt");Hope this helps...RobinOn 10 Feb 2006, at 13:29, Andrew Le Quesne wrote: Hi there,I am trying to generate a dynamic form template so I can create a list of questions that the user will answer from a set of questions stored in a database table.I am setting the definition file by using a pipeline - cocoon:/forms/application/definition.jxt To generate a JXT file. This works as a basic form but I need to pass a Java Object to it so that I can get a list of question objects from which to create the question set of widgets. Can anyone give me any advice or are there any examples of something similar anywhere.I am using cocoon 2.1.8Thanks,Andrew
Re: back button problem with cForm groups
Use this kind of logic in your flow script.var finished = false; while(!finished) { try { form.showForm( mypipline ); form.save(initialObject); finished = true; } catch(e) { if(e instanceof Packages.java.lang.IllegalStateException) { form.lookupWidget("messages").addMessage( "A server side session state error has been detected. Please do not use the back button."); } else { throw e; } } }You will need to add a "messages" widget to your form model for the messages to show up. And template:HTHOn 2/10/06, Marcel Rouwenhorst <[EMAIL PROTECTED]> wrote: Hi, We made a multipage cforms wizard. For the multiple pages we use groups which are activated and deactivated when a user clicks a previous/next button. This works fine except that when users use the browsers "back" button and click on a button of a client-sided cached page. (BTW this only happens when the user uses the browsers "back" button and switches from group, within a group things keep working fine). Has anyone faced this problem before and found a solution? Thank you, Marcel Internal Server Error Message: Widget Action 'page1.next' that submitted the form is not active. Description: org.apache.cocoon.ProcessingException: Error calling continuation at resource://org/apache/cocoon/forms/flow/_javascript_/Form.js:147:-1 at file:/C:/projects/blog/.deployables/blog/default/flowScript/fsCreateBlogFunction.js:0:-1 at - file:/C:/projects/blog/.deployables/blog/nonsecure.xmap:111:37 at - file:/C:/projects/blog/.deployables/blog/sitemap.xmap:868:82 Sender: org.apache.cocoon.servlet.CocoonServlet Source: Cocoon Servlet Request URI nonsecure/792f6464627522603e1c106c3350346e674f.continue cause java.lang.IllegalStateException: Widget Action 'page1.next' that submitted the form is not active. request-uri /blog/nonsecure/792f6464627522603e1c106c3350346e674f.continue full exception chain stacktrace org.apache.cocoon.ProcessingException: Error calling continuation at resource://org/apache/cocoon/forms/flow/_javascript_/Form.js:147:-1 at file:/C:/projects/blog/.deployables/blog/default/flowScript/fsCreateBlogFunction.js:0:-1 at - file:/C:/projects/blog/.deployables/blog/nonsecure.xmap:111:37 at - file:/C:/projects/blog/.deployables/blog/sitemap.xmap:868:82 at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.java:144) at org.apache.cocoon.components.flow._javascript_.LocationTrackingDebugger.getException (LocationTrackingDebugger.java:132) at org.apache.cocoon.components.flow._javascript_.fom.FOM_JavaScriptInterpreter.handleContinuation (FOM_JavaScriptInterpreter.java:856) at org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke (CallFunctionNode.java:123) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes (AbstractParentProcessingNode.java:46) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke (PreparableMatchNode.java:130) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes (AbstractParentProcessingNode.java:68) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke (PipelineNode.java:142) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes( AbstractParentProcessingNode.java:68) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke (PipelinesNode.java:92) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java :234) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:176) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:248) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:117) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:142) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process (ConcreteTreeProcessor.java:234) at org.apache.cocoon.componen
Re: Problems in rows deletion with repeater
Carlos Chávez ha scritto: Simone Masoni wrote: Can anyone help me in finding a good sample with CForms, with repeater widget bound to a Collection inside a Bean? I've tried it using OJB PersistenceBroker, but it doesn't work, I can delete rows in repeater but then I don't know how to persist the deletion in the DB. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Hi Simone, are you set the properties auto-update and auto-delete to true for the collection ? Cheers, Carlos Chávez. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Yes, I've set these properties to true This is my tables and codes: TABLES: CREATE TABLE passiste ( pbcodass varchar(3) NOT NULL, pbprogre serial NOT NULL, pbdescri char(50), pbannota char(50), . . (many others fields) CONSTRAINT passiste_pkey PRIMARY KEY (pbcodass), CONSTRAINT passiste_pbprogre_key UNIQUE (pbprogre) ) CREATE TABLE docassiste ( dbprogre serial NOT NULL, dbdocume int4, dbobblig varchar(1), dbannota char(50), dbcodass varchar(3), CONSTRAINT docassiste_pkey PRIMARY KEY (dbprogre), CONSTRAINT docassiste_dbcodass_fkey FOREIGN KEY (dbcodass) REFERENCES passiste (pbcodass) ON UPDATE RESTRICT ON DELETE RESTRICT, CONSTRAINT docassiste_dbdocume_fkey FOREIGN KEY (dbdocume) REFERENCES docuassist (dgprogre) ON UPDATE NO ACTION ON DELETE NO ACTION ) - REPOSITORY: table="DOCASSISTE"> default-fetch="true" autoincrement="true" sequence-name="public.docassiste_dbprogre_seq" column="DBPROGRE" jdbc-type="INTEGER"/> column="DBDOCUME" jdbc-type="INTEGER"/> column="DBOBBLIG" jdbc-type="VARCHAR"/> column="DBANNOTA" jdbc-type="CHAR"/> column="DBCODASS" jdbc-type="VARCHAR"/> class-ref="w4b.com.cassagest.db.Passiste" auto-update="true" auto-delete="true" proxy="false"> class-ref="w4b.com.cassagest.db.Docuassist" auto-update="true" auto-delete="true" proxy="false"> table="PASSISTE"> default-fetch="true" autoincrement="true" sequence-name="public.passiste_pbprogre_seq" column="PBPROGRE" jdbc-type="INTEGER"/> column="PBDTINVAL" jdbc-type="DATE" conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlDateFieldConversion"/> column="PBDTFIVAL" jdbc-type="DATE" conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlDateFieldConversion"/> column="PBDESCRI" jdbc-type="CHAR"/> column="PBGGLIMD" jdbc-type="SMALLINT"/> column="PBDTLIMD" jdbc-type="DATE" conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlDateFieldConversion"/> column="PBDTLAVF" jdbc-type="DATE" conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlDateFieldConversion"/> column="PBNUMEAN" jdbc-type="SMALLINT"/> column="PBFAMILI" jdbc-type="VARCHAR"/> column="PBACHIAS" jdbc-type="VARCHAR"/> column="PBUNICAE" jdbc-type="VARCHAR"/> column="PBPERCEN" jdbc-type="NUMERIC"/> column="PBRICVOT" jdbc-type="VARCHAR"/> column="PBIMPOUN" jdbc-type="NUMERIC"/> column="PBIMPMAX" jdbc-type="NUMERIC"/> column="PBVOTOIN" jdbc-type="INTEGER"/> column="PBVOTOFI" jdbc-type="INTEGER"/> column="PBRICORE" jdbc-type="VARCHAR"/> column="PBLIMORE" jdbc-type="SMALLINT"/> column="PBORESIM" jdbc-type="VARCHAR"/> column="PBPROGRA" jdbc-type="CHAR"/> column="PBRIMIMP" jdbc-type="VARCHAR"/> column="PBETAINI" jdbc-type="SMALLINT"/> column="PBETAFIN" jdbc-type="SMALLINT"/> column="PBASSSTU" jdbc-type="VARCHAR"/> column="PBNUASDL" jdbc-type="SMALLINT"/> column="PBNUASLL" jdbc-type="SMALLINT"/> column="PBDTINCO" jdbc-type="DATE" conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlDateFieldConversion"/> column="PBDTFICO" jdbc-type="DATE" conversion="org.apache.ojb.broker.accesslayer.conversions.JavaDate2SqlDateFieldConversion"/> column="PBCONREG" jdbc-type="VARCHAR"/> column="PBTIDATA" jdbc-type="VARCHAR"/> column="PBANNOTA" jdbc-type="CHAR"/> column="PBDESCR1" jdbc-type="CHAR"/> column="PBDESCR2" jdbc-type="CHAR"/> column="PBDESCR3" jdbc-type="CHAR"/> column="PBDESCR4" jdbc-type="CHAR"/> column="PBUMISU1" jdbc-type="CHAR"/> column="PBUMISU2" jdbc-type="CHAR"/> column="PBUMISU3" jdbc-type="CHAR"/> column="PBUMISU4" jdbc-type="CHAR"/> column="PBFORMUL" jdbc-type="VARCHAR"/> column="PBNUMMES" jdbc-type="SMALLINT"/> column="PBTIPOLO" jdbc-type="CHAR"/> column="PBASSFIS" jdbc-type="SMALLINT"/> default-fetch="true" column="PBCODASS" jdbc-type="VARCH
Re: Removing and/or escaping apos' in XSL
philguillard wrote: I've found a way, maybe this could help for others ... Only one ' should be necessary there: Another way to do it is ' Lars then anywhere in the XSL template : {translate($foo,$apos, '`')} Phil philguillard wrote: Hi all, Hum.. I want to escape the apostrophe (') in XSL Example : foo value is "I'm askin' to cocoon's mailinglist" None of these tries are correct : Then i tried to define $apos as a variable to be able to use the transfrom function, but the same problem arizes when i declare it : or Regards, Phil - 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]
back button problem with cForm groups
Hi, We made a multipage cforms wizard. For the multiple pages we use groups which are activated and deactivated when a user clicks a previous/next button. This works fine except that when users use the browsers “back” button and click on a button of a client-sided cached page. (BTW this only happens when the user uses the browsers “back” button and switches from group, within a group things keep working fine). Has anyone faced this problem before and found a solution? Thank you, Marcel Internal Server Error Message: Widget Action 'page1.next' that submitted the form is not active. Description: org.apache.cocoon.ProcessingException: Error calling continuation at resource://org/apache/cocoon/forms/flow/_javascript_/Form.js:147:-1 at file:/C:/projects/blog/.deployables/blog/default/flowScript/fsCreateBlogFunction.js:0:-1 at - file:/C:/projects/blog/.deployables/blog/nonsecure.xmap:111:37 at - file:/C:/projects/blog/.deployables/blog/sitemap.xmap:868:82 Sender: org.apache.cocoon.servlet.CocoonServlet Source: Cocoon Servlet Request URI nonsecure/792f6464627522603e1c106c3350346e674f.continue cause java.lang.IllegalStateException: Widget Action 'page1.next' that submitted the form is not active. request-uri /blog/nonsecure/792f6464627522603e1c106c3350346e674f.continue full exception chain stacktrace org.apache.cocoon.ProcessingException: Error calling continuation at resource://org/apache/cocoon/forms/flow/_javascript_/Form.js:147:-1 at file:/C:/projects/blog/.deployables/blog/default/flowScript/fsCreateBlogFunction.js:0:-1 at - file:/C:/projects/blog/.deployables/blog/nonsecure.xmap:111:37 at - file:/C:/projects/blog/.deployables/blog/sitemap.xmap:868:82 at org.apache.cocoon.ProcessingException.throwLocated(ProcessingException.java:144) at org.apache.cocoon.components.flow._javascript_.LocationTrackingDebugger.getException(LocationTrackingDebugger.java:132) at org.apache.cocoon.components.flow._javascript_.fom.FOM_JavaScriptInterpreter.handleContinuation(FOM_JavaScriptInterpreter.java:856) at org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:123) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:142) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:234) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:176) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:248) at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:117) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:46) at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68) at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:142) at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:68) at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:92) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:234) at org.apache.cocoon.components.treeprocessor.ConcreteTreeProcessor.process(ConcreteTreeProcessor.java:176) at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:248) at org.apache.cocoon.Cocoon.process(Cocoon.java:679) at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1154) at javax.servlet.http.HttpServlet.service(HttpServlet.java:802) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:213) at org.apache.catalina.core.StandardContextValve.i
Re: Cocoon Portal and browser back button problems
Hi Angelo, I had this trouble too. But i didn't solve it definitely. My opinion : - portal is not 100% ready for internet web site production because of this, since 99% of internet users use intensively using back and refresh buttons! (if you really insist on back and mostly refresh buttons i bet you'll find an exception quickly) - It seems all the concept of events cause problem since the browser back button is not informing portal we want event no 4 on the last page we had, and thinks we need the event no 4 on the actual page. - But this is open source, so up to us to arrange this problem, but i didn't feel competent for this. In short to avoid probblems you have to avoid all portal events : - PageLabel is the right solution for menus etc... - Avoid transforming your anchors via portal-eventlink-transformer, but use systematically bookmarks. - On the bookmark pipeline, use an internal redirect instead of external to also avoid the event. I received most of these informations from the there : (http://mail-archives.apache.org/mod_mbox/cocoon-users-fr/200509.mbox/[EMAIL PROTECTED]), since you seem Italian i'm quite sure you can almost read that french. Phil Angelo Immediata wrote: Hi all. I'm using Cocoon 2.1.7 and it's portal block. My portal is configured for using PageLabels. I have seen that there is an incorrect functionality when the user clicks on the browser's back button; i think that this is due to the cocoon-portal-event number did anybody solved this feature? Thanks to all. - 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]
document() function entity resolution
Greetings all, When a stylesheet executes the document() function, the target document appears to validated against the path contained in it's system identifier. Ideally, I'd like to force entity resolution against the public identifier but I suspect that this involves some configuration of the processor - am I correct in this assumption? I have already specified a local entity catalog for my DTD, and these are resolved correctly when pages that don't contain document() are viewed. Incidentally, aggregate processing in the pipeline is not really an option. Also, I'm using SAXON 8.5.1 Thanks in advance, Mike - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problems in rows deletion with repeater
Simone Masoni wrote: Can anyone help me in finding a good sample with CForms, with repeater widget bound to a Collection inside a Bean? I've tried it using OJB PersistenceBroker, but it doesn't work, I can delete rows in repeater but then I don't know how to persist the deletion in the DB. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Hi Simone, are you set the properties auto-update and auto-delete to true for the collection ? Cheers, Carlos Chávez. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: a suprise problem
What problems did you see? Did you open a Jira incident? Schultz, Gary - COMM wrote: What version of OS and Java? I've had problems with Cocoon 2.1.8 and Java 5 (j2sdk 1.5.0_05 in my situation) in Windows 2000 Server and 2003 Server. I had to revert back to Java 1.4.2_xx (I'm running 1.4.2_10). The problem occurred regardless of the Java-Tomcat combination used (Java 5 - Tomcat 5.5.xx and Java 5 - Tomcat 5.0.xx). Gary T. Schultz IT Administrator Wisconsin Department of Commerce 201 W. Washington Ave Madison, WI 53214 608-266-1283 [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon Portal and browser back button problems
Any page that has event ids in the url will potentially have problems with the back button. We have been changing the events where this happens but the work is not complete. What are the event ids you are seeing for? Angelo Immediata wrote: Hi all. I'm using Cocoon 2.1.7 and it's portal block. My portal is configured for using PageLabels. I have seen that there is an incorrect functionality when the user clicks on the browser's back button; i think that this is due to the cocoon-portal-event number did anybody solved this feature? Thanks to all. - 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: i18n:attr translation
Andrew Stevens wrote: From: philguillard <[EMAIL PROTECTED]> Date: Fri, 10 Feb 2006 01:39:17 +0800 Hi, What do you think about that ? I get a WARN I18nTransformer: Translation not found for attribute alt in element Is that not the right synthax ? The fact it's the I18nTransformer giving the warning suggests it's been triggered, so the namespace and attribute (i18n:attr) are okay. Plus, it knows that it should be translating the alt attribute. However, it appears not to be finding any localised message for the key "translation.foo". Have you got it configured with the correct path etc. for your catalog, and does the catalog contain an entry for that key? Andrew. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] Thanks Andrew, Right, since i have a few XSL in this, the translation error came from some other img tags. It works correctly. Phil - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: a suprise problem
What version of OS and Java? I've had problems with Cocoon 2.1.8 and Java 5 (j2sdk 1.5.0_05 in my situation) in Windows 2000 Server and 2003 Server. I had to revert back to Java 1.4.2_xx (I'm running 1.4.2_10). The problem occurred regardless of the Java-Tomcat combination used (Java 5 - Tomcat 5.5.xx and Java 5 - Tomcat 5.0.xx). Gary T. Schultz IT Administrator Wisconsin Department of Commerce 201 W. Washington Ave Madison, WI 53214 608-266-1283 [EMAIL PROTECTED] -Original Message- From: wangwenzhou wangwenzhou [mailto:[EMAIL PROTECTED] Sent: Tuesday, February 07, 2006 12:32 AM To: users@cocoon.apache.org Subject: a suprise problem Dear cocoon developers: I am the cocoon loyal user. Currently, my cocoon can not work. It always appears the follow information.But in the past it worked correctly. And now, my project is urgently near the dead line. Can you please to give me some advice for solving this problem, these can help me a lot. Thanks so much. your best guard George Wang Initialization Problem Message: org.apache.cocoon.faces.samples.components.taglib.AreaTag Description: org.apache.avalon.framework.configuration.ConfigurationException: Could not load class org.apache.cocoon.components.ExtendedComponentSelector for component named 'http://java.sun.com/jsf/demo/components' at jndi:/localhost/cocoon/WEB-INF/cocoon.xconf:1875:156 Sender: org.apache.cocoon.servlet.CocoonServlet Source: Cocoon Servlet cause java.lang.ClassNotFoundException: org.apache.cocoon.faces.samples.components.taglib.AreaTag request-uri /cocoon/ full exception chain stacktrace org.apache.avalon.framework.configuration.ConfigurationException: Could not load class org.apache.cocoon.components.ExtendedComponentSelector for component named 'http://java.sun.com/jsf/demo/components' at jndi:/localhost/cocoon/WEB-INF/cocoon.xconf:1875:156 at org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedCom ponentSelector.java:235) at org.apache.avalon.framework.container.ContainerUtil.configure(ContainerUtil. java:201) at org.apache.avalon.excalibur.component.DefaultComponentFactory.newInstance(De faultComponentFactory.java:289) at org.apache.avalon.excalibur.component.ThreadSafeComponentHandler.initialize( ThreadSafeComponentHandler.java:108) at org.apache.avalon.excalibur.component.ExcaliburComponentManager.initialize(E xcaliburComponentManager.java:524) at org.apache.cocoon.components.CocoonComponentManager.initialize(CocoonCompone ntManager.java:566) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil .java:244) at org.apache.cocoon.Cocoon.initialize(Cocoon.java:336) at org.apache.avalon.framework.container.ContainerUtil.initialize(ContainerUtil .java:244) at org.apache.cocoon.servlet.CocoonServlet.createCocoon(CocoonServlet.java:1429 ) at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:499) at org.apache.catalina.core.StandardWrapper.loadServlet(StandardWrapper.java:10 91) at org.apache.catalina.core.StandardWrapper.load(StandardWrapper.java:925) at org.apache.catalina.core.StandardContext.loadOnStartup(StandardContext.java: 3857) at org.apache.catalina.core.StandardContext.start(StandardContext.java:4118) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) at org.apache.catalina.core.StandardHost.start(StandardHost.java:718) at org.apache.catalina.core.ContainerBase.start(ContainerBase.java:1012) at org.apache.catalina.core.StandardEngine.start(StandardEngine.java:442) at org.apache.catalina.core.StandardService.start(StandardService.java:450) at org.apache.catalina.core.StandardServer.start(StandardServer.java:683) at org.apache.catalina.startup.Catalina.start(Catalina.java:537) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.apache.catalina.startup.Bootstrap.start(Bootstrap.java:271) at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:409) Caused by: org.apache.avalon.framework.component.ComponentException: Could not set up Component for hint [ http://java.sun.com/jsf/demo/components] (key [http://java.sun.com/jsf/demo/components]) at org.apache.avalon.excalibur.component.ExcaliburComponentSelector.addComponen t(ExcaliburComponentSelector.java:723) at org.apache.cocoon.components.ExtendedComponentSelector.configure(ExtendedCom ponentSelector.java:228) ... 27 more Caused by: org.apache.avalon.framework.configuration.ConfigurationException: Could not load class org.apache.cocoon.faces.samples.components.taglib.AreaTag for component named 'area'
Problems in rows deletion with repeater
Can anyone help me in finding a good sample with CForms, with repeater widget bound to a Collection inside a Bean? I've tried it using OJB PersistenceBroker, but it doesn't work, I can delete rows in repeater but then I don't know how to persist the deletion in the DB. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
cookie usage in cocoon
Can anyone help in providing any good idea of usage of cookie in cocoon?Any working sample of a better odea of what to use where would be nice as I am required to make use of cookie in cocoon. Arnab Jena Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com ForwardSourceID:NT3616 Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
Re: cookie usage in cocoon
See: http://cocoon.apache.org/2.1/userdocs/concepts/modules-ref.html (section on CookieModule) Also: http://wiki.apache.org/cocoon/CookieSelector?highlight=%28cookie%29 >>> [EMAIL PROTECTED] 2006/02/10 01:35:25 PM >>> Can anyone help in providing any good idea of usage of cookie in cocoon?Any working sample of a better odea of what to use where would be nice as I am required to make use of cookie in cocoon. Arnab Jena Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: CForms: textarea widget?
Where is this PDF manual? Thanks -Original Message- From: Derek Hohls [mailto:[EMAIL PROTECTED] Sent: Friday, February 10, 2006 2:26 PM To: users@cocoon.apache.org Subject: Re: CForms: textarea widget? or PS I have downloaded the entire Forms manual as a PDF; pretty helpful. >>> [EMAIL PROTECTED] 2006/02/10 03:16:52 PM >>> I am looking at the Cocoon User Guide, and I don't see how one can create a textarea widget. Thanks -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - 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]
cookie usage in cocoon
Can anyone help in providing any good idea of usage of cookie in cocoon?Any working sample of a better odea of what to use where would be nice as I am required to make use of cookie in cocoon. Arnab Jena Tata Consultancy Services Limited Mailto: [EMAIL PROTECTED] Website: http://www.tcs.com Notice: The information contained in this e-mail message and/or attachments to it may contain confidential or privileged information. If you are not the intended recipient, any dissemination, use, review, distribution, printing or copying of the information contained in this e-mail message and/or attachments to it are strictly prohibited. If you have received this communication in error, please notify us by reply e-mail or telephone and immediately and permanently delete the message and any attachments. Thank you
Re: CForms: textarea widget?
or PS I have downloaded the entire Forms manual as a PDF; pretty helpful. >>> [EMAIL PROTECTED] 2006/02/10 03:16:52 PM >>> I am looking at the Cocoon User Guide, and I don't see how one can create a textarea widget. Thanks -- This message is subject to the CSIR's copyright, terms and conditions and e-mail legal notice. Views expressed herein do not necessarily represent the views of the CSIR. CSIR E-mail Legal Notice http://mail.csir.co.za/CSIR_eMail_Legal_Notice.html CSIR Copyright, Terms and Conditions http://mail.csir.co.za/CSIR_Copyright.html For electronic copies of the CSIR Copyright, Terms and Conditions and the CSIR Legal Notice send a blank message with REQUEST LEGAL in the subject line to [EMAIL PROTECTED] This message has been scanned for viruses and dangerous content by MailScanner, and is believed to be clean. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CForms: textarea widget?
I am looking at the Cocoon User Guide, and I don’t see how one can create a textarea widget. Thanks
Re: CForms: creating dynamic widgets
Hi Andrew, This might be helpful to you - http://issues.apache.org/jira/browse/COCOON-1418 Adam Andrew Le Quesne wrote: Hi there, I am trying to generate a dynamic form template so I can create a list of questions that the user will answer from a set of questions stored in a database table. I am setting the definition file by using a pipeline - cocoon:/forms/application/definition.jxt To generate a JXT file. This works as a basic form but I need to pass a Java Object to it so that I can get a list of question objects from which to create the question set of widgets. Can anyone give me any advice or are there any examples of something similar anywhere. I am using cocoon 2.1.8 Thanks, Andrew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
CForms: creating dynamic widgets
Title: CForms: creating dynamic widgets Hi there, I am trying to generate a dynamic form template so I can create a list of questions that the user will answer from a set of questions stored in a database table. I am setting the definition file by using a pipeline - cocoon:/forms/application/definition.jxt To generate a JXT file. This works as a basic form but I need to pass a Java Object to it so that I can get a list of question objects from which to create the question set of widgets. Can anyone give me any advice or are there any examples of something similar anywhere. I am using cocoon 2.1.8 Thanks, Andrew
Re: dynamic tabs, dynamic forms
Hi Fernando, cocoon is actually able to do tabbed panels with dinamically generated forms inside, see cocoon forms for more dails. I'm working on a site which uses dynamic tabs where every tab represent a year, and contains a table with a number of elements in that year. You can add or delete years clicking on buttons, and add, remove and reorder (move up and down) elements inside the year with appropiate icon buttons. And all this is handled by the underlying framework, which i have expanded (since it's fully pluggable) in some points to make it better fit my needs. The application backend is made with hibernate and spring. We have spring managed service beans and transactions, and hibernate persisted domain beans. The control part is done with javaflow (not javascript, but real java classes) so that we have compile time checks and strong typing. Furthermore, there are many attempts going on to migrate cocoon completely to spring. Hope you can find more informations searching for this : - javaflow, cocoon forms (expecially the XSL part for tabbed forms) in cocoon user documentation. - CHS (Cocoon hibernate spring) slides made by Ugo Cei. Regards, Simone -- Simone Gianni - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Cocoon Portal and browser back button problems
Hi all. I'm using Cocoon 2.1.7 and it's portal block. My portal is configured for using PageLabels. I have seen that there is an incorrect functionality when the user clicks on the browser's back button; i think that this is due to the cocoon-portal-event number did anybody solved this feature? Thanks to all. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
dynamic tabs, dynamic forms
Hello, I am evaluating what web framework to use for my next project. The main thing is to be able to define tabbed panes dynamically, with dynamically defined forms in them. I’m not sure there is any framework with some nice facilities for this. I would surely love some Scheme-in-Java framework for this, but I want something with good integration with Spring. Thanks
More Questions About Date
Sorry to bother people I'm still getting up to speed with all this. I've been trying to use CForms with an existing application and I've got stuck in a few areas. I'm using the XML Binding stuff to create an XML document to be sent to another server. The first problem I've come across is that I have an XML document returned in the format Hi there! where bar is a date type. As it is empty it fails. Is there a way to make the binding accept an empty value? I then figured I can strip any nil values from the document leaving just the filled in values left. However the output document looks something like: Hi there! Fri Jan 12 00:03:00 GMT 1973 with the two issues that: 1, The bound "bar" now is the last element which might be a problem with some schema. This wouldn't be a problem if there is a solution to the problem above though. 2, The format is a long datetime format. Is there a way of just getting the ISO date type? At the moment I'm just returning the DOM tree as it is in JXPath so presumably that's the Java localisation. I looked at the datatype documentation but couldn't find a way of doing a conversion on the submit. Help with any of these would be most appreciated. Many thanks, Gary * The information contained in this message may be confidential or legally privileged and is intended for the addressee only, If you have received this message in error or there are any problems, please notify the originator immediately. The unauthorised use, disclosure, copying or alteration of this message is strictly forbidden. * - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: CFORM - repeater , add-row on OJB collection
I would want simply to work directly on one table with a repeater. The table does not have to be connected to a father like in all the examples of the repeater. Hour I succeed to modify the table, but I do not succeed to add lines. The problem is in binding. I pass an ArrayList to a binding, when I invoke "add" method on insert row error: java.lang.NoSuchMethodException: com.sun.jdori.common.sco.ArrayList.add(w4b.com.cassagest.db.Docuassist) Thanks in advance, This my simple binding, http://apache.org/cocoon/forms/1.0#binding"; path="."> addmethod="add"/> --- Alessandro Vincelli W4B - web for business s.r.l. Firenze via Pellicceria 10 - 50123 E-mail: [EMAIL PROTECTED] tel: 055-2654270 Christoph Hermann ha scritto: Alessandro Vincelli schrieb: Hi, But the situation if different from the example. I have form-repeater similar to exaple in the link, and work fine. In this situation I try to add Bean directly to a collection from OJB. The collection is returned from OJB. org.apache.ojb.broker.util.collections.RemovalAwareCollection The RemovalAwareCollection has RemovalAwareCollection.add(java.lang.Object) RemovalAwareCollection.ojbAdd(java.lang.Object) and in bind I use this method But I have this problem: java.lang.NoSuchMethodException: org.apache.ojb.broker.util.collections.RemovalAwareCollection.add(w4b.com.cassagest.db.Docuassist) Any idea? If nothing else works, you can add it yourself in some javascript snippet in the corresponding event javascript-section. Sorry, i don't know where your problem comes from. Christoph - 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]