Using HTTPProxyGenerator behind a Proxy Server
Hello, Has anyone had experience in using HTTPProxyGenerator where Proxy Authentication is needed to access a link outside the local network. Thanks -- View this message in context: http://www.nabble.com/Using-HTTPProxyGenerator-behind-a-Proxy-Server-tp18844661p18844661.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]
DAOSecurityHandler
Where do I find docs and / or samples for DAOSecurityHandler and UserDAO, please? I am looking for the Java equivalent of the JavaScript var parser = cocoon.getComponent(Packages.org.apache.excalibur.xml.dom.DOMParser.ROLE); and the same for SourceResolver. Sitemap components seem to get them from an Avalon ServiceManager and I found a thread suggesting to copy from ContainerTestCase. Is there not a simpler way? Many thanks Robin
Re: hi
My log level is already like this then how to go for debugging ? 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] > >
I wanted to know my loglevel is already in this mode then what else can I use for debugging xslt to get the xml.........I am using jbuilder 2008
Re: ServletSource outside of pipeline
Grzegorz Kossakowski wrote: Robin Wyles pisze: Yikes... looks like it's back to httpclient to achieve my goals in this area for the time being :( Is it possible that you create artificial Servlet for your background job? Then you could call this servlet (which is a Spring bean) and inside service() method of your servlet you can be sure that you have a right context properly set up so SSF will work correctly. You probably could call it with null values for both request and response. I doubt that this will work because the parent request is passed to the current servlet-service request. Passing null for the request will lead to NPEs IMO. But this shouldn't be too difficult to fix or could already work if a valid request object is being passed. I'm wondering if this couldn't be transformed into general solution if one needs to call pipeline from outside of any context (outside of any servlet). yes, maybe we can provide some wrapper for that purpose. Seems a shame though when in this case all I'm doing is posting the results of one pipeline to another within my app... The whole idea behind SSF is that it manages /servlets/ and cares about only them. The idea of connection is that, you connect two /servlets/ so one can pull data from another one. Your use-case, even if valid, breaks contracts of SSF because you are trying to connect to servlet from nowhere (at least from SSF's point of view). If you establish artificial servlet, and you call its service() method then SSF will handle this the same way as it would be request coming from browser. This will force it to properly initialize the CallStack and the whole infrastructure. Does it makes sense to you? Reinhard, what's your opinion? I also think that it is a valid use case and would be happy to see a general solution in the ssf-impl code. -- Reinhard Pötz Managing Director, {Indoqa} GmbH http://www.indoqa.com/en/people/reinhard.poetz/ Member of the Apache Software Foundation Apache Cocoon Committer, PMC member [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: AW: how to pass params from flowscript to the widget
Hi, Well I have to admit, that I use Java and JavaFlow wherever I can. In order to use Java-Listeners, all you have to do is to create a Java Class implementing ValueChangedListener. You then can reference this by a "" element. If you use Jetty and Tomcat inside Eclipse in Debug mode, you can even set Breakpoints in your classes, and you can debug your application as normal java application. I don't like JavaScript, I have to admit that. Therefore I like JavaFlow more, even if JavaFlow in 2.1.10 has some really annoying bugs you have to get used to (No try-catch-blocks inside finally blocks ... Forbidden usages of almost everything "static" ... even constants). Regards, Chris -Ursprüngliche Nachricht- Von: Magsend [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 5. August 2008 14:00 An: users@cocoon.apache.org Betreff: Re: AW: how to pass params from flowscript to the widget Chris, thank you very much for support. Could you please explain, how to process JAVA-file in the sitemap? And I can't find the samples on this subject with Java. Are you using Java or JavaScript for the form processing? What's better? Thank you!!! Christofer Dutz-3 wrote: > > Hi, > > > > you can set Attributes on CForms Widgets or maybe Fields, I know that I > use > these a lot to pass additional Information from JavaFlow to the Form. > > > > > > Density > > > > > > value=":"/> > > > > > > > > Or from code > > > > > > Density > > > > > > > > > > > > > > public class MyValueChangedListener implements ValueChangedListener, > Serviceable { > > protected ServiceManager manager; > > > > public void service(ServiceManager manager) throws ServiceException > { > > this.manager = manager; > > } > > > > public void valueChanged(ValueChangedEvent event) { > > Widget sourceWidget = event.getSourceWidget(); > > // Get your composite id somehow : > > String compositeId = ""; > > sourceWidget.setAttribute("composite_id", compositeId); > > } > > } > > > > Hope this helps > > > > Chris > > > > > > > > > > Von: Мария Григорьева [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 4. August 2008 19:39 > An: users@cocoon.apache.org > Betreff: how to pass params from flowscript to the widget > > > > Variable in the flowscript: > > > > var composition_id = experiment.get("id_compositions"); > > > > And the widget: > > > > > > Density > > > > > > > >var value = this.value; > > > > > > > > > > I need to pass "composition_id" to the widget's on-value-changed. > > > -- View this message in context: http://www.nabble.com/how-to-pass-params-from-flowscript-to-the-widget-tp18816044p18829596.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] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: ServletSource outside of pipeline
Robin Wyles pisze: Yikes... looks like it's back to httpclient to achieve my goals in this area for the time being :( Is it possible that you create artificial Servlet for your background job? Then you could call this servlet (which is a Spring bean) and inside service() method of your servlet you can be sure that you have a right context properly set up so SSF will work correctly. You probably could call it with null values for both request and response. I'm wondering if this couldn't be transformed into general solution if one needs to call pipeline from outside of any context (outside of any servlet). Seems a shame though when in this case all I'm doing is posting the results of one pipeline to another within my app... The whole idea behind SSF is that it manages /servlets/ and cares about only them. The idea of connection is that, you connect two /servlets/ so one can pull data from another one. Your use-case, even if valid, breaks contracts of SSF because you are trying to connect to servlet from nowhere (at least from SSF's point of view). If you establish artificial servlet, and you call its service() method then SSF will handle this the same way as it would be request coming from browser. This will force it to properly initialize the CallStack and the whole infrastructure. Does it makes sense to you? Reinhard, what's your opinion? -- Grzegorz Kossakowski - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AW: how to pass params from flowscript to the widget
Chris, thank you very much for support. Could you please explain, how to process JAVA-file in the sitemap? And I can't find the samples on this subject with Java. Are you using Java or JavaScript for the form processing? What's better? Thank you!!! Christofer Dutz-3 wrote: > > Hi, > > > > you can set Attributes on CForms Widgets or maybe Fields, I know that I > use > these a lot to pass additional Information from JavaFlow to the Form. > > > > > > Density > > > > > > value=":"/> > > > > > > > > Or from code > > > > > > Density > > > > > > > > > > > > > > public class MyValueChangedListener implements ValueChangedListener, > Serviceable { > > protected ServiceManager manager; > > > > public void service(ServiceManager manager) throws ServiceException > { > > this.manager = manager; > > } > > > > public void valueChanged(ValueChangedEvent event) { > > Widget sourceWidget = event.getSourceWidget(); > > // Get your composite id somehow : > > String compositeId = ""; > > sourceWidget.setAttribute("composite_id", compositeId); > > } > > } > > > > Hope this helps > > > > Chris > > > > > > > > > > Von: Мария Григорьева [mailto:[EMAIL PROTECTED] > Gesendet: Montag, 4. August 2008 19:39 > An: users@cocoon.apache.org > Betreff: how to pass params from flowscript to the widget > > > > Variable in the flowscript: > > > > var composition_id = experiment.get("id_compositions"); > > > > And the widget: > > > > > > Density > > > > > > > >var value = this.value; > > > > > > > > > > I need to pass "composition_id" to the widget's on-value-changed. > > > -- View this message in context: http://www.nabble.com/how-to-pass-params-from-flowscript-to-the-widget-tp18816044p18829596.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: Migrating Cocoon 2.1 project to Cocoon 2.2
On Aug 4, 2008, at 8:03 PM, Hugh Sparks wrote: On Jul 27, 2008, at 4:30 PM, Barbara Slupik wrote: In cocoon-2.2 everything runs as blocks [...] Vadim Gritsenko replies: I have to point out that it's not quite true and in reality there are other alternatives [1]. [1] http://blog.reverycodes.com/archives/45.html Vadim's paper is very liberating! In fact, I've been working with his ideas since it was published last year. Cocoon 2.2 has changed quite bit for users since the paper was published. Here is an attempt to make his methods easy to try while retaining the ability to use blocks where appropriate. http://www.csparks.com/c22without.xhtml Entertaining read! :) But you do use blocks and blocks dispatcher. What's different in your setup (from standard blocks) is that you keep your block unpacked (which is completely fine with me :)) Vadim - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: how to pass params from flowscript to the widget
Hi, you can set Attributes on CForms Widgets or maybe Fields, I know that I use these a lot to pass additional Information from JavaFlow to the Form. Density Or from code Density public class MyValueChangedListener implements ValueChangedListener, Serviceable { protected ServiceManager manager; public void service(ServiceManager manager) throws ServiceException { this.manager = manager; } public void valueChanged(ValueChangedEvent event) { Widget sourceWidget = event.getSourceWidget(); // Get your composite id somehow : String compositeId = ""; sourceWidget.setAttribute("composite_id", compositeId); } } Hope this helps Chris Von: Мария Григорьева [mailto:[EMAIL PROTECTED] Gesendet: Montag, 4. August 2008 19:39 An: users@cocoon.apache.org Betreff: how to pass params from flowscript to the widget Variable in the flowscript: var composition_id = experiment.get("id_compositions"); And the widget: Density var value = this.value; I need to pass "composition_id" to the widget's on-value-changed.
Re: Binding on different xml paths
Title: Héléna Tanguy - Jouve SI My problem was to bind a form on 2 different xml paths (so 2 bindings), I have resolved it by rewriting binding functions like this : function createAndGetBinding(bindingURI) { var bindingManager = null; var source = null; var resolver = null; try { bindingManager = cocoon.getComponent(Packages.org.apache.cocoon.forms.binding.BindingManager.ROLE); resolver = cocoon.getComponent(Packages.org.apache.cocoon.environment.SourceResolver.ROLE); source = resolver.resolveURI(bindingURI); return bindingManager.createBinding(source); } finally { if (source != null) resolver.release(source); cocoon.releaseComponent(bindingManager); cocoon.releaseComponent(resolver); } } Then I use this function to create 2 bindings, and I use twice the function loadFormFromModel to load data to my form with the 2 bindings. I found this solution on a old post about woody, but that already works on cocoon forms. Barbara Slupik a écrit : Can you please explain it once again? I don't really understand your problem. Barbara On 28 Jul, 2008, at 6:00 pm, Héléna Tanguy wrote: Hello, I'm working on a cocoon form with binding on xml document. Now everything works correctly. But I must make an evolution to this form, the binding must be made on 2 xml different paths. For example: Some widgets are binded with this xml path: myData/contacts/contact[position="x"]/name, etc Some other widget must be binded with this other xml path: myData/customers/customer[position="x"]/customerId, etc. I must display in my form the contact name and the customer id. The contact in position 1 is the same person than the customer in position 1, etc. I precise that the xml format cannot be modified, it is a standard format. In the existing form, the binding was made with "myData/contacts/contact[position="x"]", but it is not possible to bind the other widget with this xml path. So my question is: how to do the binding with these 2 xml paths ? Is it possible to pass a parameter in the binding file to precise the position for the person ? Thank you - 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] -- Héléna Tanguy Ingénieur logiciel / Software engineer Propriété industrielle / Industrial Property [EMAIL PROTECTED] 12, rue des Landelles - Immeuble Hercule 2 - 35510 Cesson Sévigné - France Tél. : + 33 (0) 2 99 86 07 52 - Fax : + 33 (0) 2 99 86 98 01 Le présent mail ainsi que toutes les informations qu'il contient ne peuvent en aucun être considérés comme un engagement juridique de quelque nature que ce soit de JOUVE. Tout accord devra être formulé par écrit papier ultérieur signé par un représentant légal de JOUVE. Par ailleurs, si vous recevez ce mail par erreur, merci de nous le signaler et de le détruire ainsi que l'intégralité du document qui pourrait y être joint.
RE: File upload
How about letting users do the upload in a separate (popup) window, which they can minimize while it is still busy? ;-) Cheers > Drs. G.P.H. Josten Consultant http://www.daidalos.nl/ Daidalos BV Source of Innovation Hoekeindsehof 1-4 2665 JZ Bleiswijk Tel.: +31 (0) 10 850 1200 Fax: +31 (0) 10 850 1199 http://www.daidalos.nl/ KvK 27164984 De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend. > From: Magnus Haraldsen Amundsen > [mailto:[EMAIL PROTECTED] > Sent: maandag 4 augustus 2008 17:44 > To: users@cocoon.apache.org > Subject: File upload > > Hi, > > > > When doing file upload, and the file is at such a size that > the processing of the uploaded file takes quite some time, is > it possible to let the user continue with the browsing while > the server handles the processing in the background? > > > IMPORTANT NOTICE: This message may contain confidential > information. If you have received this e-mail in error, do > not use, copy or distribute it. Do not open any attachments. > Delete it immediately from your system and notify the sender > promptly by e-mail that you have done so. Thank you. > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]