Conversion d'un champ date en flowscript?

2006-11-14 Thread Eric Cambray

Bonjour,
travaillant actuellement sur un cocoon 2.1.9 dev (et pas de possibilité 
de le changer) j'ai un problème avec un champ date et la récupération de 
sa valeur en flowscript :

Voici la définition du champ avec un convertor :
fb:value id=startDate path=startDate
   fd:convertor datatype=date
   fd:patterns
   fd:pattern-MM-dd/fd:pattern
   /fd:patterns
   /fd:convertor
/fb:value

Voici l'appel dans le flowscript (placé dans une fonction générique qui 
va parcourir l'ensemble de mes widgets de mon formulaire) :

filterWidget.getValue();

Cet appel me donne une date sous la forme :

Fri Nov 3 00:00:00 CET 2006 et non 2006-11-03

Rien à voir avec mon convertor donc. Existe-t-il une façon de forcer à 
avoir le bon convertisseur lors d'un getValue()? Ou d'utiliser le 
convertisseur pour transformer ma date dans le bon format?
La fonction étant très générique je ne peux réaliser une transformation 
de date sans connaitre son format de départ et le format voulu.


Merci.

Eric Cambray

-
Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/
Pour vous desinscrire : mailto:[EMAIL PROTECTED]
Autres commandes : mailto:[EMAIL PROTECTED]



Signed Applet and Cocoon

2006-11-14 Thread Andrea König

Hi all,
I have to integrate an applet into my web application. The 
webapplication code is implemented with cocoon 2.1.9. The applet has to 
be signed. If I copy my package tree into my application directory I can 
start my applet. For signing the applet I have to pack my classes into a 
jar file. But if I try to start my applet archived in a jar file the 
following exception is thrown:

java.lang.ClassFormatError: package/LoginApplet (Bad magic number)
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
   at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)

   at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:157)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
   at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:123)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
   at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:561)
   at sun.applet.AppletPanel.createApplet(AppletPanel.java:617)
   at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1856)
   at sun.applet.AppletPanel.runLoader(AppletPanel.java:546)
   at sun.applet.AppletPanel.run(AppletPanel.java:298)
   at java.lang.Thread.run(Thread.java:534)

Is there anybody could give a hint?

Best regards

--
Dr. Andrea König
(Entwicklung)

G.punkt - medical services
Halberstädter Str. 115A
Eiskellerpassage
39112 Magdeburg

Tel: +49 391 280380
Fax: +49 391 2803822
Inet: www.gmatic.de
mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cocoon 2.2.0-M2-SNAPSHOT Turning Mode Prod Off

2006-11-14 Thread Patrick Refondini

Hi Bertrand,

Bertrand Delacretaz wrote:

On 11/14/06, Patrick Refondini [EMAIL PROTECTED] wrote:

...I obtain the following log when running the block using mvn 
jetty6:run

Apache Cocoon 2.2.0-M2-SNAPSHOT is running in mode: prod...


IIUC this is is defined by the org.apache.cocoon.mode system
property, setting it to dev should help.

Great, it does !



Either in the JVM options (-Dorg.apache.cocoon.mode=dev) or using a
systemProperty in your pom, for example.
I added it to Eclipse IDE in one of my External Tools jetty6:run 
configuration, using the Parameter Name Value settings. This way 
it's only there when running it in dev, from IDE.




-Bertrand

Thanks, a little parameter saving much development time !

Patrick



-
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: Signed Applet and Cocoon

2006-11-14 Thread Jeroen Reijn
Hi Andrea,

i'm not sure why it gives you the bad magic number, but here is something that 
explains what it is.
http://www.javacoffeebreak.com/faq/faq0083.html

It seems that your class file isn't recognized by the classloader. Maybe try to 
create the jar again?

Kind regards,

Jeroen Reijn

-Original Message-
From: Andrea König [mailto:[EMAIL PROTECTED]
Posted At: Tuesday, November 14, 2006 9:38 AM
Posted To: Cocoon User List
Conversation: Signed Applet and Cocoon
Subject: Signed Applet and Cocoon


Hi all,
I have to integrate an applet into my web application. The 
webapplication code is implemented with cocoon 2.1.9. The applet has to 
be signed. If I copy my package tree into my application directory I can 
start my applet. For signing the applet I have to pack my classes into a 
jar file. But if I try to start my applet archived in a jar file the 
following exception is thrown:
 java.lang.ClassFormatError: package/LoginApplet (Bad magic number)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:157)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:123)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:561)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:617)
at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1856)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:546)
at sun.applet.AppletPanel.run(AppletPanel.java:298)
at java.lang.Thread.run(Thread.java:534)

Is there anybody could give a hint?

Best regards

-- 
Dr. Andrea König
(Entwicklung)

G.punkt - medical services
Halberstädter Str. 115A
Eiskellerpassage
39112 Magdeburg

Tel: +49 391 280380
Fax: +49 391 2803822
Inet: www.gmatic.de
mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Signed Applet and Cocoon

2006-11-14 Thread Andrea König

Hi Jeroen,
many thanks for your reply.
I copied all libraries needed into the document root of my webserver and tried 
to start the applet without cocoon. It run perfectly. I guess the problem could 
be the sitemap. But how must the pipeline be defined? My pipeline snippet looks 
like the following:

map:match pattern=**.class
 map:read mime-type=application/java-archive src=login/login.jar/
/map:match

Do you have any idea if there is something wrong?

Best regards,
--
Dr. Andrea König
(Entwicklung)

G.punkt - medical services
Halberstädter Str. 115A
Eiskellerpassage
39112 Magdeburg

Tel: +49 391 280380
Fax: +49 391 2803822
Inet: www.gmatic.de
mail: [EMAIL PROTECTED]




Jeroen Reijn wrote:


Hi Andrea,

i'm not sure why it gives you the bad magic number, but here is something that 
explains what it is.
http://www.javacoffeebreak.com/faq/faq0083.html

It seems that your class file isn't recognized by the classloader. Maybe try to 
create the jar again?

Kind regards,

Jeroen Reijn

-Original Message-
From: Andrea König [mailto:[EMAIL PROTECTED]
Posted At: Tuesday, November 14, 2006 9:38 AM
Posted To: Cocoon User List
Conversation: Signed Applet and Cocoon
Subject: Signed Applet and Cocoon


Hi all,
I have to integrate an applet into my web application. The 
webapplication code is implemented with cocoon 2.1.9. The applet has to 
be signed. If I copy my package tree into my application directory I can 
start my applet. For signing the applet I have to pack my classes into a 
jar file. But if I try to start my applet archived in a jar file the 
following exception is thrown:

java.lang.ClassFormatError: package/LoginApplet (Bad magic number)
   at java.lang.ClassLoader.defineClass0(Native Method)
   at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
   at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)

   at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:157)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
   at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:123)
   at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
   at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:561)
   at sun.applet.AppletPanel.createApplet(AppletPanel.java:617)
   at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1856)
   at sun.applet.AppletPanel.runLoader(AppletPanel.java:546)
   at sun.applet.AppletPanel.run(AppletPanel.java:298)
   at java.lang.Thread.run(Thread.java:534)

Is there anybody could give a hint?

Best regards

 




--
Dr. Andrea König
(Entwicklung)

G.punkt - medical services
Halberstädter Str. 115A
Eiskellerpassage
39112 Magdeburg

Tel: +49 391 280380
Fax: +49 391 2803822
Inet: www.gmatic.de
mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: How-to: dojo Editor/Editor2 widgets in forms

2006-11-14 Thread Lars Trieloff

Hi,

as I was looking to integrate Dojo Editor2 into my Cocoon application, I 
found this instructions helpful, but there is a way to achive the same 
goal without having to modify Cocoon' own javascript resources:



1. In the form template, style the field widget as follows:
fi:styling type=textarea rows=3 style=width:100% dojoType=Editor2
htmlEditing=true 

2. Include following in a custom JS file that is loaded by the form


dojo.require(dojo.widget.Editor2);

dojo.lang.extend(cocoon.forms.CFormsForm, {
_myBrowserSubmit: function(invocation) {
if (invocation.proceed() == false) {
// onsubmit handlers stopped submission
return false;
}

var event = invocation.args[0] || window.event;
// Interestingly, FF provides the explicitOriginalTarget 
property that can avoid

// grabClickTarget above, but avoid browser specifics for now.
var target = /*event.explicitOriginalTarget ||*/ 
this.lastClickTarget;



dojo.lang.forEach(dojo.widget.byType(Editor2), function(ed){
   dojo.byId(ed.widgetId).value = ed.getEditorContent();
  }
);

this.submit(target  target.name);
// If real submit has to occur, it's taken care of in submit()
return false;
}
});

function initialize(){
dojo.lang.forEach(
dojo.widget.byType(CFormsForm),
function(form) {
dojo.event.disconnect(
around,
form.domNode,
onsubmit,
form,
_browserSubmit);
dojo.event.connect(
around,
form.domNode,
onsubmit,
form,
_myBrowserSubmit);
}
);
}

dojo.event.connect(dojo.hostenv, loaded, initialize);



Btw. What about replacing the various legacy javascript libraries 
completely with theit Dojo equivalents?


Lars

thomason schrieb:

Apologies if this is obvious, but I thought it could help someone who
doesn't have time to figure it out. Maybe someone has a better method?

Because the resources CFormsForm.js and __package__.js will be modified, it
is easiest to copy the forms resources
(build/cocoon/blocks/forms/dest/org/apache/cocoon/forms/resources) into a
resources directory in the desired mount directory. Add the dojo directory
to that resources directory (unpack the dojo lib or download the latest)
because forms-field-styling.xsl looks for dojo in the resources. All sitemap
references to resources uri should also be changed to point to the new
resources directory.

Modify resources/forms/js/__package__.js to get the Editor2 widget:

dojo.kwCompoundRequire({
common: [
cocoon.forms.common,
cocoon.forms.CFormsForm,
cocoon.forms.CFormsRepeater,
cocoon.forms.CFormsDragAndDropRepeater,
cocoon.forms.CFormsSuggest,
dojo.widget.InlineEditBox,
dojo.widget.Editor2
]
});
dojo.provide(cocoon.forms.*);

The Editor/Editor2 widget keeps its data in an iframe whose data must be
copied back to the cocoon widget when the form is submitted. Ajax-enabled
forms catch the forms submit event. I thought it would be cleaner to wrap
around the submit before cocoon got it, but it always ended up copying after
the submit; I ran out of time to work it out and instead modified
resources/forms/js/CFormsForm.js to copy the Editor2 widget inline frame
data back to the cocoon widget just before the submit, as follows:

_browserSubmit: function(invocation) {
.
.
.
dojo.lang.forEach(dojo.widget.byType(Editor2), function(ed){
   dojo.byId(ed.widgetId).value = ed.getEditorContent();
  }
);
this.submit(target  target.name);
// If real submit has to occur, it's taken care of in submit()
return false;
},

In the form template, style the field widget as follows:
fi:styling type=textarea rows=3 style=width:100% dojoType=Editor2
htmlEditing=true 
The htmlEditing flag is not necessary, but useful at times.

Hope this helps.
Don



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Signed Applet and Cocoon

2006-11-14 Thread Jeroen Reijn
Andrea,

your welcome. You are requesting the jar file now for every class you call from 
cocoon. Instead you need to call the class file from inside the jar. You can 
try this reading the file with the zip protocol instead. It should look 
something like:

map:match pattern=**.class
  map:read mime-type=application/java-archive 
src=zip:login/login.jar!/org/apache/{1}.class/
/map:match

Kind regards,

Jeroen Reijn


-Original Message-
From: Andrea König [mailto:[EMAIL PROTECTED]
Posted At: Tuesday, November 14, 2006 11:48 AM
Posted To: Cocoon User List
Conversation: Signed Applet and Cocoon
Subject: Re: Signed Applet and Cocoon


Hi Jeroen,
many thanks for your reply.
I copied all libraries needed into the document root of my webserver and tried 
to start the applet without cocoon. It run perfectly. I guess the problem could 
be the sitemap. But how must the pipeline be defined? My pipeline snippet looks 
like the following:

map:match pattern=**.class
  map:read mime-type=application/java-archive src=login/login.jar/
/map:match

Do you have any idea if there is something wrong?

Best regards,
-- 
Dr. Andrea König
(Entwicklung)

G.punkt - medical services
Halberstädter Str. 115A
Eiskellerpassage
39112 Magdeburg

Tel: +49 391 280380
Fax: +49 391 2803822
Inet: www.gmatic.de
mail: [EMAIL PROTECTED]




Jeroen Reijn wrote:

Hi Andrea,

i'm not sure why it gives you the bad magic number, but here is something that 
explains what it is.
http://www.javacoffeebreak.com/faq/faq0083.html

It seems that your class file isn't recognized by the classloader. Maybe try 
to create the jar again?

Kind regards,

Jeroen Reijn

-Original Message-
From: Andrea König [mailto:[EMAIL PROTECTED]
Posted At: Tuesday, November 14, 2006 9:38 AM
Posted To: Cocoon User List
Conversation: Signed Applet and Cocoon
Subject: Signed Applet and Cocoon


Hi all,
I have to integrate an applet into my web application. The 
webapplication code is implemented with cocoon 2.1.9. The applet has to 
be signed. If I copy my package tree into my application directory I can 
start my applet. For signing the applet I have to pack my classes into a 
jar file. But if I try to start my applet archived in a jar file the 
following exception is thrown:
 java.lang.ClassFormatError: package/LoginApplet (Bad magic number)
at java.lang.ClassLoader.defineClass0(Native Method)
at java.lang.ClassLoader.defineClass(ClassLoader.java:539)
at 
java.security.SecureClassLoader.defineClass(SecureClassLoader.java:123)
at sun.applet.AppletClassLoader.findClass(AppletClassLoader.java:157)
at java.lang.ClassLoader.loadClass(ClassLoader.java:289)
at sun.applet.AppletClassLoader.loadClass(AppletClassLoader.java:123)
at java.lang.ClassLoader.loadClass(ClassLoader.java:235)
at sun.applet.AppletClassLoader.loadCode(AppletClassLoader.java:561)
at sun.applet.AppletPanel.createApplet(AppletPanel.java:617)
at sun.plugin.AppletViewer.createApplet(AppletViewer.java:1856)
at sun.applet.AppletPanel.runLoader(AppletPanel.java:546)
at sun.applet.AppletPanel.run(AppletPanel.java:298)
at java.lang.Thread.run(Thread.java:534)

Is there anybody could give a hint?

Best regards

  



-- 
Dr. Andrea König
(Entwicklung)

G.punkt - medical services
Halberstädter Str. 115A
Eiskellerpassage
39112 Magdeburg

Tel: +49 391 280380
Fax: +49 391 2803822
Inet: www.gmatic.de
mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Cocoon-based RSS server

2006-11-14 Thread Linden H van der (MI)
Hi,

just check the Cocoon CForms samples. At least one has XML binding and
there is at least one that reads/creates XML files using flowscript.

HTH.

Bye, Helma

 -Original Message-
 From: James Cummings [mailto:[EMAIL PROTECTED] 
 Sent: Tuesday, November 14, 2006 12:45
 To: users@cocoon.apache.org
 Subject: Re: Cocoon-based RSS server
 
 
 Hiya,
 
 Thanks for the suggestions.  Can someone point me to a good 
 example / how-to on using xml bindings to write to an XML 
 file?  (preferrably to update an existing XML file?)
 
 -James
 
 On 11/10/06, Jan Behrens [EMAIL PROTECTED] wrote:
  Hi James,
 
  couldn't you just use cforms along with xml binding to 
 serialize the 
  input from a form into a new xml file on the server? This is not 
  really RSS specific but could still be a fast way to 
 achieve this. I 
  am a newbee, so if this doesn't realy makes sense, please tell me.
 
  HTH, Jan
 
  James Cummings [EMAIL PROTECTED] schrieb am 09.11.2006
  16:58:36:
 
   Hiya,
  
   I have a very light-weight pared-down cocoon server running under 
   jetty, and I want to add an RSS (or similar) server to 
 the site.  I 
   already have xslt which will take an RSS file and display it, but 
   wanted to know if there was an existing and easy to 
 plug-in solution 
   someone would recommend.
  
   What I want is something to take input as an action from an XHTML 
   webform where a user fills out a form, and then this is added as 
   valid RSS (or atom, or whatever) to an existing file as valid RSS 
   (or atom, or whatever).  I don't want it to have a 
 database-backend, 
   I don't want to have to approve posts or anything (happy 
 to delete 
   them if they are inappropriate).  Optionally, I suppose, 
 I wouldn't 
   mind if it sent an email when a new item was posted.
  
   Does cocoon already have something like this built in 
 that I could 
   use (to take form content and put it, well-formed, into a file).  
   Does someone have an example I can steal from?
  
   I'm trying to avoid using other technologies (i.e. PHP etc.) if
  possible.
  
   -James
  
   --
   James Cummings, Cummings dot James at GMail dot 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]
 
 
 
 
 -- 
 James Cummings, Cummings dot James at GMail dot 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: Signed Applet and Cocoon

2006-11-14 Thread Andreas Kuehne

Hi Andrea



 map:match pattern=**.class
  map:read mime-type=application/java-archive 
src=login/login.jar/

 /map:match

Serving a jar while matching a class doesn't make sense !

For me this sitemap snippet does the job very well :

map:match pattern=**/*.jar
  map:read src=resources/static/{2}.jar/
/map:match

assuming that all required jar's are in resources/static ...

Anyway, I'm sure that it works. We got the site http://sig-check.de ( - 
Pruefung ) doing what you are aiming for, a signed applet served by 
cocoon.


Good luckj

Andreas


___
Andreas Kühne
phone: +49 177 293 24 97
mailto: [EMAIL PROTECTED]

Trustable
Kirchröder Str. 70e
30625 Hannover
Germany
www.trustable.de

Kostenlose Verifikation qualifizierter elektronischer Signaturen:
www.sig-check.de





-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cocoon-based RSS server

2006-11-14 Thread James Cummings

Hiya,

Thanks for the suggestions.  Can someone point me to a good example /
how-to on using xml bindings to write to an XML file?  (preferrably to
update an existing XML file?)

-James

On 11/10/06, Jan Behrens [EMAIL PROTECTED] wrote:

Hi James,

couldn't you just use cforms along with xml binding to serialize the input
from a form into a new xml file on the server? This is not really RSS
specific but could still be a fast way to achieve this.
I am a newbee, so if this doesn't realy makes sense, please tell me.

HTH, Jan

James Cummings [EMAIL PROTECTED] schrieb am 09.11.2006
16:58:36:

 Hiya,

 I have a very light-weight pared-down cocoon server running under
 jetty, and I want to add an RSS (or similar) server to the site.  I
 already have xslt which will take an RSS file and display it, but
 wanted to know if there was an existing and easy to plug-in solution
 someone would recommend.

 What I want is something to take input as an action from an XHTML
 webform where a user fills out a form, and then this is added as valid
 RSS (or atom, or whatever) to an existing file as valid RSS (or atom,
 or whatever).  I don't want it to have a database-backend, I don't
 want to have to approve posts or anything (happy to delete them if
 they are inappropriate).  Optionally, I suppose, I wouldn't mind if it
 sent an email when a new item was posted.

 Does cocoon already have something like this built in that I could use
 (to take form content and put it, well-formed, into a file).  Does
 someone have an example I can steal from?

 I'm trying to avoid using other technologies (i.e. PHP etc.) if
possible.

 -James

 --
 James Cummings, Cummings dot James at GMail dot 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]





--
James Cummings, Cummings dot James at GMail dot com

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Xerces version problem

2006-11-14 Thread Gary Larsen



I'm running Cocoon 
2.1.7. eXist was throwing warnings about Xerces and Xalan version so I put 
these jars from eXist in the Tomcat endorsed directory:

xalan-2.7.0.jar
xercesImpl.jar

Everything works 
untila form is opened when a Xerces exception occurs:

java.lang.NoSuchMethodError: 
org.apache.xerces.dom.NodeImpl.setUserData(Ljava/lang/String;Ljava/lang/Object;Lorg/apache/xerces/dom3/UserDataHandler;)Ljava/lang/Object; 
at 
org.apache.cocoon.components.flow._javascript_.fom.FOM_JavaScriptInterpreter.callFunction(FOM_JavaScriptInterpreter.java:764) 


What is the best 
solutionto thisproblem? Do I need to upgrade to a newer 
version of Cocoon?

Thanks, 
Gary


How to include 'responce' into a form?

2006-11-14 Thread Fuad Efendi

Just started learning, and the first sample seems 'overheaded' for a simple
task:
- include into HTML simple form with results of processing
- do not show continuation, show single URL (show 'request' and 'response'
together...)

Of course I can design it as pure XML and transform to HTML (using content
aggregation)...

Any better simpler ideas?
-- 
View this message in context: 
http://www.nabble.com/How-to-include-%27responce%27-into-a-form--tf2630411.html#a7340622
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: displaying html in a cforms field

2006-11-14 Thread Fuad Efendi

I think this is called cross site scripting attack and should be
prevented...
output field is simply a read-only widget with a value, and browsers
should not interpret any pure HTML values of such objects...

Marcel Rouwenhorst wrote:
 
 Is it possible to display formatted html in a cforms output field?
 

-- 
View this message in context: 
http://www.nabble.com/displaying-html-in-a-cforms-field-tf985897.html#a7343464
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: How-to: dojo Editor/Editor2 widgets in forms

2006-11-14 Thread thomason
Lars Trieloff wrote:
 as I was looking to integrate Dojo Editor2 into my Cocoon application, I
 found this instructions helpful, but there is a way to achive the same
 goal without having to modify Cocoon' own javascript resources:

Lars,
  I don't think so, unless the modifications are incorporated into an
official cocoon release. Like anything, a modification that not part of the
original design goals will require some plaster and paint to make it look
nice!
Don



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Codeselector

2006-11-14 Thread Ralph Rauscher

Hello Reinhard,

I saw this code selector mentioned on the cocoon 2.1 web page and it 
seems like it was made for excatly that case. Not sure how to find the 
author of that page though - he might know more...


Essentially, I'd like to have sth like an or, saying

map:when test=(test1 == true or test2 == true or test3 == true)
...
/map:when

execute this pipeline fragment. This would ideally be real code inside 
the test attribute - java or javascript like we're also using for 
flowscripts.


Problem with the conventional selectors is that I need to have a 
map:when for each statement I want to check - which would already be 3 
in the case above, effectively writing the same code again and again 
within every distinct map:when.


Thanks for your help!
   Ralph



Reinhard Poetz wrote:

Ralph Rauscher wrote:

Hello,

the cocoon documentation mentions a codeselector on 
http://cocoon.apache.org/2.1/userdocs/selectors.html. Anyone knows 
how to define this selector in the sitemap?


map:selector name=codeselector src=?/

Couldn't find any class in the cocoon sources that resembles a code 
selector.


I have never heard about a code selector. What do you want to achieve?



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Re: Cocoon-based RSS server

2006-11-14 Thread Jan Behrens
maybe also try here - http://wiki.apache.org/cocoon/Schema2CocoonForms it 
helped me getting started.

HTH, Jan

James Cummings [EMAIL PROTECTED] schrieb am 14.11.2006 
12:44:59:

 Hiya,
 
 Thanks for the suggestions.  Can someone point me to a good example /
 how-to on using xml bindings to write to an XML file?  (preferrably to
 update an existing XML file?)
 
 -James
 
 On 11/10/06, Jan Behrens [EMAIL PROTECTED] wrote:
  Hi James,
 
  couldn't you just use cforms along with xml binding to serialize the 
input
  from a form into a new xml file on the server? This is not really RSS
  specific but could still be a fast way to achieve this.
  I am a newbee, so if this doesn't realy makes sense, please tell me.
 
  HTH, Jan
 
  James Cummings [EMAIL PROTECTED] schrieb am 09.11.2006
  16:58:36:
 
   Hiya,
  
   I have a very light-weight pared-down cocoon server running under
   jetty, and I want to add an RSS (or similar) server to the site.  I
   already have xslt which will take an RSS file and display it, but
   wanted to know if there was an existing and easy to plug-in solution
   someone would recommend.
  
   What I want is something to take input as an action from an XHTML
   webform where a user fills out a form, and then this is added as 
valid
   RSS (or atom, or whatever) to an existing file as valid RSS (or 
atom,
   or whatever).  I don't want it to have a database-backend, I don't
   want to have to approve posts or anything (happy to delete them if
   they are inappropriate).  Optionally, I suppose, I wouldn't mind if 
it
   sent an email when a new item was posted.
  
   Does cocoon already have something like this built in that I could 
use
   (to take form content and put it, well-formed, into a file).  Does
   someone have an example I can steal from?
  
   I'm trying to avoid using other technologies (i.e. PHP etc.) if
  possible.
  
   -James
  
   --
   James Cummings, Cummings dot James at GMail dot 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]
 
 
 
 
 -- 
 James Cummings, Cummings dot James at GMail dot 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]