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

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 that it

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

Re: Sitemap : Selector inside an Aggregation

2005-07-19 Thread oceatoon
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 possible in some way ? I manage

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 map:when test=region or province 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 multiple value in map:when tag ?

2005-07-19 Thread oceatoon
, '.') = 'xmap') liinput type = checkbox name = filesname value = {$fullpath} xsl:value-of select=@name/ /input/li /xsl:if Good luck. Jarry On 7/19/05, oceatoon [EMAIL PROTECTED] wrote: Hi While working with selectors I would like to test more than one

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: map:generate src= map:parameter name=coco value=oon/ /... I have been using JX till

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

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

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

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! Sorry form is var form = event.source.form; - To unsubscribe, e-mail: [EMAIL PROTECTED]

Error Handling : what are Cocoons exceptions ?

2005-05-17 Thread oceatoon
Hi every one I have these exceptions declared in my selectors exception class=ResourceNotFoundException name=not-found/ exception class=InvalidContinuationException name=invalid-continuation/ exception class=java.lang.Throwable unroll=true/ All these errors are well handled by the

Re: create a file ...

2005-05-10 Thread oceatoon
/docs/api/java/io/FileOutputStream.html I think you'll find all you need Tibor Tibor, What object to use for 'document' ? I tried with var doc=test; saveDocument (doc, test.txt) - Can't find method org.apache.cocoon.xml.dom.DOMStreamer.stream(string) Regards, Fab From: oceatoon [EMAIL

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 save to

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 anybody

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

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

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 ? :)

Re: Slashes in the URL match

2005-05-05 Thread oceatoon
Martynas Jusevicius wrote: Hi, I have map:match pattern=** 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

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

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 so on.

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-InF as you set

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: map:call continuation did not send a response, The problem appears when the Flow tries to re-enter the ShowForm after the onchange submit, Failed to execute

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 =

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 had this nasty problem here, too. It seems to be a bug

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+.

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. In the Form validation docs, it says upload widget supports

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

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

Re:(Solved) save XML document to disk?

2005-04-04 Thread oceatoon
not flush/close outputstream: + error); } } } } posté comme article et comme courrier 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 was wondering if there allready existed

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: fd:output id=housepath fd:datatype base=string/ /fd:output bind this to your database value. in my template: ft:widget id=housepath fi:styling type=picture/ /ft:widget I added a styling in the

Re: i18n Transformation in subsitemap??

2005-03-31 Thread oceatoon
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 developping a new module using a sub-sitemap, my catalogues aren't found and transformation gives all unstranslated??? There must be something

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

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 :) to

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

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

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: jx:set var=langlist value=en,fr,de,es/ jx:forEach var=langitem items=${java.util.StringTokenizer( langlist , ',' )} ${langitem

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, Cocoon is

Yet another JXTemplate Beatle???

2005-02-17 Thread oceatoon
Hi every one I have been using this since a while in many different situations: jx:set var=langlist value=en,fr,de,es/ jx:forEach var=langitem items=${java.util.StringTokenizer( langlist , ',' )} ${langitem} /jx:forEach Not very complicated, hey ;-) Today I wanted to make my CForms model a bit

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: jx:set var=langlist value=en,fr,de,es/ jx:forEach var=langitem items=${java.util.StringTokenizer( langlist , ',' )} ${langitem} /jx:forEach Not very complicated, hey ;-) Today I

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();

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 resources

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

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

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 case

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

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

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: ft:form-template action=#{$continuation/id}.continue method=POST name=form ... a href=javascript: document.form.submit() Submit /a

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:

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 through

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- From: oceatoon [mailto:[EMAIL PROTECTED

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 input name=addroom type=submit id=addroom value=Add a Room /

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'}

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-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 , meta name=keywords content=i18n:text key=cocococo/i18n:text i18n:text key=kikikiki/i18n:text/ I don't see how I can do this jx:macro name=metak

RE: JXTemplate jx:set ???

2004-11-20 Thread oceatoon
Man I'm sorry to persist but jx:macro name=metak jx:parameter name=keys/ meta keys=${keys} jx:evalBody/ /meta /jx:macro metak name=keys i18n:text key=cocococo/i18n:text i18n:text key=kikikiki/i18n:text /metak my finale meta tag should be meta keys=coco kiki/ and with the

RE: JXTemplate jx:set ???

2004-11-19 Thread oceatoon
, but how to extract it's content??? Thanks for the help Tibor i would try jx:set var=keywords value=fssgffdgfdg sdfqfqs qfsdqq/ and see if this works -Original Message- From: news [mailto:[EMAIL PROTECTED] Behalf Of oceatoon Sent: 18 November, 2004 23:58 To: [EMAIL PROTECTED] Subject

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

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

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: input type=text name=sessionId

Re: Repeater insert-node does not bind??

2004-11-18 Thread oceatoon
, is this supposed to be like this ? 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't bind on creation

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 insert-node (item id= key=cocorico

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: jx:set var=keywordsmeta name=keywords content=klgjgjkh//jx:set ${keywords} This works fine. the result

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 fb:insert-row mynode id=descblabla/desc/mynode

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 to

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

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 can

RE: Help: XPath to Jexl

2004-09-23 Thread oceatoon
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: Help: XPath to Jexl Yes offcourse Helma, thousand apologies, I tried to simplify the doc

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  

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

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?? Jexl is a JavaBeans-oriented expression language

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: rooms roomdesc 

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 () jx:forEach select=#{/document/membership/rooms/room} This works fine. But now I need to imbricate another forEach jx:forEach begin=1 end=#{./desc/@maxoc} step=1 This works when

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

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, please check this: http://cocoon.apache.org/2.1/userdocs/flow

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

CForm : repeater from a selection-list, or

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

Re: CForm bind JXPathContext

2004-09-08 Thread oceatoon
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 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

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.

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, root/) 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

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 I tried your call, it calls the right function because it outputs a log.warn like this : function

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

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

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

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

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

Re: CForms: Bind Onload upload widget???

2004-08-19 Thread oceatoon
= jxpathContext.getValue(@path);  var uploadFile = new java.io.File(path);  var uploadFilePart = Packages.org.apache.commons.httpclient.methods.multipart.FilePart(path,uploadFile);   widget.setValue(uploadFilePart);   /fb:load-form  /fb:javascript Thanks TIbor oceatoon wrote: Hello everyone I

Re: CForms: Bind Onload upload widget???

2004-08-19 Thread oceatoon
Thanks Bruno Indeed , the multiPart type isn't the same , This doesn't work. well as anybody else would do in this case , I changed the idea :) Anyhow thanks for he help T. Bruno Dumon wrote: On Thu, 2004-08-19 at 11:54, oceatoon wrote: Hello I am trying to declare a Java Pacakge

CForms: Onload upload widget getPart(string)???

2004-08-17 Thread oceatoon
Hello everyone I am faced with a pb to recover the content of my uplaod widget on bind load, since what I really bind onSave is the on server path(string) of my uploaded file. Therefore when I bind onLoad, the widget yiels offcourse because of getting a string instead of a Part type Object. So I

Extracting selection list labels ???

2004-08-14 Thread oceatoon
Hi every one, I need an opinion or other solution on this, I have a JX pipeline executed from a flow sendPage(pipe,{doc:doc}); where doc is a DOM document. and I fill by xpath(jx) my final page. My problem is that in my doc, there are fields that came from selection boxes, and for

Re: [CForms] Setting the limit for repeater

2004-08-06 Thread oceatoon
There was an older post giving good ideas about this http://www.mail-archive.com/users%40cocoon.apache.org/msg16974.html but it hasn't been quite settled on how to do this. I will be doing something like this soon : - I would add a visible=show/hide attribute to the buttons that need it -

Re: Flow : Accessing Repeater Rows value in Flow

2004-08-04 Thread oceatoon
You say right, something must be wrong :) Here's My Form definition: !--***House uploads -- fd:repeater id=houseuploads initial-size=1 fd:widgets fd:output

  1   2   >