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
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
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
:
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
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
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
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++) {
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 =
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
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
: 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
: 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
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
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
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);
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
+ 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
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}/
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
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
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
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
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
/. 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
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?
I can't find jdo-1.01.jar to download for using it in cocoon 2.1.10
Please, help!!!
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
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
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???
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
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
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() 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 ???
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,
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
35 matches
Mail list logo