Bartosz Zgodziński wrote:
The problem is that, that my form.js has only few lines. One funcfion.

and the appropriate cocoon.load() statement, right?

function form1()
{
 var form = new Form("forms/d_nowyTyp.xml");
 form.showForm("nowy.html");
print ("out");
}

I meant the Form.js (big F) to be found at
src/blocks/forms/java/org/apache/cocoon/forms/flow/javascript
you will need to rebuild cocoon however since that will bundle it up in the [webapp]/WEB-INF/lib/cocoon-forms.jar


as you can see it gets quite hacky, and (in geneeral) you should not need ever to do this, just that I don't see what you are missing here

I know tak 'out' apers every time I press submit buton (when ther is a
validation error and there is no). I have to look in log file. Tomoraow I

odd indeed, maybe in stead of printing "out" you could be inspecting the form's values in stead


print(form.lookupWidget("/opis").getValue()) and stuff like that

will continue working. Today I'm going to bed. In my country it's midnight,
it's always midnight on the internet :-)
(by the way I'm based in belgium, which is probably the same timezone (CET) as Poland?)


and I've been working from 10 o'clock in the morning. It's enought for me.
Thanks for your help.


you're welcome, we're missing something obvious here, things should just work...
-marc=
--
Marc Portier http://outerthought.org/
Outerthought - Open Source, Java & XML Competence Support Center
Read my weblog at http://blogs.cocoondev.org/mpo/
[EMAIL PROTECTED] [EMAIL PROTECTED]


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



Reply via email to