Re: [i18n] Xalan replaces encoded characters with entities

2004-04-27 Thread Sjur Nørstebø Moshagen
På 28. apr. 2004 kl. 00.58 skrev Joerg Heinicke:

On 20.04.2004 11:02, Sjur Nørstebø Moshagen wrote:

all my XML documents are completely in UTF-8, but Cocoon outputs 
entities for many non-ascii characters. Although this does not create 
any badly formatted pages, it does increase the size of the output 
html file (most such utf-8 characters will take 2 bytes, whereas the 
entities regularly take 7 or more bytes), and seems both unneccessary 
and some extra work in an all-utf-8 context, both for the server and 
the client. As my site contains a lot of these characters, I would 
like to turn it off. But it doesn't seem to be possible:
After some searching I hunted down the following paragraph in the 
description for XalanJ 2.6.0 
(http://xml.apache.org/xalan-j/readme.html):
• For HTML output, Xalan-Java 2 outputs character entity 
references (© etc.) for the special characters designated in  
Appendix A. DTDs of the XHTML 1.0: The Extensible HyperText Markup  
Language. Xalan-Java 1.x, on the other hand, outputs literal 
characters for some of these special characters.
That is, it seems default behaviour, and I have found no Cocoon or 
other documentiation or tips to change it. Anyone can help me with 
this?
I don't know any option to influence this behaviour.
Thanks for the answer. Due to the lack of responses (apart from yours), 
and the general lack of documentation on this feature, I have accepted 
the behaviour as intended and non-changeable. The "solution" would be 
to change from HTML to XML (e.g. XHTML). On the other hand, the 
behaviour has the nice (most likely intended) side effect that even 
browsers/OS-es as old as to not support Unicode/UTF-8 will be able to 
render all non-ASCII characters that are enccoded as entities. Not that 
that is very useful on my site, but it _does_ make it possible to read 
help/info pages that explain the character set issues involved for the 
site, and how possible browser problems can be resolved.

So for the time being I won't do anything to change the output, despite 
the increased size.

Sjur

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Troubles installing latest cocoon on Debian with tomcat 3.3 andJDK 1.1

2004-04-27 Thread Dickson Tam
I use Debian too, and the way I got cocoon 2 running is by downloading and 
compiling the latest cocoon, tomcat, and ant sources, as well as installing the
java sdk from sun. Apt-get is great for small stuff, but in  general I've found that
it is easier to compile major server applications into /usr/local and update environment
variables and links than to use apt.

Dickson Tam

On Tue, 27 Apr 2004 21:04:38 +0200
 "Fabio Duo" <[EMAIL PROTECTED]> wrote:
I didn't figured out, how to install jdk1.4 on debian
Is there no other chance to get cocoon2 running?
Thanks
-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 27. April 2004 19:03
To: [EMAIL PROTECTED]
Subject: Re: Troubles installing latest cocoon on Debian with tomcat 3.3
andJDK 1.1

On 27.04.2004 18:48, Fabio Duo wrote:
Hello

I tried to install cocoon2 on Debian with apt-get. 
I have JDK1.1, Tomcat 3.3.
I also installed cocoon2-example.
When I access no my Server I receive the following error message:

java.lang.ClassFormatError: Bad major version number ..

Full Error Message can be viewed on
http://webbox462.server-home.net:8081/cocoon2.
I have no idea what has the wrong version.

Does somebody have a hint for me?
Or is there a tutorial how to install the latest Cocoon version on Debain?
This means the class was compiled with a more recent JDK than the one you
use at run time. JDK 1.1 is really old, nothing newer available?
Joerg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Database Insert Across Multiple Tables

2004-04-27 Thread Christian Haul
Mike Dickson wrote:
When you hit the "new user" button in the Modular Database Actions demo
application it does a GET with the user info and the group info.  Why are
only the user data listed below as params?  Shouldn't the group data be also
listed as params?
Oh well, this is only a guard -- a condition that protects the 
invocation of the insert with a check that the most important attributes 
are present. The add action reads the data directly from the request.

In other words, how are the group params being passed in?
Please have a look at the descriptor.xml (I've removed the comments):

   
  
 


org.apache.cocoon.components.modules.output.OutputModule:user.uid[0]

 
 

 
  
   
There are two  declarations for the UID column. The second is the 
one you may care about: It accesses a request attribute instead of a 
request parameter. The attribute will be set by the preceeding insert
to the users table! This is necessary, since the UID is a autoincrement 
column and the value is known only after the insert.

However, the "GID" data is read from a request parameter again (because 
it has been entered by the user on the form).

	Chris.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: [i18n] Xalan replaces encoded characters with entities

2004-04-27 Thread Joerg Heinicke
On 20.04.2004 11:02, Sjur Nørstebø Moshagen wrote:

all my XML documents are completely in UTF-8, but Cocoon outputs 
entities for many non-ascii characters. Although this does not create 
any badly formatted pages, it does increase the size of the output html 
file (most such utf-8 characters will take 2 bytes, whereas the entities 
regularly take 7 or more bytes), and seems both unneccessary and some 
extra work in an all-utf-8 context, both for the server and the client. 
As my site contains a lot of these characters, I would like to turn it 
off. But it doesn't seem to be possible:

After some searching I hunted down the following paragraph in the 
description for XalanJ 2.6.0 (http://xml.apache.org/xalan-j/readme.html):

• For HTML output, Xalan-Java 2 outputs character entity 
references (© etc.) for the special characters designated in  
Appendix A. DTDs of the XHTML 1.0: The Extensible HyperText Markup  
Language. Xalan-Java 1.x, on the other hand, outputs literal 
characters for some of these special characters.


That is, it seems default behaviour, and I have found no Cocoon or other 
documentiation or tips to change it. Anyone can help me with this?
I don't know any option to influence this behaviour.

Joerg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Namespace problem while publishing WML pages to some mobiles

2004-04-27 Thread Markus Heussen
Thank you very much for that hint! I will add a transformer to solve my
problem.

Markus

> -Original Message-
> From: Joerg Heinicke [mailto:[EMAIL PROTECTED]
> Sent: Tuesday, April 27, 2004 11:30 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Namespace problem while publishing WML pages to some
> mobiles
>
>
> On 27.04.2004 23:18, Markus Heussen wrote:
>
> > Hi.
> >
> > My job is to publish WML pages to mobiles. I generate the
> source WML syntax
> > using the serverpages generator. Testing it I realized that the
> namespace
> > declaration in the root wml element is a problem for some mobiles like
> > panasonic.
> >
> > The page cannot be displayed with the following structure:
> >
> > http://apache.org/xsp";>
> > 
> > 
> >  content="max-age=0"/>
> >  content="no-store"/>
> > 
> > http://apache.org/xsp";)
> > manually, the page can be displayed.
> >
> > Therefore this problem is a general problem for me because using the
> > cinclude or cforms or i18n transformer the xmlns declaration is
> always put
> > to the output.
> >
> > How can I prevent this behavior?
>
> Yes, that's a known "feature". Do you have a stylesheet in the pipeline?
> Then don't copy elements in there, but create new of them. Copying
> elements copies also their namespaces. If you do not have a stylesheet
> in the pipeline you probably have to add one:
>
> http://wiki.cocoondev.org/Wiki.jsp?page=RemoveNamespaces
>
> Joerg
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Namespace problem while publishing WML pages to some mobiles

2004-04-27 Thread Joerg Heinicke
On 27.04.2004 23:18, Markus Heussen wrote:

Hi.

My job is to publish WML pages to mobiles. I generate the source WML syntax
using the serverpages generator. Testing it I realized that the namespace
declaration in the root wml element is a problem for some mobiles like
panasonic.
The page cannot be displayed with the following structure:

http://apache.org/xsp";>





Removing the namespace declaration (xmlns:xsp="http://apache.org/xsp";)
manually, the page can be displayed.
Therefore this problem is a general problem for me because using the
cinclude or cforms or i18n transformer the xmlns declaration is always put
to the output.
How can I prevent this behavior?
Yes, that's a known "feature". Do you have a stylesheet in the pipeline? 
Then don't copy elements in there, but create new of them. Copying 
elements copies also their namespaces. If you do not have a stylesheet 
in the pipeline you probably have to add one:

http://wiki.cocoondev.org/Wiki.jsp?page=RemoveNamespaces

Joerg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Namespace problem while publishing WML pages to some mobiles

2004-04-27 Thread Markus Heussen
Hi.

My job is to publish WML pages to mobiles. I generate the source WML syntax
using the serverpages generator. Testing it I realized that the namespace
declaration in the root wml element is a problem for some mobiles like
panasonic.

The page cannot be displayed with the following structure:

http://apache.org/xsp";>





http://apache.org/xsp";)
manually, the page can be displayed.

Therefore this problem is a general problem for me because using the
cinclude or cforms or i18n transformer the xmlns declaration is always put
to the output.

How can I prevent this behavior?

Thanx for any help!

Markus


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



retrieving XML from db using SQLTransformer (was: Strange thingy with pipeline)

2004-04-27 Thread Joerg Heinicke
On 27.04.2004 21:43, DoomHammer wrote:

JH> Can you tell us what exactly you store and retrieve in and from the
JH> database, i.e. which entities you need to replace? Are it the equation
JH> or complete MathML?
Serialized it looks like this:

http://www.w3.org/1998/Math/MathML";>


a
3

=−1,  
a
8

=2


But that's already with @disable-output-escaping, isn't it? Without it 
the XML would came out as  and so on?

I did a quick search on SQLTransformer, but it seems it provides no XML 
datatype. Is it possible to switch to XSP/ESQL, where the XML datatype 
is provided (i.e. the XML string is parsed) and you get real SAX events 
out of it? This depends more or less and the generator step you have in 
use at the moment.

Joerg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Troubles installing latest cocoon on Debian with tomcat 3.3 andJDK 1.1

2004-04-27 Thread Ugo Cei
Il giorno 27/apr/04, alle 21:04, Fabio Duo ha scritto:

I didn't figured out, how to install jdk1.4 on debian
Just like you install it on every other Linux system out there: you 
download the .bin file from java.sun.com and run it in the directory 
you want it to be installed (/usr/local for instance).

Is there no other chance to get cocoon2 running?
Not even worth trying.

	Ugo

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Sorry, Cocoon couldn't find the resource you requested.

2004-04-27 Thread Ugo Cei
Il giorno 27/apr/04, alle 16:02, beyaNet Consultancy ha scritto:

		  
I think it should be ${continuation.id}. What does the generated HTML 
look like? Do you see a long string of numbers there?

	Ugo

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re[2]: Strange thingy with pipeline

2004-04-27 Thread DoomHammer
JH> Can you tell us what exactly you store and retrieve in and from the
JH> database, i.e. which entities you need to replace? Are it the equation
JH> or complete MathML?

JH> Joerg

Serialized it looks like this:


http://apache.org/cocoon/SQL/2.0";>
Hello


This is my first Cocoon2 page filled with sql data!












1Wstęp2Matematyka1Trygonometria2Ciągi liczbowe1Co¶ 3atwego 
(dopuszczaj±cy)1Wyznacz ciąg arytmetyczny mając dane:
http://www.w3.org/1998/Math/MathML";>


a
3

=−1,  
a
8

=2


,

and so on

Send here full XML attached?

DoomHammer


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Troubles installing latest cocoon on Debian with tomcat 3.3 andJDK 1.1

2004-04-27 Thread Joerg Heinicke
On 27.04.2004 21:04, Fabio Duo wrote:

I didn't figured out, how to install jdk1.4 on debian
Is there no other chance to get cocoon2 running?
I guess it's easier to install a recent JDK than to run Cocoon on JDK 
1.1. As far as I know for Cocoon 2.1 you need at least JDK 1.3, for 
Cocoon 2.0 probably JDK 1.2.

Which Cocoon version are you using? You seem to have a binary release, 
so it's probably a 2.0 release. Try to download the appropriate source 
download and try it to build it using your JDK. If you get a compile 
error it will not work with JDK 1.1.

Joerg

-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED] 

On 27.04.2004 18:48, Fabio Duo wrote:

Hello

I tried to install cocoon2 on Debian with apt-get. 
I have JDK1.1, Tomcat 3.3.
I also installed cocoon2-example.
When I access no my Server I receive the following error message:

java.lang.ClassFormatError: Bad major version number ..

Full Error Message can be viewed on
http://webbox462.server-home.net:8081/cocoon2.
I have no idea what has the wrong version.

Does somebody have a hint for me?
Or is there a tutorial how to install the latest Cocoon version on Debain?


This means the class was compiled with a more recent JDK than the one you
use at run time. JDK 1.1 is really old, nothing newer available?
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Troubles installing latest cocoon on Debian with tomcat 3.3 andJDK 1.1

2004-04-27 Thread Fabio Duo
I didn't figured out, how to install jdk1.4 on debian
Is there no other chance to get cocoon2 running?
Thanks

-Original Message-
From: Joerg Heinicke [mailto:[EMAIL PROTECTED] 
Sent: Dienstag, 27. April 2004 19:03
To: [EMAIL PROTECTED]
Subject: Re: Troubles installing latest cocoon on Debian with tomcat 3.3
andJDK 1.1

On 27.04.2004 18:48, Fabio Duo wrote:
> Hello
> 
> I tried to install cocoon2 on Debian with apt-get. 
> I have JDK1.1, Tomcat 3.3.
> I also installed cocoon2-example.
> When I access no my Server I receive the following error message:
> 
> java.lang.ClassFormatError: Bad major version number ..
> 
> Full Error Message can be viewed on
> http://webbox462.server-home.net:8081/cocoon2.
> 
> I have no idea what has the wrong version.
> 
> Does somebody have a hint for me?
> Or is there a tutorial how to install the latest Cocoon version on Debain?

This means the class was compiled with a more recent JDK than the one you
use at run time. JDK 1.1 is really old, nothing newer available?

Joerg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Dynamically changing labels, was Re: Woody + FlowScript :documentation on model

2004-04-27 Thread Uchenna Igwebuike
I am a big user of that widget and it should absolutely stay with the
product - Brilliant widget. 

-Original Message-
From: Bruno Dumon [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 27, 2004 9:50 AM
To: [EMAIL PROTECTED]
Subject: Re: Dynamically changing labels, was Re: Woody + FlowScript
:documentation on model

On Tue, 2004-04-27 at 18:59, Tim Larson wrote:
> On Tue, Apr 27, 2004 at 06:14:34PM +0200,
[EMAIL PROTECTED] wrote:
> > Dear Tim ,
> > 
> > I also think about it but my problem is that I'm in an international

> > environment and that I use i18n to provide message
> > So what I want is changing an   with the key I
want. 
> > Is it possible with widget output ?
> 
> It should be possible using a "messages" widget.  See the comments in
> the flowscript for the "customvalidationdemo" sample form:
>   cocoon-2.1.4/src/blocks/woody/samples/flow/customvalidationdemo.js
>
cocoon-2.1.4/src/blocks/woody/samples/forms/customvalidationdemo_form.xm
l
>
cocoon-2.1.4/src/blocks/woody/samples/forms/customvalidationdemo_templat
e.xml

I'm wondering if:

* anyone is using the messages widget? I've added it quite some time ago
because a user seemed to need something like that, but haven't ever used
it myself nor ever heard about someone using it.

* and if there aren't more people who simply need a message, rather than
a messages, widget, and if it'd be useful to add such a widget?

-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Cocoon FlowScript + woody : change styling via javascript

2004-04-27 Thread Uchenna Igwebuike
You should use a message widget that is embedded within a css style that
highlights the message if it contains anything. When you want to add a
message use:

form.getWidget("message").addMessage("My Message");

Define the widget in the form model:





In your template:




In your style sheet (or you can include it in the page)

.messageSection {
background-color: #E1E0D7;
border: 2px inset #C9C9C9;
}

.messageSectionStyle {
font-family: "Times New Roman", Times, serif;
font-size: 10pt;
font-style: italic;
font-weight: bold;
color: #336699;
}

-Original Message-
From: Bruno Dumon [mailto:[EMAIL PROTECTED] 
Sent: Tuesday, April 27, 2004 9:46 AM
To: [EMAIL PROTECTED]
Subject: Re: Cocoon FlowScript + woody : change styling via javascript

On Tue, 2004-04-27 at 18:11, [EMAIL PROTECTED] wrote:
> Dear Bruno,
> 
> Thanks for the info
> 
> In fact I'm looking for a solution to display a hidden field  when
> some conditions are met.

ah, I see.

> 
> By example, in my flowscript , I check some value then I discover an
> error.
> At this moment I will change the widget "message" and return the form
> to the user with his data.
> But the messagebox must appear only if the validation is ok.

I see two solutions (for now):

* can't the styling for the "message" widget work so that it doesn't
display anything when there's no message?

* or else, set "somewhere" a flag to indicate the message widget should
be shown, and then use jx:if/jx:choose in the template to check the
value of the flag. As for that "somewhere", this could be:
- an attribute on the form (see Form.setAttribute)
- something passed as viewData to the pipeline
- or again easiest, just check the value of the widget itself,
only display if it has a value

BTW, what is the type of your "message" widget?

-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Problem binding Woody form to Map entries in Bean

2004-04-27 Thread Markx . Johnson

Thanks Joerg,

That worked fine for populating the form with values.  The jury is still out on whether the changed values are getting back into the bean.  Some problems I need to track down in the java code.  No Exception on the form.save(bean) though.

Thanks

Mark







Joerg Heinicke <[EMAIL PROTECTED]>
04/27/2004 12:07 PM
Please respond to users

        
        To:        [EMAIL PROTECTED]
        cc:        
        Subject:        Re: Problem binding Woody form to Map entries in Bean


On 27.04.2004 18:18, [EMAIL PROTECTED] wrote:

> Hi,
> 
> I am having a problem I hope someone can help me with.  I have a Bean with 
> a Map of metadata in it and I want to be able to create a Woody form to 
> update the metadata.  The Map keys are all strings and there is a 
> getMetaData(String key) method.
> I have been able to bind to Map entries with:
> 
>         
> 
> The problem is some of the Map key strings have spaces in them.  For 
> example
> 
>         
> 
> Which results in a JXPathException due to an invalid XPath.
> 
> Can anybody suggest how I can make this work?

http://jakarta.apache.org/commons/jxpath/users-guide.html#Map%20Element%20Access

alternative syntax:

"[EMAIL PROTECTED]'home']/zipCode"

So for your example it would probably be



But no guarantee that this also works on saving the value back to the 
bean. Try it out if you get a JXPathException then too.

Joerg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





web.xml parameters in cocoon action classes

2004-04-27 Thread Anna Bikkina
Hi,

I have a n application which runs on cocoon. I have to get some parameters 
from web.xml or cocoon.xconf into my action classes and use them there. I 
tried using 
ObjectModelHelper.getContext(objectModel).getInitParameter("timelimit");

but it didnt work. It is returning null. How can I access init parameters in 
cocoon whcih are specified in web.xml

Thanks in advace,
Anna.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Invalid encoding name "ISO-8859-15"

2004-04-27 Thread Bruno Dumon
On Tue, 2004-04-27 at 20:17, defe wrote:
> Joerg Heinicke wrote:
> 
> > On 27.04.2004 16:07, [EMAIL PROTECTED] wrote:
> >
> >> Hi,
> >> How can i generate from an xml file which is "ISO-8859-15" encoded?
> >> I've got the following error :
> >> Invalid encoding name "ISO-8859-1"
> >>
> >> thanks in advance
> >
> >
> > Is this mismatch ISO-8859-15 and ISO-8859-1 by intent?, 
> 
> 
> Sorry, i meant  "Invalid encoding name ISO-8859-15".
> 
> >
> >
> > Does the old notation "ISO8859_1" (or _15) work? What's the version of 
> > the JDK you are using?
> >
> i'm using the latest jdk1.4. Those ISO-8859-15 files are fetched on a 
> remote web server, out of my control.
> So i won't be able to change the encoding attribute of those documents. 
> I have to deal with it...

Have you put Xerces in the endorsed library path?

According to the following document:
http://xml.apache.org/xerces2-j/faq-general.html#faq-8

Xerces should support ISO-8859-15.

-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Invalid encoding name "ISO-8859-15"

2004-04-27 Thread defe
Joerg Heinicke wrote:

On 27.04.2004 16:07, [EMAIL PROTECTED] wrote:

Hi,
How can i generate from an xml file which is "ISO-8859-15" encoded?
I've got the following error :
Invalid encoding name "ISO-8859-1"
thanks in advance


Is this mismatch ISO-8859-15 and ISO-8859-1 by intent?, 


Sorry, i meant  "Invalid encoding name ISO-8859-15".



Does the old notation "ISO8859_1" (or _15) work? What's the version of 
the JDK you are using?

i'm using the latest jdk1.4. Those ISO-8859-15 files are fetched on a 
remote web server, out of my control.
So i won't be able to change the encoding attribute of those documents. 
I have to deal with it...

thanks anyway.



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: newbie question: Woody Binding help

2004-04-27 Thread Bruno Dumon
Hi Billie,

On Tue, 2004-04-27 at 21:06, Billie wrote:
> Hi Joerg,
> 
> I tried to do exactly that, but I got that error about 'not bound'.  In my form 
> definition, I do have 
> that line:
> 
> 
> 
> and then the pipeline for mychoices.xml leads to an xml document with this text: 
> 
> 
> 
> 
> 
> 
> 
> What does that error mean?  And what might be going wrong?

You are missing the namespace declaration. I suppose you know what XML
namespaces are? If not, be sure read about it (their are enough
resources/books for learning XML out there)

The correct version is:

http://apache.org/cocoon/woody/definition/1.0";>





-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: newbie question: Woody Binding help

2004-04-27 Thread Billie
Hi Joerg,

I tried to do exactly that, but I got that error about 'not bound'.  In my form 
definition, I do have 
that line:



and then the pipeline for mychoices.xml leads to an xml document with this text: 







What does that error mean?  And what might be going wrong?



> On 27.04.2004 20:25, Billie wrote:
> 
> > I did look at the WoodyDatatypeReference page, but I didn't understand. 
> When I tried to 
> > do just what you said there, I got an error 'The prefix "wd" for element
> "wd:selection-
> > list" is not bound' and I'm not sure what it means.  When you say "transform
> it to the 
> > format Woody expects"...  what format is that?
> > Billie
> 
> 
> 
> is part of the form definition, not the binding. It points to another 
> pipeline matching on mychoices.xml that provides a data structure like 
> the following one:
> 
> 
>
>
>
>  three
>
>
>
> 
> 
> >>whereby mychoices.xml would match on a sitemap pipeline which could e.g.
> >>use ESQL or the SqlTransformer to execute the query, and then transform
> >>it to the format woody expects by using an XSLT.
> 
> And this XML structure can be easily created using ESQL (XSP), 
> SQLTransformer and maybe an additional XSLT. This is exactly what Bruno 
> wrote.
> 
> Joerg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: newbie question: Woody Binding help

2004-04-27 Thread Joerg Heinicke
On 27.04.2004 20:25, Billie wrote:

I did look at the WoodyDatatypeReference page, but I didn't understand.  When I tried to 
do just what you said there, I got an error 'The prefix "wd" for element "wd:selection-
list" is not bound' and I'm not sure what it means.  When you say "transform it to the 
format Woody expects"...  what format is that?
Billie


is part of the form definition, not the binding. It points to another 
pipeline matching on mychoices.xml that provides a data structure like 
the following one:


  
  
  
three
  
  
  

whereby mychoices.xml would match on a sitemap pipeline which could e.g.
use ESQL or the SqlTransformer to execute the query, and then transform
it to the format woody expects by using an XSLT.
And this XML structure can be easily created using ESQL (XSP), 
SQLTransformer and maybe an additional XSLT. This is exactly what Bruno 
wrote.

Joerg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: newbie question: Woody Binding help

2004-04-27 Thread Billie
I did look at the WoodyDatatypeReference page, but I didn't understand.  When I tried 
to 
do just what you said there, I got an error 'The prefix "wd" for element "wd:selection-
list" is not bound' and I'm not sure what it means.  When you say "transform it to the 
format Woody expects"...  what format is that?
Billie


> On Tue, 2004-04-27 at 17:51, Billie wrote:
> > What I'd like to do is populate a form selection list with the results of a
> SQL query.  I'm pretty new at Woody overall, and I 
> > haven't been able to figure out binding using the userdocs.  Is there a
> step-by-step tutorial of binding anywhere out there, or 
> > can someone help describe to me how this would be done?  
> 
> You don't need the binding for this.
> 
> See also:
> http://wiki.cocoondev.org/Wiki.jsp?page=WoodyDatatypeReference
> 
> You define the selection list as follows:
> 
> 
> whereby mychoices.xml would match on a sitemap pipeline which could e.g.
> use ESQL or the SqlTransformer to execute the query, and then transform
> it to the format woody expects by using an XSLT.
> 
> -- 
> Bruno Dumon http://outerthought.org/
> Outerthought - Open Source, Java & XML Competence Support Center
> [EMAIL PROTECTED]  [EMAIL PROTECTED]
> 
> 
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Invalid encoding name "ISO-8859-15"

2004-04-27 Thread Joerg Heinicke
On 27.04.2004 16:07, [EMAIL PROTECTED] wrote:

Hi, 

How can i generate from an xml file which is "ISO-8859-15" encoded?
I've got the following error :
  
  Invalid encoding name "ISO-8859-1"

thanks in advance
Is this mismatch ISO-8859-15 and ISO-8859-1 by intent?

Does the old notation "ISO8859_1" (or _15) work? What's the version of 
the JDK you are using?

Joerg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Problem binding Woody form to Map entries in Bean

2004-04-27 Thread Joerg Heinicke
On 27.04.2004 18:18, [EMAIL PROTECTED] wrote:

Hi,

I am having a problem I hope someone can help me with.  I have a Bean with 
a Map of metadata in it and I want to be able to create a Woody form to 
update the metadata.  The Map keys are all strings and there is a 
getMetaData(String key) method.
I have been able to bind to Map entries with:



The problem is some of the Map key strings have spaces in them.  For 
example



Which results in a JXPathException due to an invalid XPath.

Can anybody suggest how I can make this work?
http://jakarta.apache.org/commons/jxpath/users-guide.html#Map%20Element%20Access

alternative syntax:

"[EMAIL PROTECTED]'home']/zipCode"

So for your example it would probably be



But no guarantee that this also works on saving the value back to the 
bean. Try it out if you get a JXPathException then too.

Joerg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Troubles installing latest cocoon on Debian with tomcat 3.3 and JDK 1.1

2004-04-27 Thread Joerg Heinicke
On 27.04.2004 18:48, Fabio Duo wrote:
Hello

I tried to install cocoon2 on Debian with apt-get. 
I have JDK1.1, Tomcat 3.3.
I also installed cocoon2-example.
When I access no my Server I receive the following error message:

java.lang.ClassFormatError: Bad major version number ..

Full Error Message can be viewed on
http://webbox462.server-home.net:8081/cocoon2.
I have no idea what has the wrong version.

Does somebody have a hint for me?
Or is there a tutorial how to install the latest Cocoon version on Debain?
This means the class was compiled with a more recent JDK than the one 
you use at run time. JDK 1.1 is really old, nothing newer available?

Joerg

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Dynamically changing labels, was Re: Woody + FlowScript : documentation on model

2004-04-27 Thread Bruno Dumon
On Tue, 2004-04-27 at 18:59, Tim Larson wrote:
> On Tue, Apr 27, 2004 at 06:14:34PM +0200, [EMAIL PROTECTED] wrote:
> > Dear Tim ,
> > 
> > I also think about it but my problem is that I'm in an international 
> > environment and that I use i18n to provide message
> > So what I want is changing an   with the key I want. 
> > Is it possible with widget output ?
> 
> It should be possible using a "messages" widget.  See the comments in
> the flowscript for the "customvalidationdemo" sample form:
>   cocoon-2.1.4/src/blocks/woody/samples/flow/customvalidationdemo.js
>   cocoon-2.1.4/src/blocks/woody/samples/forms/customvalidationdemo_form.xml
>   cocoon-2.1.4/src/blocks/woody/samples/forms/customvalidationdemo_template.xml

I'm wondering if:

* anyone is using the messages widget? I've added it quite some time ago
because a user seemed to need something like that, but haven't ever used
it myself nor ever heard about someone using it.

* and if there aren't more people who simply need a message, rather than
a messages, widget, and if it'd be useful to add such a widget?

-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Troubles installing latest cocoon on Debian with tomcat 3.3 and JDK 1.1

2004-04-27 Thread Fabio Duo
Title: Troubles installing latest cocoon on Debian with tomcat 3.3 and JDK 1.1






Hello


I tried to install cocoon2 on Debian with apt-get. 

I have JDK1.1, Tomcat 3.3.

I also installed cocoon2-example.

When I access no my Server I receive the following error message:


java.lang.ClassFormatError: Bad major version number ..


Full Error Message can be viewed on

http://webbox462.server-home.net:8081/cocoon2.


I have no idea what has the wrong version.


Does somebody have a hint for me?

Or is there a tutorial how to install the latest Cocoon version on Debain?



Sincerely

Fabio





Re: Cocoon FlowScript + woody : change styling via javascript

2004-04-27 Thread Bruno Dumon
On Tue, 2004-04-27 at 18:11, [EMAIL PROTECTED] wrote:
> Dear Bruno,
> 
> Thanks for the info
> 
> In fact I'm looking for a solution to display a hidden field  when
> some conditions are met.

ah, I see.

> 
> By example, in my flowscript , I check some value then I discover an
> error.
> At this moment I will change the widget "message" and return the form
> to the user with his data.
> But the messagebox must appear only if the validation is ok.

I see two solutions (for now):

* can't the styling for the "message" widget work so that it doesn't
display anything when there's no message?

* or else, set "somewhere" a flag to indicate the message widget should
be shown, and then use jx:if/jx:choose in the template to check the
value of the flag. As for that "somewhere", this could be:
- an attribute on the form (see Form.setAttribute)
- something passed as viewData to the pipeline
- or again easiest, just check the value of the widget itself,
only display if it has a value

BTW, what is the type of your "message" widget?

-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Dynamically changing labels, was Re: Woody + FlowScript : documentation on model

2004-04-27 Thread Tim Larson
On Tue, Apr 27, 2004 at 06:14:34PM +0200, [EMAIL PROTECTED] wrote:
> Dear Tim ,
> 
> I also think about it but my problem is that I'm in an international 
> environment and that I use i18n to provide message
> So what I want is changing an   with the key I want. 
> Is it possible with widget output ?

It should be possible using a "messages" widget.  See the comments in
the flowscript for the "customvalidationdemo" sample form:
  cocoon-2.1.4/src/blocks/woody/samples/flow/customvalidationdemo.js
  cocoon-2.1.4/src/blocks/woody/samples/forms/customvalidationdemo_form.xml
  cocoon-2.1.4/src/blocks/woody/samples/forms/customvalidationdemo_template.xml

--Tim Larson

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Dynamically changing labels, was Re: Woody + FlowScript : documentation on model

2004-04-27 Thread Bruno Dumon
(didn't pay attention that reply was going to dev list)

On Tue, 2004-04-27 at 18:32, Tim Larson wrote:
> [Copying to the dev list for additional discussion]
> 
> On Tue, Apr 27, 2004 at 05:53:54PM +0200, Bruno Dumon wrote:
> > On Tue, 2004-04-27 at 16:48, [EMAIL PROTECTED] wrote:
> > > We can of course retrieve the widget, but can we change the label of
> > > the widget, the key of the i18n of the label, can we change the
> > > style,... ?
> 
> > no, no and no, respectively
> 
> > However, things like labels are not changeable on the widget instance
> > level. You're the first one to ask for it. Do you need it? What's your
> > use case?
> 
> I have seen this asked for before, but I do not remember if it was on
> this ml or on the IRC channel.  The current workaround is to use either
> an "output" or a "messages" widget in place of the label to gain full
> control.

Well if people need it we better make it possible. After all, it's
possible to change e.g. the selection list, so why shouldn't it be
possible to change (or rather "override") the label?

> 
> Is this workaround sufficient or does it break any usability standards,
> such as for text-to-speech and other automated systems?
> 
> --Tim Larson
-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: newbie question: Woody Binding help

2004-04-27 Thread Bruno Dumon
On Tue, 2004-04-27 at 17:51, Billie wrote:
> What I'd like to do is populate a form selection list with the results of a SQL 
> query.  I'm pretty new at Woody overall, and I 
> haven't been able to figure out binding using the userdocs.  Is there a step-by-step 
> tutorial of binding anywhere out there, or 
> can someone help describe to me how this would be done?  

You don't need the binding for this.

See also:
http://wiki.cocoondev.org/Wiki.jsp?page=WoodyDatatypeReference

You define the selection list as follows:


whereby mychoices.xml would match on a sitemap pipeline which could e.g.
use ESQL or the SqlTransformer to execute the query, and then transform
it to the format woody expects by using an XSLT.

-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Dynamically changing labels, was Re: Woody + FlowScript : documentation on model

2004-04-27 Thread laurent_rorive

Dear Tim ,

I also think about it but my problem
is that I'm in an international environment and that I use i18n to provide
message
So what I want is changing an   with the key I want. 
Is it possible with widget output ?






Tim Larson <[EMAIL PROTECTED]>
27/04/2004 18:32
Please respond to users
        
        To:
       [EMAIL PROTECTED], [EMAIL PROTECTED]
        cc:
       
        Subject:
       Dynamically changing labels, was Re:
Woody + FlowScript : documentation on model


[Copying to the dev list for additional discussion]

On Tue, Apr 27, 2004 at 05:53:54PM +0200, Bruno Dumon wrote:
> On Tue, 2004-04-27 at 16:48, [EMAIL PROTECTED] wrote:
> > We can of course retrieve the widget, but can we change the label
of
> > the widget, the key of the i18n of the label, can we change the
> > style,... ?

> no, no and no, respectively

> However, things like labels are not changeable on the widget instance
> level. You're the first one to ask for it. Do you need it? What's
your
> use case?

I have seen this asked for before, but I do not remember if it was on
this ml or on the IRC channel.  The current workaround is to use either
an "output" or a "messages" widget in place of the
label to gain full
control.

Is this workaround sufficient or does it break any usability standards,
such as for text-to-speech and other automated systems?

--Tim Larson

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: What is best ? Woody , JXForms, Cocoon Forms ???

2004-04-27 Thread laurent_rorive

Thx 

could you provide me urls with docs







"Antonio Gallardo" <[EMAIL PROTECTED]>
27/04/2004 18:13
Please respond to users
        
        To:
       [EMAIL PROTECTED]
        cc:
       
        Subject:
       Re: What is best ? Woody , JXForms,
Cocoon Forms ???


[EMAIL PROTECTED] dijo:
> Dear All,
>
> I'm actually a bit confused about all those "Technology"
!!!
>
> What is best : Woody , Cocoon Forms or JX Forms.

HI:

JXFors are deprecated on the next release. For these reasons I would not
recommend it.

In the current 2.1.4 release Woody exists and as told before it was
renamed to Cocoon Forms on the next release (currently on CVS).

There is also a migration tool from Woody to CForms. So I would suggests:

1-If you can use the CVS versions, then use directly to Cocoon Forms. The
docos are the same as Woody + some changes.
2-If you want to use a released version, then better use Woody. That way
you will be able to migrate later to Cocoon Forms.

Best Regards,

Antonio Gallardo

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Re: Cocoon FlowScript + woody : change styling via javascript

2004-04-27 Thread laurent_rorive

Dear Bruno,

Thanks for the info

In fact I'm looking for a solution to
display a hidden field  when some conditions are met.

By example, in my flowscript , I check
some value then I discover an error.
At this moment I will change the widget
"message" and return the form to the user with his data.
But the messagebox must appear only
if the validation is ok.

I do not speek about simple validations
. These are validation that I have to make with my back end system.

If you have any idea ..

Thx

Laurent






Bruno Dumon <[EMAIL PROTECTED]>
27/04/2004 17:59
Please respond to users
        
        To:
       [EMAIL PROTECTED]
        cc:
       
        Subject:
       Re: Cocoon FlowScript + woody : change
styling via _javascript_


On Tue, 2004-04-27 at 15:54, [EMAIL PROTECTED]
wrote:
> Dear All,
> 
> Is it possible to change the styling of a widget or better change
a
> real property of the real input field via the Flowscript ?

No, because flowscript does simply not know about (nor has access to)
these things. Especially not to the "real input field", which
isn't
modeled by an object model or something, but generated by an XSLT.

Do you have a need to change the styling of your widgets at runtime?

You might be able to do useful things by generating the form template
using the JXTemplateGenerator.

-- 
Bruno Dumon                  
          http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]              
           [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]




Problem binding Woody form to Map entries in Bean

2004-04-27 Thread Markx . Johnson

Hi,

I am having a problem I hope someone can help me with.  I have a Bean with a Map of metadata in it and I want to be able to create a Woody form to update the metadata.  The Map keys are all strings and there is a getMetaData(String key) method.
I have been able to bind to Map entries with:

        

The problem is some of the Map key strings have spaces in them.  For example

        

Which results in a JXPathException due to an invalid XPath.

Can anybody suggest how I can make this work?

Thanks

Mark

Dynamically changing labels, was Re: Woody + FlowScript : documentation on model

2004-04-27 Thread Tim Larson
[Copying to the dev list for additional discussion]

On Tue, Apr 27, 2004 at 05:53:54PM +0200, Bruno Dumon wrote:
> On Tue, 2004-04-27 at 16:48, [EMAIL PROTECTED] wrote:
> > We can of course retrieve the widget, but can we change the label of
> > the widget, the key of the i18n of the label, can we change the
> > style,... ?

> no, no and no, respectively

> However, things like labels are not changeable on the widget instance
> level. You're the first one to ask for it. Do you need it? What's your
> use case?

I have seen this asked for before, but I do not remember if it was on
this ml or on the IRC channel.  The current workaround is to use either
an "output" or a "messages" widget in place of the label to gain full
control.

Is this workaround sufficient or does it break any usability standards,
such as for text-to-speech and other automated systems?

--Tim Larson

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: What is best ? Woody , JXForms, Cocoon Forms ???

2004-04-27 Thread Antonio Gallardo
[EMAIL PROTECTED] dijo:
> Dear All,
>
> I'm actually a bit confused about all those "Technology" !!!
>
> What is best : Woody , Cocoon Forms or JX Forms.

HI:

JXFors are deprecated on the next release. For these reasons I would not
recommend it.

In the current 2.1.4 release Woody exists and as told before it was
renamed to Cocoon Forms on the next release (currently on CVS).

There is also a migration tool from Woody to CForms. So I would suggests:

1-If you can use the CVS versions, then use directly to Cocoon Forms. The
docos are the same as Woody + some changes.
2-If you want to use a released version, then better use Woody. That way
you will be able to migrate later to Cocoon Forms.

Best Regards,

Antonio Gallardo

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: initialize MultiValueField in Action

2004-04-27 Thread Bruno Dumon
On Tue, 2004-04-27 at 19:04, [EMAIL PROTECTED] wrote:
> Hi
> 
> I'd like initialize a MultiValueFiel with double-listbox style in an action.
> 
> this is the definition :
> 
> 
>   
>   
>
>   
> 
> 
> And this the instance :
> 
> 
>   
>   Select your data: 
>   
>   
> 
> 
> 
> First I'm trying with 1 value. I get it from  the data base. I'm doing something 
> like this :
> 
> MultiValueField Act_data=(MultiValueField) form.getWidget("data");
> 
> Act_data.setValue(resultSet_data);
> 
> 
> I obtein this  error :
> 
> java.lang.RuntimeException: Cannot set the value of widget domaine

it is impossible that you get this error from the above code, simply
because there is no widget called "domaine". Are you sure the error
occurs at that location?

-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Cocoon FlowScript + woody : change styling via javascript

2004-04-27 Thread Bruno Dumon
On Tue, 2004-04-27 at 15:54, [EMAIL PROTECTED] wrote:
> Dear All,
> 
> Is it possible to change the styling of a widget or better change a
> real property of the real input field via the Flowscript ?

No, because flowscript does simply not know about (nor has access to)
these things. Especially not to the "real input field", which isn't
modeled by an object model or something, but generated by an XSLT.

Do you have a need to change the styling of your widgets at runtime?

You might be able to do useful things by generating the form template
using the JXTemplateGenerator.

-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Woody + FlowScript : documentation on model

2004-04-27 Thread Bruno Dumon
On Tue, 2004-04-27 at 16:48, [EMAIL PROTECTED] wrote:
> Dear All,
> 
> I'm looking for some documentation on the object "model" returned in
> the flowscript when doing...
> 
> form.showForm("new-display-pipeline/login");
> var model = form.getModel();

I would advice you not to use that particular model, which is a
javascript-oriented model to the form. This has been superceded by new
work (see the "v2" sample). Work is still needed on integrating all that
together in a new, stable flowscript API.

if you do form.getWidget(), you will get the java Form object.

API docs for cocoon can be found here:
http://cocoon.apache.org/2.1/apidocs/index.html

e.g.:
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/woody/formmodel/Form.html
and
http://cocoon.apache.org/2.1/apidocs/org/apache/cocoon/woody/formmodel/Field.html
are important ones

> 
> 
> We can of course retrieve the widget, but can we change the label of
> the widget, the key of the i18n of the label, can we change the
> style,... ?

no, no and no, respectively

But don't let these answers scare you away.

The idea is as follows:

* you define your form model in a definition file
* the form definition file is parsed into a form definition object model
(which is actually a tree of widget definition objects)
* you create a form instance based on the form model. The form instance
is a tree of widget instance objects.
* the form/widget instances are lightweight objects and reference their
definition counterpart for most needs. The widget instances mostly store
the user-entered data.
* on the widget-instance level you can however change some other things
as well, like change the selection list, add event listeners and
validators.

However, things like labels are not changeable on the widget instance
level. You're the first one to ask for it. Do you need it? What's your
use case?

Styling info does not exist at all in the form model, only in the
template.

-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



initialize MultiValueField in Action

2004-04-27 Thread a_bilbao
Hi

I'd like initialize a MultiValueFiel with double-listbox style in an action.

this is the definition :


  
  
   
  


And this the instance :


  
  Select your data: 
  
  



First I'm trying with 1 value. I get it from  the data base. I'm doing something like 
this :

MultiValueField Act_data=(MultiValueField) form.getWidget("data");

Act_data.setValue(resultSet_data);


I obtein this  error :

java.lang.RuntimeException: Cannot set the value of widget domaine

Any suggestions. (I'm using cocoon-2.1.4)

thanks 

andoni bilbao




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



newbie question: Woody Binding help

2004-04-27 Thread Billie
What I'd like to do is populate a form selection list with the results of a SQL query. 
 I'm pretty new at Woody overall, and I 
haven't been able to figure out binding using the userdocs.  Is there a step-by-step 
tutorial of binding anywhere out there, or 
can someone help describe to me how this would be done?  
Thanks,
Billie

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



newbie question: Woody Binding help

2004-04-27 Thread Billie
I just wrote this but I realized I wasn't signed up for the list first, so let me try 
this again so that it goes through:  

I'm trying to populate a selection list from the results of a SQL query.  I'm kind of 
new at Woody and binding in general, and 
I'm having trouble getting a good grasp of it.  The documentation on the cocoon web 
site was a bit confusing.  So far, I was able 
to create and submit static forms only.  Could someone help me take the next steps in 
getting from there to using binding with a 
SQL query?  If there are any step-by-step tutorials out there, please help me find 
them, and any advice you could give me 
directly to help me with this would be much appreciated also.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Cocoon 1.8 to cocoon 2.1.4

2004-04-27 Thread Yacoubou . WAOLANY
Title: Cocoon 1.8 to cocoon 2.1.4





Hi all,


Did one of you try to migrate an application from coocon 1.8 to cocoon 2.1.4?
Kinds regards,
Yacoubou WAOLANY





Re: What is best ? Woody , JXForms, Cocoon Forms ???

2004-04-27 Thread laurent_rorive

Could you provide me some sample ?

Thx

Re: XSP and cocoon cache

2004-04-27 Thread Olivier Billard
Olivier Billard wrote:

Jan Hoskens wrote:

Hmm, you're right, I was a bit off on that one.
But you don't need to shut down your server, just clean your working 
dir. If
you're using Tomcat, you can find your compiled XSP pages under the work
dir:

C:\app\Jakarta-Tomcat_4.1.29\work\Standalone\localhost\_\cocoon-files\org\ap 

ache\cocoon\www\file_\

There should be your sitedir with some classes in it.

Or just clean it all the way under Standalone.
Unfortunately, it doesn't work : the class isn't recompiled and the 
output is the same, even when I change the concerned pipe to 
"noncaching"...
And when i "touch" the source file, it works again... until the next 
error...

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: What is best ? Woody , JXForms, Cocoon Forms ???

2004-04-27 Thread Olivier Billard
I use woody and it works well.
woody took the name of cocoon forms some time ago but it's the same 
(woody=older, cocoon forms=newer)

I didn't tried JXForms

--
Olivier
[EMAIL PROTECTED] wrote:
Dear All,

I'm actually a bit confused about all those "Technology" !!!

What is best : Woody , Cocoon Forms or JX Forms.

Further more , on internet I always retrieve different ways for the Form 
handling with Flowscript ...

Is there a clear documentation that explain what must be used ,  what 
will be support in the futur , some tips ,... (except the Cocoon Wiki)

Thx

Laurent


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


What is best ? Woody , JXForms, Cocoon Forms ???

2004-04-27 Thread laurent_rorive

Dear All, 

I'm actually a bit confused about all those "Technology" !!!


What is best : Woody , Cocoon Forms or JX Forms. 

Further more , on internet I always retrieve different ways for the Form
handling with Flowscript ... 

Is there a clear documentation that explain what must be used ,  what
will be support in the futur , some tips ,... (except the Cocoon Wiki)


Thx 

Laurent 

Suspicious Attachment

2004-04-27 Thread antivirus
--
Warning: Message delivery wasn't performed.

Reason: Our virus scanner detected very suspicious code in
the attachment of a mail addressed to a user of our system.

The following message will not be delivered:

From: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]
Subj: What is best : Woody , Cocoon Forms or JXForms ?
Date: Tue, 27 Apr 2004 16:48:54 +0200

Feel free to contact [EMAIL PROTECTED] if you can't cope with it.
--

This mail was automatically generated by TrashScan v0.08


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



What is best : Woody , Cocoon Forms or JXForms ?

2004-04-27 Thread laurent_rorive

Dear All, 

I'm actually a bit confused about all
those "Technology" !!!

What is best : Woody , Cocoon Forms
or JX Forms.

Further more , on internet I always
retrieve different ways for the Form handling with Flowscript ...

Is there a clear documentation that
explain what must be used ,  what will be support in the futur , some
tips ,... (except the Cocoon Wiki)

Thx

Laurent


 

What is best : Woody , Cocoon Forms or JXForms ?

2004-04-27 Thread laurent_rorive

Dear All, 

I'm actually a bit confused about all
those "Technology" !!!

What is best : Woody , Cocoon Forms
or JX Forms.

Further more , on internet I always
retrieve different ways for the Form handling with Flowscript ...

Is there a clear documentation that
explain what must be used ,  what will be support in the futur , some
tips ,... (except the Cocoon Wiki)

Thx

Laurent


 

Woody + FlowScript : documentation on model

2004-04-27 Thread laurent_rorive

Dear All,

I'm looking for some documentation on
the object "model" returned in the flowscript when doing...

form.showForm("new-display-pipeline/login");
var model = form.getModel();


We can of course retrieve the widget,
but can we change the label of the widget, the key of the i18n of the label,
can we change the style,... ?

Laurent



Re: XSP and cocoon cache

2004-04-27 Thread Olivier Billard
Jan Hoskens wrote:
Hmm, you're right, I was a bit off on that one.
But you don't need to shut down your server, just clean your working dir. If
you're using Tomcat, you can find your compiled XSP pages under the work
dir:
C:\app\Jakarta-Tomcat_4.1.29\work\Standalone\localhost\_\cocoon-files\org\ap
ache\cocoon\www\file_\
There should be your sitedir with some classes in it.

Or just clean it all the way under Standalone.
Unfortunately, it doesn't work : the class isn't recompiled and the 
output is the same, even when I change the concerned pipe to "noncaching"...

- Original Message - 
From: "Olivier Billard" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Tuesday, April 20, 2004 4:01 PM
Subject: Re: XSP and cocoon cache



Hi Jan,

Thanks for you answer.
Answers below :
Jan Hoskens wrote:


Are you using subsitemaps?
Yes


Then check that you're having this attribute on
your mount:

all is ok


If not, check cocoon.xconf for


doesn't this feature tell cocoon to recompile the sitemap if it changes
? In this case, recompilation of XSP is not impacted, isn't it ?


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


Re: Sorry, Cocoon couldn't find the resource you requested.

2004-04-27 Thread beyaNet Consultancy
further to my earlier post, even if I comment out the sitemap pipe for the continuation, instead of getting an error saying that there was no pipe match, I still get the above message when trying to post the form from within the iframe.

Peter
On 27 Apr 2004, at 15:02, beyaNet Consultancy wrote:

Hi,
I am having an issue concerning calling a flowscript continuation from a form within an iframe.

The form is being generated from the following sequence:

1.

function artistDetails() {
var artistID = cocoon.parameters.artistID;
var artist = Artist.getArtist(artistID);
var artistStk = stk.getStock(artistID);

var artist_name = artist.getArtistName();
var artist_info = artist.getArtistInfo();
var track_info = artistStk.getItemTitle();
var track_location = artistStk.getItemDemo();
var stock_code = artistStk.getID();


if (userGlobal != null) {
var userID = userGlobal.getID();
}


cocoon.sendPageAndWait(,{8988,1312,1514"artistID":artistID,8988,1312,1514"artist_name":artist_name,8988,1312,1514"artist_info":artist_info,8988,1312,1514"track_info":track_info,8988,1312,1514"track_location":track_location,8988,1312,1514"stock_code":stock_code,8988,1312,1514"userGlobal":userGlobal,8988,1312,1514">"userID":userGlobal.getID()});


cocoon.sendPage("addNewStock");


cocoon.redirectTo("artistDetails/" + artistID);
}

2.
			





form page is generated within iframe and has a continuation id in the form tag

3. on submitting the page, the continuation sequence should follow onto cocoon.sendPage("addNewStock"). Instead I am getting the above mentioned error.

The sitemap pipe for the continuation is:





The frame code is:

		  














what am I doing wrong?


Peter


Invalid encoding name "ISO-8859-15"

2004-04-27 Thread defe
Hi, 

How can i generate from an xml file which is "ISO-8859-15" encoded?
I've got the following error :
  
  Invalid encoding name "ISO-8859-1"

thanks in advance


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Cocoon FlowScript + woody : change styling via javascript

2004-04-27 Thread laurent . rorive

Dear All,

Is it possible to change the styling
of a widget or better change a real property of the real input field via
the Flowscript ?

Thanks for your help


Sorry, Cocoon couldn't find the resource you requested.

2004-04-27 Thread beyaNet Consultancy
Hi,
I am having an issue concerning calling a flowscript continuation from a form within an iframe.

The form is being generated from the following sequence:

1.

function artistDetails() {
var artistID = cocoon.parameters.artistID;
var artist = Artist.getArtist(artistID);
var artistStk = stk.getStock(artistID);

var artist_name = artist.getArtistName();
var artist_info = artist.getArtistInfo();
var track_info = artistStk.getItemTitle();
var track_location = artistStk.getItemDemo();
var stock_code = artistStk.getID();


if (userGlobal != null) {
var userID = userGlobal.getID();
}


cocoon.sendPageAndWait(,{8989,1313,1515"artistID":artistID,8989,1313,1515"artist_name":artist_name,8989,1313,1515"artist_info":artist_info,8989,1313,1515"track_info":track_info,8989,1313,1515"track_location":track_location,8989,1313,1515"stock_code":stock_code,8989,1313,1515"userGlobal":userGlobal,8989,1313,1515">"userID":userGlobal.getID()});


cocoon.sendPage("addNewStock");


cocoon.redirectTo("artistDetails/" + artistID);
}

2.
			





form page is generated within iframe and has a continuation id in the form tag

3. on submitting the page, the continuation sequence should follow onto cocoon.sendPage("addNewStock"). Instead I am getting the above mentioned error.

The sitemap pipe for the continuation is:





The frame code is:

		  














what am I doing wrong?


Peter


What is best : Woody , Cocoon Forms or JXForms ?

2004-04-27 Thread laurent . rorive

Dear All, 

I'm actually a bit confused about all
those "Technology" !!!

What is best : Woody , Cocoon Forms
or JX Forms.

Further more , on internet I always
retrieve different ways for the Form handling with Flowscript ...

Is there a clear documentation that
explain what must be used ,  what will be support in the futur , some
tips ,... (except the Cocoon Wiki)

Thx

Laurent


 

What is best : Woody , Cocoon Forms or JXForms ?

2004-04-27 Thread laurent . rorive

Dear All, 

I'm actually a bit confused about all
those "Technology" !!!

What is best : Woody , Cocoon Forms
or JX Forms.

Further more , on internet I always
retrieve different ways for the Form handling with Flowscript ...

Is there a clear documentation that
explain what must be used ,  what will be support in the futur , some
tips ,... (except the Cocoon Wiki)

Thx

Laurent


 

Re: Check if session is valid

2004-04-27 Thread defe
Quoting Carlos Dias <[EMAIL PROTECTED]>:

> Hi,
> There is a way to check if a session is valid?!
> I know I can use the action type "session-isvalid" in all pipelines, but that
> is a little bit tricky.
> I want to define a default handler for the whole sitemap for an invalid
> session situation, but I can't find the right exception class to define
> in the exception selector.
> 
> Thanks in advance,
> Carlos Dias


maybe you could write :


  
  
  
   
 ... 
  
   
... 
  
  ...  


 ...
  
 
 
regards



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Woody + FlowScript : documentation on model

2004-04-27 Thread laurent . rorive

Dear All,

I'm looking for some documentation on
the object "model" returned in the flowscript when doing...

form.showForm("new-display-pipeline/login");
var model = form.getModel();


We can of course retrieve the widget,
but can we change the label of the widget, the key of the i18n of the label,
can we change the style,... ?

Laurent



[Fwd: cform/ woody - event based filling of selection list]

2004-04-27 Thread Bruno Dumon
Forwarding this message to dev@ to make sure Sylvain sees it.

The problem is events that are caused as a result of calling setValues
on widgets before the form is first displayed, are now executed
immediately, when the viewData isn't available yet (as that is only
specified when doing showForm).


Coincidentally, I was just looking at that while studying Form.js, and
found it strange that the eventlisteners/validators would have access to
viewData. viewData is data meant to be passed on the view. What we need
here is something different, 'formContextData' or something.

I propose that any context data that we want to make available to
eventlisteners (or validators for that matter) is separated from the
viewData. The user/developer may of course choose to simply use the same
object for that purpose.

In fact, maybe this 'formContextData' could simply be the attributes
that can be set on a form?

-Forwarded Message-
From: Joern Wallstabe <[EMAIL PROTECTED]>
To: [EMAIL PROTECTED]
Subject: cform/ woody - event based filling of selection list
Date: Tue, 27 Apr 2004 14:29:36 +

Hello all,

I'm migrated from 
cocoon 2.1.4 (dist)  -> cocoon-2.1.5 (cvs)
Woody   -> CForm
woody2.js -> Form.js
and run into follwing problem.

At one time I'm trying to fill a selection list based on a 'change' event. 

form.showForm("view/editForm.cforms", {
myList:myList   
 });





var listwidget = event.source.parent.getWidget("my_list");

listwidget.setSelectionList(viewData.myList,"key","value");
...

It worked well with version 2.1.4

But with version 2.1.5 I'm getting this error

viewData" is not defined.
org.apache.avalon.framework.CascadingRuntimeException: "viewData" is not 
defined.

How do I have to change my functions? Upgrade to Form.js (v2) ?

Thanks!

Jörn

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
-- 
Bruno Dumon http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
[EMAIL PROTECTED]  [EMAIL PROTECTED]


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Check if session is valid

2004-04-27 Thread Carlos Dias



Hi,
There is a way to check if a session is 
valid?!
I know I can use the action type "session-isvalid" 
in all pipelines, but that is a little bit tricky.
I want to define a default handler for the whole 
sitemap for an invalid session situation, but I can't find the right exception 
class to define
in the exception selector.
 
Thanks in advance,
Carlos Dias