Hi All!
I develop a simple client management application but I'm pretty new to all
this cocoon and java stuff.
My task in hand is to create a step-by-step wizard for registering clients.
I took a look at cocoon samples but still can't realize which way to chose.
Requirments and conditions:
Upayavira писал(а):
Timur Izhbulatov wrote:
Hi All!
I develop a simple client management application but I'm pretty new to
all this cocoon and java stuff.
My task in hand is to create a step-by-step wizard for registering
clients. I took a look at cocoon samples but still can't rea
Upayavira wrote:
Timur Izhbulatov wrote:
Hi All!
I develop a simple client management application but I'm pretty new to
all this cocoon and java stuff.
My task in hand is to create a step-by-step wizard for registering
clients. I took a look at cocoon samples but still can't rea
Upayavira wrote:
No, look at the Woody samples, particularly the binding ones.
OK. I'm diving in =)
Anyway, Woody/CForms are still under development, and it will take some
time longer before the developers will be willing to consider its
interface to be stable. Therefore, if you choose to use
Marc Portier wrote:
Thanks a lot! I just realized that CForms is just a new name for woody =)
you got that correct.
actually the new name is Cocoon Forms
the block (and most technical names as xml namespaces and package names)
have been renamed from woody -> forms to indicate that this is *THE
Marc Portier wrote:
I suggest adding
transformer.setOutputProperty(Packages.javax.xml.transform.OutputKeys.ENCO
DING, "utf-8");
which will enforce utf-8 encoding to all saved content.
I'm sorry. I've forgot to change my stitemap to make it work with the xmldb
source and the data were still
Marc Portier wrote:
? sorry. I'm afraid I don't understand what you tested and what was the
outcome
In my previous message I said that setting output encoding solves the
problem. But it's not true.
my turn to be sorry, I've running out of clues here
maybe you can send over how your script loo
Hi all!
I use woody binding framework as shown in the corresponding sample (cocoon
2.1.4) with an XML file and it works just fine. But when I change the file
URL to xmldb one my non-us (UTF-8 encoded) data are getting corrupted. When
I popultate the DB with the same data (as in xmldb sample) i
Marc Portier wrote:
transformer.setOutputProperty(Packages.javax.xml.transform.OutputKeys.ENCO
DING, "utf-8");
It works. Thanks a lot.
alternatively you could find some way to check the encoding during 'load'
and then reuse the same for the 'save'
I think it would be more elegant but more com
Upayavira wrote:
How good is your Java?
Unfortunately, I have never programmed Java before. But I have some
experience in reading Java code and programming other OO languages. And
there are few guys who could help me with this, I hope.
Timur
-
Timur Izhbulatov wrote:
Hi all!
I use woody binding framework as shown in the corresponding sample (cocoon
2.1.4) with an XML file and it works just fine. But when I change the file
URL to xmldb one my non-us (UTF-8 encoded) data are getting corrupted.
When I popultate the DB with the same
Upayavira писал(а):
Timur Izhbulatov wrote:
Timur Izhbulatov wrote:
Hi all! I use woody binding framework as shown in the corresponding
sample (cocoon 2.1.4) with an XML file and it works just fine. But when
I change the file URL to xmldb one my non-us (UTF-8 encoded) data are
getting
Upayavira wrote:
I agree with you. I think there should be a property in the XMLDBSource
class that sets the encoding and the system's default encoding should
still be used by default.
So are you offering to create a patch? ;-)
I'm just sharing my suggestions.
BTW, I have submited this bug to
Jorg Heymans wrote:
XML processing accelerated in hardware, now ain't that nice!
How much does XG4 cost? They just say that it depends.
Timur
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL
Hi!
I have to create a set of forms containing identical widgets. It would be
very useful to put these widgets in a separate file and somehow include them
in the declaration of the form. How could I do that?
Thanks!
Timur
---
Hugo Burm wrote:
I have something running exactly what Timur is looking for. But I had to
modify and compile Woody (and Cocoon) for it. I did port it to CForms a few
weeks ago. I have added a long text at the end of this email about how it is
working. It uses a custom Form and Bindingmanager, so
Upayavira wrote:
I have some problems with the _embedded_ Xindice under linux. The same
webapp works fine under w2k, but under linux XMLDB samples don't work.
When I try to populate the database with sample data, the sample succesfully
creates a collection, but resource creation fails. Moreover
Colin Paul Adams писал(а):
"Joerg" == Joerg Heinicke <[EMAIL PROTECTED]> writes:
Joerg> Xindice samples come with Cocoon, it's the xmldb block. But
Joerg> there are no samples binding cforms to xindice. But
Joerg> somebody already has done it:
Joerg> http://marc.theaimsgroup.com/?
Hi!
I have a problem with flow script. A function (see bellow) that shows a
simple form with a selection list where I can select some values (which docs
I want to edit). The function retrieves these values and displays a form for
each item in the selection list.
When I just submit these form
Hi all!
I have two functions that handle two corresponding pipelines. They use the
same form model, template and binding definitions and the same pipeline to
show the form (please, see attached files for details). The frist function
works almost as expected but the second one fails when it wha
On Fri, Jul 23, 2004 at 04:41:36PM +0400, Timur Izhbulatov wrote:
Sorry, some attachments have been deleted. Here they are:
//-
//client.js:
//--
cocoon.load("flow/common/document.js");
cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/Form
Ben Pope писал(а):
Try the following approach.
In sitemap you use xinclude transformer. Each room element contains
elements.
Lounge
href="#xpointer(/project/people/person[2])"/>
href="#xpointer(/project/people/person[3])"/>
Kitc
Ben Pope писал(а):
Hi,
I don't seem to be able to get my head around binding cross-referenced data
I purpose you to try this approach.
Use xinclude (or cinclude) transformer:
Lounge
href="#xpointer(/project/people/person[2])"/>
href="#xpointer(
On Fri, Jul 30, 2004 at 01:45:23AM +0100, Ben Pope wrote:
> When you say "Use xinclude (or cinclude) transformer:" I'm not sure if you
> mean I should actually parse the above data with it... If so, then the rest
> of the example doesn't seem to make sense as I lose the xi:include elements.
> E.g.,
Hi all!
I have a flow script function which shows the form with an
and passes the valueu of its selection list
to JXTemplate pipeline and I can iterate over the list and display the data:
function test() {
var form = new Form(cocoon.parameters["form-definition"]);
form.showForm("select-d
Dmitry Tatarkin писал(а):
I am trying to use CFrom for form handling and faced with a problem. How I
can to set some data(from database or GET,POST) to the form when it's
rendered through form.showForm()?
You could see also CForm binding example
(http://cvs.apache.org/viewcvs.cgi/cocoon-2.1/sr
Hi all!
I was searching this mailing list and have found the message [1] where the
problem was described which is very similar to the one I have faced with.
I just can't get what is the difference between calling one flow pipeline
from another and incapsulating the same code in one flow script.
Hi all!
When I use v1 flow and the following code, I get the right value of the
list:
var form = new Form(cocoon.parameters["form-definition"]);
var list = form.getModel().list;
But when I try using v2 and lookupWndget("list") list is undefined. Namely,
I do the following thing:
var
't loop over it using for
statement and I decided that's something wrong with lookupWidget.
But thank you anyway ;) You have made me to keep a closer watch for my
debuger's windows
Timur Izhbulatov wrote:
Hi all!
When I use v1 flow and the following code, I get the right va
["bindingURI"]
var docName = cocoon.parameters["doc-name"];
var dataURI = cocoon.parameters["dataURI"];
var doc = loadDocument(dataURI);
form.createBinding(bindingURI);
form.load(doc);
form.showForm(docName + "-display-pipeline");
form.save(
On Fri, Aug 06, 2004 at 04:31:33PM +1200, Phil Snowdon wrote:
> The reason is that I have a number of forms with sections that
> couuld be reused. I'd like to keep the common definitions in
> seperate files and merge them with the form definition xml files
> when needed. Obviously I'd need a simi
Hi all!
My problem is that I query a collection just like in the XMLDB sample (see
my code snippets bellow) and want to use some non-ASCII characters in the
XPath predicate. But when I enter such query all the chars are escaped and
as a result I get nothing.
How should I send the XPath query
Timur
--Forwarded message --
References: <[EMAIL PROTECTED]>
In-Reply-To: <[EMAIL PROTECTED]>
From: Timur Izhbulatov <[EMAIL PROTECTED]>
To: Superbiji <[EMAIL PROTECTED]>
Subject: Re: iterate cforms widgets in JX
Date: Mon, 23 Aug 2004 16:29:35 +0400
M
Hi all!
I'm investigating the problem described in [1] and I have some questions. As
I can see in the browser's address line, any non-ASCII character is escaped
according to my current platform encoding (windows-1251). For instance the
russian letter "de" is represented by "%E4".
The proble
BTW, W3C recommends[1] that browsers use UTF-8 when escaping URLs
Timur
[1]http://www.w3.org/TR/html401/appendix/notes.html#h-B.2.1
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED
Jorg Heymans writes:
is http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=109231177110588&w=2 of
any help to you?
Thanks you. Now I know the cause.
However, I have just tried Jetty. When I start it with "java -jar start.jar"
the whole thing works just like it does with Tomcat. But when I try
KOZLOV Roman writes:
Hi Timur,
You can use SetCharacterEncodingAction.
I have tried this approach and it doesn't work. Jorg Heymans (thanks Jorg!)
has pointed me to
http://marc.theaimsgroup.com/?l=xml-cocoon-dev&m=109231177110588&w=2. Now I
know that the reason was in container.
BTW, using
Jorg Heymans writes:
strange, i start jetty from cygwin with (all on one line)
java -Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n
-Dorg.mortbay.util.URI.charset=UTF-8 -jar start.jar etc/custom.xml
and it works fine.
I mean Jetty itself works, but -Dorg.mortbay.util.UR
Marc Portier writes:
1/
if you mess with the -Dorg.mortbay.util.URI.charset setting, then you have
to update your container-encoding setting in web.xml to be the same
if not it's quite predictable that almost nothing will work.
I would suggest you just switch this back and keep the container
Marc Portier writes:
OK! Actually, I have no idea what is the purpose of this parameter and
how does it influence excatly on the whole process even after reading
[1]. And that's because don't change it =)
Here's what cocoon says:
DEBUG (2004-08-26) 15:29.36:500 [access] (Unknown-URI)
Unkno
but before you do that, make sure you stop by at the cocoon developers
list. Maybe they can point you to something more specific.
Ooh! A great relief! I don't have to hack.
The explanation was quite simple:
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=109352262621116&w=2
Timur
e the best way to
> do this? Do I need to write my own widget for that?
>
> Bart.
Think you could chek the carselector sample. It demonstrates CForms
event handling.
Alternatively, you could create a separate form for each case
--
Timur Izhbulatov <[EMAIL PROTECTED]>
-
Marc Portier писал(а):
nope it doesn't,
try using i18n transformer in stead
It's not very clear how can it help with saving to XML. AFAIK, it can
replace some text depending on a given locale optionaly with parameter
substitution.
alternatively: if your 'label' is really holding 'output' you'
Marc Portier писал(а):
now I'm confused.
the aspect of 'label' of a widget has nothing to do with whereto you save
the model's data, it is about what label is shown in the html page next to
the input-box (or on the button...)
Looks like the only way is using fb:output.
IIRC, I have had some
gt; for RequestGenerator (ISO-8859-1 or UTF-8).
>
> Is there a way to prevent the conversion into entities, but always
> generate UTF-8 encoding?
> Has anybody out there tried to allow unicode characters in HTML forms?
And what about your HT
7;m working on the similar application. Not sure I understand your
problem correctly but I think this could help:
http://marc.theaimsgroup.com/?l=xml-cocoon-users&m=109213755927252&w=2
If you still have problems feel free to ask for more samples.
--
Timur Izhbulatov <[EMAIL PROTECTED]&g
Hi!
Calling the redirectTo(URL) function in my flowscript makes corrupted
(escaped wrong) non-ASCII characters containing in the URL. If I use the
sendPage(URL) everything works fine.
The question is who does the URL escaping?
It's definitely not the JavaScript's fault 'casue I can see the
7;t
have any idea how could this be, 'cause I didn't change the stylesheet
before the problem appeared. Or maybe I just don't remember =)
--
Timur Izhbulatov
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For addi
Hi all!
I was thinking about converting X.509 certificates to XML with Cocoon.
Writing a custom transfomrer for this purpose seems to be a good solution.
WDYT?
Timur
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional
Willy Reinhardt писал(а):
My question is how to setup and configure ScriptingEngine for perl in
cocoon ?
Are you shure you have a perl scripting engine jar? My Cocoon 2.1.5 has only
support for groovy scripting engine. I see the jar
(groovy-20040415.114632.jar) and the sitemap add-language elem
Ð ÐÑÐ, 15.09.2004, Ð 23:57, Antonio Gallardo ÐÐÑÐÑ:
> Timur Izhbulatov dijo:
> > Willy Reinhardt Ã(Ã):
> >
> >> My question is how to setup and configure ScriptingEngine for perl in
> >> cocoon ?
> > Are you shure you have a perl scripting engine jar? M
n LinuxFest [1]. And it is the place where any visitor
could discuss any (mostly linux related :) problems with anybody
including "hardcore developers". Cool!
Why does the Hackathon differ?
--
Timur Izhbulatov
[1] http
ys before the LinuxFest at almost the same place and (almost?) all of
these developers was at the fest.
if (GetTogether is like LinuxFest and Hackathon is like
ProtvaOSDConference):
iAmRight = True
=)
--
Timur Izhbulatov
---
IceT писал(а):
Hello,
Every time I output something with Cocoon, it omits the
xml-declaration. Can anybody help me?
I'm using the latest release of Cocoon, with J2sdk 1.42, windows XP,
IExplorer and Mozzila
This is my sitemap:
http://apache.org/cocoon/sitemap/1.0";>
Hi All!
I use Cocoon 2.1.5 and cocoon.context.getInitParameter("upload-directory")
doesn't seem to work:
// returns an empty string
var dir = cocoon.context.getInitParameter("upload-directory");
var list = new Array(dir);
cocoon.sendPage("test-pipeline", {"list": list});
The test-pip
Sylvain Wallez писал(а):
FYI, I created a page on the wiki to collect albums of pictures taken
during the GetTogether: http://wiki.apache.org/cocoon/GT2004Pictures
Have a look to get a feeling of what happened there. And if you have some
pictures, add a link to your album!
Could you pelase ad
Art Spasky писал(а):
Hi all.
Does anybody know where to find innstruction how to install Cocoon 2.1.5.1 on Tomcat 5.0 or Jetty 5.0?
Thank you in advance.
Could you please write your messages in plain text?
I run Cocoon 2.1.5 with Tomcat 5.0 (win32 and Linux) without any problems. I
just de
Hi All!
My flowscript function try to get the value of an init parameter but the
getInitParameter() method doesn't seem to work:
// ...
var list = new Array(
"qwer",
cocoon.context.getInitParameter("configurations"),
cocoon.context.getInitParameter("upload-directory"),
Art Spasky писал(а):
Hi all, once more
Does anybody know where to find in one place information about all
pseudo-protocols supported by Cocoon?
I thinks you have to find all the classes implementing the Source interface.
Timur
Jorg Heymans писал(а):
Timur Izhbulatov wrote:
Hi All!
I use Cocoon 2.1.5 and
cocoon.context.getInitParameter("upload-directory") doesn't seem to work:
// returns an empty string
var dir = cocoon.context.getInitParameter("upload-directory");
did you uncomment
Hi all!
I got a problem with updating a resource. The problem seems similar to the
one discussed in this thread[1]. But what versions xalan, xerces, etc.
should I update to? I use Cocoon 2.1.5 and Tomcat 5.5.2.
Thanks in advance.
Timur
[1] http://marc.theaimsgroup.com/?l=xml-cocoon-users&
XUpdate works fine with xalan from xindice CVS placed in the
tomcat/common/endorsed/ directory.
http://cvs.apache.org/viewcvs.cgi/xml-xindice/java/lib/
Timur Izhbulatov писал(а):
Hi all!
I got a problem with updating a resource. The problem seems similar to the
one discussed in this
Hi all!
There's a bug[1] in Xindice included in Cocoon 2.1.5 and a patch is
available. I think the patch should be applyed to Xindice which Cocoon
uses.
[1] http://marc.theaimsgroup.com/?l=xindice-users&m=109949860123580&w=2
Timur
---
Hi All!
I've developed a simple CertificateGenerator which can be used to convert
X.509 certificates to XML.
I could publish it if somebody is interested, but unfortunately I can't put
it on our corporate web site at the moment. I could send the source code to
somebody who'll publish it some
Reinhard Poetz писал(а):
I suggest adding it as patch to Bugzilla:
http://wiki.apache.org/cocoon/ProjectManagement
--
Reinhard
Thanks for you suggestion but I don't think it's a good idea.
1)I don't have a CVS version of Cocoon and getting it seems to be quite
difficult 'cause I'm behind a s
Hi all!
I want to export some of my global sitemap variables to the flow script in
one place rather than pass them every time I call a flow script function
from a pipeline.
Seems that the only way to do this is calling java to get values of global
sitemap variables and assign these values to
[ISO-8859-1] Aurйlien DEHAY писал(а):
Saulius Grigaliunas wrote:
Hello Aurйlien,
Maybe you can look at the encoding of xsl file, or try with xalan. It
was the only thing I change to make my forms utf-8 aware.
Well thanks for your help, that didn't work, but I accidently found
solution mys
is of course the first tool coming to mind,
but i'd like also to have a look at it's competitors (if any).
You should also take a look at the maki project
(http://maki.sourceforge.net/)
--
Timur Izhbulatov
-
To unsu
ironment.resolveURI(AbstractEnviron
ment.java:518)
at org.apache.cocoon.generation.FileGenerator.setup(FileGenerator.java:79)
... And so on
Any ideas?
Thanks in advance,
--
Timur Izhbulatov
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
69 matches
Mail list logo