CForms:fd-create on repeater ?

2005-07-25 Thread oceatoon
Hi CFormers I would like to create my repeater rows from a selection list (external file), I wanted to launch my fillRepeater() script on the repeaters on-create event but it isn't implemented. So I have a few possibilities but would need some help to make my decision. Could I create an event-han

Re: Sitemap:Selector multiple value in map:when tag ?

2005-07-20 Thread oceatoon
Ralph Goers wrote: > The syntax below would test to see if the value matches the string > "europe or region". You would need to write a new selector that accepts > something like: > "'europe' or 'region'" and knows what to do with it. Thanks Ralph, Well it would react just as it does now just tha

Re: Sitemap:Selector multiple value in map:when tag ?

2005-07-19 Thread oceatoon
> "{$fullpath}" > > > > > > Good luck. > > Jarry > > > On 7/19/05, oceatoon <[EMAIL PROTECTED]> wrote: >> > Hi >> > >> > While working with selectors I would like to test more than one val

Sitemap:Selector multiple value in map:when tag ?

2005-07-19 Thread oceatoon
Hi While working with selectors I would like to test more than one value in my test something like this or region,province or region|province I tried all the variations I could think of, but none work , is this possible ? Thanks for the thoughts Tibor -

Re: Sitemap : Selector inside an Aggregation

2005-07-19 Thread oceatoon
d add overhead please don't hesitate in saying so. I wouldn't know what an impact this structure might have on performance . Regards Tibor oceatoon wrote: > Hi everyone > > I would like to have a map:select (Request parameter selector) inside my > aggregation section , is this

Sitemap : Selector inside an Aggregation

2005-07-19 Thread oceatoon
Hi everyone I would like to have a map:select (Request parameter selector) inside my aggregation section , is this possible in some way ? I manage to put it outside but offcourse this makes me duplicate a bunch of map:parts that are common to all the selections. This would really clean up my code

Access Generator parameters without JX nore XSL ?

2005-06-17 Thread oceatoon
Hi I feel oakward asking this, since it seems so obvious, but I don't beleive it is possible??? How do I retreive the value of my parameter directly in my generate without using either JX nore XSL:

Re: Cocoon session configuration ?

2005-06-15 Thread oceatoon
Thanks Jorg > Does this match your need for session TTL ? It not only solves my problem but also makes me a happy man :-) Cheers Tibor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTE

Cocoon session configuration ?

2005-06-13 Thread oceatoon
Hi I'm trying to find where I can configure the Time to live of the session ? I haven't found this in web.xml nore xconf, is this a tomcat configuration ? Thanks Tibor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: add a row

2005-05-31 Thread oceatoon
magic wrote: > Hi,all > How can I add a repeater-row in Cform's on-value-change ? Someone > can supply some samples? Thanks! Sorry form is var form = event.source.form; - To unsubscribe, e-mail: [EMAIL PROTECTE

Re: add a row

2005-05-31 Thread oceatoon
magic wrote: > Hi,all > How can I add a repeater-row in Cform's on-value-change ? Someone > can supply some samples? Thanks! Sorry forgot to specify var form = event.source.form; - To unsubscribe, e-mail: [EMAIL

Re: add a row

2005-05-31 Thread oceatoon
magic wrote: > Hi,all > How can I add a repeater-row in Cform's on-value-change ? Someone > can supply some samples? Thanks! You can add JS code in your on value change var MyRepeater = form.getChild("myrepeater"); MyRepeater.addRow(); Then you can simply initialise the values ma

Error Handling : what are Cocoons exceptions ?

2005-05-17 Thread oceatoon
Hi every one I have these exceptions declared in my selectors All these errors are well handled by the error-handler but when an XSL error occurs I still get the error and not my handle error page?? are there any other selectors to be added? Do I have to declare other exception Selectors?

Re: Display a CForm Repeater in JXTemplate

2005-05-14 Thread oceatoon
Nicolas Maisonneuve wrote: > In pratice I would like transform the data of the form , so I use JX > as the generator of the pipeline where the data are injected. My first > step is just to display the results of the JX generator. > > But it's really strange that anybody find a simple solution for

Re: create a file ...

2005-05-10 Thread oceatoon
OMStreamer.stream(string) > > Regards, > Fab > > >>From: oceatoon <[EMAIL PROTECTED]> >>Reply-To: [EMAIL PROTECTED] >>To: users@cocoon.apache.org >>Subject: Re: create a file ... >>Date: Mon, 09 May 2005 19:57:38 +0200 >> >>Fab Psy

Re: create a file ...

2005-05-09 Thread oceatoon
Fab Psycho wrote: > Hi :) > > I'd like to create a file on server with result of a simple form(not > cform) in my js flow.Is there any built-in function for this > (savedocument ) ? Hi Psycho Fab This might help , with a few cocoon.request.getParameters("your_form_input_widget") Then sa

Error handling

2005-05-08 Thread oceatoon
Hi every one I am working on our error handlers, and wanted to put a jx generator inside my not-found error handler, but this seems to break the pipeline and sends: [java] 17:09:12.632 WARN!! Error for /cocoo ("my not found resource") [java] java.lang.StackOverflowError in console. Is anybod

Re: cforms with flow/jx/xsl

2005-05-07 Thread oceatoon
> I do see what you mean but I don't find samples of cform generation in > jx on the net :( > On the other hand, is it impossible to declare (in main xsl) Take any cforms sample (form1 for example),and change the generator to type jx, and then you will be able to insert JX code inside your temp

Re: cforms with flow/jx/xsl

2005-05-07 Thread oceatoon
> Maybe I could use cforms instead of simple forms in my xsl.Is it > possible to call a form template directly from xsl rather than having a > sitemap entry for it or directly from my jx ? I don't know exactly what you do in your main.xsl but if you really want to keep this structure you have to ge

Re: File upload ?

2005-05-05 Thread oceatoon
Fab Psycho wrote: > Hi, > > I'd like to release some file upload from js flow. > (I updated web.xml for file upload) > > Does something like : > > var myfile[]; > myfile=cocoon.request.getParameter("file") > write(myfile, "filewritten"); The file is uploaded to your work directory in WEB-In

Re: Help needed in getting the label from a selection-list.

2005-05-05 Thread oceatoon
Hugo Marcelino wrote: > > Hi , my name is Hugo Marcelino. > > I need some help. > I'm using cocoon-2.1.7. > > I have a form that has 4 selection-lists and there is a dependency between > them, that is , the second selection-list is loaded with content selected > in the first selection-list and

Re: creating and passing an xml-stream to a method

2005-05-05 Thread oceatoon
> I want to dynamically create an xml-stream that is passed to a method. The > input of the stream comes mostly from a session. This stream is passed to > a method which returns whatsoever (obviously!). On return it is decided > which page to display. > > Question: > - Can I somehow create the xml

Re: Slashes in the URL match

2005-05-05 Thread oceatoon
Martynas Jusevicius wrote: > Hi, > > I have in my sitemap. Also, I'm trying get > XPath URLs working. Therefore slashes in the URL matter much, for > example: > host.com/context/something/* > is different from > host.com/context/something//* > Instead, Cocoon treats all repeated slashes as one,

Re: Flow Input Module Access

2005-05-05 Thread oceatoon
Dan Durkin wrote: > Have you tried using the RealPath inputmodule in the sitemap and > passing in the result to you flow function as a parameter? It would be my final option if It is not possible, but I would really like to do this from FLow ?? But how ? :) -

CForms Continuation Bug while onchange??

2005-05-04 Thread oceatoon
Hi I get a peculiar response when making an onchange submission of a CForm ? Description: org.apache.cocoon.ProcessingException: did not send a response, The problem appears when the Flow tries to re-enter the ShowForm after the onchange submit, Failed to execute pipeline. The interesting p

Flow Input Module Access

2005-05-03 Thread oceatoon
Hello Every one I can't seem to get the result of the realpath input module within Flow ? I tried this out of the hat but the hat is out of its magic ;-) var gcomp = cocoon.getComponent("org.apache.cocoon.components.modules.input.RealPathModule"); var path2webapp = gcomp.getAttribute("/",null,nu

Re: Authentication ??? Tomcat5 deploy

2005-04-22 Thread oceatoon
> > oceatoon wrote: >> When going through Authentication, instead of sending me to the url I >> gave him as parameter(in my case "login"), he sends me to login/ and adds >> the slash?? >> Does anyone know what does this, and how to clearit ?? > > We

Authentication ??? Tomcat5 deploy

2005-04-22 Thread oceatoon
Hello everyone I'm deploying our CooonApp in Tomcat5, I'm generalising the contextpath to all our urls with the request:contextPath module And I'm faced with this problem: When going through Authentication, instead of sending me to the url I gave him as parameter(in my case "login"), he sends me

Re: Cocoon in Tomcat5

2005-04-20 Thread oceatoon
100% positive response is good enough for me. In my case, I realised that I'll have to modify/generalise my urls with the contextPath. My question is there a generic way of defining the ContextPath for all URLs or do I really have to pass the ContextPath as a map:parameter through my pipelines ?

Cocoon in Tomcat5

2005-04-19 Thread oceatoon
Hi every one, I was installing Cocoon on Tomcat5, everything was going quite fine, untill I tumbled on a ContextPath pb that got me looking into the lists when I found this post about Tomcat5 facing difficulties with cocoon 2.1.6+. http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=11047004350947

Re: Cforms upload validation?

2005-04-07 Thread oceatoon
The discussion is in dev then. Thanks > oceatoon wrote: > >>Hi every one >> >>My Form contains upload widgets, >>I have limited the size parameter in web.xml upload config. >> >>But I would like to get the oversized error as a form validation error. >

Cforms upload validation?

2005-04-06 Thread oceatoon
Hi every one My Form contains upload widgets, I have limited the size parameter in web.xml upload config. But I would like to get the oversized error as a form validation error. In the Form validation docs, it says upload widget supports validation but no idea of which rules. Is there a sample

Re:(Solved) save XML document to disk?

2005-04-04 Thread oceatoon
.close(); } catch (error) { cocoon.log.error("Could not flush/close outputstream: " + error); } } } } oceatoon wrote: > Hi cocooners > > I'm using loadDocument(path2myxml) to act on an xml file in my flow. > Before going into a new dev I w

save XML document to disk?

2005-04-04 Thread oceatoon
Hi cocooners I'm using loadDocument(path2myxml) to act on an xml file in my flow. Before going into a new dev I was wondering if there allready existed a "savedocument(document , path)" or document.save() function, that saves back to disk the applied modifications. I found saveXML in the sessionCo

Re: widget value wrap as src attribute

2005-04-03 Thread oceatoon
Well I don't know if this is the best of solutions but it works for me in the model: bind this to your database value. in my template: I added a styling in the stylesheet/forms-field-styling.xsl: 200

XML-Schema's o DTD's ??

2005-03-31 Thread oceatoon
Hello Everyone As I can see things are looking towards making cocoon development easier with Eclipse pluggins and IDE's , that's great. This made me wonder if there were XML schema's or DTD's for existing elements of Cocoon like jx, cforms (definition, bind, template) because This would allready b

Re: i18n Transformation in subsitemap??

2005-03-31 Thread oceatoon
In the subsitemap it is necessary to declare the i18n component once again your i18n transformer oceatoon wrote: > Hi everyone > > I have an i18n transformer setup in my sitemap-additions.xconf. > It works fine for all pipelines in the main sitemap. > Now when developpi

i18n Transformation in subsitemap??

2005-03-30 Thread oceatoon
Hi everyone I have an i18n transformer setup in my sitemap-additions.xconf. It works fine for all pipelines in the main sitemap. Now when developping a new module using a sub-sitemap, my catalogues aren't found and transformation gives all "unstranslated"??? There must be something essential :) t

Cforms server side call null error?

2005-03-26 Thread oceatoon
Hi every one, I'm getting a weird bug on my cforms ,when a repeater addrow submit is made(any server side process), everything goes well on a normal submit. The process goes up to the setbookmark but when it re-enters the ShowForm I get this error ??? (below) Any idea of where this might come fro

RE: Best practice for conditionally displaying widgets?

2005-02-24 Thread oceatoon
Indeed you can build your model dynamically but if you have no validation rule on your widgets these can be declared in the model and not be used in the template, in which case you just show one or the other according to the language. (it's not the case if these fields are required or other validat

Re: xsl:includes within includes stylesheets...

2005-02-18 Thread oceatoon
[EMAIL PROTECTED] wrote: > Up to recently I was using 2.1.2, I've now updated to 2.1.6 and I've > just noticed the following: > > If you have a stylesheet that uses xsl:include to add extra templates to > the stylesheet and in turn the included stylesheet also includes another > stylesheet, Cocoo

Re: Yet another JXTemplate Beatle???

2005-02-18 Thread oceatoon
Leszek Gawron wrote: > oceatoon wrote: >> Hi every one >> Sorry this went into another post. >> >> I have been using this since a while in many different situations: >> >> >> ${langitem} >> >> >> Not very complicated, hey ;-) >

Yet another JXTemplate Beatle???

2005-02-17 Thread oceatoon
Hi every one Sorry this went into another post. I have been using this since a while in many different situations: ${langitem} Not very complicated, hey ;-) Today I wanted to make my CForms model a bit dynamic: so in Flow I call   var form = new Form("cocoon:/forms/masterform_model"); my pi

Yet another JXTemplate Beatle???

2005-02-17 Thread oceatoon
Hi every one I have been using this since a while in many different situations: ${langitem} Not very complicated, hey ;-) Today I wanted to make my CForms model a bit dynamic: so in Flow I call var form = new Form("cocoon:/forms/masterform_model"); my pipeline is as simple as this

Cform: Field 2 SelectionList, and the otherway??

2005-02-10 Thread oceatoon
Hi everyone I have a field widget(1) that becomes a selection list by a value change of another widget(2) in the page. This works great. But for a certain value of the widget(2) on change , I would need to make that selection list back into a field widget??? I found the removeSelectionList(); bu

Re: using resources from root sitemap in subsitemap?

2005-02-09 Thread oceatoon
Geert Josten wrote: > Hi all, I'm new on the list. > > I suppose entities will work, but sounds a bit awkward to me. Can't tell > about 2.1.6. Yes and the include tag seems just made for this but doesn't seem to work. > > A more general question though: In which cases have you all found > resour

using resources from root sitemap in subsitemap?

2005-02-08 Thread oceatoon
Hi everyone I have found old posts about this but then there were no include in the sitemap. I thought that now I would be able to include my resources into both my main sitemap and all others but it seems I can't. Am I doing something wrong? Or isn't this possible? in all sitemaps I would like

Re: cocoon.setAttribute in FlowScript broken?

2005-02-06 Thread oceatoon
Bernard Sirius wrote: > Actually my previous post/problem boils down to this: > session.setAttribute("name",value) has actually no > effect. Should be cocoon.session.setAttribute("name",value); - To unsubscribe, e-mail: [EMAIL

Re: jxtemplate: cocoon.request.locale??

2005-01-20 Thread oceatoon
Hi Jan > The variables ${cocoon} and ${cocoon.request.locale} should have values. > (if I use them in my jx, I do get an object/locale) Are you using jx > correctly (generator type="jx", or transformer)? Can you give more > information regarding the context? This is what I thought, here is my use

Re: jxtemplate: cocoon.request.locale??

2005-01-20 Thread oceatoon
by looking at the content of ${cocoon} it seems that the request object in that context is null??? where as the docs seem to specify it ?? Can someone confirm this? Thanks Tibor > Hi > > I trying to retreive the value of my locale paramater in the url from > within jx but , with a url /url?lo

jxtemplate: cocoon.request.locale??

2005-01-19 Thread oceatoon
Hi I trying to retreive the value of my locale paramater in the url from within jx but , with a url /url?locale=fr ${cocoon.request.locale} returns nothing. It seems to be in the docs though. am I doing something wrong or is it jx? Thanks Tibor -

i18n, locale modification to persist?

2005-01-19 Thread oceatoon
Hi everyone I've set up i18n localisation in our website - initialy a page is loaded with the browsers prefs - but then the user can click on one of the language flags adding the request parameter ?locale=fr (ex.) My question is: is there a way to set this new choice of "locale" as if it was the

Re: Flowscript gets executed twice

2004-12-18 Thread oceatoon
Dewi Roberts wrote: > Hi, > > I don't know if anybody has any suggestions, basically I'm having trouble > with flow script being run twice for every request and I'm not sure why. Hi Dewi I have noticed a very similar behavior when setting a setbookmark function in the flowscript , it runs throug

Re: javascript validation

2004-12-18 Thread oceatoon
Ben Anderson wrote: > Does cocoon have the ability to generate javascript validation for me? > I thought it did, but I can't the documentation anywhere and don't > see anything in the samples. > Thanks, > Ben If you mean client side validation, check this out New patch: http://issues.apache.or

RE: cforms repeater widget link styling

2004-12-18 Thread oceatoon
Philipp Rech wrote: >> > 1) how do I display a repeater widget as a "submit button"-type >> > hyperlink? >> > > hello, > i use hyperlinks to submit my cforms like this: > > name="form"> > ... > Submit also for repeaters maybe this can help delete row delete being the row action in your rep

RE: Repeater delete action Setting selected list programaticaly?

2004-11-29 Thread oceatoon
My apologies, I flew by the task tree sample Thanks Helma Tibor [EMAIL PROTECTED] wrote: > Have you looked at the task tree and the dream team samples? They use row > buttons for adding and deleting a row. > > Bye, Helma > >> -Original Message----- >> Fr

Repeater delete action Setting selected list programaticaly?

2004-11-28 Thread oceatoon
Hi every one I have a repeater when visualised has no checkboxes for selecting specific rows, Therefore I would like to set the list of selected rows through the fd:javascript tag on-action, I didn't see any samples with this, is there a way to do this? I could do this with a Flowscript through

Repeater addRow action button to link??

2004-11-24 Thread oceatoon
Hi everyone in our website, I tried to make a link (with the id and a href JS submit) out of the submit type button launching an addrow action on my repeater, but I can't get it to launch the action?? this is what is originaly done and I would want Add Room but this has a normal submit action??

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: JXTemplate jx:set ???

2004-11-22 Thread oceatoon
>> > >> > >> > >> > >> > >> > >> > >> > >> >> > > Watch the syntax: the name of the parameter is "keys", not "name"! > >> >> coco >> >> kiki >> >> > >> my finale meta tag should be >> > > Ah, miscommunication. I never understood that this was the intended use. Sorry >> and with th

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 > > > > or > or > > Regards, > Phil This might simply be a syntax problem Phil, once you're in a ${} you can m

RE: JXTemplate jx:set ???

2004-11-20 Thread oceatoon
Man I'm sorry to persist but > > > > > > > > >> >> coco >> kiki >> > my finale meta tag should be and with the above code, I get this : coco kiki close but not quite??? Do you know How I can put the body into the keys attribute? by the way isn't it supposed to ... Cheers and

RE: JXTemplate jx:set ???

2004-11-20 Thread oceatoon
Thanks Helma this looks like a good solution but by going through docs, I can't figure out how this will work for me this not being possible , coco kiki"/> I don't see how I can do this coco kiki ??? how do I put my keywords into an attribute ? Thanks for your help Tib

Re: Please Help me... cocoon.session

2004-11-19 Thread oceatoon
Are you sure your variable is in the session context? try forcing (just for test) in your flow, do cocoon.session.setAttribute("sessionId",yourvalue); Tibor angeloimm wrote: > Hi; i have tried to do as you told me... in my .jx i have: > > > > but i see nothing i don't understand what to

Re: Please Help me... cocoon.session

2004-11-19 Thread oceatoon
Why don't you retreive the content of your session variable directly from your session in the jx (it hs that context)? like ${cocoon.session.sessionId} Tibor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands,

RE: JXTemplate jx:set ???

2004-11-19 Thread oceatoon
Hi Helma I tried this but with no result, I still get the Object of the body and not the content. Also when I try to apply specific methods (like getNodeValue) on this w3c.Node Object, I get an empty result??? Has anybody managed to get the jx:set body to be used Thanks for the help Tibor [EMAI

RE: JXTemplate jx:set ???

2004-11-19 Thread oceatoon
ject , but how to extract it's content??? Thanks for the help Tibor > i would try > > and see if > this works > > -Original Message- > From: news [mailto:[EMAIL PROTECTED] Behalf Of oceatoon > Sent: 18 November, 2004 23:58 > To: [EMAIL PROTECTED] > Subje

JXTemplate jx:set ???

2004-11-18 Thread oceatoon
Hi everyone I have an odd behavior or I just can't see what I'm doing wrong, maybe someone will have an inlightened eye tot is: *** if I do this in my html.jx file: ${keywords} This works fine. the result is correctly : but now I n

Re: Repeater insert-node does not bind??

2004-11-18 Thread oceatoon
Thanks for the info Joerg Allways good too know :) Cheers Tibor Joerg Heinicke wrote: > On 18.11.2004 15:31, oceatoon wrote: >> I'm doing a basic repeater widget with an add button, >> I thought that when adding a row the new row would automatically bind to >> the i

Re: Repeater insert-node does not bind??

2004-11-18 Thread oceatoon
? Thanks for the help Tibor Joerg Heinicke wrote: > On 16.11.2004 10:46, oceatoon wrote: > >> So I'm back to my first question, because I had the initial binding for >> my repeater , I thought I had to add another bind in the on-insert-row. >> but it doesn'

Re: Repeater insert-node does not bind??

2004-11-16 Thread oceatoon
Thanks Joerg So I'm back to my first question, because I had the initial binding for my repeater , I thought I had to add another bind in the on-insert-row. but it doesn't bind on creation of the new node, ***

Re: Repeater insert-node does not bind??

2004-11-15 Thread oceatoon
Sorry for not answering I was a bit away but thanks for the reply. happy to know it is feasable :) I tried adding the fb:value binding in the insert node, but I'm very dubious about the syntax??? and it doesn't seem to work blabla Thanks for the help Tibor Joerg Heinicke wr

Re: jx syntax madness

2004-11-14 Thread oceatoon
Hi Jorg Have you tried to ParseInt? I had a similar problem and bizarely solved by multipying by 1 which seemd to cast my content into a integer. Tibor Jorg Heymans wrote: > note that the -3 or +3 are entirely random here, bottomline is that i > can subtract from the indexOf result, but not add t

RE: multivalue list - set a value greater than 1000

2004-10-07 Thread oceatoon
maybe this javascript caster could be of hand var int = parseInt(your_num_value_or_string,10) Rgards Tibor - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: multi-value widget question

2004-09-30 Thread oceatoon
Hi, This is an interesting post, you have allready answered a few questions I was asking myself about the custom bind for the multivalue widget, thx. this information should be added to the multifield Forms User Section. My question is: Is it possible to make a more complicated structured multiva

RE: Help: XPath to Jexl

2004-09-28 Thread oceatoon
Hi every on e The solution to use an imbricated forEach, where the first one is used with XPath and the second with the "end" "begin" attributes and therefore in JEXL. Within the first forEach use a "set" JXTemplate variable that takes a loop context relative XPath value, and then the variarble

CForm : repeater from a selection-list, or maybe somthing else ?

2004-09-23 Thread oceatoon
Hi everyone Sorry to post this again,but I'm kind of in front of a walls (and the wall in the news is tiring me ;(     I was wondering if it was possible to construct a repeater content from a  selection-list? or can I map the label value of my repeater to a selection list? I tried putting an  on:

RE: Help: XPath to Jexl

2004-09-23 Thread oceatoon
n my case it resulted in the discovery of a bug in > JXTemplateGenerator. > > Bye, Helma > > >> -Original Message- >> From: oceatoon [mailto:[EMAIL PROTECTED] >> Sent: Tuesday, 21 September, 2004 17:50 >> To: [EMAIL PROTECTED] >> Subject: RE:

RE: Help: XPath to Jexl

2004-09-22 Thread oceatoon
There must be a solution to this the previous post was just a correction in the post Please contribute an idea, coz I don't have any on how to get this through Thanks Tibor - To unsubscribe, e-mail: [EMAIL PROTECTED] For addit

RE: Help: XPath to Jexl

2004-09-21 Thread oceatoon
Yes offcourse Helma, thousand apologies, I tried to simplify the doc tags so it is "desc" instead of "description" [EMAIL PROTECTED] wrote: > Hi, > > Maybe I'm stating the perfectly obvious, but > >> ** >> My doc is like this: >> >> text0 >> text1 >> t

Re: Help: XPath to Jexl

2004-09-21 Thread oceatoon
Sylvain Wallez wrote: > oceatoon wrote: > >>Hi everyone >> >>I am having trouble retreiving an attribute in jexl. >>In jxpath, I can retreive it like this #{./description/@maxoc} >>but ${description.maxoc} doesn't work, can someone guide me please??

Help: XPah to Jexl

2004-09-20 Thread oceatoon
Hi everyone I am having trouble retreiving an attribute in jexl. In jxpath, I can retreive it like this #{./description/@maxoc} but ${description.maxoc} doesn't work, can someone guide me please?? Thanx Tibor - To unsubscribe,

JXTemplate Imbricated forEach tags

2004-09-19 Thread oceatoon
hello, My process starts in flow, where I pass an XML document to a JX file, where I have a first forEach loop () This works fine. But now I need to imbricate another forEach This works when I put an integer in the end attribute, but I need it's value to come from the context of the first

Re: JXTemplate, forEach logic loop on integer

2004-09-17 Thread oceatoon
Antonio Gallardo wrote: > oceatoon dijo: >> Hello everyone >> >> I looking to do a normal for loop in a jx page around an integer, >> I can't seem to get it done with the ForEach tag, >> does anybody have a technique or an idea for this? > > Hi, pleas

JXTemplate, forEach logic loop on integer

2004-09-17 Thread oceatoon
Hello everyone I looking to do a normal for loop in a jx page around an integer, I can't seem to get it done with the ForEach tag, does anybody have a technique or an idea for this? Thanks for the help Tibor - To unsubscribe

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 | outputlabe

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 o

Re: CForm bind JXPathContext

2004-09-10 Thread oceatoon
Well thanks for your help Marc, sorry for wasting your time with such nonsense ;) the solution was just there but I just was simply stuck one level to low and convinced of it too. it was just ../../../@id Thanks, I'll go hang myself now ;) Tibor Marc Portier wrote: --

Re: CForm bind JXPathContext

2004-09-08 Thread oceatoon
do a post bind transformation ?? I'm sure there's a way to XPoint at the whole binded document?? Thanks for the help Tibor Marc Portier wrote: > > > oceatoon wrote: > >> Hello every one >> >> I've allready posted about this earlier, with no an

CForm bind JXPathContext

2004-09-07 Thread oceatoon
Hello every one I've allready posted about this earlier, with no answer, I desperatly post it again because this is something I really need for a cforms function and I'm sure it's just some guidance away. on javascript binding a widget, I need to get some data that is outside the JXPathcontext. I

Re: Repeater widgets in "group" tabs

2004-09-06 Thread oceatoon
Yes you can There is an example in the form block I think it was the form2 sample Tibor Derek Hohls wrote: > Quick and simple question: > is it possible to have tags; > > if so, is there an example I can follow? > > Thanks > Derek > --

Access to Session attributes in JXTemplate ??

2004-09-05 Thread oceatoon
Hi everyone Is there a bug with accessing session objects from JXTemplate? I wanted to do ${cocoon.session.favory} in my file passed to a jx generator but the result is simply empty?? I read in the docs though, that this is possible, is it not? Thx Tibor ---

Re: javascript collection for cocoon

2004-09-01 Thread oceatoon
check out the org.w3c.dom Classes they are really usefull, as well as javascript inbeded DOM manipualtion Classes Maybe this can help you >function createDocument(uri, "") function createDocument(uri, nodename){ //Construct DOM document var document =createDocument(); var r =

Cform: Extent of JXPathContext in fb:on-bind/fb:javascript/fb:on-save

2004-08-30 Thread oceatoon
Hi everyone , I allready posted this question but it had no success maybe this will be more clear. I know it is possible to get data concerning( for ex :@id) the binded widget from within the binded XML doc with the JXPathContext, on bind/javascript/on-save, but I would like to retreive data in t

Re: Flow : File class delete() pb?

2004-08-29 Thread oceatoon
Thanks for the help That was it :) Johannes Textor wrote: > Hi, > > you probably wrote > > theFile["delete"]; > > try > > theFile["delete"](); > > instead. > > oceatoon wrote: > >>Hello JD Thanks for the answer >

Re: Flow : File class delete() pb?

2004-08-26 Thread oceatoon
Hello JD Thanks for the answer I tried your call, it calls the right function because it outputs a log.warn like this : function delete() {/* boolean delete() */} which seems correct, but unfortunetly has no effect on my File and doesn't delete :( is this syntax specific to FOM and cocoon? does it

RE: Attaching files in cocoon

2004-08-26 Thread oceatoon
Hi you dont necessarily need to use cocoon-upload.jar, the uploads work directly with cocoon you just have to enable uploads in the WEB-INF/web.xml,and set the path, dont forget the multipart request in the form in which you put a input-type-file, on submission the files should be in the path yo

Flow : File class delete() pb?

2004-08-25 Thread oceatoon
Hi every one I have been using the java.io.File class to manipulate uploads in the flow, every thing was fine till now as I need to use the delete() method on my object. I get Message: missing name after . operator Description: org.apache.avalon.framework.CascadingRuntimeException: missing name

binding from one repeater context into another??

2004-08-23 Thread oceatoon
Hi everyone This question follows my previous one but maybe not? What I would like to do is to have 2 repeaters follow eachother, one will be used to show the content(pictures, with a homemade fi:styling="picture" ) and the second to specify the path(upload widget). what isn't obvious, is that t

CForm Binding javascript on save JXPathContext

2004-08-23 Thread oceatoon
Hello everyone I am doing XML binding. On bind save, in a fb:javascript I would like to retreive information outside the context of my widget in the binded document?? But it seems JXPathContext points only to the piece of the document that concerns him ?? Is this true? Having binded my form to

  1   2   >