checking parameter in JXTemplates

2008-10-24 Thread Мария Григорьева
Hello! I have the parameter ${data.get(length)} in my JXTemplate. How to check it's value is it NULL or not ??? (the trouble in the quotes) jx:choose jx:when test=??? h2no data/h2 /jx:when jx:otherwise ::. /jx:otherwise

RE: checking parameter in JXTemplates

2008-10-24 Thread Мария Григорьева
Thank you a lot! It works ) -Original Message- From: Andre Juffer [mailto:[EMAIL PROTECTED] Sent: Friday, October 24, 2008 12:45 PM To: users@cocoon.apache.org Subject: Re: checking parameter in JXTemplates Мария Григорьева wrote: Hello! I have the parameter ${data.get

RE: flowscript doesn't reach the continuation

2008-10-10 Thread Мария Григорьева
Does this file exist? solprovider On 10/9/08, Мария Григорьева [EMAIL PROTECTED] wrote: Here... the fragment from my Sitemap: map:match pattern=viewform-* map:generate type=jx src=pages/{1}.xml/ map:transform type=browser-update/ map:transform type=i18n

RE: flowscript doesn't reach the continuation

2008-10-10 Thread Мария Григорьева
: pages/component-template.html.xml Does this file exist? solprovider On 10/9/08, Мария Григорьева [EMAIL PROTECTED] wrote: Here... the fragment from my Sitemap: map:match pattern=viewform-* map:generate type=jx src=pages/{1}.xml/ map:transform type=browser-update

RE: flowscript doesn't reach the continuation

2008-10-10 Thread Мария Григорьева
On 10/9/08, Мария Григорьева [EMAIL PROTECTED] wrote: Here... the fragment from my Sitemap: map:match pattern=viewform-* map:generate type=jx src=pages/{1}.xml/ map:transform type=browser-update/ map:transform type=i18n/ map:transform src=resources/forms-samples

RE: pass repeater to the database using javaflow

2008-10-10 Thread Мария Григорьева
by: Repeater.RepeaterRow repeaterRow = (Repeater.RepeaterRow) repeaterObj.getRow(rowIndex); Works like a charm for me. Hope this helps, Chris Von: Мария Григорьева [mailto:[EMAIL PROTECTED] Gesendet: Freitag, 10. Oktober 2008 15:20 An: users@cocoon.apache.org Betreff

pass repeater to the database using javaflow

2008-10-10 Thread Мария Григорьева
Hello! I need to pass the repeater params to the database. Here the function: public void addRepeater(RepeaterAsList repeater, int compositionID) throws SQLException { for (int i=0;irepeater.size();i++) {

flowscript doesn't reach the continuation

2008-10-09 Thread Мария Григорьева
Hello! I'm using the flowscript to input data into the database through the form. Here is my code: function inputPhisicalParams() { var id = cocoon.parameters.id; var form = new Form(form-definition/phisical-params.xml); var formMap =

RE: flowscript doesn't reach the continuation

2008-10-09 Thread Мария Григорьева
PROTECTED] On Behalf Of [EMAIL PROTECTED] Sent: Thursday, October 09, 2008 8:20 PM To: users@cocoon.apache.org Subject: Re: flowscript doesn't reach the continuation On 10/9/08, Мария Григорьева [EMAIL PROTECTED] wrote: I'm using the flowscript to input data into the database through the form

RE: cforms + javaflow + sitemap problem

2008-09-21 Thread Мария Григорьева
Index.xml ?xml version=1.0 encoding=Windows-1251? head logotype/ top-menu/ /head And JX: ?xml version=1.0 encoding=windows-1251? xsl:stylesheet version=1.0 xmlns:xsl=http://www.w3.org/1999/XSL/Transform; xmlns:jx=http://apache.org/cocoon/templates/jx/1.0; jx:import

RE: using OJB for multiple insert

2008-09-17 Thread Мария Григорьева
: Wednesday, September 17, 2008 9:08 AM To: users@cocoon.apache.org Subject: Re: using OJB for multiple insert Мария Григорьева Escribio :-) Hello! I'm using OJB!!! The problem is: I want to make a test on insert. Here is my sample-function: public void doInsertTest

RE: using OJB for multiple insert

2008-09-17 Thread Мария Григорьева
: Carlos Chávez [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 17, 2008 4:34 PM To: users@cocoon.apache.org; [EMAIL PROTECTED] Subject: RE: using OJB for multiple insert Hi. Please post the stacktrace. Cheers. Carlos Chávez. Мария Григорьева Escribio :-) Hello, it doesn't work... It's

RE: using OJB for multiple insert

2008-09-17 Thread Мария Григорьева
is in the MyPersist.java:80, line 80? Cheers. Carlos Chávez. Мария Григорьева Escribio :-) Here is the stacktrace! java.lang.NullPointerException at org.apache.cocoon.mysamples.flow.java.MyPersist.doInsertTest(MyPersist.java:80) at sun.reflect.NativeMethodAccessorImpl.invoke0

RE: using OJB for multiple insert

2008-09-17 Thread Мария Григорьева
the exact line out of this snippet of code, so we can pinpoint the problem. Exaclty Cheers. Carlos Chávez. Regards, Jeroen Мария Григорьева wrote: public class MyPersist extends AbstractContinuable { private transient PersistenceBroker broker; public MyPersist

using OJB for multiple insert

2008-09-16 Thread Мария Григорьева
Hello! I'm using OJB!!! The problem is: I want to make a test on insert. Here is my sample-function: public void doInsertTest() { Dept[] depts = null; for (int i = 0; i 5; i++) { depts[i].setDeptno(i);

database connection using ComponentSelector

2008-09-12 Thread Мария Григорьева
Hello! I'm trying to connect to the database using JDBC and cocoon.xconf. import java.sql.*; import java.util.*; import javax.sql.DataSource; import org.apache.avalon.framework.component.ComponentException; import org.apache.avalon.framework.component.ComponentManager; import

RE: cforms + javaflow + sitemap problem

2008-09-01 Thread Мария Григорьева
+ sitemap problem Мария Григорьева wrote: map:match pattern=*/* map:aggregate element=content map:part src=index.xml/ map:part src=cocoon:/main/{1}/{2} element=main/ /map:aggregate map:transform src=styles/main.xsl/ map:serialize type=html/ /map:match …….. map:match pattern=main

how to pass sitemap params to javaflow?

2008-09-01 Thread Мария Григорьева
In sitemap I have the parameter: map:match pattern=main/*/* map:call function={2} use-request-parameterstrue/use-request-parameters map:parameter name=id value={1}/

RE: how to pass sitemap params to javaflow?

2008-09-01 Thread Мария Григорьева
sitemap params to javaflow? On Sep 1, 2008, at 6:03 AM, Мария Григорьева wrote: In sitemap I have the parameter: map:match pattern=main/*/* map:call function={2} use-request-parameterstrue/use-request-parameters

cforms + javaflow + sitemap problem

2008-08-31 Thread Мария Григорьева
Hello, dear mailing-list!!! Help please to solve the problem: Sitemap: map:match pattern=*/* map:aggregate element=content map:part src=index.xml/ map:part src=cocoon:/main/{1}/{2} element=main/ /map:aggregate map:transform

cforms + javaflow + sitemap problem

2008-08-31 Thread Мария Григорьева
Hello, dear mailing-list!!! Help please to solve the problem: Sitemap: map:match pattern=*/* map:aggregate element=content map:part src=index.xml/ map:part src=cocoon:/main/{1}/{2} element=main/ /map:aggregate map:transform

using fd:on-value-changed ???

2008-08-25 Thread Мария Григорьева
Hello!!! I'm trying to update form data, using on-value-changed: fd:field id=density required=true fd:labelПлотность/fd:label fd:datatype base=decimal/ fd:on-value-changed javascript

RE: using fd:on-value-changed ???

2008-08-25 Thread Мария Григорьева
PROTECTED] Sent: Monday, August 25, 2008 1:40 PM To: users@cocoon.apache.org Subject: Re: using fd:on-value-changed ??? Hi, See http://ora-00904.ora-code.com/. It means that the settings are probably incorrect for the columns in the db. Regards, Jeroen Reijn Мария Григорьева wrote: Hello!!! I’m

RE: using fd:on-value-changed ???

2008-08-25 Thread Мария Григорьева
/. It means that the settings are probably incorrect for the columns in the db. Regards, Jeroen Reijn Мария Григорьева wrote: Hello!!! I’m trying to update form data, using on-value-changed: fd:field id=density required=true fd:labelПлотность/fd:label

where to find jdori.jar ?

2008-08-25 Thread Мария Григорьева
I need jdori.jar to run samples OJB/JDO: I've found the jdo.jar version 1.0.1: can't find jdori!!! Need help!!! And one question: do I need to rebuild cocoon width jdo and jdori in lib/local to run the JDO samples or no?

how to download jdo 1.01 ?

2008-08-24 Thread Мария Григорьева
I can't find jdo-1.01.jar to download for using it in cocoon 2.1.10 Please, help!!!

hibernate example!!!

2008-08-07 Thread Мария Григорьева
Dear Mailing-list! I've found the resource with the sample of hibernate application. (http://wiki.apache.org/cocoon/CocoonAndHibernateTutorial) But at the stage of installing the filter, which is said to be situated above the Servlet Configuration part, I've got a mistake of cocoon (the

using OJB with Cocoon

2008-08-07 Thread Мария Григорьева
I'm using Cocoon 2.1.10. There I have db-ojb-1.0.4.jar (in WEB-INF/lib) So, I've found the resource http://www.guschtel.de/computer/cocoon-ojb-cforms.php?part=1. With an example of using JDO with Cocoon. But there is no sitemap example: And I can't execute program. I found the

JDO + CForms

2008-08-07 Thread Мария Григорьева
I'm trying to execute the cocoon's ojbjdo sample. But it doesn't work! (samples/block/ojb/forms) I get an exception: javax.jdo.JDOFatalUserException: No metadata has been registered for class org.apache.cocoon.ojb.samples.bean.Employee. What's the problem???

how to pass params from flowscript to the widget

2008-08-04 Thread Мария Григорьева
Variable in the flowscript: var composition_id = experiment.get(id_compositions); And the widget: fd:field id=density required=true fd:labelDensity/fd:label fd:datatype base=decimal/ fd:on-value-changed

how to pass params to the repeater's selection list

2008-08-02 Thread Мария Григорьева
I have a repeater: fd:repeater id=test orderable=false initial-size=1 fd:widgets fd:field id=type fd:labelTypes/fd:label fd:datatype base=string/ fd:selection-list

pass repeater from database to the form

2008-08-01 Thread Мария Григорьева
I'm trying to pass the parameters from the database to the repeater in the form. var repeater=form.getChild(test); for (var i = 0; i comp_in_composition.size(); i++) { var row = repeater.getRow(i); var type =

how to use formMap.put() ?

2008-07-31 Thread Мария Григорьева
How to use formMap.put() to pass the parameters to the fromMap??? For example, var composit = dao.composition.get(experiment.get(id_compositions)); formMap.put(key, composit); But it doesn't work: How can I do it ???

using formMap.put()

2008-07-31 Thread Мария Григорьева
How to pass the repeater to the formMap.put ? I'm trying smth like this: formMap.put(test, comp_in_composition); But, only the null values returned. formMap = {test=[{type=null, amount=null, select=false}, {type=null, amount=null, select=false}, {type=null, amount=null,

how to get size of formMap ?

2008-07-27 Thread Мария Григорьева
var form = new Form(forms/components.xml); var formMap = form.asMap(); var repeater = formMap.get(test); form.showForm(viewform-component-template.html); I need to know the size of formMap. How can I get it? Trying: var repeater_length = formMap.get(test).getSize(); - it doesn't