Re: Accessing EJBs from generator
Hi, Am Sonntag 27 Juli 2008 11:42:30 schrieb Markus Brückner: Google etc. are not really helping. I found some people having the same problem, but no answer. The list archive was no help either (at least going back until january). So I running out of options here: what is this $Proxy86 object and why do I get it when trying to look up the EJB? anybody? Hm, I've done some more research (i.e. mostly asking my local Cocoon expert) and come to the conclusion, that this might be more of a Spring issue, than a Cocoon one. Am I the only one running into this problem with Cocoon (which would support my theory, that I do something simple very wrong) or is this generally known and therefore not worth speaking about? So long, Markus, still a bit puzzled - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Rewriting EncodeURLTransformer to encode the locale parameter
On Thursday 31 July 2008 20:11:10 Robin Wyles wrote: Maybe you could use the LinkRewriterTransformer [1] to achieve this along with your own custom InputModule to add the locale parameter. Oh, OK. Actually, I looked at that but realised that I didn't quite understand what it did, I thought it more did something like mod_rewrite, i.e. rewrite incoming URLs. That said, the LinkRewriterTransformer looks up the InputModule based on the url scheme, so you would have to use a custom scheme (e.g. locale:) for all the 'schemeless' (e.g. /path/to/some/page.html) links you wanted rewritten. H, OK. I'll look into it, but I think I found an XSLT way that sort of works too. Kind regards Kjetil Kjernsmo -- Senior Knowledge Engineer Direct: +47 6783 1136 | Mobile: +47 986 48 234 Email: [EMAIL PROTECTED] Web: http://www.computas.com/ | SHARE YOUR KNOWLEDGE | Computas AS Vollsveien 9, PO Box 482, N-1327 Lysaker | Phone:+47 6783 1000 | Fax:+47 6783 1001 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Cocoon 2.2 flowscipt debugger possible?
Hugh Sparks pisze: I read a few posts that suggest that this is impossible, but I decided to try the flowscript debugger anyway. I'm running under Tomcat, so I copied the file cocoon-flowscipt.xconf from the cocoon 2.2 svn truck to this directory in my Tomcat installation: webapps\cocoon\WEB-INF\classes\META-INF\cocoon\avalon I edited the file to enable the debugger and started Tomcat. When I ran my cocoon flowscript application, the debugger window appeared, but the application crashes. Here are some highlights from the traceback: description The server encountered an internal error () that prevented it from fulfilling this request. org.apache.avalon.framework.service.ServiceException: Exception during lookup of component with 'org.apache.cocoon.components.flow.Interpreter/javascript'. (Key='AvalonServiceManager') org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'org.apache.cocoon.components.flow.Interpreter/javascript': Initialization of bean failed; nested exception is org.springframework.beans.factory.BeanCreationException: Unable to initialize Avalon component with role org.apache.cocoon.components.flow.Interpreter/javascript; nested exception is java.lang.IllegalStateException If I remove the cocoon-flowscript.xconf file, the application works normally. I realized that Avalon is on the way out, but should this work? What is the current best practice to use the debugger in its present form? Thanks to all, Hi Hugh, This has been fixed in trunk, see: http://article.gmane.org/gmane.text.xml.cocoon.cvs/27138 If you want to use this fixed version, you will need to checkout trunk and build it. Then just add SNAPSHOT dependency to your pom (of your project). There is no need to switch with all Cocoon dependencies to SNAPSHOT versions. Also, you might be interested in following commit: http://article.gmane.org/gmane.text.xml.cocoon.cvs/27140 -- Best regards, Grzegorz Kossakowski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
pass repeater from database to the form
I'm trying to pass the parameters from the database to the repeater in the form. var repeater=form.getChild(test); for (var i = 0; i comp_in_composition.size(); i++) { var row = repeater.getRow(i); var type = row.getChild(type); var amount = row.getChild(amount); var select = row.getChild(select); type.setValue(comp_in_composition.get(i).get(type)); amount.setValue(comp_in_composition.get(i).get(amount)); select.setValue(false); } But, I've got an exception: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 What's the problem? How to pass this params to the form repeater?
Re: hi
Hi, I wanted to know how to increase the log level of cocoon .I am using jbuilder 2008 .Please tell me the step to go for increasing the log level of cocoon. Thanks , su On Thu, Jul 24, 2008 at 9:35 AM, Joerg Heinicke [EMAIL PROTECTED]wrote: On 24.07.2008 00:30, student csu wrote: * Question: how to debug xslt in cocoon framework .I am using Jbuider .just let me know how to set up the breakpoints for xslt in jbuilder There is hardly anything available allowing you to debug XSLT. You probably need one of the commercial XML editors. cocoon framework .I am using Jbuider .just let me know how to set up the breakpoints for xslt in jbuilder as there is some important xml file that combines with my xslt and display but I am not aware of among so many important which xml it is combining .so I will be thankful to you just let me know how to debug xsl using in jbuilder2008 . If you just want to know which files are combined in a pipeline by aggregation or whatever (I don't quite get what really happens in your case) just raising the log level of Cocoon might help. If you want to see the actual content you might find the LogTransformer useful. It might be also helpful to show us your pipeline and explain what you are after. Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pass repeater from database to the form
Use var row = repeater.addRow(); instead of var row = repeater.getRow(i); Мария Григорьева wrote: I'm trying to pass the parameters from the database to the repeater in the form. var repeater=form.getChild(test); for (var i = 0; i comp_in_composition.size(); i++) { var row = repeater.getRow(i); var type = row.getChild(type); var amount = row.getChild(amount); var select = row.getChild(select); type.setValue(comp_in_composition.get(i).get(type)); amount.setValue(comp_in_composition.get(i).get(amount)); select.setValue(false); } But, I've got an exception: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 What's the problem? How to pass this params to the form repeater?
Re: hi
have a look at following link http://cocoon.apache.org/2.2/core-modules/core/2.2/1399_1_1.html bhavya On Fri, Aug 1, 2008 at 10:37 PM, student csu [EMAIL PROTECTED] wrote: Hi, I wanted to know how to increase the log level of cocoon .I am using jbuilder 2008 .Please tell me the step to go for increasing the log level of cocoon. Thanks , su On Thu, Jul 24, 2008 at 9:35 AM, Joerg Heinicke [EMAIL PROTECTED]wrote: On 24.07.2008 00:30, student csu wrote: * Question: how to debug xslt in cocoon framework .I am using Jbuider .just let me know how to set up the breakpoints for xslt in jbuilder There is hardly anything available allowing you to debug XSLT. You probably need one of the commercial XML editors. cocoon framework .I am using Jbuider .just let me know how to set up the breakpoints for xslt in jbuilder as there is some important xml file that combines with my xslt and display but I am not aware of among so many important which xml it is combining .so I will be thankful to you just let me know how to debug xsl using in jbuilder2008 . If you just want to know which files are combined in a pipeline by aggregation or whatever (I don't quite get what really happens in your case) just raising the log level of Cocoon might help. If you want to see the actual content you might find the LogTransformer useful. It might be also helpful to show us your pipeline and explain what you are after. Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks Bhavya Sharma
Re: hi
Hi ;-), Another subject than hi could be welcome. And useful for people searching for help when having a look at the mailing list archives. Regards. André - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: hi
thanks ! su On Fri, Aug 1, 2008 at 10:40 AM, Bhavya Sharma [EMAIL PROTECTED]wrote: have a look at following link http://cocoon.apache.org/2.2/core-modules/core/2.2/1399_1_1.html bhavya On Fri, Aug 1, 2008 at 10:37 PM, student csu [EMAIL PROTECTED]wrote: Hi, I wanted to know how to increase the log level of cocoon .I am using jbuilder 2008 .Please tell me the step to go for increasing the log level of cocoon. Thanks , su On Thu, Jul 24, 2008 at 9:35 AM, Joerg Heinicke [EMAIL PROTECTED]wrote: On 24.07.2008 00:30, student csu wrote: * Question: how to debug xslt in cocoon framework .I am using Jbuider .just let me know how to set up the breakpoints for xslt in jbuilder There is hardly anything available allowing you to debug XSLT. You probably need one of the commercial XML editors. cocoon framework .I am using Jbuider .just let me know how to set up the breakpoints for xslt in jbuilder as there is some important xml file that combines with my xslt and display but I am not aware of among so many important which xml it is combining .so I will be thankful to you just let me know how to debug xsl using in jbuilder2008 . If you just want to know which files are combined in a pipeline by aggregation or whatever (I don't quite get what really happens in your case) just raising the log level of Cocoon might help. If you want to see the actual content you might find the LogTransformer useful. It might be also helpful to show us your pipeline and explain what you are after. Joerg - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- Thanks Bhavya Sharma
Re: pass repeater from database to the form
Thanks a lot, Ralph!!! It works now!!! Ralph Rauscher-2 wrote: Use var row = repeater.addRow(); instead of var row = repeater.getRow(i); Мария Григорьева wrote: I'm trying to pass the parameters from the database to the repeater in the form. var repeater=form.getChild(test); for (var i = 0; i comp_in_composition.size(); i++) { var row = repeater.getRow(i); var type = row.getChild(type); var amount = row.getChild(amount); var select = row.getChild(select); type.setValue(comp_in_composition.get(i).get(type)); amount.setValue(comp_in_composition.get(i).get(amount)); select.setValue(false); } But, I've got an exception: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 What's the problem? How to pass this params to the form repeater? -- View this message in context: http://www.nabble.com/pass-repeater-from-database-to-the-form-tp18778753p18780735.html Sent from the Cocoon - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pass repeater from database to the form
I'm using FOR to pass the params to the repeater: for (var i = 0; i comp_in_composition.size(); i++) { var row = repeater.addRow(i); . } How to create child nodes for the row element? I found addWidget() procedure in API, but it doesn't work: For example: row.addWidget(type); Ralph Rauscher-2 wrote: Use var row = repeater.addRow(); instead of var row = repeater.getRow(i); Мария Григорьева wrote: I'm trying to pass the parameters from the database to the repeater in the form. var repeater=form.getChild(test); for (var i = 0; i comp_in_composition.size(); i++) { var row = repeater.getRow(i); var type = row.getChild(type); var amount = row.getChild(amount); var select = row.getChild(select); type.setValue(comp_in_composition.get(i).get(type)); amount.setValue(comp_in_composition.get(i).get(amount)); select.setValue(false); } But, I've got an exception: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 What's the problem? How to pass this params to the form repeater? -- View this message in context: http://www.nabble.com/pass-repeater-from-database-to-the-form-tp18778753p18781627.html Sent from the Cocoon - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: pass repeater from database to the form
Sorry, again... Stupid question... :) I've understood that --- row.getChild(type).setValue(comp_in_composition.get(i).get(type)); --- is the passing params to the form... So I don't need formMap.put()... :) Magsend wrote: But now, I have another problem... I need to pass the repeater to the form, so I wrote: var repeater = form.getChild(test); for (var i = 0; i comp_in_composition.size(); i++) { var row = repeater.addRow(i); row.getChild(type).setValue(comp_in_composition.get(i).get(type)); row.getChild(amount).setValue(comp_in_composition.get(i).get(amount)); row.getChild(select).setValue(false); } formMap.put(test, repeater); test - is the id of the repeater in fd:repeater But, I've got mistake: java.lang.IllegalArgumentException: A repeater cannot be filled with Repeater 'test' How to pass it to the form??? Magsend wrote: I've already answer my own question: Here is my code: for (var i = 0; i comp_in_composition.size(); i++) { var row = repeater.addRow(i); row.getChild(type).setValue(comp_in_composition.get(i).get(type)); row.getChild(amount).setValue(comp_in_composition.get(i).get(amount)); row.getChild(select).setValue(false); } Magsend wrote: I'm using FOR to pass the params to the repeater: for (var i = 0; i comp_in_composition.size(); i++) { var row = repeater.addRow(i); . } How to create child nodes for the row element? I found addWidget() procedure in API, but it doesn't work: For example: row.addWidget(type); Ralph Rauscher-2 wrote: Use var row = repeater.addRow(); instead of var row = repeater.getRow(i); Мария Григорьева wrote: I'm trying to pass the parameters from the database to the repeater in the form. var repeater=form.getChild(test); for (var i = 0; i comp_in_composition.size(); i++) { var row = repeater.getRow(i); var type = row.getChild(type); var amount = row.getChild(amount); var select = row.getChild(select); type.setValue(comp_in_composition.get(i).get(type)); amount.setValue(comp_in_composition.get(i).get(amount)); select.setValue(false); } But, I've got an exception: java.lang.IndexOutOfBoundsException: Index: 1, Size: 1 What's the problem? How to pass this params to the form repeater? -- View this message in context: http://www.nabble.com/pass-repeater-from-database-to-the-form-tp18778753p18781881.html Sent from the Cocoon - Users mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Finding a new name for Corona (a Cocoon rewrite)
Sorry about the last. Just had a pint too much. But talking about the suggestion; 1) it fits on the theme 2) Morus can be interpreted as 'More Us', refering to the community. And Morus is the genus of the tree feeding the creatues manufacturing the silk.. cheers, mika P.S. Hopefully it doesn't stand for of any anatomic part of an human or anything else like that ... Lehtonen, Mika kirjoitti: Morus. KVG, that is check Google for Morus in finnish. How you like it? cheers, mika Andy Stevens kirjoitti: 2008/7/31 Hugh Sparks [EMAIL PROTECTED] "Pipes" According to Google Translate, it seems inoffensive in German, Spanish, and Polish "Apache Pipes" - It alliterates a bit. -Hugh Sparks However, there's already a "Pipes" in the web development space - Yahoo Pipes. http://pipes.yahoo.com/pipes/ Andy -- http://pseudoq.sourceforge.net/ Open source java Sudoku solver - 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]
about increasing the log level of cocoon
I am going through the link http://cocoon.apache.org/2.2/core-modules/core/2.2/1399_1_1.html but still unable to increase the log level as I have to find the xml that is combining with that xslt. I have build the project from importing .war files of project already existed .So how to increase the log level of the cocoon as (my problem is that I have to debug xslt to see the xml that it is combining) thanks, su
Re: hi
Sure ! no problem! thanks On Fri, Aug 1, 2008 at 11:08 AM, André Davignon [EMAIL PROTECTED]wrote: Hi ;-), Another subject than hi could be welcome. And useful for people searching for help when having a look at the mailing list archives. Regards. André - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
[C2.2] Passing sitemap parameters to blocks - a mess?
I have a transform implemented in a block that I call using servletService: map:generate src=myStuff/ map:transform type=servletService map:parameter name=service value=servlet:myBlock:/myTransform?p1=xxxamp;p2=yyy/ /map:transform In the actual sitemap, when the list of request parameters is long or if the values are verbose, the pipeline code is a total mess. Because the line is so long, the document is impossible to read, print, or display on a webpage. Packing the request line this way is not very consistent with how other parameters are passed. It can't even be fixed up with line continuations because its a literal string. It would be nice, I think, if the transform could be called like this: map:generate src=myStuff/ map:transform type=servletService map:parameter name=service value=servlet:myBlock:/myTransform/ map:parameter name=P1 value=value one/ map:parameter name=P2 value=value two/ ... map:parameter name=PN value=value N/ /map:transform The servletService transform would strip off the first parameter to locate the service and then forward the rest to the transform. The source code in the pipeline would look a lot better. Is there already some better way to clean this up? Thanks, -Hugh Sparks - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]