disabling HTMLarea widget

2007-05-23 Thread Rashel Shehata
hey guys, quick questions... how do i disable the HTMLarea widget? it appears that using the attribute state=disabled within fd:field does not work Thanks

Re: disabling HTMLarea widget

2007-05-23 Thread Rashel Shehata
only, so the state won't changed. try to disable the ajax. johnson Rashel Shehata ??: hey guys, quick questions... how do i disable the HTMLarea widget? it appears that using the attribute state=disabled within fd:field does not work Thanks

repeater state and children

2007-05-17 Thread Rashel Shehata
Hi, Im having a problem setting the state of a certain child of a repeater . I have a simple repeater defined as: fd:repeater id=selection fd:widgets fd:field id=response required=true state=disabled fd:labelResponse Label/fd:label fd:datatype base=string/

StringXMLizable and bean binding

2007-05-09 Thread Rashel Shehata
Hi, as part of a form I'm using a HTML area widget and saving the form into a java bean. I'm converting the HTML area data into xml using: bean.setData(new Packages.org.apache.cocoon.xml.StringXMLizable( model.HTMLdata)); the bean is been saved how i would like it to, but reloading the bean is

jx:forEach

2007-05-01 Thread Rashel Shehata
Hi, How do i get access to the loop index variable in a jx:forEach Loop? I have jx:forEach var=item items=${cocoon.session.getAttribute('array')} ... /jx:forEach I want teh index of the array that is accesed at each loop many Thanks

Re: jx:forEach

2007-05-01 Thread Rashel Shehata
but its not a repeater widget... i tried it and i dont get any value On 5/2/07, Kamal Bhatt [EMAIL PROTECTED] wrote: Rashel Shehata wrote: Hi, How do i get access to the loop index variable in a jx:forEach Loop? I have jx:forEach var=item items=${cocoon.session.getAttribute('array

Re: different Sax events

2007-04-25 Thread Rashel Shehata
Oosteinde 11 1017WT Amsterdam The Netherlands Tel +31 (0)20 5224466 - [EMAIL PROTECTED] / http://www.hippo.nl -- -Original Message- *From:* Rashel Shehata [mailto:[EMAIL

different Sax events

2007-04-23 Thread Rashel Shehata
Hi, I'm trying to use the jx transformer to generate both the form template and model xml.. When I take the serialized xml output from my generator, save it as a file(from the browser) and use that file as input to the default generator to start a pipeline, the form displays probably... However

Re: dynamic cForm generation

2007-04-22 Thread Rashel Shehata
really get what's happening Thanks a million On 4/19/07, Rashel Shehata [EMAIL PROTECTED] wrote: Hi, Thank you all for all the help... I am trying the suggestion found in https://issues.apache.org/jira/browse/COCOON-1418 so many thanks for the hint Regards On 4/18/07, Jason Johnston

Re: dynamic cForm generation

2007-04-18 Thread Rashel Shehata
Hi Florian I dynamically create the form definition and template by calling 2 seperate flowscript functions: function create_form_def(){ cocoon.sendPage(form_model-pipeline.xsp , {questions: questionRegistry.getAllQuestions()}); } function create_form_template(){

Re: dynamic cForm generation

2007-04-18 Thread Rashel Shehata
an example/snippet of one of these .xml files ? Bart 2007/4/18, Rashel Shehata [EMAIL PROTECTED]: Hey, I'm trying to generate cocoon forms dynamically. atm I create the cForm model xml dynamically using jx generator; this is what i have: in my flowscript: cocoon.sendPage(form_model

Re: dynamic cForm generation

2007-04-18 Thread Rashel Shehata
Hi Bart Thanks for your help, but i have tried that path in the morning and unfortunally was unsuccessful... when i call var form = new Form(form_model-pipeline.xsp , {questions: questionRegistry.getAllQuestions()}); from my flowscipt, cocoon actually looks for the file form_model-

Re: dynamic cForm generation

2007-04-18 Thread Rashel Shehata
Hi, form_model-pipeline.xsp is not a file... what I was thinking of doing is using the output of a pipeline entry as an input for the form constructor. so a call from flowscript: cocoon.sendPage(form_model-pipeline.xsp , {questions: questionRegistry.getAllQuestions()}); will be matched

Re: dynamic cForm generation

2007-04-18 Thread Rashel Shehata
regards, Philippe Rashel Shehata a écrit : Hi Bart, Ok so to create the form definition xml the jx generator uses the following xml file: I pass it an array object (questionRegistry.getAllQuestions()) that contains a list of all the questions to be created in the form ?xml version=1.0

dynamic cForm generation

2007-04-17 Thread Rashel Shehata
Hey, I'm trying to generate cocoon forms dynamically. atm I create the cForm model xml dynamically using jx generator; this is what i have: in my flowscript: cocoon.sendPage(form_model-pipeline.xsp , {questions: questionRegistry.getAllQuestions()}); and in my pipeline: map:match

problem

2007-03-28 Thread Rashel Shehata
Im new to using cocoon and so far so good, but i did run into a few errors regarding bean bindings and cforms. cocoon version #: Cocoon 2.1.10 servlet engine: jetty the problem: following the bindings sample(samples blocksforms form2bean.flow) i created my own framework in the sitemap:

repeater binding

2007-03-28 Thread Rashel Shehata
Hey everyone, im having problems binding my repeater widget so i attempted another method to dynamically create repeater rows and fill it with values. in the model file, i defined a repeater widget to be: fd:repeater id=availability orderable=true fd:widgets fd:output id=id