CForms: Accessing ObjectModel or Context from ActionListener

2004-08-11 Thread Scott Yeadon
Hello, Is it possible to get hold of the ObjectModel or Context from within a Java class implementing ActionListener? If so, how? Thanks. Scott. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

Re: Use of JS and CSS from CForm

2004-08-11 Thread Derek Hohls
Yes, I already suggested this option; the fact that the user has reposted (frequently) with the same problem would suggest that he/she has tried this already but there has been little feedback from him/her despite the many responses... [EMAIL PROTECTED] 2004/08/10 07:22:06 PM sounds like

RE: Custom transformer

2004-08-11 Thread Perez Carmona, David
Could you please provide the full call stack? -Mensaje original- De: JACOB, ERIC [mailto:[EMAIL PROTECTED] Enviado el: martes, 10 de agosto de 2004 21:47 Para: [EMAIL PROTECTED] Asunto: Custom transformer Hi all, I'm writing a custom transformer that need to parse an entire

Installing Cocoon 2.1 on Tomcat 5.x

2004-08-11 Thread malikan jones
How would one install Cocoon 2.1 on Tomcat 5.x. I have looked for documentation but couldn't find any? thanks M Do you Yahoo!? New and Improved Yahoo! Mail - Send 10MB messages!

RE: Installing Cocoon 2.1 on Tomcat 5.x

2004-08-11 Thread Perez Carmona, David
I suppose like any standard web app, by placing the contents of build/webapp in a directory inside the webapps directory of Tomcat 5. I work in this way for Tomcat 4.1. -Mensaje original-De: malikan jones [mailto:[EMAIL PROTECTED]Enviado el: miƩrcoles, 11 de agosto de 2004

Re: Installing Cocoon 2.1 on Tomcat 5.x

2004-08-11 Thread Antonio Gallardo
malikan jones dijo: How would one install Cocoon 2.1 on Tomcat 5.x. I have looked for documentation but couldn't find any? Use the same aproach as for tomcat 4.1.x: In short: Copy endorsed libs, deploy cocoon and run tomcat... Best Regards, Antonio Gallardo.

set cookie path

2004-08-11 Thread Philippe Guillard
Hi, I need to set cookie path to something easy to get back like /. I use cookie stylesheet in XSP (xmlns:xsp-cookie=http://apache.org/xsp/cookie/2.0;) I didn't find something like xsp-cookie:setPath Hoe could i do this ? Regards, Phil

Re: Problem with xsp/esql

2004-08-11 Thread Olivier Billard
In this particular case, I (humbly and personnaly) only see the solution of using 2 separate execute-query, maybe with collecting the results and render them separately outside the queries, in this case, the render code is not duplicated. But if the results are numerous, it is not performant.

Re: Problem with xsp/esql

2004-08-11 Thread Thomas Zehetbauer
Or to directly use the DataSource, Connection, PreparedStatement, and ResultSet in a xsp:logic block. I strongly recommend against manually escaping the parameters because different databases may need to escape other sequences and employ other syntax. The JDBC driver should know best ;-)

Re: Problem with xsp/esql

2004-08-11 Thread Olivier Billard
Thomas Zehetbauer wrote: Or to directly use the DataSource, Connection, PreparedStatement, and ResultSet in a xsp:logic block. So in this case, you would better doing it in flow with a DAO... :) I strongly recommend against manually escaping the parameters because different databases may need to

Re: Problem with xsp/esql

2004-08-11 Thread Thomas Zehetbauer
On Mit, 2004-08-11 at 11:57 +0200, Olivier Billard wrote: Additionally some databases (not postgresql) support prepared statements that are much faster because the SQL is parsed and optimized only once and uses dynamic parameters thereafter. Isn't that true only if you're using your

Re: Cocoon Pathing Strategies

2004-08-11 Thread Upayavira
Carl Yestrau wrote: Hello all, I am currently building and web application that follows a content hieararchy: sitemap matcher: map:match pattern=*/**/*.html example url(s): /en/superstars/david_hasselhoff.html /en/one_hit_wonders/neil_patrick_harris.html The problem I am running into relates to

[cforms] struct and class access in flowscript

2004-08-11 Thread Stephane Delort
Hi, I have this definition file : fd:widgets fd:class id=widgetClass fd:widgets fd:union id=union default= case=type fd:datatype base=string/ fd:widgets fd:struct id=simpleList fd:widgets fd:multivaluefield id=list

RE: Custom transformer

2004-08-11 Thread JACOB, ERIC
The problem is not really the error... I just need some suggestions on how I could parse an entire xml file (generate by the xml generator) before doing some action with it (I don't care about what is inside the xml document, I just want to sent it). I'm not very familiar with the SAX event and

passing sitemap parameters to XSP?

2004-08-11 Thread Lars Huttar
Dear Cocoonists, I'm trying to pass sitemap parameters to an XSP page: map:match pattern=data/language-entry/* map:generate src=sources/language-entry.xsp type=serverpages map:parameter name=id value={1} / /map:generate map:serialize type=xml /

Re: passing sitemap parameters to XSP?

2004-08-11 Thread Jan Hoskens
xsp:page String id = parameters.getParameter(id, defaultvalue); /xsp:page Kind Regards, Jan Lars Huttar wrote: Dear Cocoonists, I'm trying to pass sitemap parameters to an XSP page: map:match pattern=data/language-entry/* map:generate src=sources/language-entry.xsp type=serverpages

Re: passing sitemap parameters to XSP?

2004-08-11 Thread Olivier Billard
Hi Lars, Lars Huttar wrote: Dear Cocoonists, I'm trying to pass sitemap parameters to an XSP page: map:match pattern=data/language-entry/* map:generate src=sources/language-entry.xsp type=serverpages map:parameter name=id value={1} / /map:generate

AW: map:generate - servlet - empty session problem

2004-08-11 Thread Merico Raffaele
Hi Joerg Many thanks for your tip. Calling the servlet within a jsp-file ends in the same session. The jsp-file constists of only on line: jsp:forward page=/v2?action=callSGenericveAction=redirectoutput=.xml/ The problem that I have now is that the returned XML data misses two chars. at the end.

cforms + javascript validation + i18n

2004-08-11 Thread Joose Vettenranta
Hi, I have like fd:form fd:validation fd:javascript if (email.value == null amp;amp; phone.value == null) { email.setValidationError(new Packages.org.apache.cocoon.forms.validation.ValidationError(Atleast another one, false)); and it works.. But how can I make that

Re: [cforms] struct and class access in flowscript

2004-08-11 Thread Tim Larson
On Wed, Aug 11, 2004 at 01:32:35PM +0200, Stephane Delort wrote: snip/ I would like to fill it with values from a bean, in a flowcsript so I did ; var model = form.getModel(); var p = form.lookupWidget(widgetClass); var f = p.lookupWidgetWidget(union).getChild(simpleList).lookupWidget

Re: cforms + javascript validation + i18n

2004-08-11 Thread Joose Vettenranta
Additional information: if false - true, it does i18n -message.. but how do I define catalogue which it uses? I would like to leave default forms message in one place and custom stuff in another.. - Joose 11.8.2004 kello 15:50, Joose Vettenranta kirjoitti: Hi, I have like fd:form fd:validation

Re: cforms + javascript validation + i18n [solution]

2004-08-11 Thread Joose Vettenranta
Seems like src\blocks\forms\java\org\apache\cocoon\forms\validation\ValidationError .java has to be changed to accept catalogue with it, so it can work. public ValidationError(String errorMessageKey, String catalogue) { this.saxFragment = new I18nMessage(errorMessageKey,

RE: passing sitemap parameters to XSP?

2004-08-11 Thread Lars Huttar
Thank you, Jan and Olivier. Lars -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of Olivier Billard Sent: Wednesday, August 11, 2004 7:24 AM To: [EMAIL PROTECTED] Subject: Re: passing sitemap parameters to XSP? Hi Lars, Lars Huttar wrote: Dear Cocoonists,

Antwort: Re: [cforms] struct and class access in flowscript

2004-08-11 Thread Stephane Delort
Thanks a lot for this helpful answer. Now I have problems with the fb:union I have : fd:new id=a_class !-- If I well understood what you told I shouldn't put this here but in a fd:x -- fd:class id=a_class fd:repeater id=a_repeater fd:union id=a_union datatype base=string

Re: Antwort: Re: [cforms] struct and class access in flowscript

2004-08-11 Thread Tim Larson
On Wed, Aug 11, 2004 at 04:18:28PM +0200, Stephane Delort wrote: Thanks a lot for this helpful answer. Now I have problems with the fb:union [Just for the sake of anyone googling this thread...] Since this is the form definition, fd:union. There is a fb:union, but that goes in the form

Antwort: Re: Antwort: Re: [cforms] struct and class access in flowscript

2004-08-11 Thread Stephane Delort
Bitte antworten an [EMAIL PROTECTED] Gesendet von: [EMAIL PROTECTED] An: [EMAIL PROTECTED] Kopie: Thema:Re: Antwort: Re: [cforms] struct and class access in flowscript I have : fd:new id=a_class !-- If I well understood what you told I shouldn't put this here but in a fd:x

XML streams Cocoon

2004-08-11 Thread Narasingarao Kommireddi
Hi All, I am trying to generate PDFs like everyone using Cocoon.. I am stuck at a place and would be very happy if someone could guide me.. These are my execution steps 1. User clicks on a link in a webpage, invokes my servlet running on weblogic. 2. In the servlet, I read data from oracle

RE: passing sitemap parameters to XSP?

2004-08-11 Thread Lars Huttar
OK, I'm still struggling... I'm not used to putting raw Java code in an XSP page. I tried: xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:esql=http://apache.org/cocoon/SQL/v2; String id = parameters.getParameter(id, -1);

jx:choose don't work

2004-08-11 Thread Noureddine BEKRAR
Hi all, I have in my template page this jxtemplate code, the problem is that the do some thing action and do other thing action are the two performed. jx:set var=role value=#{getAttribute($session,'user-role-id')}/ jx:choose xmlns:jx=http://apache.org/cocoon/templates/jx/1.0; jx:when

Re: passing sitemap parameters to XSP?

2004-08-11 Thread Olivier Billard
You must surroud your Java code with xsp:logic. Without it, it is considered to be output. HTH, -- Olivier Lars Huttar wrote: OK, I'm still struggling... I'm not used to putting raw Java code in an XSP page. I tried: xsp:page language=java xmlns:xsp=http://apache.org/xsp;

Re: passing sitemap parameters to XSP?

2004-08-11 Thread Jan Hoskens
Try this: xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:esql=http://apache.org/cocoon/SQL/v2; language-entry xsp:logicString id = parameters.getParameter(id, -1);/xsp:logic classLanguage

Re: passing sitemap parameters to XSP?

2004-08-11 Thread Olivier Billard
Try Jan's solution, I forgot the root element... Olivier Billard wrote: You must surroud your Java code with xsp:logic. Without it, it is considered to be output. HTH, -- Olivier Lars Huttar wrote: OK, I'm still struggling... I'm not used to putting raw Java code in an XSP page. I tried:

RE: passing sitemap parameters to XSP?

2004-08-11 Thread Lars Huttar
Thanks Jan. It worked! Yes, I had looked at the wiki pages you mentioned, although at the time I was searching particularly for how to access sitemap parameters. You're right, XSPSyntax in particular is helpful in figuring out how to use raw Java in XSP. Maybe I should put up a little wiki page

Re: jx:choose don't work

2004-08-11 Thread Antonio Gallardo
Noureddine BEKRAR dijo: Hi all, I have in my template page this jxtemplate code, the problem is that the do some thing action and do other thing action are the two performed. jx:set var=role value=#{getAttribute($session,'user-role-id')}/ jx:choose

RE: passing sitemap parameters to XSP?

2004-08-11 Thread Lars Huttar
FYI, I have updated http://wiki.apache.org/cocoon/XSPEnvironment showing this example, which I think should be helpful to some. Lars -Original Message- From: Lars Huttar [mailto:[EMAIL PROTECTED] Sent: Wednesday, August 11, 2004 10:55 AM To: '[EMAIL PROTECTED]' Subject: RE: passing

Re: jx:choose don't work

2004-08-11 Thread Noureddine BEKRAR
oh Sorry, i did a mistake when i wrote the email, My code is like you say but the two actions are performed. jx:set var=role value=#{getAttribute($session,'user-role-id')}/ jx:choose xmlns:jx=http://apache.org/cocoon/templates/jx/1.0; jx:when test=${role == 'admin'} do something /jx:when

Re: jx:choose don't work

2004-08-11 Thread Antonio Gallardo
OK. Can you check what is the value for: value=#{getAttribute($session,'user-role-id')} Also, please try to not mix between #{$...} and ${...} syntax. In the below case you use for set one syntax and for test another syntax. I am not telling this is why both statements are executed. If both

Re: jx:choose don't work

2004-08-11 Thread Noureddine BEKRAR
Antonio, this is a complete XSP page that i tested, it's perfom the two actions admin and not admin, is any thing wrong in it? the value of value=#{getAttribute($session,'user-role-id')} is right. - Original Message - From: Antonio Gallardo [EMAIL PROTECTED] To: [EMAIL PROTECTED]

Re: jx:choose don't work

2004-08-11 Thread Antonio Gallardo
Noureddine BEKRAR dijo: Antonio, this is a complete XSP page that i tested, it's perfom the two actions admin and not admin, is any thing wrong in it? the value of value=#{getAttribute($session,'user-role-id')} is right. How we can use XSP and JXTemplate Generator? AFAIK, the only idea

RE: Cocoon and Oracle

2004-08-11 Thread Schultz, Gary - COMM
I already have cocoon.xconf and web.xml set. Using a variation of the Java code sent by Edward Rayl I was able to create a java file to test the jdbc connection. The test was successful, that is the Oracle jdbc connection works. I still can't get it to work with Cocoon. When running via SQL

updating 2.14 to 2.1.5.1

2004-08-11 Thread Craig Christophersen
To update my application using 2.1.4 I have made the change in logkit.xconf. Then do I just replace the jars in the lib folder with the 2.1.5.1 lib/jars? Craig Christophersen(406)496-6421[EMAIL PROTECTED]

Re: Best of both worlds Cocoon JSF.

2004-08-11 Thread Joerg Heinicke
On 06.08.2004 20:22, birdy wrote: I have read http://www.developer.com/open/article.php/10930_3348311_1 (spinning code with XSLT and JSF with Cocoon) and think it is an excellent method to bring the benefits of two great technologies. My question to all, is has any one else done this. If so how?

Re: Cocoon and Oracle

2004-08-11 Thread Ugo Cei
Il giorno 11/ago/04, alle 19:59, Schultz, Gary - COMM ha scritto: Has anyone gotten Cocoon to work with Oracle through the jdbc connection? If so, did you use any special environmental variable settings? Anything different with placement of classes12.jar? Anything special to cocoon.xconf,

Cocoon won't install on tomcat 4.1x?

2004-08-11 Thread Millo Magnocavallo
Hi, I wish to install cocoon-2.1.5.1 on my system and I'm running tomcat 4.1.27 however in the installation instructions there doesn't seem to be anything related to installing for this tomcat version. It covers the following versions: # Installing on Tomcat 3.3.X # Installing on Tomcat 3.2.X #

RE: Cocoon and Oracle

2004-08-11 Thread Schultz, Gary - COMM
Thanks to all who provided advice. I finally have it working. Here are two things I did discover: = I had to try different classpath settings before I finally got it to work. = I was using the wrong table name referencing, a hold over from my ASP/PHP scripting experience. I still need to clean

Re: cforms + javascript validation + i18n [solution]

2004-08-11 Thread Phil Snowdon
Don't need any modification to source. You can use: ValidationError err = new ValidationError(new I18nMessage(msg.key, catalogue)); this uses the ValidationError(XMLizable) constructor in the class you mention. [EMAIL PROTECTED] 12/08/2004 1:47:06 a.m. Seems like

Re: Cocoon won't install on tomcat 4.1x?

2004-08-11 Thread Joel McConaughy
Millo Magnocavallo wrote: Hi, I wish to install cocoon-2.1.5.1 on my system and I'm running tomcat 4.1.27 however in the installation instructions there doesn't seem to be anything related to installing for this tomcat version. It covers the following versions: # Installing on Tomcat 3.3.X #

Re: [flowscript] Session object

2004-08-11 Thread Brent Johnson
Umm.. running cocoon.session.getAttribute(...) creates a session??? If not just test for an attribute stored in the session to see whether they have one or not. If so, I'd also like to hear the answer :) - Brent On Wed, 11 Aug 2004 21:46:16 +0200, defe [EMAIL PROTECTED] wrote: hi, I have