[SOLVED] RE: Data access to/from JXTemplate

2004-09-16 Thread Derek Hohls
Just for the record, I found the problem: if you try the example below it will work - but if you replace the parameter name with one that is hyphentated eg. file-ID, then it won't. I guess allowable syntax for parameter names is documented in that Cocoon Sitemap Schema I have never studied ;-)

Re: Using HashMap with CForms bidning repeater?

2004-09-16 Thread Stephan Coboos
Stephan Coboos wrote: Hello, is it possible to use a HashMap to retrieve and add values using the CForms binding and the repeater element? If yes how do I set the key? Is there an example available? Maybe I found the answer by myself: For reading the list of the model the repeater uses JXPath

Re: [SOLVED] RE: Data access to/from JXTemplate

2004-09-16 Thread Ugo Cei
Derek Hohls wrote: Just for the record, I found the problem: if you try the example below it will work - but if you replace the parameter name with one that is hyphentated eg. file-ID, then it won't. I guess allowable syntax for parameter names is documented in that Cocoon Sitemap Schema I have

Re: Pipeline expires attribute

2004-09-16 Thread John L. Webber
Hi Alex, We're using Cocoon 2.1.3 (still), and it works for us (though we use access plus 1 seconds - love the grammar!). We use it to ensure reloading of dynamic pages, for example in a client-pull situation in a mobile application using a WML ontimer tag. If anyone knows if there's a better

Re: Can I throw my own ApplicationException from XSP file ?

2004-09-16 Thread John L. Webber
Hello Mariusz, Yes, you can. You need to have an exception element in the exception selector element for each custom exception type you throw: map:selector logger=navigation.sitemap.selector.exception name=exception src=org.apache.cocoon.selection.ExceptionSelector

Rép. : Re: Pipeline expires attribute

2004-09-16 Thread Willy Reinhardt
Hi, We use expires attribute for documents (PDF) which we know it can change only once a day and static part of application (images html ...). it improve drastically the performance. For dynamic documents we don't add any expires attribute. Note we add in header of html genereted documents

[ESQL] sql exception: invalid cursor state

2004-09-16 Thread Markus Heussen
Hi. I changed my application from Cocoon-2.0.4 under SDK 1.3.2 to Cocoon-2.1.5.1 and SDK 1.4.2. Without changing anything in my code now I have problems accessing an access db using the esql logicsheet. Somebody there who can help me resolving this problem? The following exception occurs when

woody checkboxes

2004-09-16 Thread Gunter D'Hondt
if a html checkbox is not checked (or checked but disabled) then it's not send as a request parameter to the action of the form Now as I currently see is that woody sees if the param is send; if sent then the boolean field value is set to true; else false. Problem now is that when you have a

Using jx template generator with Cforms.

2004-09-16 Thread David Verdin
Hi, I sent this message previously, but I guess the subject wasn't explicit enough. I resend it with another subject, hoping someone will find something useful for me... I would like to know what's the difference between Forms.showForm() and cocoon.sendPageAndWait(). I keep on trying to do a

CForm : repeater filled by a selection-list

2004-09-16 Thread oceatoon
Hi everyone I was wondering if it was possible to construct a repeaters content from a selection-list? my repeater looks like this where I would like the outputlabel to come from the selecion-list checkbox | outputlabel | field checkbox | outputlabel | field checkbox | outputlabel | field

Problems deploying Cocoon 2.1.5.1 with WebLogic 8.1sp2

2004-09-16 Thread Jean Pierre LeJacq
I'm seeing some strange behavior when deploying Cocoon using WebLogic. The html downloads properly but many of the image don't download at all. The download often completes without the full download. There are no obvious error messages in the cocoon or weblogic files. I compiled a minimal

Re: Show/Hide Widgets

2004-09-16 Thread Philippe Guillard
Hi, I'm looking also for a simple example of union/struct other than form_gui, as it is not so easy to understand, i followed this thread (with that name) catched in July. Would be please to take a look at that sample! Thanks, Phil On Mon, 2004-07-05 at 18:35, Vilya Harvey wrote: Joerg

howto write flowscript in java? any examples?

2004-09-16 Thread Patrick Verboom
Hi, I have big problems with flowscript in cocoon 2.1.5.1. It throws errors on the javascript code. Is it possible to rewrite the javascript in java as a workaround? Is there an example that explains howto do this? I already tried to solve the exception but I keep walking from one exception

Re: auth and flow

2004-09-16 Thread Guido Casper
Jorg Heymans wrote: Hi, I have setup authentication using the actions of the auth:fw block. 1) Can i access from flow this authenticationcontext? var contextMan = cocoon.getComponent(Packages.org.apache.cocoon.webapps.session.ContextManager.ROLE); var authContext =

Re: howto write flowscript in java? any examples?

2004-09-16 Thread Thomas Kjeldahl Nilsson
Example of your flowscript? Do you have much application logic in your flowscripts? -- Regards, Thomas Kjeldahl Nilsson Oslo, Norway Patrick Verboom wrote: Hi, I have big problems with flowscript in cocoon 2.1.5.1. It throws errors on the javascript code. Is it possible to rewrite the

Re: auth and flow

2004-09-16 Thread Jorg Heymans
Guido Casper wrote: snip/ var contextMan = cocoon.getComponent(Packages.org.apache.cocoon.webapps.session.ContextManager.ROLE); var authContext = contextMan.getContext(authentication); var userFrag = authContext.getXML(/authentication/ID); var username =

Rép. : Problems deploying Cocoon 2.1.5.1 with WebLogic 8.1sp2

2004-09-16 Thread Willy Reinhardt
Hi, I am using Cocoon 2.1.5.1 with weblogic 8.1 sp2 we don't have problem except when we deployed as war file. In this case you should deploy using stage mode. This parameter can't be set using web console interface. To deploy in stage mode your war you should use weblogic java utility in command

Re: auth and flow

2004-09-16 Thread Guido Casper
Jorg Heymans wrote: 2) Is it possible to have a login expire automatically after a certain period of inactivity time? I have a class implementing Authenticator as authenticationresource. The login expires with the session. So i configure a session-timeout on the webapp right? Yes. Guido

Files documentations like javadoc ?

2004-09-16 Thread Willy Reinhardt
Hi, How did you create documentations for your project I mean developpement documentation for files xml, xsl, xsp. Did you know a tool like javadoc ? Tanks Willy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: ScriptGenerator how to setup for Perl

2004-09-16 Thread Upayavira
I am unaware of a Java perl implementation. Your best bet if you must use Perl is to use proxying. Set up Apache httpd to run your perl. Even configure Apache to only accept requests from localhost. Then simply use the file generator: map:generate src=http://localhost/cgi-bin/test.pl/ Regards,

Rép. : Re: ScriptGenerator how to setup for Perl

2004-09-16 Thread Willy Reinhardt
Thanks Upayavira, This is my current solution but I was looking for a more portable solution because we are many developpers some use Weblogic others use JBoss with or without Apache in front and we have only one perl script so performance isn't an issue. Thanks and regards Willy [EMAIL

Writing flowscript in Java

2004-09-16 Thread Claudius Spellmann
Hi, Is it actually possible to use Java instead of Javascript in flowscript ? Claudius - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: Writing flowscript in Java

2004-09-16 Thread Jorg Heymans
what you're asking does not make sense. AFAIK flowscript can be used with different *scripting* languages. If you would like to use java inside flowscript then just 1)write your logic in a java class 2)instantiate your class with var myobject = new Packages.my.new.Object(); 3)call methods on

CForm : repeater from a selection-list, or

2004-09-16 Thread oceatoon
Hi everyone I was wondering if it was possible to construct a repeaters content from a selection-list? my repeater looks like this where I would like the outputlabel to come from the selecion-list checkbox | outputlabel | field checkbox | outputlabel | field checkbox |

Re: Writing flowscript in Java

2004-09-16 Thread Claudius Spellmann
Jorg Heymans schrieb: what you're asking does not make sense. AFAIK flowscript can be used with different *scripting* languages. If you would like to use java inside flowscript then just 1)write your logic in a java class 2)instantiate your class with var myobject = new Packages.my.new.Object();

[Portal] : how to retrieve all users logged

2004-09-16 Thread Jean-Christophe Kermagoret
Hello, I want to write a portlet that displays all the users connected (= that have a valid session). I could write (delete) an information each time sometimes successfully logins (logouts) but I think there is an easiest way. How to get this information through js ? Thanks for any information

Re: Writing flowscript in Java

2004-09-16 Thread Ralph Goers
At 9/16/2004 06:01 AM, you wrote: Hi, Is it actually possible to use Java instead of Javascript in flowscript ? Claudius Yes, use the JavaFlow block. Ralph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

Help ! General questions about Cforms and flowscript.

2004-09-16 Thread David Verdin
Hi everybody, I spent a lot of time parsing the cocoon documentation, samples and wiki, but there are still a lot of question I wonder about cocoon and Cforms. I think that as long as these questions stay unanswered, I won't be able to use Cocoon properly. So here is my list : 1- In action

Re: Help ! General questions about Cforms and flowscript.

2004-09-16 Thread Jean-Baptiste Quenot
* David Verdin: 1- In action widgets, what is exactly the action-command attribute? AFAICT its value is not meaningful. 2- More generally, how can I make a script happen on some events on widgets ? For example, in a simple HTML form, I use the onClick attribute of a

Re: Rép. : Re: ScriptGenerator how to setup for Perl

2004-09-16 Thread Upayavira
Fair enough. Thing is, I just can't imagine anyone writing a Java implementation of perl, which is what you'd need. Otherwise, you'd need a native interface to OS processes, which would in the end probably end up much like CGI/Perl approach. If you can use Python instead of Perl, then there's

caching a cinclude response

2004-09-16 Thread Niko Popitsch
Hi all, I have a problem with the cocoon caching mechanism. I want to create docbook file by aggregating multiple xml files with cinclude and then convert it with the docbook-xsl stylesheets to html. As the docbook2html conversion is very slow, I want to cache the results. Now, everythink works

Re: howto write flowscript in java? any examples?

2004-09-16 Thread Patrick Verboom
hi, It isn't the application logic. The examples aren't running either. The strange thing is that the flowscript is working under Bea 6.1 windows but isn't working on Bea 6.1 solaris. I found the samples for flow in java i will try that. Thanks Patrick Thomas Kjeldahl Nilsson wrote: Example of

Re: Help ! General questions about Cforms and flowscript.

2004-09-16 Thread David Verdin
Many htnaks for your answers, though they don't give me a lot of hope ! ;-) Jean-Baptiste Quenot : * David Verdin: 1- In action widgets, what is exactly the action-command attribute? AFAICT its value is not meaningful. Then why is it required ? Why does it allow you to add or

Rép. : Re: Rép. : Re: ScriptGenerator ho w to setup for Perl

2004-09-16 Thread Willy Reinhardt
Hi, I found an implementation of Perl using BSF in http://bsfperl.sourceforge.net/ But actualy I can't make it work :.( Regards Willy [EMAIL PROTECTED] 16/09/04 16:10 Fair enough. Thing is, I just can't imagine anyone writing a Java implementation of perl, which is what you'd need.

Re: Help ! General questions about Cforms and flowscript.

2004-09-16 Thread Jorg Heymans
snip/ Cocoon is open-source: do not hesitate to take a look inside to the forms stylesheets, the java classes, and so on. Everything can be customized and adapted to taste. and this is exactly what most higher level users are unable to do :) Jorg

Re: Help ! General questions about Cforms and flowscript.

2004-09-16 Thread David Verdin
Well, I must admit... I don't think I can go this far in cocoon... I can make simple javascript, java or XSLT, but I really can't modify the incredible intrication of scripts and classes inside cocoon. I think I'll give a last try, and then surrender and find something like a cocoon for dummies.

Re: Help ! General questions about Cforms and flowscript.

2004-09-16 Thread Anthony Hervé
Jorg Heymans wrote: snip/ Cocoon is open-source: do not hesitate to take a look inside to the forms stylesheets, the java classes, and so on. Everything can be customized and adapted to taste. and this is exactly what most higher level users are unable to do :) Jorg

Re: Unwanted white spaces in xsl:attribute

2004-09-16 Thread Patrick Verboom
Carlos Dias wrote: Hi! I know this is faq... but I hadn't found anice solution for this kind of problems. My xslt is: xsl:element name="a" xsl:attribute name="href" _javascript_:manageSLink('main-xsl:value-of select="$app"/- xsl:value-of select="$report_id"/-

Re: Unwanted white spaces in xsl:attribute

2004-09-16 Thread Rui Alberto L.
Try indenting, xsl:element name=a xsl:attribute name=hrefjavascript:manageSLink('main-xsl:value-of select=$app/-xsl:value-of select=$report_id/-xsl:value-of select=$level/-xsl:value-of select=$theme/- ... /xsl:attribute :) Rui

XForms with Cocoon

2004-09-16 Thread Lars Huttar
Since Thomas asked about anyone being interested in XForms with Cocoon, I thought I would share the results of my looking into the combination the last few days. Doubtless, many will know more about this subject than me, so I welcome corrections and additions. This email will just focus on the

Re: Unwanted white spaces in xsl:attribute

2004-09-16 Thread Joerg Heinicke
On 16.09.2004 18:42, Rui Alberto L. Gonalves wrote: Try indenting, xsl:element name=a xsl:attribute name=hrefjavascript:manageSLink('main-xsl:value-of select=$app/-xsl:value-of select=$report_id/-xsl:value-of select=$level/-xsl:value-of

Re: Unwanted white spaces in xsl:attribute

2004-09-16 Thread Carlos Dias
Thanks Rui, I appreciate your efforts, but here is, I think, a better solution: xsl:attribute name=href xsl:text/xsl:textjavascript:manageSLink('main-xsl:value-of select=$app/-xsl:text/xsl:text xsl:value-of select=$report_id/-xsl:text/xsl:text xsl:value-of

null pointer exception

2004-09-16 Thread Kadirimangalam_Sreenivasulu
Hi , I am getting null pointer exception while calling parser.getDocument(). Before that I am calling parser.startDocument() using dom parser , what are the perameters do I need to pass.Help me out org.apache.xerces.parsers.DOMParser; parser.startDocument(null,UTF-8,null,null);

Re: Writing flowscript in Java

2004-09-16 Thread Emond Papegaaij
On Thursday 16 September 2004 15:19, Claudius Spellmann wrote: Is it actually possible to use Java instead of Javascript in flowscript ? Ok, but which scipting languages are implemented in cocoon ? As far as I can see only Javascript is available. The javaflow block uses compiled java as

lang.reflect.InvocationTargetException

2004-09-16 Thread Kadirimangalam_Sreenivasulu
Hi , I am using org.apache.xerces.parsers.DOMParser  in my application it is throwing two exception enclosed below . help me out. javadoc: In doclet class XMLDoclet1,  method start has thrown an exception java. lang.reflect.InvocationTargetException java.lang.NullPointerException

Portal: Desperately seeking autehtication/ID from Java code

2004-09-16 Thread Steinar Rune Eriksen
I am writing XML generators for the new portal framework. In order to do something useful I need in Java code to access the authentication/ID in order to get the name of the person currently logged into the session. How can I do that?

Re: XForms with Cocoon

2004-09-16 Thread Andrzej Jan Taramina
Chiba (http://chiba.sourceforge.net/) is a servlet webapp (i.e. like a sibling of Cocoon rather than its child) that implements XForms. I'm not sure how easy it would be to use Chiba from within Cocoon. There is a project called Chicoon whose purpose is to integrate Chiba into Cocoon.

RE: Portal: Desperately seeking autehtication/ID from Java code

2004-09-16 Thread Laurent Trillaud
Hi Try this : var sessionManager = cocoon.getComponent( Packages.org.apache.cocoon.webapps.session.SessionManager.ROLE); var userLogin = sessionManager.getContextFragment( authentication, /authentication/ID).getFirstChild().getNodeValue(); Laurent Trillaud I am writing XML generators for the