xinclude support or not?
is there any working example under cocoon i try to use xinclude inside an .xsp but without success my code quotation xi:include href=source.xml / /quotation is somethingi have missed or just there is no xinclude support from cocoon? thnx Stavros Kounis - 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: xinclude support or not?
Should work without any problem. Did you declare the namespace prefix xi? How does your sitemap matcher look like? Joerg Cocoon User wrote: is there any working example under cocoon i try to use xinclude inside an .xsp but without success my code quotation xi:include href=source.xml / /quotation is somethingi have missed or just there is no xinclude support from cocoon? thnx Stavros Kounis - 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]
How should I do this?
Hello, I'm writing a weblog application with Cocoon and I've got stuck with a problem: the common weblog application features are Categories and Permanent links. Say, the blog resides at http://myhost/blog. If you point your browser there, the latest entries entered are displayed there, these entries belong to different categories. Then if you point the browser to http://myhost/blog/archives/software/linux, you'll see all entries belonging to software/linux category. And if you'll point your browser to http://myhost/blog/archives//MM/DD#software/linux - you'll see entries belonging to software/linux whose date is DD.MM. - that's what is called permanent links. Could someone give me a clue on how to handle this behaviour with Cocoon? I can catch these requests with map:match pattern=blog/archives/**, but I've got absolutely no idea of what to do then. How do I pass, say /MM/DD#software/linux to the stylesheet where I can handle it? Or maybe, I've got to do something different? Your help would be greatly appreciated. -- Lenya Khachaturov mailto:[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]
Cocoon performance tuning
Hello, Are there any hints on making Cocoon perform better? I've been using Cocoon for a couple of weeks and I can't call it blazing fast :-) As I understood, it's performance greatly depends on the Java compiler and the XSLT processor used. Which compiler and processor would you recommend? As far as I know, Cocoon 2.0.3 uses Pizza and Xalan. Is Jikes and Saxon (or, maybe, XSLTC) a better choice? I also use Resin 2.1.6 and Sun JDK 1.4.0_01 - any recommendations here? -- Lenya Khachaturov mailto:[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]
XSLTC doesn't work with Cocoon 2.0.3
Hello, I am trying to enable XSLTC in Cocoon 2.0.3, I've read http://outerthought.net/wiki/Wiki.jsp?page=XSLTC and followed these steps. The result I'm getting is Cocoon confusion - Cocoon was unable to process the request :-( Should it work out of the box? -- Lenya Khachaturov mailto:[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: Cocoon performance tuning
- any recommendations here? depends on the machine size/complexity of your application. the IBM 1.3 JVM has quite good performance on the Windows platforms, the Sun 1.4 JVM quite good on Solaris 8/9 on Linux platforms. - 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: Cocoon performance tuning
Did you read this: http://xml.apache.org/cocoon/performancetips.html - Original Message - From: Lenya L. Khachaturov [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, December 08, 2002 7:20 AM Subject: Cocoon performance tuning Hello, Are there any hints on making Cocoon perform better? I've been using - 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: unable to connect to firebird/mysql using esql
Hi, Following is code excerpt from my own tests and it actually works with mysql. I will give u the whole story :-) , hope it will help. --- In web.xml: !-- This parameter is used to list classes that should be loaded at initialization time of the servlet. Usually this classes are JDBC Drivers used -- init-param param-nameload-class/param-name param-value com.mysql.jdbc.Driver /param-value /init-param end web.xml part in cocoon.xconf !-- Datasources: -- datasources !-- MAKE SURE TO USE THE NAME PROPERTY AS THE POOL NAME IN THE ESQL CALL-- jdbc logger=core.datasources.pool_name name=pool_name pool-controller max=10 min=5/ auto-committrue/auto-commit dburljdbc:mysql://192.168.1.1/mag/dburl userusername/user passwordpassword/password /jdbc /datasources end cocoon.xconf part in my xsp page ?xml version=1.0? xsp:page language=java xmlns:xsp=http://apache.org/xsp; xmlns:xsp-request=http://apache.org/xsp/request/2.0; xmlns:esql=http://apache.org/cocoon/SQL/v2; page titletitle/title para xsp:logic if ( request.getParameter(doing_post) != null ) { esql:connection esql:poolgedcom/esql:pool esql:execute-query esql:query insert into employees (first_name, last_name, address, city,zip, home_phone, cell_phone, office_ext, date_started, title, office_id, remarks, email )values ( (esql:parameterxsp:exprrequest.getParameter(first_name)/xsp:expr/esql:parameter), (esql:parameterxsp:exprrequest.getParameter(last_name)/xsp:expr/esql:parameter), (esql:parameterxsp:exprrequest.getParameter(address)/xsp:expr/esql:parameter), (esql:parameterxsp:exprrequest.getParameter(city)/xsp:expr/esql:parameter), (esql:parameterxsp:exprrequest.getParameter(zip)/xsp:expr/esql:parameter), (esql:parameterxsp:exprrequest.getParameter(home_phone)/xsp:expr/esql:parameter), (esql:parameterxsp:exprrequest.getParameter(cell_phone)/xsp:expr/esql:parameter), (esql:parameterxsp:exprrequest.getParameter(office_ext)/xsp:expr/esql:parameter), (esql:parameterxsp:exprrequest.getParameter(date_started)/xsp:expr/esql:parameter), (esql:parameterxsp:exprrequest.getParameter(title)/xsp:expr/esql:parameter), (esql:parameterxsp:exprrequest.getParameter(office_id)/xsp:expr/esql:parameter), (esql:parameterxsp:exprrequest.getParameter(remarks)/xsp:expr/esql:parameter), (esql:parameterxsp:exprrequest.getParameter(email)/xsp:expr/esql:parameter)) /esql:query esql:error-resultsAn error occurred/esql:error-results esql:no-results pSorry, no results!/p /esql:no-results /esql:execute-query /esql:connection b OK/b p+++/p } else { p align=right font size=+2add employee/font /p table border=0 width=100% tbody form method=post action=home.section input type=hidden name=doing_post value=1 / tr align=right td input type=text name=date_started //td tddate started/td td input type=text name=last_name //td tdlast name/td td input type=text name=first_name //td tdfirst name/td /tr tr align=right tdbr /br /input type=text name=zip //td tdbr /br /zip/td tdbr /br /input type=text name=city //td tdbr /br /city/td tdbr /br /input type=text name=address //td tdbr /br /address/td /tr tr align=right tdbr /br /input type=text name=office_ext //td tdbr /br /office ext/td tdbr /br /input type=text name=cell_phone //td tdbr /br /cell phone/td tdbr /br /input type=text name=home_phone //td tdbr /br /home phone/td /tr tr align=right tdbr /br /input type=text name=title //td
Re: SQL query cannot be read.
Don't Know try to use the same namespace qualifiers (sql:)... Jin Wei Yong wrote: Hi, I am still exploring the use of SQLTranformer. I am using a book, Cocoon:Building XML Application by Matthew Langham and Carsten Ziegeler. If you have the book, you can refer to Chapter 7. The this SQL-related example does not use XSP at all. The query is written in the xsl file. In the example, I use subsitemap, which is the only difference from Langham's example. I write the following in the xsl file: user execute-query xmlns=http://apache.org.cocoon/SQL/2.0; use-connectionpersonnel/use-connection query INSERT INTO DEPARTMENT_TABLE VALUES(18,'jinwei2') /query /execute-query user however, the SQL statement cannot be executed. When I check the Cocoon.log file, Langham's example is as follows: /JaxpParser: Looking up org.apache.cocoon.components.resolver.Resolver /JaxpParser: SAXParserFactory: null /JaxpParser: DocumentBuilderFactory: null /JaxpParser: SAXParser: null /SQLTransformer: PUBLIC ID: null /SQLTransformer: SYSTEM ID: file:/C:/jakarta-tomcat-3.3a/webapps/cocoon/sqlexample.xml /SQLTransformer: RECEIVED CHARACTERS: /SQLTransformer: RECEIVED START ELEMENT execute-query /SQLTransformer: RECEIVED CHARACTERS: /SQLTransformer: RECEIVED START ELEMENT use-connection /SQLTransformer: RECEIVED CHARACTERS: personnel /SQLTransformer: RECEIVED END ELEMENT use-connection(http://apache.org/cocoon/SQL/2.0) /SQLTransformer: SETTING VALUE ELEMENT name {use-connection} value {personnel} /SQLTransformer: RECEIVED CHARACTERS: /SQLTransformer: RECEIVED START ELEMENT query /SQLTransformer: RECEIVED CHARACTERS: INSERT INTO DEPARTMENT_TABLE VALUES(19,'jinwei2') /SQLTransformer: RECEIVED END ELEMENT query(http://apache.org/cocoon/SQL/2.0) /SQLTransformer: QUERY IS INSERT INTO DEPARTMENT_TABLE VALUES(19,'jinwei2') /SQLTransformer: RECEIVED CHARACTERS: /SQLTransformer: RECEIVED END ELEMENT execute-query(http://apache.org/cocoon/SQL/2.0) /SQLTransformer: SQLTransformer executing query nr 0 /SQLTransformer$Query: EXECUTING INSERT INTO DEPARTMENT_TABLE VALUES(19,'jinwei2') /DefaultPool: Retrieving a org.apache.avalon.excalibur.datasource.JdbcConnection from the pool whereas my log is something like: JaxpParser: Looking up org.apache.cocoon.components.resolver.Resolver /JaxpParser: SAXParserFactory: null /JaxpParser: DocumentBuilderFactory: null /JaxpParser: SAXParser: null /SQLTransformer: RECEIVED CHARACTERS: personnel /SQLTransformer: RECEIVED CHARACTERS: INSERT INTO DEPARTMENT_TABLE VALUES(19,'jinwei2') /URLFactoryImpl: Making URL from file:/C:/jakarta-tomcat-3.3a/webapps/cocoon/boac/stylesheets/../documents/toc.xml /URLFactoryImpl: Making URL from file:/C:/jakarta-tomcat-3.3a/webapps/cocoon/boac/stylesheets/../documents/toc.xml /DefaultComponentFactory: ComponentFactory decommissioning instance of org.apache.cocoon.components.parser.JaxpParser. /DefaultPool: Returning a org.apache.cocoon.components.sax.XMLByteStreamCompiler to the pool /CachingEventPipeline: Recycling of CachingEventPipeline /DefaultPool: Returning a org.apache.cocoon.generation.FileGenerator to the pool One thing to note is that the start/end elements are not being read. Have I missed out anything in the configuration? Thanks very much. __ Do you Yahoo!? Yahoo! Mail Plus - Powerful. Affordable. Sign up now. http://mailplus.yahoo.com - 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: xinclude support or not?
Of course you have to had the xinclude trasformer in the map... Joerg Heinicke wrote: Should work without any problem. Did you declare the namespace prefix xi? How does your sitemap matcher look like? Joerg Cocoon User wrote: is there any working example under cocoon i try to use xinclude inside an .xsp but without success my code quotation xi:include href=source.xml / /quotation is somethingi have missed or just there is no xinclude support from cocoon? thnx Stavros Kounis - 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: Cocoon performance tuning
Lenya L. Khachaturov wrote: Are there any hints on making Cocoon perform better? I've been using Cocoon for a couple of weeks and I can't call it blazing fast :-) As I understood, it's performance greatly depends on the Java compiler and the XSLT processor used. Which compiler and processor would you recommend? As far as I know, Cocoon 2.0.3 uses Pizza and Xalan. Is Jikes and Saxon (or, maybe, XSLTC) a better choice? I also use Resin 2.1.6 and Sun JDK 1.4.0_01 - any recommendations here? http://xml.apache.org/cocoon/performancetips.html Big point is setting log thresholds to ERROR (instead of INFO or DEBUG). This should give an immediate and dramatic performance gain. - Miles - 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]
Coccon 2.0.4 and Apache tomcat 4.1.9
Hi, My tomcat server runs fine how ever when i run the command for testing if i have installed cocoon successfully I get an error thats says something about a broken pipe. Could anyone help me. Thanks, S. - 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 on update
I am trying to use xmlForm on my DB actions (enter, update). With enter I understood, but questions on update: I have general actions some like DatabaseAddAction, DatabaseUpdateAction and use these on my actions. So after retrieve data from DB by ID (use DatabaseSelectAction), what the next? How to set attributes of Bean? What about making a method and call it in the perform action in one of the steps, or use the setters there directly? I do not know how your actions work but, for example, if your DatabaseSelectAction returns a ResultSet with just one record, iterate through it and use the setter methods of the Model Bean for each of the wanted columns. Making controls in the XML pages referencing the model bean properties should be enough then. Manipulate the data in the form editing the required fields, and then use your DatabaseUpdateAction (again in the perform action, for example after checking the button that was pressed in the form). I only tried this with Xindice and loading query results in DOM Nodes, but I'm sure it'll work with a relational database, too. Hope it helps. - 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]
Cocoon version with Xalan 2.4.1
Hi there, Does anyone know when a Cocoon distribution supporting Xalan 2.4.1 is to be expected? I was in the middle of developping a XSLT which needs EXSLT funcionality supported by that version of Xalan, and doesn't work on Cocoon 2.0.3. Thanks a lot!! Best regards, Tiago Dias http://ptsoft.net/tdd/ Student at FCT-UNL (http://di.fct.unl.pt) - 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]
Cocoon 2.0.3 under JDK 1.4.1
Hi Josef, I think your problem is the same (at least similar) to the one I got when tried to use Xalan 2.4.1 instead of the default 2.3.1 brought in the Cocoon 2.0.3 distribution. If you can try using Xalan version 2.3.1 instead and I expect you won't have problems. Otherwise you'd need a Cocoon distribution that supports Xalan 2.4.1 (has been recently included in the Cocoon 2.1-dev). Best regards, Tiago Dias Quoting: Franz-Josef Herpers --- Hi, since today I never had any problems installing Cocoon under Tomcat even with JDK 1.4. But now I have the following configuration: Windows 2000 SP 3 Cocoon 2.0.3 for JDK 1.4 JDK 1.4.1 Tomcat 4.1.12 in the endorsed directory of JDK reside xalan.jar (Xalan 2.4.1) and the Files xercesImpl.jar (Xerces 2.2.0) and the dom.jar und sax.jar files (JAXP 1.2). When I open the cocoon starting page i get the following error message: message: Language Exception description: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: error: java.io.IOException: read error 1 error The console shows: java.lang.RuntimeException: org.apache.xml.utils.WrappedRuntimeException: The ou tput format must have a '{http://xml.apache.org/xalan}content-handler' property! I would appreciate any hint! Thanks Franz - 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: Cocoon 2.0.3 under JDK 1.4.1
Cocoon shell work without any problems with Xalan 2.4.1, if you (re)place the files xalan-xxx.jar, xerces-xxx.jar (or xercesImpl-xxx.jar) and xml-apis.jar in(to) the endorsed directory either of Tomcat or JDK. The versions used with Cocoon must be identical with the version in the endorsed directory. If you use the endored directory of the JDK, you must not have other versions of Xalan and Xerces in the Tomcat endorsed (it has more priority). Hope this helps, Joerg Tiago Dias wrote: Hi Josef, I think your problem is the same (at least similar) to the one I got when tried to use Xalan 2.4.1 instead of the default 2.3.1 brought in the Cocoon 2.0.3 distribution. If you can try using Xalan version 2.3.1 instead and I expect you won't have problems. Otherwise you'd need a Cocoon distribution that supports Xalan 2.4.1 (has been recently included in the Cocoon 2.1-dev). Best regards, Tiago Dias Quoting: Franz-Josef Herpers --- Hi, since today I never had any problems installing Cocoon under Tomcat even with JDK 1.4. But now I have the following configuration: Windows 2000 SP 3 Cocoon 2.0.3 for JDK 1.4 JDK 1.4.1 Tomcat 4.1.12 in the endorsed directory of JDK reside xalan.jar (Xalan 2.4.1) and the Files xercesImpl.jar (Xerces 2.2.0) and the dom.jar und sax.jar files (JAXP 1.2). When I open the cocoon starting page i get the following error message: message: Language Exception description: org.apache.cocoon.ProcessingException: Language Exception: org.apache.cocoon.components.language.LanguageException: Error compiling sitemap_xmap: Line 0, column 0: error: java.io.IOException: read error 1 error The console shows: java.lang.RuntimeException: org.apache.xml.utils.WrappedRuntimeException: The ou tput format must have a '{http://xml.apache.org/xalan}content-handler' property! I would appreciate any hint! Thanks Franz - 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]
AW: XMLForm: content listbox problem
Hello Sylvian, I always initialize the data for the appropriate form. This means I put the initialize data actions in different functions and call them if I reach the stage. Here is an example: - code if ( formView.equals ( VIEW_START ) ) { if ( command.equals( CMD_COMMIT ) ) { int result_trans= jBean.getTransactionData(); int result_cust = jBean.getUserData(); if ( result_cust == 0 ) { return page( VIEW_ERROR ); } else if ( result_trans == 0 ) { return page( VIEW_ERROR ); } else if ( result_cust 1 ) { return page( VIEW_CUSTOMER ); } else { return page( VIEW_INVOICE ); } } } - /code this allows me also to react on different results from these functions. When did you call the getModel() method from the bean? Are you doing that in the prepare or perform function? ciao Lars -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 6. Dezember 2002 00:01 An: [EMAIL PROTECTED] Betreff: XMLForm: content listbox problem Hello, I have an XMLForm app like this: Navigation: Start-Form1-Form2-Confirm-End In the Form1 view I have a listbox. The content (the different choices) of this listbox comes from an XML file. The code is: xf:selectOne ref=/workstationType xf:captionWorkstation Type/xf:caption xf:itemset nodeset=select/document/typeOfWorkstation/item xf:caption ref=description/ xf:value ref=@id/ /xf:itemset xf:violations class=error/ /xf:selectOne This code seems to be OK. The XPath code is also OK I think. Here is the XML file: document typeOfWorkstation item id=desktop descriptionDesktop/description /item item id=laptop descriptionLaptop/description /item item id=other descriptionOther configuration/description /item /typeOfWorkstation /document I load the XML file in a DOM Node property (called select). This property is located in the Bean file (with getter and setter methods for this property). I load the XML file in this Node property also in the Bean file, in the constructor. Here the Bean file: public class AddWorkstationBean { private String workstationName; private String workstationType; private String workstationOwner; private String workstationUser; private Node select; //values from the XML file public AddWorkstationBean() { initSelect(); } public Node initSelect() { //initialize a property named select of DOM Node class DOMImplementation impl; try { // Find the implementation DocumentBuilderFactory factory = DocumentBuilderFactory.newInstance(); factory.setNamespaceAware(false); factory.setValidating(false); DocumentBuilder builder = factory.newDocumentBuilder(); impl = builder.getDOMImplementation(); //Create the node for the root select Document document = impl.createDocument(null, select, null); Node selectName = document.getDocumentElement(); //Loading from XML File String fileName = C:\\jakarta-tomcat-4.1.12\\webapps\\cocoon\\woc\\iniForm.xml; FileInputStream inXML = new FileInputStream(fileName); BufferedReader in = new BufferedReader(new InputStreamReader(inXML)); Element element = XMLLoader.loadFromStream(in); //Import the node Element importedElement = (Element) document.importNode(element, true); selectName.appendChild(importedElement); //initialize the porperty select = selectName; } .. getter an setter methods.. .. } My problem is when I start the app (with the Start view) and then display the Form1 there is NOTHING in the listbox (the list isn't empty but it's like the caption and value properties are null)!! Then I go to the next view (Form2). Then if I press the Preview button and go back to the Form1, the listbox is OK!! It's crazy and I really don't understand why!
AW: XMLForm and DOM node initialization
Hello Sylvian, try the following: xf:selectOne ref=/workstationType xf:captionWorkstation Type/xf:caption xf:itemset nodeset=listValues/document/typeOfWorkstation/item xf:caption ref=description/ xf:value ref=@id/ /xf:itemset xf:violations class=error/ /xf:selectOne if your dom is still: -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Samstag, 7. Dezember 2002 00:53 An: [EMAIL PROTECTED] Betreff: XMLForm and DOM node initialization Hello everybody, I'm using XMLForm and its possibility to access to DOM nodes. Here is the code in the view (form.xml): xf:selectOne ref=/workstationType xf:captionWorkstation Type/xf:caption xf:itemset nodeset=listValues/document/typeOfWorkstation/item xf:caption ref=description/ xf:value ref=@id/ /xf:itemset xf:violations class=error/ /xf:selectOne The problem is when I load the web app page (containing the node field) for the first time (after a Tomcat or Browser restart), the value and caption fields are empty although the number of option are right. Here is the HTML source when the fields are empty (first load): td align=leftselect name=/workstationTypeoption value=/optionoption value=/optionoption value=/option/select/td Here is the HTML source when the fields are OK (not first load): td align=leftselect name=/workstationTypeoption value=desktopDesktop/optionoption value=laptopLaptop/optionoption value=otherOther configuration/option/select/td The node is initialized in the Bean (model) conctructor. Is anybody could help me to understand what's happen?!? I'm really desparate because I really don't know what could be the problem! When a web page is loaded, which methods or actions are called? Any suggestions will be greatly appreciated. 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]
AW: XMLForm and DOM node initialization
Hello Sylvian, I'm sorry for the last mail, was send to early... outlook is driving me crazy.. try the following: xf:selectOne ref=/workstationType xf:captionWorkstation Type/xf:caption xf:itemset nodeset=/select/typeOfWorkstation/item xf:caption ref=description/ xf:value ref=@id/ /xf:itemset xf:violations class=error/ /xf:selectOne if your dom is still loaded into selected and is looking like this: document typeOfWorkstation item id=desktop descriptionDesktop/description /item item id=laptop descriptionLaptop/description /item item id=other descriptionOther configuration/description /item /typeOfWorkstation /document ciao Lars -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Samstag, 7. Dezember 2002 00:53 An: [EMAIL PROTECTED] Betreff: XMLForm and DOM node initialization Hello everybody, I'm using XMLForm and its possibility to access to DOM nodes. Here is the code in the view (form.xml): xf:selectOne ref=/workstationType xf:captionWorkstation Type/xf:caption xf:itemset nodeset=listValues/document/typeOfWorkstation/item xf:caption ref=description/ xf:value ref=@id/ /xf:itemset xf:violations class=error/ /xf:selectOne The problem is when I load the web app page (containing the node field) for the first time (after a Tomcat or Browser restart), the value and caption fields are empty although the number of option are right. Here is the HTML source when the fields are empty (first load): td align=leftselect name=/workstationTypeoption value=/optionoption value=/optionoption value=/option/select/td Here is the HTML source when the fields are OK (not first load): td align=leftselect name=/workstationTypeoption value=desktopDesktop/optionoption value=laptopLaptop/optionoption value=otherOther configuration/option/select/td The node is initialized in the Bean (model) conctructor. Is anybody could help me to understand what's happen?!? I'm really desparate because I really don't know what could be the problem! When a web page is loaded, which methods or actions are called? Any suggestions will be greatly appreciated. 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]
AW: XMLForm and DOM node initialization
Hello List, I've got now a strange behaviour, which I can't explain myself, but which look like it is related to this thread. I'm using xmlform and generated some dom data to feed the form with database values. Tthe dom is created correctly, but I'm having problems referencing it or at least a strange behaviour. I'll tried this one here to output the dom: - code - items xf:repeat nodeset=/transaction/item item type=entry noxf:output ref=@number //no descxf:output ref=descr //desc unit_pricexf:output ref=price //unit_price qtyxf:output ref=qty //qty extamtxf:output ref=extamt //extamt /item /xf:repeat /items - /code but only get this: xf:repeat nodeset=/transaction/item xf:group ref=/transaction/item[1]/ xf:group ref=/transaction/item[2]/ xf:group ref=/transaction/item[3]/ xf:group ref=/transaction/item[4]/ xf:group ref=/transaction/item[5]/ xf:group ref=/transaction/item[6]/ xf:group ref=/transaction/item[7]/ xf:group ref=/transaction/item[8]/ /xf:repeat BUT, if I'm using this: - code - xf:selectOne ref=/users selectUIType=radioTable /xf:selectOne items xf:repeat nodeset=/transaction/item item type=entry noxf:output ref=@number //no descxf:output ref=descr //desc unit_pricexf:output ref=price //unit_price qtyxf:output ref=qty //qty extamtxf:output ref=extamt //extamt /item /xf:repeat /items - /code the output is filled completely... I didn't noticed it before because I was using the selectOne statement for debugging reasons, but now I don't want it anymore. (users and transaction are different dom nodes) Has anyone an idea why this is behaving like this? ciao Lars -Ursprüngliche Nachricht- Von: Kirchhoff, Lars Gesendet: Montag, 9. Dezember 2002 10:41 An: '[EMAIL PROTECTED]' Betreff: AW: XMLForm and DOM node initialization Hello Sylvian, I'm sorry for the last mail, was send to early... outlook is driving me crazy.. try the following: xf:selectOne ref=/workstationType xf:captionWorkstation Type/xf:caption xf:itemset nodeset=/select/typeOfWorkstation/item xf:caption ref=description/ xf:value ref=@id/ /xf:itemset xf:violations class=error/ /xf:selectOne if your dom is still loaded into selected and is looking like this: document typeOfWorkstation item id=desktop descriptionDesktop/description /item item id=laptop descriptionLaptop/description /item item id=other descriptionOther configuration/description /item /typeOfWorkstation /document ciao Lars -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] Gesendet: Samstag, 7. Dezember 2002 00:53 An: [EMAIL PROTECTED] Betreff: XMLForm and DOM node initialization Hello everybody, I'm using XMLForm and its possibility to access to DOM nodes. Here is the code in the view (form.xml): xf:selectOne ref=/workstationType xf:captionWorkstation Type/xf:caption xf:itemset nodeset=listValues/document/typeOfWorkstation/item xf:caption ref=description/ xf:value ref=@id/ /xf:itemset xf:violations class=error/ /xf:selectOne The problem is when I load the web app page (containing the node field) for the first time (after a Tomcat or Browser restart), the value and caption fields are empty although the number of option are right. Here is the HTML source when the fields are empty (first load): td align=leftselect name=/workstationTypeoption value=/optionoption value=/optionoption value=/option/select/td Here is the HTML source when the fields are OK (not first load): td align=leftselect name=/workstationTypeoption value=desktopDesktop/optionoption value=laptopLaptop/optionoption value=otherOther configuration/option/select/td The node is initialized in the Bean (model) conctructor. Is anybody could help me to understand what's happen?!? I'm really desparate because I really don't know what could be the problem! When a web page is loaded, which methods or actions are called? Any suggestions will be greatly appreciated. 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
i18n and XMLForm declaration in sitemap
Title: i18n and XMLForm declaration in sitemap hello can somebody show me how to declare XMLForm using i18n by calling action (both are actions) in sitemap? thanks a lot much GD
Photo Album sample?
Hi to all, I am currently trying to build a online web photo album using Cocoon 2. After searching a little bit on the web, I seems there are already some photo albuns built with Cocoon, including an example in one of the recently released Cocoon books. As I would like to avoid building my own from scratch, I would like to know if the source code for any of them is available for use. Thanks in advance, Artur Matos. - 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]
Cocoon version with Xalan 2.4.1
Return Receipt Your Cocoon version with Xalan 2.4.1 document : was Joern Hoos/WI1/FB5/UniPB/DE received by: at: 09.12.2002 08:41:53 - 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]