Re: How to handle xml-fragment from db
Hi Robert mainly the returned XmlFragment that u retrieve from DB as String must be parsed before u can deal with it ... that is why u have the code string for the symbol --- lt; ... I faced this problem also but I didn't use XSP ...I implemeted a Transformer to get this String fragment and parse it and stream it out into the pipline to be proccesed as u want through ur stylesheet. so u must parse the String before u deal with it. I wish that will help Mohamed El-Refaey Robert Sösemann wrote: Hey, who can help to solve the following problem? In my relational db I have a column with XHTML fragments and want to bring it into my cocoon pipline the following way. DB ROW CONTENT: --- ...Pfoobar/PB GENERATOR: --- XSP that extracts this rows value by ... TXT esql:get-string column=i.text/ /TXT TRANSFORMER: XSL that tries to obtain this: ... TD xsl:value-of select=TEXT/./ /TD THE RESULT THAT I WANT: - ... TD ...Pfoobar/PB /TD WHAT I GET INSTEAD: --- ... TD lt;Pgt; --- only escaped text /TD ... I also tried to use esql:get-xml column=i.text/ and xsl:text disable-output-escaping=yes. But without success. Whats wrong??? - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: XMLForm and textbox: how to protect
Hallo Sylvain I think the property of textbox to be uneditable by the user is not supported in the XMLForm ... But u can --- only make a getter method for this field without a setter method in the model bean ... so if the user tried to change the text box value actually it will not changed . But ofcourse it is aw orkaround solution not optimal one OR u can use that value as xf:output label not a text box . Hope it will help Mohamed [EMAIL PROTECTED] wrote: Hello, In XMLForm, is it possible to protect the default value in a textbox against the user changes. I want to display the field in the form (with the default value) but it shouldn't be possible to change the value of it. Any idea? Thank you Sylvain - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xmlform and build
Hallo Sylvain Yes, it is bossible to compile the new Java files and put them under the WEB-INF classes directory under cocoon and the ramaing files relating to schematron and XMLForms files and stylesheets put them as a common web application under cocoon samples or whatever u want. I wish this will help Mohamed [EMAIL PROTECTED] wrote: hello, I'm trying to write my first XMLForm form and I follow the doc example (wizard howto). In the last step (step 5) you have to (re)build the entire Cocoon app using the command build ... webapp to have a new cocoon.war. Is it possible to compile only the new java files and add the .class directly in the Tomcat webapps directory (without using the .war). And when you want the up-to-date .war, you make the command jar ?? Thank you for your suggestions and experiences. Sylvain Thevoz - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xmlform and build
Hallo Sylvain nice, that this help u :) . ofCourse it is easy to extend this sample to write data entered in the XMLForms into persistance storage[DB] for e.g : if u use EJB as a persistance layer in ur project , u can easily in the Perform() method in ur Action after u get ur model Bean: DataBean jBean = (DataBean) getForm().getModel(); u can extract the entered data from this bean, and sned it in any way[Collection data type or whatever u accept the user data] along with a VO(value-object) to be entered into DB by the aid of EJB Class that take this VO and perform the Insert query or whatever the command u need to do with DB I think this is a breif answer but I wish it give u the way Thanx Mohamed [EMAIL PROTECTED] wrote: Yes it will help me, thank you Mohamed. Do you know how to extend this sample to write data you entered in persistence storage (database)? Sylvain -Message d'origine- De: Mohamed El-Refaey [mailto:[EMAIL PROTECTED]] Date: mardi, 29. octobre 2002 22:13 : [EMAIL PROTECTED] Objet: Re: xmlform and build Hallo Sylvain Yes, it is bossible to compile the new Java files and put them under the WEB-INF classes directory under cocoon and the ramaing files relating to schematron and XMLForms files and stylesheets put them as a common web application under cocoon samples or whatever u want. I wish this will help Mohamed [EMAIL PROTECTED] wrote: hello, I'm trying to write my first XMLForm form and I follow the doc example (wizard howto). In the last step (step 5) you have to (re)build the entire Cocoon app using the command build ... webapp to have a new cocoon.war. Is it possible to compile only the new java files and add the .class directly in the Tomcat webapps directory (without using the .war). And when you want the up-to-date .war, you make the command jar ?? Thank you for your suggestions and experiences. Sylvain Thevoz - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: xmlform and build
Hi Sylvain the following snippet is from the WizardAction in the cocoon XMLForm Sample public Map perform (){ // get the actual model which this Form encapsulates // and apply additional buziness logic to the model UserBean jBean = (UserBean) getForm().getModel(); jBean.incrementCount(); if ( getCommand().equals( CMD_NEXT ) getForm().getViolations () != null ) { // errors, back to the same page return page( getFormView() ); } else{ getForm().clearViolations(); String command = getCommand(); String formView = getFormView(); if ( formView.equals ( VIEW_USERID ) ) { if ( command.equals( CMD_NEXT ) ){ return page( VIEW_DEPLOYMENT ); } } else if ( formView.equals ( VIEW_DEPLOYMENT ) ){ if ( command.equals( CMD_NEXT ) ){ return page( VIEW_SYSTEM ); } else if( command.equals( CMD_PREV ) ) return page( VIEW_USERID ); } else if ( formView.equals ( VIEW_SYSTEM ) ){ if ( command.equals( CMD_NEXT ) ){ return page( VIEW_CONFIRM ); } else if( command.equals( CMD_PREV ) ) return page( VIEW_DEPLOYMENT ); } else if ( formView.equals ( VIEW_CONFIRM ) ) { if ( command.equals( CMD_NEXT ) ){ - here u can call ur Businees method that insert this data into DB for e.g : - call the method : submitData(jBean); Form.remove( getObjectModel(), getFormId() ); return page( VIEW_END ); } else if( command.equals( CMD_PREV ) ) return page( VIEW_SYSTEM ); } } return page( VIEW_START ); } -- so u can implement this method in the SAME Action private void submitData(UserBean bean){ if u want for e.g input the user data into DB: String fName = bean.getFirstName(); String lastName =bean.getLastName(); String age =bean.getAge(); String email =bean.getEmail(); then now u have the data entered by the User so u can map or insert these data in whatever mapping tool u have and then this tool will do the rest as I think. (In my case I use EJB here to insert these data into DB but In OJB I don't know how it is implemented) } BTW: u can find this action code in the cocoon source distribution in the pacjage : org.apache.cocoon.samples.xmlform I wish this clarify ur needs Thanx Mohamed [EMAIL PROTECTED] wrote: Thank you Mohamed. I don't use EJB but I use an RDBMS-object mapping tool named OJB. I haven't enough know-how in XMLForm to apply easily what you said. Have you a short example to demonstrate it? Thank you Sylvain -Message d'origine- De: Mohamed El-Refaey [mailto:[EMAIL PROTECTED]] Date: mercredi, 30. octobre 2002 00:51 : [EMAIL PROTECTED] Objet: Re: xmlform and build Hallo Sylvain nice, that this help u :) . ofCourse it is easy to extend this sample to write data entered in the XMLForms into persistance storage[DB] for e.g : if u use EJB as a persistance layer in ur project , u can easily in the Perform() method in ur Action after u get ur model Bean: DataBean jBean = (DataBean) getForm().getModel(); u can extract the entered data from this bean, and sned it in any way[Collection data type or whatever u accept the user data] along with a VO(value-object) to be entered into DB by the aid of EJB Class that take this VO and perform the Insert query or whatever the command u need to do with DB I think this is a breif answer but I wish it give u the way Thanx Mohamed [EMAIL PROTECTED] wrote: Yes it will help me, thank you Mohamed. Do you know how to extend this sample to write data you entered in persistence storage (database)? Sylvain -Message d'origine- De: Mohamed El-Refaey [ mailto:[EMAIL PROTECTED]] Date: mardi, 29. octobre 2002 22:13 : [EMAIL PROTECTED] Objet: Re: xmlform and build Hallo Sylvain Yes, it is bossible to compile the new Java files and put them under the WEB-INF classes directory under cocoon and the ramaing files relating to schematron and XMLForms files and stylesheets put them as a common web application under cocoon samples or whatever u want. I wish this will help Mohamed [EMAIL PROTECTED] wrote: hello, I'm trying to write my first XMLForm form and I follow the doc example (wizard howto). In the last step (step 5) you have to (re)build the entire Cocoon app using the command build ... webapp to have a new cocoon.war. Is it possible to compile only the new java files and add the .class directly in the Tomcat webapps directory (without using the .war). And when you want the up-to-date .war, you make the command jar ?? Thank you for your suggestions and experiences. Sylvain Thevoz - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED] For additional commands, e-mail: mailto:[EMAIL PROTECTED] [EMAIL PROTECTED
Re: xmlform and build
Hi Sylvain I had a quick look on the OJB (Object Relational Bridge tool) and I think now it will be easy to enter the Data into Persistance storage have a look at http://jakarta.apache.org/ojb/tutorial1.html in the part relating to Storing Objects and u can see what happend. // now perform persistence operations try { //1 . open transaction broker.beginTransaction(); //2 . make the new object persistent broker.store(newProduct); broker.commitTransaction(); } catch (PersistenceBrokerException ex) { // if something went wrong: rollback broker.abortTransaction(); System.out.println(ex.getMessage()); ex.printStackTrace(); } I wish this help u Mohamed [EMAIL PROTECTED] wrote: Thank you Mohamed. I don't use EJB but I use an RDBMS-object mapping tool named OJB. I haven't enough know-how in XMLForm to apply easily what you said. Have you a short example to demonstrate it? Thank you Sylvain -Message d'origine- De: Mohamed El-Refaey [mailto:m.refaey;imkenberg.de] Date: mercredi, 30. octobre 2002 00:51 À: [EMAIL PROTECTED] Objet: Re: xmlform and build Hallo Sylvain nice, that this help u :) . ofCourse it is easy to extend this sample to write data entered in the XMLForms into persistance storage[DB] for e.g : if u use EJB as a persistance layer in ur project , u can easily in the Perform() method in ur Action after u get ur model Bean: DataBean jBean = (DataBean) getForm().getModel(); u can extract the entered data from this bean, and sned it in any way[Collection data type or whatever u accept the user data] along with a VO(value-object) to be entered into DB by the aid of EJB Class that take this VO and perform the Insert query or whatever the command u need to do with DB I think this is a breif answer but I wish it give u the way Thanx Mohamed [EMAIL PROTECTED] wrote: Yes it will help me, thank you Mohamed. Do you know how to extend this sample to write data you entered in persistence storage (database)? Sylvain -Message d'origine- De: Mohamed El-Refaey [ mailto:m.refaey;imkenberg.de] Date: mardi, 29. octobre 2002 22:13 À: [EMAIL PROTECTED] Objet: Re: xmlform and build Hallo Sylvain Yes, it is bossible to compile the new Java files and put them under the WEB-INF classes directory under cocoon and the ramaing files relating to schematron and XMLForms files and stylesheets put them as a common web application under cocoon samples or whatever u want. I wish this will help Mohamed [EMAIL PROTECTED] wrote: hello, I'm trying to write my first XMLForm form and I follow the doc example (wizard howto). In the last step (step 5) you have to (re)build the entire Cocoon app using the command build ... webapp to have a new cocoon.war. Is it possible to compile only the new java files and add the .class directly in the Tomcat webapps directory (without using the .war). And when you want the up-to-date .war, you make the command jar ?? Thank you for your suggestions and experiences. Sylvain Thevoz - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: mailto:cocoon-users-unsubscribe;xml.apache.org [EMAIL PROTECTED] For additional commands, e-mail: mailto:cocoon-users-help;xml.apache.org [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: mailto:cocoon-users-unsubscribe;xml.apache.org [EMAIL PROTECTED] For additional commands, e-mail: mailto:cocoon-users-help;xml.apache.org [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: mailto:cocoon-users-unsubscribe;xml.apache.org [EMAIL PROTECTED] For additional commands, e-mail: mailto:cocoon-users-help;xml.apache.org [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your
Re: internalisation with schematron (XML-Form)
Hallo Ivelin, I already wrote a How To Document for this and uploaded it using Bugzilla . I hope it will be clear and easy to follow. and its Bug#14015. Thanx in advance Mohamed El-Refaey Ivelin Ivanov wrote: Mohamed, would you consider submitting your email as a how-to document in bugzilla. The question about i18n with XMLForm is popping constantly. Ivelin - Original Message - From: Mohamed El-Refaey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, October 27, 2002 4:08 PM Subject: Re: internalisation with schematron (XML-Form) Hi Michael , I faced the same problem and here is what I did when I read the mailing list regarding the i18n with Schematron validation error : 1- the XMLForm file is : xf:password ref=/password xf:captioni18n:textPassword/i18n:text/xf:caption xf:violations class=error/ /xf:password 2- the Schematron file : rule context=/password assert test=string-length(.) gt; 7 The Password Should be @ least 8 character. /assert /rule /pattern 3-the sitemap : map:transform type=xmlform label=xml/ map:transform src=xforms/stylesheets/translate.xsl/ map:act type=locale map:transform type=i18n map:parameter name=locale value={locale}/ /map:transform /map:act in which the translate.xsl file is the that what they r talking about in the mailing list : ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xf=http://xml.apache.org/cocoon/xmlform/2002; xmlns:i18n=http://apache.org/cocoon/i18n/2.0; xsl:template match=document document xsl:apply-templates/ /document /xsl:template xsl:template match=xf:violation xf:violation i18n:text xsl:value-of select=./ /i18n:text /xf:violation /xsl:template xsl:template match=node() priority=-1 xsl:copy xsl:copy-of select=@*/ xsl:apply-templates/ /xsl:copy /xsl:template /xsl:stylesheet and the Catalog file : message key=PasswordPassword/message I wish this will help u Mohamed Michael Bald wrote: Hi! I have a problem to translate the error-massages of the schematrons. I hope someone can give me a hint to solve my problem. I want to translate the Error Message of my pattern in the Schematron file. But I don´t know exactly how. I tried the way I found in the Mail archives of cocoon, but it didn´t work in my case. I hope someone can answer me how to include the internalisation in my schematron file. In the xml file I have following: xf:form xf:password ref=/password xf:caption i18n:textpassword_field/i18n:text /xf:caption xf:violation class=error/ /xf:form The schematron file has following pattern: rule context=/password assert test=string-lenght... Error_message that I want to translate! /assert /rule And the translation file has allready: ... message key=password_fieldPassword/message message key=The password is to long!/message ... sitemap: ... map:generate src= map:transform type=i18n map:parameter name=locale value={./locale}/ /map:transform map:transform type=xmlform label=xml map:transform src= ... I tried allready to switch the transformers...but it didn´t work. Hopefully someone can help me with this problem. Greetings Michael - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: internalisation with schematron (XML-Form)
Hi Michael , I faced the same problem and here is what I did when I read the mailing list regarding the i18n with Schematron validation error : 1- the XMLForm file is : xf:password ref=/password xf:captioni18n:textPassword/i18n:text/xf:caption xf:violations class=error/ /xf:password 2- the Schematron file : rule context=/password assert test=string-length(.) gt; 7 The Password Should be @ least 8 character. /assert /rule /pattern 3-the sitemap : map:transform type=xmlform label=xml/ map:transform src=xforms/stylesheets/translate.xsl/ map:act type=locale map:transform type=i18n map:parameter name=locale value={locale}/ /map:transform /map:act in which the translate.xsl file is the that what they r talking about in the mailing list : ?xml version=1.0? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:xf=http://xml.apache.org/cocoon/xmlform/2002; xmlns:i18n=http://apache.org/cocoon/i18n/2.0; xsl:template match=document document xsl:apply-templates/ /document /xsl:template xsl:template match=xf:violation xf:violation i18n:text xsl:value-of select=./ /i18n:text /xf:violation /xsl:template xsl:template match=node() priority=-1 xsl:copy xsl:copy-of select=@*/ xsl:apply-templates/ /xsl:copy /xsl:template /xsl:stylesheet and the Catalog file : message key=PasswordPassword/message I wish this will help u Mohamed Michael Bald wrote: Hi! I have a problem to translate the error-massages of the schematrons. I hope someone can give me a hint to solve my problem. I want to translate the Error Message of my pattern in the Schematron file. But I don´t know exactly how. I tried the way I found in the Mail archives of cocoon, but it didn´t work in my case. I hope someone can answer me how to include the internalisation in my schematron file. In the xml file I have following: xf:form xf:password ref=/password xf:caption i18n:textpassword_field/i18n:text /xf:caption xf:violation class=error/ /xf:form The schematron file has following pattern: rule context=/password assert test=string-lenght... Error_message that I want to translate! /assert /rule And the translation file has allready: ... message key=password_fieldPassword/message message key=The password is to long!/message ... sitemap: ... map:generate src= map:transform type=i18n map:parameter name=locale value={./locale}/ /map:transform map:transform type=xmlform label=xml map:transform src= ... I tried allready to switch the transformers...but it didn´t work. Hopefully someone can help me with this problem. Greetings Michael - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Schematron question
Hallo Ivelin , Thank u very much The Second Solution worked well :) ...: rule context=/ assert test=string-length(password) gt; 7 The Password Should be @ least 8 character. /assert assert test=password == passwordConfirm The Password Should be the same as before. /assert /rule but Note that it must be only one equal sign not 2 i.e test=password=passwordConfirm Thank u Ivelin Mohamed Ivelin Ivanov wrote: How about: rule context=/password assert test=string-length(.) gt; 7 The Password Should be @ least 8 character. /assert /rule rule context=/passwordConfirm assert test=../password == . The Password Should be the same as before. /assert /rule If this still doesn't work, try rule context=/ assert test=string-length(password) gt; 7 The Password Should be @ least 8 character. /assert assert test=password == passwordConfirm The Password Should be the same as before. /assert /rule - Original Message - From: Mohamed El-Refaey [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Monday, September 23, 2002 6:42 PM Subject: Schematron question Hi all I have a question related to Schematron validation : How I can validate a 2 Text box in XMLForm values that they are identical for example (a password should be entered twice by the user and it must be identical in both field) I tried to write the Rule in the schematron validation file as follow but it didn't work well : rule context=/password assert test=string-length(.) gt; 7 The Password Should be @ least 8 character. /assert /rule rule context=/passwordConfirm assert test=./password != . The Password Should be the same as before. /assert /rule also I tried : rule context=/passwordConfirm assert test=./password !=/passwordConfirm The Password Should be the same as before. /assert /rule but unfortunately I have no result .. any body tried this before ? Thanx in advance - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Schematron question
Hi all I have a question related to Schematron validation : How I can validate a 2 Text box in XMLForm values that they are identical for example (a password should be entered twice by the user and it must be identical in both field) I tried to write the Rule in the schematron validation file as follow but it didn't work well : rule context=/password assert test=string-length(.) gt; 7 The Password Should be @ least 8 character. /assert /rule rule context=/passwordConfirm assert test=./password != . The Password Should be the same as before. /assert /rule also I tried : rule context=/passwordConfirm assert test=./password !=/passwordConfirm The Password Should be the same as before. /assert /rule but unfortunately I have no result .. any body tried this before ? Thanx in advance - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faq/index.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
continuation ID
Daniel Fagerstrom wrote: Here, the parameter "form" is a Form object and "view" is a string. I don'tfollow the interfaces in XMLForm in every detail. Note that thanks to thecontinuations, we can group together the form page code, followed by thecode that takes care of its output and not the other way around: take careof input from last form followed by generating the next form page, as in thesitemap. map:match pattern="*.html" map:generate src="{1}.xml"/ map:transform type="xmlform" map:parameter name="id" value="{id}"/ map:parameter name="action" value="{continuation}"/ map:transform/ map:transform src="stylesheets/wizard2html.xsl"/ map:transform src="stylesheets/xmlform2html.xsl"/ map:serialize type="html"//map:match But I tried to use the action attribute of the form by the value of the continuation or any other value, but it doesn't work. is this syntax is precise or it is just an idea of how to use the continuation into the XMLTransformer or this action parameter is different than the action of the XMLForm ?? any help please ? Mohamed
where is the FlowMap Docs ?
Hi all in the last weeks I noticed a very interesting discussion about the FlowMap (flow control)and continuation conceptand integrating the XMLForm sample with this layer, and I had checked out the lastest CVS version of the cocoon but I didn't found any new Docs or samples relating to this discussion. I wish there will be some docs to summarize and cocument this interesting Discussion of that important topic. Thank you
Re: DataBinding with XMLForm
Ivelin, Thanx, for ur interest. But I still ask if it is possible create and repeat XMLForm dynamically according to the no. of products retrieved from the DataBase and HOW I can manage the DataBinding of each individual form instance with its coresponding JavaBeans as its form model. waiting for ur reply. Thanx Mohamed Hi all, I'm very interested in the cocoon XMLForm and, but I'd like to ask a question: is it possible to repeate XMLForm dynamically according to data from Database ?and HOW I can make data binding of this retrived data with each repeated form instance.? for Example : I have products from the DB and I wanna to display these products in XMLForms to update their quantity in it -- Product1 ID :12236 Name :p1 -- Description: any description. quantity(Text Box) --- Update Button --- -- --- --- Product2 ID :12256 Name :p2 -- Description: any description. quantity(Text Box) --- Update Button --- -- --- --- Product3 ID :12776 Name :p3 -- Description: any description. quantity(Text Box) --- Update Button --- -- --- or it is better to make all these data as container Bean that contain products beans and this container is binded with only one Big form instance to process it instead of one form instance for each product. ? any help ? Thanx in advance Mohamed
DataBinding with XMLForm
Hi all, I'm very interested in the cocoon XMLForm and, but I'd like to ask a question: is it possible to repeate XMLForm dynamically according to data from Database ?and HOW I can make data binding of this retrived data with each repeated form instance.? for Example : I have products from the DB and I wanna to display these products in XMLForms to update their quantity in it -- Product1 ID :12236 Name :p1 -- Description: any description. quantity(Text Box) --- Update Button --- -- --- --- Product2 ID :12256 Name :p2 -- Description: any description. quantity(Text Box) --- Update Button --- -- --- --- Product3 ID :12776 Name :p3 -- Description: any description. quantity(Text Box) --- Update Button --- -- --- or it is better to make all these data as container Bean that contain products beans and this container is binded with only one Big form instance to process it instead of one form instance for each product. ? any help ? Thanx in advance Mohamed
Re: HowTo Cocoon pages
Hi I just try to configure and run the example of cocoon2 and tomcat 4 u made on JBuilder 5 and followed all the configuration instruction u put in the project and it rais an internal server error. I wish u tell me how to solve this problem. Thanx Mohamed - Original Message - From: DURDINA Michal [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, February 06, 2002 4:42 PM Subject: HowTo Cocoon pages Hello Cocoon users, I have just completed few tutorial pages along with examples about developing applications in Cocoon2. The location is http://durdo.miesto.sk/Cocoon2HowTo/index.html. At the time these pages consist of only 3 articles: * Subsitemap - creating the empty project before you move on * Data connection - connecting to DBMS, generating XML document with data from database * JBuilder for Cocoon developing - overview of JBuilder in scope of Cocoon2 developing, settings, hints, web application example These articles evolved with time, the last one is most comprehensive and contains working example of simple Cocoon2 web application. Tech info: All docs are written using Apache Documentation DTD and can be easily integrated to greater documentation. If anybody has similar pages we can merge or has better repository (domain) for these pages, please contact me. With regards, -- MisoD -- Michal Durdina - [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - Please check that your question has not already been answered in the FAQ before posting. http://xml.apache.org/cocoon/faqs.html To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]