HowTo pass cocoon variables into client-side javascript?

2004-11-22 Thread Andrew M
Hi, in ASP I can do: var testSessionState = %= getSessionState % How can I achieve the same thing in cocoon? regards Andrew - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: JXTemplate test condition

2004-11-22 Thread oceatoon
pguillard wrote: Hi, Basic question but i can't find the answer: how to write a more complex test condition in JXT exprerssion jx:choose jx:when test=${value1=='1'} and ${value2=='2'} or jx:when test=${value1=='1'} amp;amp; ${value2=='2'}

AW: question on xsl

2004-11-22 Thread Merico Raffaele
Hi Andreas I you wish to set a new value to a xsl:variable/ saxon may have the extensions you are looking for. Saxon offers something like xsl:variable name=posX saxon:assignable=yes/. Such a variable can than be reset with saxon:assign name=posX select=$posX + 1/. I am using saxonb-8.1.1. HTH

Multiple forms on one page

2004-11-22 Thread Upayavira
Hi, I need to put two forms onto one page. Scenario: a homepage showing a selection of 'products', displayed as a repeater on a form, and a login form. These need to be separate HTML forms, so that typing into a box and pressing enter submits the relevant form. Is there a way to do this

Re: HowTo pass cocoon variables into client-side javascript?

2004-11-22 Thread Andrew M
Hi, just to make things more understandable. 1. User clicks on a link which opens a pop-up window 2. javascript in the pop-up window determines whether the session is still current 3. If the session has expired, close the pop-up window, and reload the referrer window Hence the reason I need

Re: AW: question on xsl

2004-11-22 Thread Derek Hohls
Raffaele / Andreas I think the preferred way (ie. processor independant) is to use either the recursive loop concept or the Xpath pos() function given in previous replies. reply. Derek [EMAIL PROTECTED] 2004/11/22 11:38:53 AM Hi Andreas I you wish to set a new value to a xsl:variable/

Re: Multiple forms on one page

2004-11-22 Thread Reinhard Poetz
Upayavira wrote: Hi, I need to put two forms onto one page. Scenario: a homepage showing a selection of 'products', displayed as a repeater on a form, and a login form. These need to be separate HTML forms, so that typing into a box and pressing enter submits the relevant form. Is there a way

Re: JXTemplate test condition

2004-11-22 Thread Jan Hoskens
You need to set the complete jexl expression in the curly braces , and if working with strings, I prefer .equals(): jx:when test=${value1.equals('1') and not(value2.equals('2'))}/ use and/or/not as operators (more on this at:

Re: Cocoon 2.1.6 and Java 1.5.0

2004-11-22 Thread Miha etina
I would also like to know the answer to this. I have tried to compile it over the weekend and it does not end at this. You can change target versions in init-build.xml from 1.3 to 1.5, but then comes the rest. 1.5.0 comes with (probably) new dom classes. Next thing I encountered was the

HTMLarea and Tabbed layout

2004-11-22 Thread Derek Hohls
Its now been established that HTMLarea does *not* work under IE6 when using tables... see: http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=109203952322577w=2 and that page layout needs to be achieved through div tags instead: http://marc.theaimsgroup.com/?l=xml-cocoon-usersm=109203952322577w=2

Re: HowTo pass cocoon variables into client-side javascript?

2004-11-22 Thread oceatoon
with JXTemplate var myvar = #{document/yourvalue/@val}; //for a string Regards, Tibor Andrew M wrote: Hi, in ASP I can do: var testSessionState = %= getSessionState % How can I achieve the same thing in cocoon? regards Andrew

Re: HowTo pass cocoon variables into client-side javascript?

2004-11-22 Thread Derek Hohls
Andrew Maybe you should expand this a bit more; doesn't the ASP code you quote run on the server? If so, then there are obviously Cocoon equivalents. Secondly, the javascript code that runs on the client machine can be generated on the server - and at generation time (ie. just before the popup

Re: JXTemplate test condition

2004-11-22 Thread Upayavira
pguillard wrote: Right. Thanks a lot, You're welcome. thanks for the photo album too ! Huh? Regards, Upayavira Upayavira wrote: pguillard wrote: Hi, Basic question but i can't find the answer: how to write a more complex test condition in JXT exprerssion jx:choose jx:when

RE: HTMLarea and Tabbed layout

2004-11-22 Thread H . vanderLinden
Derek, the fact that HTMLarea does not work under IE(6), comes from a timing problem. In detail: the HTMLarea is rendered before the table cell containing the textarea is. Since I'm stuck with tables myself, I need to solve this too. My questions concerning this resulted in suggestions to modify

Re: HowTo pass cocoon variables into client-side javascript?

2004-11-22 Thread Andrew M
x-tad-biggerDerek, maybe you missed my earlier post, but my solution was this: In jx page (pop-up): /x-tad-biggerx-tad-bigger java-script> jx:if test=${userGlobal == null}> ![CDATA[ window.opener.document.location.href = myPage.xml; window.close(); ]]> /jx:if> /java-script> In xsl template:

RE: HTMLarea and Tabbed layout

2004-11-22 Thread Derek Hohls
Helma OK, I had not realized it was a timing issue (those threads did not deal with it)... in the meantime I have started with my own +div+ tags... (call me a would-be CSS purist!) but if the table-based approach can be made to work as well, then I think that will be a Good Thing. [EMAIL

Using htmlArea 'output' with SVG

2004-11-22 Thread Derek Hohls
I'd like to be able to use htmlArea to allow my users to create content that gets displayed in an SVG. Although they will only be given access to some buttons when creating text content, one fucntion required is that of subscripting. I can match on an sub element and create the necessary SVG

Re: HTMLarea and Tabbed layout

2004-11-22 Thread Florian Leinberger
Derek Hohls DHohls at csir.co.za writes: Before I tackle this myself, I wondered if anyone else had attempted this (and would be willing to share code) and, also, if we should not look at upgrading the default sheets supplied with the Cocoon installation in order to ensure hi, we created a

RE: HTMLarea and Tabbed layout

2004-11-22 Thread H . vanderLinden
I've been thinking about rewriting my table-based layout to a non-table based layout, not only to avoid this problem, but also because I read that table-based layout were not in any more. After several hours of trying I finally gave up because I wasn't able to easily reproduce my current setup:

Re: HTMLarea and Tabbed layout

2004-11-22 Thread Derek Hohls
Thanks Gurss I have managed to create a custom forms-page-style-css.xsl; I guess I should post it on the Wiki in case anyone else needs it. Derek [EMAIL PROTECTED] 2004/11/22 03:40:05 PM Derek Hohls DHohls at csir.co.za writes: Before I tackle this myself, I wondered if anyone else had

Re: [OT] User Preferences and Webapp Configs

2004-11-22 Thread Julian
Derek, Users are able to make runtime changes. As far as CForms, I am unable to use it so it's a lost cause. Thanks for the help though, I appreciate it. Julian --- Derek Hohls [EMAIL PROTECTED] wrote: Julian I was assuming your users *were* likely to be making changes at runtime. Or

Re: [OT] CSS resources (was: HTMLarea and Tabbed layout)

2004-11-22 Thread Derek Hohls
As is the Designing without Tables by Dan Shafer. [EMAIL PROTECTED] 2004/11/22 04:21:15 PM Le 22 nov. 04, à 14:00, [EMAIL PROTECTED] a écrit : ...If you have a nice CSS-based solution for this, I'd like to know. I'm currently *teaching* CSS (which is a great way of learning it ;-), at a

Re: [OT] User Preferences and Webapp Configs

2004-11-22 Thread Derek Hohls
Julian What are the problems with CForms; are they technical (installation?) or conceptual... I have to say I was able to figure them out from the samples and the brief on-line docs. Not too hard - but if you have specific issues, the list is here to help ;-) Derek [EMAIL PROTECTED]

Re: Using htmlArea 'output' with SVG

2004-11-22 Thread Ugo Cei
Derek Hohls wrote: Does anyone know how to get htmlArea to store XML or how else to perform the necessary conversions? Parse the value of HTMLArea's content using an XML parser. HTMLArea should produce well-formed XHTML most of the times, but when it doesn't (like when you paste content from

RE: Using htmlArea 'output' with SVG

2004-11-22 Thread H . vanderLinden
Parse the value of HTMLArea's content using an XML parser. HTMLArea should produce well-formed XHTML most of the times, but when it doesn't (like when you paste content from MSWord, for instance), passing it through Neko or JTidy will fix it. Check Outerthought's Daisy. They already have

Re: HTMLarea and Tabbed layout

2004-11-22 Thread Ugo Cei
[EMAIL PROTECTED] wrote: If you have a nice CSS-based solution for this, I'd like to know. http://glish.com/css/ HTH, Ugo - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL

RE: [OT] CSS resources (was: HTMLarea and Tabbed layout)

2004-11-22 Thread H . vanderLinden
Can I come over and teach? :-) Bye, Helma -Original Message- From: Bertrand Delacretaz [mailto:[EMAIL PROTECTED] Sent: Monday, 22 November, 2004 15:21 To: [EMAIL PROTECTED] Subject: [OT] CSS resources (was: HTMLarea and Tabbed layout) Le 22 nov. 04, à 14:00, [EMAIL PROTECTED]

Re: Using htmlArea 'output' with SVG

2004-11-22 Thread Reinhard Poetz
Ugo Cei wrote: Derek Hohls wrote: Does anyone know how to get htmlArea to store XML or how else to perform the necessary conversions? Parse the value of HTMLArea's content using an XML parser. HTMLArea should produce well-formed XHTML most of the times, but when it doesn't (like when you paste

Problem display the web page

2004-11-22 Thread Ben habib Esma
Hello, I want to display a web page with cocoon. When, I use only this, the web page will display map:match pattern=*/oksubscribe.jx map:act type=session map:parameter name=action value=create/ /map:act map:generate type=jx src=jx/service.jx/ map:transform

Re: [OT] User Preferences and Webapp Configs

2004-11-22 Thread Julian
Derek, My issue is a mix of conceptual and technical. Technically, I already have a legacy JSP/Servlet application, and porting would be costly at this time. To a lesser extent, CForms is a proprietary solution and not yet released as part of a Cocoon Milestone. Conceptually...for future

Re: [OT] CSS resources (was: HTMLarea and Tabbed layout)

2004-11-22 Thread Bertrand Delacretaz
Le 22 nov. 04, à 16:06, [EMAIL PROTECTED] a écrit : Can I come over and teach? :-) hehe...but quite frankly, teaching something that you think you know about is the best way of finding out what you don't know (hope I'm being clear ;-) -Bertrand smime.p7s Description: S/MIME cryptographic

Premature end of file error with xinclude?

2004-11-22 Thread Derek Hohls
I have an app that is tested and working on the development machine (Windows), but when I upload and run the production box (Unix) I get the following strange error: ERROR (2004-11-22) 12:32.14:117 [sitemap.transformer.xinclude] (/cocoon215/soc/indicators)

Re: Client side controls

2004-11-22 Thread Luca Garulli
I try to explain more: for client side controls I mean a sort of client-side validation using the form-definition rules. bye, Luca Garulli www.Pro-Netics.com (member of Orixo.com - The XML business alliance) OrienTechnologies.com - Light ODBMS, All in one JDO solution On Mon, 22 Nov 2004

Dynamic adoption of SQL-Query in ESQL based on parameter

2004-11-22 Thread Markus Vaterlaus
Hi list, Is there a way to dynamically adopt an SQL-Query in a ESQL based on request-parameters? Based on the following excerpt from an ESQL I can think of two use cases for such a possibility: 1. the parameter sort is not present in the request, the query is anyhow processed and the

Re: [OT] CSS resources (was: HTMLarea and Tabbed layout)

2004-11-22 Thread Bloomfield Nutrition
..but quite frankly, teaching something that you think you know about is the best way of finding out what you don't know This quote is now posted outside of my cube. gbg CSS learning by example: glish.com/css, or csszengarden.com. Then get comfortable with the w3c CSS validator. /T

Re: Client side controls

2004-11-22 Thread Reinhard Poetz
Luca Garulli wrote: I try to explain more: for client side controls I mean a sort of client-side validation using the form-definition rules. No, not that I know. Patches would be welcome :-) -- Reinhard - To unsubscribe, e-mail:

RE: [OT] CSS resources (was: HTMLarea and Tabbed layout)

2004-11-22 Thread H . vanderLinden
Can I come over and teach? :-) hehe...but quite frankly, teaching something that you think you know about is the best way of finding out what you don't know (hope I'm being clear ;-) I know. I've been teaching classes where I was only one chapter ahead of the students and then I ran into

Deployment of Cocoon apps. Best practices?

2004-11-22 Thread Bent André Solheim
Hi Cocoon users! I have been developing an application for document presentation based on cocoon, and time is coming for full scale test deployment. The way I have developed the application is that I have an own project for the cocoon instance tailored for our application needs. Here I maintain

Browser caching

2004-11-22 Thread BRAUD Denis
Hi, Is there a best practice with Cocoon to avoid browser caching ? Is there a way to configure http headers globally ? I'm using the html head meta tags (pragma=no-cache,...) but it is not sufficient for certain browsers like those of the mobile telephones. Thanks Denis Braud

Re: Browser caching

2004-11-22 Thread Bertrand Delacretaz
Le 22 nov. 04, à 19:44, BRAUD Denis a écrit : ...Is there a best practice with Cocoon to avoid browser caching ? Is there a way to configure http headers globally ? Not globally AFAIK, but you might find the info at http://wiki.apache.org/cocoon/ControllingModCache useful. I recently added it as

Client side controls

2004-11-22 Thread Luca Garulli
Hi, does CForms support minimal client-side validation? Such as field-length, field-presence, etc.? Thank you bye, Luca Garulli www.Pro-Netics.com (member of Orixo.com - The XML business alliance) OrienTechnologies.com - Light ODBMS, All in one JDO solution

RE: HTMLarea and Tabbed layout

2004-11-22 Thread Hugo Burm
Hello, To add some more details: I remenber from a HTMLArea faq that the HTMLArea.replace() function is causing the problem. In every td cell in IE hit by this problem, there is a Javascript HTMLArea.replace() call following the textarea/ element. The only thing that has to be modified to the

RE: bored with *talks* about docs (was: New documentation project?)

2004-11-22 Thread Tim.Holloway
OK, I'll sing a chorus. As it happens, I spent the weekend constructing documentation on the Cocoon Portal, trying to fill in some holes and allow for people who aren't familiar with Cocoon and the pipeline paths specific to the Portal. Still a ways to go, but it's been a good start. I'll be

cforms - ojb: generate unique id

2004-11-22 Thread Jorge Davila
Hello all!: I'm trying to agregate a new record in a postgresql database ... but when i put a widget field in my definition file I obtain an: forms_onsubmit(); in my form (in the html page). then, my result page is not showed. How generate the unique id using flow? Best regards, Jorge Dávila.

Re: bored with *talks* about docs (was: New documentation project?)

2004-11-22 Thread Joerg Heinicke
On 22.11.2004 22:43, [EMAIL PROTECTED] wrote: OK, I'll sing a chorus. As it happens, I spent the weekend constructing documentation on the Cocoon Portal, trying to fill in some holes and allow for people who aren't familiar with Cocoon and the pipeline paths specific to the Portal. Still a ways to

Re: Cocoon portal and META Tag

2004-11-22 Thread Anna Bikkina
Can anyone provide input on this problem? I still cannot get the post/get methods working as they should. Thanks, Anna. On Wed, 2004-11-17 at 16:53, Anna Bikkina wrote: I think cocoon is somewhere internally storing my previous request values because before submit I called a javascript and

Re: Cocoon portal and META Tag

2004-11-22 Thread Johannes Textor
Hi Anna, I'm having a hard time figuring out what your problem might be ... it would be useful if you could include source codes for your xsp and provide more information about how you actually pass your parameters. cocoon itself does not differentiate between post and get request methods neither

Re: Cocoon 2.1.6 and Java 1.5.0

2004-11-22 Thread Antonio Gallardo
Hi: I am able to run the 2.1.6 with java 1.5. Talking about official compatibility... I think it is too early to speak. Why? Because few people tested it. I am not using java 1.5 for my development environment. I am only playing with java 1.5 on time to time. There are also some issues to be

RE: HTMLarea and Tabbed layout

2004-11-22 Thread Derek Hohls
Hugo We appreciate the time taken to follow this one through; as before, my point stands - can we not upgrade the exisitng Cocoon stylesheets to ensure that htmlArea in Cocoon *as shipped* can work properly with tables (now that we know its possible). Derek [EMAIL PROTECTED] 2004/11/22

RE: HTMLarea and Tabbed layout

2004-11-22 Thread Derek Hohls
Helma Sorry, no 'instant solution'; unless you want to send me your layout to try and reproduce it - but I have found the designing without tables book (Dan Shafer) to be extremely useful in learning CSS layout techniques. Derek [EMAIL PROTECTED] 2004/11/22 03:00:46 PM I've been thinking

Re: [OT] User Preferences and Webapp Configs

2004-11-22 Thread Derek Hohls
Julian Sounds like you are stuck at an awkard place; perhaps best to use what you know already (JSP) to do the user-specific configuration stuff, and let Cocoon handle the presentation. As you say, CForms could then be used in a future application that has no legacy issues. I would consider

Re: bored with *talks* about docs (was: New documentation project?)

2004-11-22 Thread Derek Hohls
Joerg Could you supply the actual URL of the DTD itself... all I could find pages discussing changes to the DTD. [EMAIL PROTECTED] 2004/11/23 12:05:03 AM On 22.11.2004 22:43, [EMAIL PROTECTED] wrote: OK, I'll sing a chorus. As it happens, I spent the weekend constructing documentation on

Re: Using htmlArea 'output' with SVG

2004-11-22 Thread Derek Hohls
Ugo Thanks; are there any example demo'ing how this approach can be integrated into Cocoon... I'm afraid this hint is less than obvious to me, especially as it seem htmlArea is not producing tags at all... Thanks Derek [EMAIL PROTECTED] 2004/11/22 04:56:10 PM Derek Hohls wrote: Does anyone

css file wih images

2004-11-22 Thread pguillard
Hi, I have a css stylesheet that contains images. I don't see them on my HTML pages. When i put the css style directly in my XSL stylesheet in the html header they are rendered correctly, that means my entries for css and gif in sitemap are ok. Any idea ? Regards Phil -- in

Re: css file wih images

2004-11-22 Thread Ugo Cei
Il giorno 23/nov/04, alle 08:22, pguillard ha scritto: I have a css stylesheet that contains images. I don't see them on my HTML pages. When i put the css style directly in my XSL stylesheet in the html header they are rendered correctly, that means my entries for css and gif in sitemap are

AW: [SPAM] css file wih images

2004-11-22 Thread Merico Raffaele
Hi Phil That has probably to do with the location of the imgcss directory. It seems that the imgcss dir. is located under the xml dir. The css url() instruction tries to resolve the imgcss/foo.gif from the position of the css dir. And this can not be done, because the imgcss dir. is located