Re: Manipulating the DOM in flowscript

2004-11-29 Thread Derek Hohls
Brent

Thanks for the clarification on the syntax; as I did point
out in the post where I stated the problem - that was 
just an *example* of something I had tried; not all the 
other attempts were in that format or with that specific 
DOM call or syntax  but nothing I tried would work - 
hence I  assumed the problem might be with the way that 
the DOM calls (in general) work inside flow or with how 
I was  attempting to tackle manipulation of forms data
(and I don't think that was an unreasonable assumption;
yes, I did read some guidelines on working with DOM in
Javascript - obviously I botched the specifics in the case
that was posted).  I have already posted elsewhere that
while this may have turned out not to be a *pure* Cocoon 
problem, at the time I encountered it, I think it did classify
as such because I was uncertain as to what the cause was 
(for example, we also often answer simple XSLT questions).  
YMMV.

My 0.5c
Derek

>>> [EMAIL PROTECTED] 2004/11/29 08:36:17 PM >>>
> I think what is fundamentally wrong is your comprehansion of DOM.
What
> you're trying to do:
> 
>  >  document.insertBefore(keyNode,keyNode);
> 
> makes absolutely no sense to me, and probably to DOM. What does it
mean
> "to insert a node before itself"???

Yes - you'd never use the same node as arguments to insertBefore.  If
I understand the API you would use insertBefore like this:


Brent Johnson
Web Developer


if "newChild" is a reference to a node with child nodes like
"4" and refChild is a reference to the "" node then a
call to:

document.insertBefore(newChild, refChild);

Would have a result of something like:


4
Brent Johnson
Web Developer


I've never used it.. but that seems to be what the DOM API says.  Per
the API:
"Inserts the node newChild before the existing child node refChild. If
refChild is null, insert newChild at the end of the list of children.
"

Hope that helps... and I agree that this isnt a Cocoon problem and you
should probably read the DOM Java API a little closer before posting a
Java Exception to this mailing list.  Just my 2 cents.

- Brent

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


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


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



Re: Manipulating the DOM in flowscript

2004-11-29 Thread Derek Hohls
Great, thanks Tony for a positive contibution and good
support!

>>> [EMAIL PROTECTED] 2004/11/29 11:57:40 PM >>>
Hi guys,
I wrote a simple wiki page about creating and editing xml documents 
using flow:
http://wiki.apache.org/cocoon/FlowBasedXMLEditor 

I attached a little flowscript file which exposes most of the DOM api 
calls in flow. It might be a little vague as it was written for an 
application with a specific purpose and is in no way generic enough but

it will give you some clues about manipulating DOM objects in flow.

Regards,
Tony

Brent Johnson wrote:

> > I think what is fundamentally wrong is your comprehansion of DOM.
What
> > you're trying to do:
> >
> >  >  document.insertBefore(keyNode,keyNode);
> >
> > makes absolutely no sense to me, and probably to DOM. What does it
mean
> > "to insert a node before itself"???
>
> Yes - you'd never use the same node as arguments to insertBefore. 
If
> I understand the API you would use insertBefore like this:
>
> 
> Brent Johnson
> Web Developer
> 
>
> if "newChild" is a reference to a node with child nodes like
> "4" and refChild is a reference to the "" node then a
> call to:
>
> document.insertBefore(newChild, refChild);
>
> Would have a result of something like:
>
> 
> 4
> Brent Johnson
> Web Developer
> 
>
> I've never used it.. but that seems to be what the DOM API says.  Per

> the API:
> "Inserts the node newChild before the existing child node refChild.
If
> refChild is null, insert newChild at the end of the list of
children.
> "
>
> Hope that helps... and I agree that this isnt a Cocoon problem and
you
> should probably read the DOM Java API a little closer before posting
a
> Java Exception to this mailing list.  Just my 2 cents.
>
> - Brent
>
>
-
> To unsubscribe, e-mail: [EMAIL PROTECTED] 
> For additional commands, e-mail: [EMAIL PROTECTED] 
>

- 
This email is from Civica Pty Limited and it, together with any
attachments,
is confidential to the intended recipient(s) and the contents may be
legally
privileged or contain proprietary and private information. It is
intended
solely for the person to whom it is addressed. If you are not an
intended
recipient, you may not review, copy or distribute this email. If
received in
error, please notify the sender and delete the message from your
system
immediately. 
Any views or opinions expressed in this email and any files transmitted
with
it are those of the author only and may not necessarily reflect the
views of
Civica and do not create any legally binding rights or obligations
whatsoever. Unless otherwise pre-agreed by exchange of hard copy
documents
signed by duly authorised representatives, contracts may not be
concluded on
behalf of Civica by email. 
Please note that neither Civica nor the sender accepts any
responsibility
for any viruses and it is your responsibility to scan the email and
the
attachments (if any). All email received and sent by Civica may be
monitored
to protect the business interests of Civica. 
- 


-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
MailScanner thanks transtec Computers for their support.


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



Invalidate cachingURI coplet cache

2004-11-29 Thread pguillard
Hi all,
Question1:
I know it's possible to invalidate the cachingURI coplet cache 
"manually" from within flow, xsp or action but don't know how, here is 
where i am in flow:
function reset_cache() {
   var cidmanager = 
Packages.org.apache.cocoon.portal.profile.impl.CopletInstanceDataManager();
   var mycoplet = new 
Packages.org.apache.cocoon.portal.coplet.adapter.impl.CachingURICopletAdapter();
   var cid = cidmanager.getCopletInstanceData("test-1")
   mycoplet.setCacheInvalid(cid);
}   
Question2: Is this strategy correct ?
- I plan to use this to invalidate cachingURI coplet cache after a form 
has been submitted, then the user going back to this portal-tab will see 
the coplet refreshed with the form again
- Some users may update things that will change the content of other 
coplets (not concerning their profile and without having to login 
again), i assume i should also invalidate the cache for that coplets / 
that users in order to view these coplets updated.

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


Re: procedure for configure saxon cocoon 2.1.6

2004-11-29 Thread Colin Paul Adams
> "Andres" == Andres Taborda <[EMAIL PROTECTED]> writes:

Andres> xmlns:saxon="http://sf.net/saxon";>

That's your problem.

it should be http://saxon.sf.net/
-- 
Colin Paul Adams
Preston Lancashire

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



procedure for configure saxon cocoon 2.1.6

2004-11-29 Thread Andres Taborda
hello list
some users can help me for configure and test
saxon 8.1

I have problems when use saxon:assign extension of
saxon, my xsl not recognize the tag.

I first copy the saxon8.jat to lib/local and
uncomments
the section of cocoon.xconf for saxon, after addition 
el match for sitemap.

this are file. 


Hello




http://www.w3.org/1999/XSL/Transform";
version="2.0"
>


   


   http://sf.net/saxon"/>
   The value of i is 




  http://sf.net/saxon";>
  El valor es  
 

  








the message of error is saxon:attribute not recognize.



_
Do You Yahoo!?
Información de Estados Unidos y América Latina, en Yahoo! Noticias.
Visítanos en http://noticias.espanol.yahoo.com

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



Re: Including External Apps in Cocoon Portal

2004-11-29 Thread pguillard
Hi Matt,
I'm worried i can't help you much, since i checked JAlbum and discovered 
it uses JavaBeans.
But just a suggestion :
When i did reuse an external application (JSP Servlet) in portal, i had 
the same situation, testing first that my application was ok in cocoon 
but outside portal and didn't get it to work in portal : I found that 
the servlet request, response and session objects were not the classic 
ones ( http.HttpServletRequest), thus i had to transform Request / 
Response objects for the portal use  : 
apache.cocoon.environment.Request, apache.cocoon.environment.Response 
etc. I suppose you'll have to get into JAlbum to make some adaptations too.

PS:Another thing: the pipeline to show your images can't be in the 
coplet pipeline but in the main sitemap pipeline, otherwise you get no 
image rendered.

Hope it helps,
Phil
Ralph Goers wrote:
Do you have anything in errors.log or on stdout?  Also, in 2.1.6 stuff
also goes to portal.log.  I seem to recall that that file wasn't
configured in 2.1.5.
Ralph
Matt Innes said:
 

Instance Data:
...
  
 Exhibit
  
...
Layout::

...
   
   
   Exhibit-1
   
   

Would have included these in the original mail, but I thought I'd
checked them to within an inch of their lives :-)
Matt Innes, UTB Consulting
matt.innesutbconsulting.com
-Original Message-
From: Ralph Goers [mailto:[EMAIL PROTECTED]
Sent: 29 November 2004 16:41
To: [EMAIL PROTECTED]
Subject: Re: Including External Apps in Cocoon Portal
What do your coplet-instance-data and layout definitions look like?
Ralph

-
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]


Invitation to the Boston Cocoon User Group

2004-11-29 Thread Gregor J. Rothfuss
We would like to announce the formation of the Boston Cocoon Users Group.
Individuals representing developers and organizations building
Cocoon-based systems met on 22 November 2004 to organize this group.

http://wiki.apache.org/cocoon/CocoonUserGroupBoston

The objective for the Boston Cocoon Users Group is to provide a forum for
end-users and technologists to learn about Apache Cocoon. We plan on
holding monthly meetings in the Boston area. The meetings will allow
participants to do the following:

-- Describe examples of Cocoon use;
-- Present design patterns;
-- Share real-world experience;
-- Discuss business and technology objectives;
-- Present case studies; and,
-- See vendor technical presentations.

We have defined the following initial program.

Date: 9 December 2004
Presentation: Print on Demand Solutions
  Gregor Rothfuss
Time: 6:00 - 7:30
Location: TBD

Date: 13 January 2005
Presentation: Cocoon Best Practices
  Jean Pierre Lejacq
Time: 6:00 - 7:30
Location: TBD

Date: 10 February 2005
Presentation: Application-building Lessons Learned
  Eric Meyer
Time: 6:00 - 7:30
Location: TBD

Date: 11 March 2005
Presentation: TBD
Time: 6:00 - 7:30
Location: TBD

We would like to invite anyone interested in Apache Cocoon or XML
technologies to participate. The group wants to support the interests of
both novice and experts. If you need more information, please contact
either:

Brad Kain[EMAIL PROTECTED]
Gregor Rothfuss  [EMAIL PROTECTED]

We are currently seeking volunteers for future presentations, and a
meeting location in Boston or Cambridge. If you want to participate in our
first meeting, then please add your name to the wiki page.

-- 
Gregor J. Rothfuss
COO, Wyona   Content Management Solutionshttp://wyona.com
Apache Lenya  http://lenya.apache.org
[EMAIL PROTECTED]   [EMAIL PROTECTED]

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



Re: Slightly OT: accessing serial port using Java

2004-11-29 Thread Skip Carter

> The problem is: how do I write the part that can communicate with the serial
> port? I don't know if I can do this in Java and I have never written
> software specifically for the Linux platform.

One trick that I have used in the past was to write a small C program
that talked to the serial port and opened a TCP socket on localhost.
I then connected to the TCP socket from my Java application using
the usual java.net API (this works for the parallel port too).


Skip


-- 
 Dr. Everett (Skip) Carter   Phone: 831-641-0645 FAX:  831-641-0647
 Taygeta Network Security Services   email: [EMAIL PROTECTED]
 1340 Munras Ave., Suite 314 WWW: http://www.taygeta.net/
 Monterey, CA. 93940












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



Re: Manipulating the DOM in flowscript

2004-11-29 Thread Tony Edwards
Title: Re: Manipulating the DOM in flowscript





Hi guys,
I wrote a simple wiki page about creating and editing xml documents 
using flow:
http://wiki.apache.org/cocoon/FlowBasedXMLEditor


I attached a little flowscript file which exposes most of the DOM api 
calls in flow. It might be a little vague as it was written for an 
application with a specific purpose and is in no way generic enough but 
it will give you some clues about manipulating DOM objects in flow.


Regards,
Tony


Brent Johnson wrote:


> > I think what is fundamentally wrong is your comprehansion of DOM. What
> > you're trying to do:
> >
> >  >  document.insertBefore(keyNode,keyNode);
> >
> > makes absolutely no sense to me, and probably to DOM. What does it mean
> > "to insert a node before itself"???
>
> Yes - you'd never use the same node as arguments to insertBefore.  If
> I understand the API you would use insertBefore like this:
>
> 
> Brent Johnson
> Web Developer
> 
>
> if "newChild" is a reference to a node with child nodes like
> "4" and refChild is a reference to the "" node then a
> call to:
>
> document.insertBefore(newChild, refChild);
>
> Would have a result of something like:
>
> 
> 4
> Brent Johnson
> Web Developer
> 
>
> I've never used it.. but that seems to be what the DOM API says.  Per 
> the API:
> "Inserts the node newChild before the existing child node refChild. If
> refChild is null, insert newChild at the end of the list of children.
> "
>
> Hope that helps... and I agree that this isnt a Cocoon problem and you
> should probably read the DOM Java API a little closer before posting a
> Java Exception to this mailing list.  Just my 2 cents.
>
> - Brent
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>


- 
This email is from Civica Pty Limited and it, together with any attachments, is confidential to the intended recipient(s) and the contents may be legally privileged or contain proprietary and private information. It is intended solely for the person to whom it is addressed. If you are not an intended recipient, you may not review, copy or distribute this email. If received in error, please notify the sender and delete the message from your system immediately. 

Any views or opinions expressed in this email and any files transmitted with it are those of the author only and may not necessarily reflect the views of Civica and do not create any legally binding rights or obligations whatsoever. Unless otherwise pre-agreed by exchange of hard copy documents signed by duly authorised representatives, contracts may not be concluded on behalf of Civica by email. 

Please note that neither Civica nor the sender accepts any responsibility for any viruses and it is your responsibility to scan the email and the attachments (if any). All email received and sent by Civica may be monitored to protect the business interests of Civica. 

- 





Problems installing cocoon 2.1.5.1 on BEA Weblogic 8.1 sp2

2004-11-29 Thread Per Christian Engdal




Hi,
I have built a cocoon.war file, and deployed it on my BEA Weblogic 8.1
Sp2 (Windows 2000) installation. The deployment works without exceptions, but 
when I try to access cocoon through http://localhost:80/cocoon I get the 
following error message (stack
trace):
java.lang.NoClassDefFoundError: org/apache/log/Logger
at 
org.apache.avalon.framework.logger.LogKitLogger.isWarnEnabled(LogKitLogger.java:122)
at 
org.apache.cocoon.servlet.CocoonServlet.initLogger(CocoonServlet.java:797)
at org.apache.cocoon.servlet.CocoonServlet.init(CocoonServlet.java:306)
at 
weblogic.servlet.internal.ServletStubImpl$ServletInitAction.run(ServletStubImpl.java:993)
at 
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at 
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at 
weblogic.servlet.internal.ServletStubImpl.createServlet(ServletStubImpl.java:869)
at 
weblogic.servlet.internal.ServletStubImpl.createInstances(ServletStubImpl.java:848)
at 
weblogic.servlet.internal.ServletStubImpl.prepareServlet(ServletStubImpl.java:787)
at 
weblogic.servlet.internal.ServletStubImpl.getServlet(ServletStubImpl.java:518)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:362)
at 
weblogic.servlet.internal.ServletStubImpl.invokeServlet(ServletStubImpl.java:305)
at 
weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:6350)
at 
weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:317)
at 
weblogic.security.service.SecurityManager.runAs(SecurityManager.java:118)
at 
weblogic.servlet.internal.WebAppServletContext.invokeServlet(WebAppServletContext.java:3635)
at 
weblogic.servlet.internal.ServletRequestImpl.execute(ServletRequestImpl.java:2585)
at weblogic.kernel.ExecuteThread.execute(ExecuteThread.java:197)
at weblogic.kernel.ExecuteThread.run(ExecuteThread.java:170)
 
I have added xercesImpl-2.6.2.jar and xml-apis.jar to the weblogic server 
CLASSPATH. I have also checked the cocoon.war file to see if the 
loggerkit-1.2.2.jar is included - it is!
Is there anybody with an idea about how to fix this ?
Regards,
Per-Christian Engdal
 


Re: Slightly OT: accessing serial port using Java

2004-11-29 Thread Thor Heinrichs-Wolpert
The sun javax.comm api is there and it works on Solaris & Windows, but 
I don't think it has been updated for quite sometime.

There are a few opensource ones that support the javax.comm interfaces 
on top of the serial io stuff from http://www.rxtx.org/

We've been looking at the SerialIO (http://www.serialio.com) product 
and have found it to be pretty good so far and fairly inexpensive.  As 
you need to hook in some binary libraries into the JVM for serial 
support, it's nice to get the source for both the driver and Java 
classes (which SerialIO) provides in case you run into any issues.

Cheers,
Thor HW
On 29-Nov-04, at 11:42 AM, [EMAIL PROTECTED] wrote:
Guys,
This is slightly off-topic, but since there are so many Java experts 
around
here, I hope someone will react and help me off-list.

For a private pet project I need to connect to a microcontroller using 
the
serial port. I currently have this running as a Delphi program on a 
Windows
95 machine, but I want to replace it with an improved version in 
Java/Cocoon
on a Linux machine.
To keep things simple I want to write a simple program that can read 
the
serial port and put the info in a text file in a directory and read a 
text
file from a (other) directory and put it on the serial port.

A Cocoon-based webapp will read the resulting files and generate 
graphs (in
SVG e.g.) and ask for user input which is written to other files.

The problem is: how do I write the part that can communicate with the 
serial
port? I don't know if I can do this in Java and I have never written
software specifically for the Linux platform.

Thanks.
Bye, Helma
-
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: Slightly OT: accessing serial port using Java

2004-11-29 Thread Bernard D'Have
There is sun communication at least for Windows and Solaris

http://java.sun.com/products/javacomm/index.jsp

Bernard

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Sent: Monday, November 29, 2004 8:42 PM
To: [EMAIL PROTECTED]
Subject: Slightly OT: accessing serial port using Java


Guys,

This is slightly off-topic, but since there are so many Java experts around
here, I hope someone will react and help me off-list.

For a private pet project I need to connect to a microcontroller using the
serial port. I currently have this running as a Delphi program on a Windows
95 machine, but I want to replace it with an improved version in Java/Cocoon
on a Linux machine. 
To keep things simple I want to write a simple program that can read the
serial port and put the info in a text file in a directory and read a text
file from a (other) directory and put it on the serial port.

A Cocoon-based webapp will read the resulting files and generate graphs (in
SVG e.g.) and ask for user input which is written to other files.

The problem is: how do I write the part that can communicate with the serial
port? I don't know if I can do this in Java and I have never written
software specifically for the Linux platform.

Thanks.

Bye, Helma

-
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: Slightly OT: accessing serial port using Java

2004-11-29 Thread Ugo Cei
Il giorno 29/nov/04, alle 20:42, [EMAIL PROTECTED] ha 
scritto:

Guys,
No gals here? ;)
The problem is: how do I write the part that can communicate with the 
serial
port? I don't know if I can do this in Java and I have never written
software specifically for the Linux platform.
I used the SerialPort library a few years ago and I just checked that 
they still seem to support it: 
http://serialio.com/products/serialport/serialport.htm

There is also at least one open project around: 
http://www.geeksville.com/~kevinh/linuxcomm.html

HTH,
Ugo
--
Ugo Cei - http://beblogging.com/


smime.p7s
Description: S/MIME cryptographic signature


Re: Hibernate within Flowscripts

2004-11-29 Thread Ugo Cei
Il giorno 29/nov/04, alle 20:58, Laurent Perez ha scritto:
I'm trying to access a very simple sql table within a flowscript,
using Hibernate. I've read wiki docs but I'm stuck. The hbm.xml and
User.class files are fine, here's my sample function :
function addUser() {
var user = new Packages.company.pojo.User();
user.setName("john");
user.setAge(12);
cocoon.sendPage("addSuccess"); // matched in sitemap
}
I have a pipeline pattern matcher calling "addUser", the flowscript
runs without errors, but the user isn't inserted. I must be missing
something simple (like user.save() or smth) to get this to work, but I
don't see exactly what.
My advice would be to read the Hibernate docs carefully. You should 
create a Hibernate session and save your object using the Session.save 
method. This has nothing to do with flowscript or Cocoon, but is just 
basic Hibernate knowledge.

Also, a Spring environment is available on my server, and I know I can
declare Hibernate beans within applicationContext-hibernate.xml file,
however I do not understand how to load and access the 'Spring'd' bean
from a flowscript either :(
A full sample application using Spring and Hibernate from the 
flowscript is available here: http://new.cocoondev.org/main/projects/43

Ugo
--
Ugo Cei - http://beblogging.com/


smime.p7s
Description: S/MIME cryptographic signature


Re: Slightly OT: accessing serial port using Java

2004-11-29 Thread Jorg Heymans

Tony Collen wrote:
[EMAIL PROTECTED] wrote:
The problem is: how do I write the part that can communicate with the 
serial
port? I don't know if I can do this in Java and I have never written
software specifically for the Linux platform.

I think I looked into this once a long time ago. There aren't any 
built-in serial port libraries in Java, but I think there are a bunch of 
There is the java communications API [1] though. Not sure if it works on 
Linux as well, we've used it successfully on Windows.

HTH
Jorg
[1] http://java.sun.com/products/javacomm/downloads/index.html

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


Re: Hibernate within Flowscripts

2004-11-29 Thread Andrew M
Laurent,
I use flowscript and hibernate, and have no problems with it. In your example you set 2 parameters but do not save the object. For example I do this:

importClass(Packages.mypackages.User);

function newUser() {
var newUser = new User();
		newUser.setFirstName(val1);
newUser.setLastName(val2);
..
//Add new user.
newUser.addNewUser(newUser); 
}

When you say inserted do you mean the user object isn't being saved? If so, do you have a save user object method?

regards

Andrew

On 29 Nov 2004, at 19:58, Laurent Perez wrote:

Hello

I'm trying to access a very simple sql table within a flowscript,
using Hibernate. I've read wiki docs but I'm stuck. The hbm.xml and
User.class files are fine, here's my sample function :

function addUser() {
var user = new Packages.company.pojo.User();
user.setName("john");
user.setAge(12);
cocoon.sendPage("addSuccess"); // matched in sitemap
}

I have a pipeline pattern matcher calling "addUser", the flowscript
runs without errors, but the user isn't inserted. I must be missing
something simple (like user.save() or smth) to get this to work, but I
don't see exactly what.

Also, a Spring environment is available on my server, and I know I can
declare Hibernate beans within applicationContext-hibernate.xml file,
however I do not understand how to load and access the 'Spring'd' bean
from a flowscript either :(

Thanks for any advice

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





Re: Slightly OT: accessing serial port using Java

2004-11-29 Thread Tony Collen
[EMAIL PROTECTED] wrote:
The problem is: how do I write the part that can communicate with the serial
port? I don't know if I can do this in Java and I have never written
software specifically for the Linux platform.
I think I looked into this once a long time ago. There aren't any 
built-in serial port libraries in Java, but I think there are a bunch 
of 3rd-party ones out there. Just Google around.

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


Hibernate within Flowscripts

2004-11-29 Thread Laurent Perez
Hello

I'm trying to access a very simple sql table within a flowscript,
using Hibernate. I've read wiki docs but I'm stuck. The hbm.xml and
User.class files are fine, here's my sample function :

function addUser() {
var user = new Packages.company.pojo.User();
user.setName("john");
user.setAge(12);
cocoon.sendPage("addSuccess"); // matched in sitemap
}

I have a pipeline pattern matcher calling "addUser", the flowscript
runs without errors, but the user isn't inserted. I must be missing
something simple (like user.save() or smth) to get this to work, but I
don't see exactly what.

Also, a Spring environment is available on my server, and I know I can
declare Hibernate beans within applicationContext-hibernate.xml file,
however I do not understand how to load and access the 'Spring'd' bean
from a flowscript either :(

Thanks for any advice

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



Slightly OT: accessing serial port using Java

2004-11-29 Thread H . vanderLinden
Guys,

This is slightly off-topic, but since there are so many Java experts around
here, I hope someone will react and help me off-list.

For a private pet project I need to connect to a microcontroller using the
serial port. I currently have this running as a Delphi program on a Windows
95 machine, but I want to replace it with an improved version in Java/Cocoon
on a Linux machine. 
To keep things simple I want to write a simple program that can read the
serial port and put the info in a text file in a directory and read a text
file from a (other) directory and put it on the serial port.

A Cocoon-based webapp will read the resulting files and generate graphs (in
SVG e.g.) and ask for user input which is written to other files.

The problem is: how do I write the part that can communicate with the serial
port? I don't know if I can do this in Java and I have never written
software specifically for the Linux platform.

Thanks.

Bye, Helma

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



Re: Manipulating the DOM in flowscript

2004-11-29 Thread Brent Johnson
> I think what is fundamentally wrong is your comprehansion of DOM. What
> you're trying to do:
> 
>  >  document.insertBefore(keyNode,keyNode);
> 
> makes absolutely no sense to me, and probably to DOM. What does it mean
> "to insert a node before itself"???

Yes - you'd never use the same node as arguments to insertBefore.  If
I understand the API you would use insertBefore like this:


Brent Johnson
Web Developer


if "newChild" is a reference to a node with child nodes like
"4" and refChild is a reference to the "" node then a
call to:

document.insertBefore(newChild, refChild);

Would have a result of something like:


4
Brent Johnson
Web Developer


I've never used it.. but that seems to be what the DOM API says.  Per the API:
"Inserts the node newChild before the existing child node refChild. If
refChild is null, insert newChild at the end of the list of children.
"

Hope that helps... and I agree that this isnt a Cocoon problem and you
should probably read the DOM Java API a little closer before posting a
Java Exception to this mailing list.  Just my 2 cents.

- Brent

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



Re: How to match\serve .swf (shockwave\flash) files in cocoon?

2004-11-29 Thread Lars Huttar
Hi,
I have a similar match in my sitemap for serving .swf files and it works 
fine.
(Cocoon 2.1.2 and Tomcat 4.1)
Lars

Thomas Kjeldahl Nilsson wrote:
Hello,
I'm having some trouble with serving .swf files in my cocoon webapp.
There doesn't seem to be much info about this on the official project 
or wiki pages. Maybe it's something mind-bogglingly obvious, but I've 
stared myself blind on the sitemap file now.

Problem:
- I have several .swf files.
- My tomcat server seems to be correctly configured for the 
application/x-shockwave-flash mime type.

- I've defined a match in the sitemap:

  

- When accessing a .swf file in the webapp, I get something like this 
in plain text:

http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"; 
STYLE=Position:absolute;LEFT:0;TOP:0 after ALIGN =LEFT ID =RbxHandler 
WIDTH = 830 HEIGHT = 586 ALIGN = left onfocus="doMouseEnter();" onblur 
= "doMouseOut();" onmouseenter="doMouseEnter();" 
onmouseleave="doMouseOut();">  http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash";> 
 

What am I not seeing\doing right here?
best regards,
Thomas Kjeldahl Nilsson
Oslo, Norway

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


RE: Including External Apps in Cocoon Portal

2004-11-29 Thread Ralph Goers
Do you have anything in errors.log or on stdout?  Also, in 2.1.6 stuff
also goes to portal.log.  I seem to recall that that file wasn't
configured in 2.1.5.

Ralph


Matt Innes said:
> Instance Data:
>
> ...
>
>   Exhibit
>
> ...
>
> Layout::
>
> 
> ...
> 
> 
> Exhibit-1
> 
> 
> 
>
> Would have included these in the original mail, but I thought I'd
> checked them to within an inch of their lives :-)
>
> Matt Innes, UTB Consulting
> matt.innesutbconsulting.com
>
> -Original Message-
> From: Ralph Goers [mailto:[EMAIL PROTECTED]
> Sent: 29 November 2004 16:41
> To: [EMAIL PROTECTED]
> Subject: Re: Including External Apps in Cocoon Portal
>
> What do your coplet-instance-data and layout definitions look like?
>
> Ralph
>
>
>
>
> -
> 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: Portal - Idea between Copletinstance and CopletData

2004-11-29 Thread Ralph Goers
There are a couple of ways to pass parameters to coplets:
1. In the layout.  Parameters are specified as 
a.) Parameters under items are added as attributes to the items
generated in the portal xml.
b.) Parameters under layouts are passed as parameters to the
stylesheets configured in the appropriate XSLTAspect.
2. In the XSLTAspect configuration (new with 2.1.6).

Note that all these parameters can contain input module references so they
are resolved when at execution time.

Ralph


Frank Taffelt said:
> Hi,
>
> after playing arround with the new Portal-Framework, there is one thing
> that
> i don't undertstand in the philosophy of the cocoon portal:
>
> in the cocoon portal documentation the following phrase is used:
>
> " ... The set of coplet datas defines the set of available coplets a user
> can choose from. If a user chooses to view a coplet, an instance of this
> coplet data is created. If, e.g. the user chooses the same coplet twice,
> two
> instances are created. This is useful for configurable coplets where the
> user can choose the same coplet with different configurations"
>
> This implies an analogy to objects/classes and their instances, where
> parameters and configurations are passed to Copletinstances (= the same
> what
> an OO constructor does). Ok, this makes copletdata and copletinstances
> easy
> to understand.
>
> But after playing arround i cannot see how i can pass parameters to coplet
> instances. The only way to give some parameters is to feed them to the
> copletdata (which is the object/class and not the instance), is this the
> supposed way of using coplets? Is there a way to configure coplet
> instances
> in the copletinstancedata/portal.xml
>
>
>
> +--+-+-+
> | Frank Taffelt| [EMAIL PROTECTED] |Tel: +49 351 31809 37|
> +--+-+---+-+
> | interface:projects gmbh| Tolkewitzer Str. 49, 01277 Dresden, Germany |
> ++-+
>
>
> -
> 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: Portal - Idea between Copletinstance and CopletData

2004-11-29 Thread Matt Innes
Frank,

I have wondered the same thing. I am muddling through this at the moment
myself, so don't take this as authoritative but it is possible to
specify a coplet when using the coplet:link element within a coplet.

If you look at the bottom of file (line 92)
/samples/blocks/portal/coplets/gallery/gallery.xsl in the Cocoon 2.1.5.1
distribution (poss. others too), a link is being created to pass an
image to a viewer coplet for display.

It is my understanding that you could extend this by aggregating the
link to pass different images to 2 different instances of the viewer
coplet (eg. one for front view and one for top down).

Links like this are driven by the Cocoon event system, so in a custom
scenario you could pipe events to instances of coplets independently of
one another, producing whatever behaviour desired. 

Regards,
Matt

Matt Innes, UTB Consulting
matt.innesutbconsulting.com

-Original Message-
From: Frank Taffelt [mailto:[EMAIL PROTECTED] 
Sent: 29 November 2004 16:53
To: [EMAIL PROTECTED]
Subject: Portal - Idea between Copletinstance and CopletData

Hi,

after playing arround with the new Portal-Framework, there is one thing
that
i don't undertstand in the philosophy of the cocoon portal:

in the cocoon portal documentation the following phrase is used:

" ... The set of coplet datas defines the set of available coplets a
user
can choose from. If a user chooses to view a coplet, an instance of this
coplet data is created. If, e.g. the user chooses the same coplet twice,
two
instances are created. This is useful for configurable coplets where the
user can choose the same coplet with different configurations"

This implies an analogy to objects/classes and their instances, where
parameters and configurations are passed to Copletinstances (= the same
what
an OO constructor does). Ok, this makes copletdata and copletinstances
easy
to understand.

But after playing arround i cannot see how i can pass parameters to
coplet
instances. The only way to give some parameters is to feed them to the
copletdata (which is the object/class and not the instance), is this the
supposed way of using coplets? Is there a way to configure coplet
instances
in the copletinstancedata/portal.xml



+--+-+-+
| Frank Taffelt| [EMAIL PROTECTED] |Tel: +49 351 31809 37|
+--+-+---+-+
| interface:projects gmbh| Tolkewitzer Str. 49, 01277 Dresden, Germany |
++-+


-
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: Including External Apps in Cocoon Portal

2004-11-29 Thread Matt Innes
Instance Data:

...
   
  Exhibit
   
...

Layout::


...


Exhibit-1




Would have included these in the original mail, but I thought I'd
checked them to within an inch of their lives :-)

Matt Innes, UTB Consulting
matt.innesutbconsulting.com

-Original Message-
From: Ralph Goers [mailto:[EMAIL PROTECTED] 
Sent: 29 November 2004 16:41
To: [EMAIL PROTECTED]
Subject: Re: Including External Apps in Cocoon Portal

What do your coplet-instance-data and layout definitions look like?

Ralph




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



Re: Calling components from java

2004-11-29 Thread Ralph Goers
Robin Wyles said:
> Jorg,
>
> On 29 Nov 2004, at 12:20, Jorg Heymans wrote:
>
>> It is my understanding that you can only call / lookup components from
>> other components (i'ld love to be proven wrong on this btw).
>> Write a component that implements the serviceable interface and use
>> that servicemanager to lookup.
>>
>>
>
> That is what I suspected :-( Thanks for the info...
>
> Robin
>

That is not strictly true.  You simply have to have access to the
ServiceManager.  Implementing Serviceable means you will provide a
service() method that will cause the container to call your component to
give it the ServiceManager (assuming your component is configured).  This
is by far the easiest way to do this, but if you have access to some other
component that implements Serviceable you can call a method in it to
retrieve its ServiceManager reference.

Ralph


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



Portal - Idea between Copletinstance and CopletData

2004-11-29 Thread Frank Taffelt
Hi,

after playing arround with the new Portal-Framework, there is one thing that
i don't undertstand in the philosophy of the cocoon portal:

in the cocoon portal documentation the following phrase is used:

" ... The set of coplet datas defines the set of available coplets a user
can choose from. If a user chooses to view a coplet, an instance of this
coplet data is created. If, e.g. the user chooses the same coplet twice, two
instances are created. This is useful for configurable coplets where the
user can choose the same coplet with different configurations"

This implies an analogy to objects/classes and their instances, where
parameters and configurations are passed to Copletinstances (= the same what
an OO constructor does). Ok, this makes copletdata and copletinstances easy
to understand.

But after playing arround i cannot see how i can pass parameters to coplet
instances. The only way to give some parameters is to feed them to the
copletdata (which is the object/class and not the instance), is this the
supposed way of using coplets? Is there a way to configure coplet instances
in the copletinstancedata/portal.xml



+--+-+-+
| Frank Taffelt| [EMAIL PROTECTED] |Tel: +49 351 31809 37|
+--+-+---+-+
| interface:projects gmbh| Tolkewitzer Str. 49, 01277 Dresden, Germany |
++-+


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



Re: Including External Apps in Cocoon Portal

2004-11-29 Thread Ralph Goers
What do your coplet-instance-data and layout definitions look like?

Ralph


Matt Innes said:
> Hi,
>
> I have been following through the various bits of documentation
> regarding how to include external applications in Cocoon 2.1.5.1 using
> the Portal block (primarily /docs/developing/portal/forms.html from the
> Cocoon docs). I have a complex web app (a Scarab instance) I am trying
> to integrate.
>
> However, in the interests of learning to walk first, I have constructed
> a trivial external application consisting of static html, images and CSS
> (a photo album created by JAlbum).
>
> I have built a pipeline to serve this application
> (/cocoon/intranet/coplets/exhibit/index.html).  This works perfectly,
> including all links within the application.
>
> I have created a CachedURICoplet with the following definition:
>
> 
>   Exhibit
> CachingURICoplet
>   
> buffer
> 
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>true
> 
>   
>   
>   handleParameters
>   
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>true
>   
>   
>   
>   uri
>   
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>  cocoon:/coplets/html/application
>   
>   
>   
>   temporary:application-uri
>   
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";>
>  cocoon:/coplets/exhibit/index.html
>   
>   
>   
>
> Whenever I try to access the coplet I get the message "The coplet
> Exhibit-1 is currently not available.".  I have tried a host of things
> to make it work, eg. using /coplets/html/live.html instead of
> /coplets/html/application. I tried to test the /coplets/html/application
> URL in isolation, but this doesn't seem to work (not surprisingly).  I
> have tried tweaking the coplets/exhibit pipeline to produce HTML or XML
> to no avail. There is nothing at all in handled-errors.log and nothing
> relevant in sitemap.log.  Any help or advice on either what might be
> wrong or what else I can try to debug this would be much appreciated.
>
> Regards,
> Matt
>
> Matt Innes, UTB Consulting
> matt.innesutbconsulting.com
>
>
>
> -
> 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: Calendar window Popup

2004-11-29 Thread Jorg Heymans
http://issues.apache.org/bugzilla/show_bug.cgi?id=30040
Roberto wrote:
Hiya there,
got a simply problem. If you can have a look of the block/forms/form1 
example (without the action) you will notice that when you select to 
open the calendar it open itself over the multivaluedfield with "a; aa; 
;.." inside, insted the calendar over the repeater field work 
properly why this difference & how can I  visualize correctly the 
calendar, coz in my application I got the same problem.
 
Thanx in advance.
Regards ROberto
 

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


Re: Calendar window Popup

2004-11-29 Thread Roberto
Title: Message



Ok. That's what I thought 
Thanx. I will.
Regards
ROberto

  - Original Message - 
  From: 
  [EMAIL PROTECTED] 
  
  To: [EMAIL PROTECTED] 
  Sent: Monday, November 29, 2004 5:09 
  PM
  Subject: RE: Calendar window Popup
  
  Hello,
   
  If I 
  recall correctly, this is an IE-problem. It's mentioned on this list before. 
  Please search the archives. I don't know if there was a 
  solution.
   
  Bye, 
  Helma
  

-Original Message-From: Roberto 
[mailto:[EMAIL PROTECTED] Sent: Monday, 29 November, 2004 
16:27To: [EMAIL PROTECTED]Subject: 
Calendar window Popup
Hiya 
there,
got a simply 
problem. If you can have a look of the block/forms/form1 example (without 
the action) you will notice that when you select to open the calendar it 
open itself over the multivaluedfield with "a; aa; ;.." inside, insted 
the calendar over the repeater field work properly why this difference 
& how can I  
visualize correctly the calendar, coz in my application I got the same 
problem.
 
Thanx in 
advance.
Regards 
ROberto
 


RE: Calendar window Popup

2004-11-29 Thread H . vanderLinden
Title: Message



Hello,
 
If I 
recall correctly, this is an IE-problem. It's mentioned on this list before. 
Please search the archives. I don't know if there was a 
solution.
 
Bye, 
Helma

  
  -Original Message-From: Roberto 
  [mailto:[EMAIL PROTECTED] Sent: Monday, 29 November, 2004 
  16:27To: [EMAIL PROTECTED]Subject: Calendar window 
  Popup
  Hiya 
  there,
  got a simply 
  problem. If you can have a look of the block/forms/form1 example (without the 
  action) you will notice that when you select to open the calendar it open 
  itself over the multivaluedfield with "a; aa; ;.." inside, insted the 
  calendar over the repeater field work properly why this difference & 
  how can I  visualize 
  correctly the calendar, coz in my application I got the same 
  problem.
   
  Thanx in 
  advance.
  Regards 
  ROberto
   


Including External Apps in Cocoon Portal

2004-11-29 Thread Matt Innes
Hi,

I have been following through the various bits of documentation
regarding how to include external applications in Cocoon 2.1.5.1 using
the Portal block (primarily /docs/developing/portal/forms.html from the
Cocoon docs). I have a complex web app (a Scarab instance) I am trying
to integrate. 

However, in the interests of learning to walk first, I have constructed
a trivial external application consisting of static html, images and CSS
(a photo album created by JAlbum).

I have built a pipeline to serve this application
(/cocoon/intranet/coplets/exhibit/index.html).  This works perfectly,
including all links within the application.

I have created a CachedURICoplet with the following definition:


  Exhibit
CachingURICoplet
  
buffer
http://www.w3.org/2001/XMLSchema-instance";>
   true

  
  
  handleParameters
  http://www.w3.org/2001/XMLSchema-instance";>
   true
  
  
  
  uri
  http://www.w3.org/2001/XMLSchema-instance";>
 cocoon:/coplets/html/application
  
  
  
  temporary:application-uri
  http://www.w3.org/2001/XMLSchema-instance";>
 cocoon:/coplets/exhibit/index.html
  
  
  

Whenever I try to access the coplet I get the message "The coplet
Exhibit-1 is currently not available.".  I have tried a host of things
to make it work, eg. using /coplets/html/live.html instead of
/coplets/html/application. I tried to test the /coplets/html/application
URL in isolation, but this doesn't seem to work (not surprisingly).  I
have tried tweaking the coplets/exhibit pipeline to produce HTML or XML
to no avail. There is nothing at all in handled-errors.log and nothing
relevant in sitemap.log.  Any help or advice on either what might be
wrong or what else I can try to debug this would be much appreciated.

Regards,
Matt

Matt Innes, UTB Consulting
matt.innesutbconsulting.com



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



Calendar window Popup

2004-11-29 Thread Roberto



Hiya 
there,
got a simply problem. 
If you can have a look of the block/forms/form1 example (without the action) you 
will notice that when you select to open the calendar it open itself over the 
multivaluedfield with "a; aa; ;.." inside, insted the calendar over the 
repeater field work properly why this difference & how can 
I  visualize correctly the 
calendar, coz in my application I got the same problem.
 
Thanx in 
advance.
Regards 
ROberto
 


Re: How to match\serve .swf (shockwave\flash) files in cocoon?

2004-11-29 Thread Jorg Heymans
this seems ok to me. Did you try it from the built-in jetty ?
Jorg
Thomas Kjeldahl Nilsson wrote:
Hello,
I'm having some trouble with serving .swf files in my cocoon webapp.
There doesn't seem to be much info about this on the official project or 
wiki pages. Maybe it's something mind-bogglingly obvious, but I've 
stared myself blind on the sitemap file now.

Problem:
- I have several .swf files.
- My tomcat server seems to be correctly configured for the 
application/x-shockwave-flash mime type.

- I've defined a match in the sitemap:

  

- When accessing a .swf file in the webapp, I get something like this in 
plain text:

http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"; 
STYLE=Position:absolute;LEFT:0;TOP:0 after ALIGN =LEFT ID =RbxHandler 
WIDTH = 830 HEIGHT = 586 ALIGN = left onfocus="doMouseEnter();" onblur = 
"doMouseOut();" onmouseenter="doMouseEnter();" 
onmouseleave="doMouseOut();">  http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash";> 
 

What am I not seeing\doing right here?
best regards,
Thomas Kjeldahl Nilsson
Oslo, Norway

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


[HOW-TO] Compile Cocoon 2.1.6 using java 1.5

2004-11-29 Thread Antonio Gallardo
Hi:

I read a lot of mails asking if cocoon 2.1.6 is compilable and runnable
using java 1.5.

The short answer is yes. Unfortunately, we need to make 2 changes:

Edit the file: $COCOON_HOME/tools/targets/init-build.xml

and changes lines 156 and 182:

target="1.3" > target="1.5"

I hope this help.

That is all!

Best Regards,

Antonio Gallardo

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



Re: Forms V2 foolishness

2004-11-29 Thread Andrew M
Bruno,
thanks for that

Andrew
On 29 Nov 2004, at 13:14, Bruno Dumon wrote:

If I were you I wouldn't loose too much time on v2, since it will be
removed in the future. The non-v2 api is the one you should use.

On Mon, 2004-11-29 at 12:39 +, Andrew M wrote:
__

Any ideas?
On 29 Nov 2004, at 11:18, Andrew M wrote:

Any ideas anybody?



-- 
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]


<>
 +The home of urban music
+ http://www.beyarecords.com

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

How to match\serve .swf (shockwave\flash) files in cocoon?

2004-11-29 Thread Thomas Kjeldahl Nilsson
Hello,
I'm having some trouble with serving .swf files in my cocoon webapp.
There doesn't seem to be much info about this on the official project or 
wiki pages. Maybe it's something mind-bogglingly obvious, but I've 
stared myself blind on the sitemap file now.

Problem:
- I have several .swf files.
- My tomcat server seems to be correctly configured for the 
application/x-shockwave-flash mime type.

- I've defined a match in the sitemap:

  

- When accessing a .swf file in the webapp, I get something like this in 
plain text:

http://active.macromedia.com/flash2/cabs/swflash.cab#version=4,0,0,0"; 
STYLE=Position:absolute;LEFT:0;TOP:0 after ALIGN =LEFT ID =RbxHandler 
WIDTH = 830 HEIGHT = 586 ALIGN = left onfocus="doMouseEnter();" onblur = 
"doMouseOut();" onmouseenter="doMouseEnter();" 
onmouseleave="doMouseOut();">  http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash";> 
 

What am I not seeing\doing right here?
best regards,
Thomas Kjeldahl Nilsson
Oslo, Norway

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


Re: Forms V2 foolishness

2004-11-29 Thread Bruno Dumon
If I were you I wouldn't loose too much time on v2, since it will be
removed in the future. The non-v2 api is the one you should use.

On Mon, 2004-11-29 at 12:39 +, Andrew M wrote:
> 
> 
> __
> 
> Any ideas?
> On 29 Nov 2004, at 11:18, Andrew M wrote:
> 
> Any ideas anybody?
> 


-- 
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: Forms V2 foolishness

2004-11-29 Thread Andrew M
Any ideas?
On 29 Nov 2004, at 11:18, Andrew M wrote:

Any ideas anybody?


Just to add to what i mentioned earlier, if I assign a value to the problem line as so:

bizData.fname.value = object.getSomeVal();

all works fine! What is going on here? How can you have an undefined value with no properties? I'm trying to assign a string value. The magic here is!

regards

Andrew
On 29 Nov 2004, at 10:41, Andrew M wrote:

Hi,
I have just across a problem with forms version 2 that makes no sense. In my flowscript (cocoon 2.1.5.1) I do:

cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/v2/Form.js");

function myFunc(){
var form = new Form("forms/register.xml");
var bizData = form.getWidget();
var message;


bizData.fname.value = "Somevaluehere";
form.showForm("registerDetails1.xml");
}

The problem is with the line bizData.fname.value where I assign it a string value. fname is declared in register.xml as :


First Name






and in registerDetails1.xml as:





In the V2 examples I can assign a value to a widget as I have done above, but I get the following error message:

org.mozilla.javascript.EvaluatorException: "file:/Library/jboss-4.0.0/server/default/deploy/jbossweb-tomcat50.sar/ROOT.war/beyarecords/flow/register.js", line 14: The undefined value has no properties.
at org.apache.cocoon.components.flow.javascript.JSErrorReporter.runtimeError(JSErrorReporter.java:66)
at org.mozilla.javascript.Context.reportRuntimeError(Context.java:588)
at org.mozilla.javascript.Context.reportRuntimeError(Context.java:627)
at org.mozilla.javascript.Context.reportRuntimeError0(Context.java:597)
at org.mozilla.javascript.Undefined.reportError(Undefined.java:138)
at org.mozilla.javascript.Undefined.getPrototype(Undefined.java:100)
at org.mozilla.javascript.ScriptRuntime.setProp(ScriptRuntime.java:851)
at org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(ContinuationInterpreter.java:706)
at org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(ContinuationInterpreter.java:190)
at org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(ContinuationInterpreter.java:138)
at org.mozilla.javascript.continuations.InterpretedFunctionImpl.call(InterpretedFunctionImpl.java:121)
at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1244)
at org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.callFunction(FOM_JavaScriptInterpreter.java:702)
at org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:130)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:49)
at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:126)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:101)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:336)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:277)
at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:103)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:49)
at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:126)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:101)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:336)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:277)
at org.apache.cocoon.Cocoon.process(Cocoon.java:639)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1098)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
at org.apache.catalina.core.ApplicationFilterC

Re: Calling components from java

2004-11-29 Thread Robin Wyles
Jorg,
On 29 Nov 2004, at 12:20, Jorg Heymans wrote:
It is my understanding that you can only call / lookup components from 
other components (i'ld love to be proven wrong on this btw).
Write a component that implements the serviceable interface and use 
that servicemanager to lookup.


That is what I suspected :-( Thanks for the info...
Robin

HTH
Jorg
Robin Wyles wrote:
Hi,
I am trying to call a cocoon component from within a Java class - is 
this possible?
 From flow I use...
var my_component = cocoon.getComponent(Packages.MyComponent.ROLE);
... which works great. I have tried the following in my java class...
CocoonComponentManager manager = new CocoonComponentManager();
MyComponent my_component = (MyComponent) 
manager.lookup(MyComponent.ROLE);
- this results in  "java.lang.NullPointerException"
... when I try:
DefaultComponentManager = new DefaultComponentManager();
MyComponent my_component = (MyComponent) 
manager.lookup(MyComponent.ROLE);
I get " org.apache.avalon.framework.component.ComponentException: 
Unable to provide implementation. (key [MyComponent])"
Can anyone point me to samples of how I can access Cocoon components 
(declared in cocoon.xconf) in my java classes?
Thanks,
Robin

-
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: Calling components from java

2004-11-29 Thread Jorg Heymans
It is my understanding that you can only call / lookup components from 
other components (i'ld love to be proven wrong on this btw).
Write a component that implements the serviceable interface and use that 
servicemanager to lookup.

HTH
Jorg
Robin Wyles wrote:
Hi,
I am trying to call a cocoon component from within a Java class - is 
this possible?

 From flow I use...
var my_component = cocoon.getComponent(Packages.MyComponent.ROLE);
... which works great. I have tried the following in my java class...
CocoonComponentManager manager = new CocoonComponentManager();
MyComponent my_component = (MyComponent) manager.lookup(MyComponent.ROLE);
- this results in  "java.lang.NullPointerException"
... when I try:
DefaultComponentManager = new DefaultComponentManager();
MyComponent my_component = (MyComponent) manager.lookup(MyComponent.ROLE);
I get " org.apache.avalon.framework.component.ComponentException: Unable 
to provide implementation. (key [MyComponent])"

Can anyone point me to samples of how I can access Cocoon components 
(declared in cocoon.xconf) in my java classes?

Thanks,
Robin

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


Re: Forms V2 foolishness

2004-11-29 Thread Andrew M
Any ideas anybody?


Just to add to what i mentioned earlier, if I assign a value to the problem line as so:

bizData.fname.value = object.getSomeVal();

all works fine! What is going on here? How can you have an undefined value with no properties? I'm trying to assign a string value. The magic here is!

regards

Andrew
On 29 Nov 2004, at 10:41, Andrew M wrote:

Hi,
I have just across a problem with forms version 2 that makes no sense. In my flowscript (cocoon 2.1.5.1) I do:

cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/v2/Form.js");

function myFunc(){
var form = new Form("forms/register.xml");
var bizData = form.getWidget();
var message;


bizData.fname.value = "Somevaluehere";
form.showForm("registerDetails1.xml");
}

The problem is with the line bizData.fname.value where I assign it a string value. fname is declared in register.xml as :


First Name






and in registerDetails1.xml as:





In the V2 examples I can assign a value to a widget as I have done above, but I get the following error message:

org.mozilla.javascript.EvaluatorException: "file:/Library/jboss-4.0.0/server/default/deploy/jbossweb-tomcat50.sar/ROOT.war/beyarecords/flow/register.js", line 14: The undefined value has no properties.
at org.apache.cocoon.components.flow.javascript.JSErrorReporter.runtimeError(JSErrorReporter.java:66)
at org.mozilla.javascript.Context.reportRuntimeError(Context.java:588)
at org.mozilla.javascript.Context.reportRuntimeError(Context.java:627)
at org.mozilla.javascript.Context.reportRuntimeError0(Context.java:597)
at org.mozilla.javascript.Undefined.reportError(Undefined.java:138)
at org.mozilla.javascript.Undefined.getPrototype(Undefined.java:100)
at org.mozilla.javascript.ScriptRuntime.setProp(ScriptRuntime.java:851)
at org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(ContinuationInterpreter.java:706)
at org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(ContinuationInterpreter.java:190)
at org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(ContinuationInterpreter.java:138)
at org.mozilla.javascript.continuations.InterpretedFunctionImpl.call(InterpretedFunctionImpl.java:121)
at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1244)
at org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.callFunction(FOM_JavaScriptInterpreter.java:702)
at org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:130)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:49)
at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:126)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:101)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:336)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:277)
at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:103)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:49)
at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:126)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:101)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:336)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:277)
at org.apache.cocoon.Cocoon.process(Cocoon.java:639)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1098)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.

Pipeline design principles

2004-11-29 Thread Richard Lewis
Hello Cocoon Users,

I've been using Cocoon 2 for a little while now and have come to the
point where I'm doing a 'version 2' (sort of complete re-write) of my
website trying to use all the skills I've gained by doing the first
version.

I have a quesrion regarding pipelines. How do I divide my sitemap into
pipelines? In my version 1 sitemap I just had one big pipeline with lots
of matchers and selectors inside it. But my version 2 sitemap (in which
I'm trrying to implement a more modular design, using aggregators and
trying to re-use as much of the sitemap as possible) I've ended up
(almost without thinking about it) with lots of smaller pipelines.

Is there anything wrong with just having one big pipeline? Is there
anything wrong with having lots of small pipelines? What sort of things
should I take in consideration when dividing my sitemap up into
pipelines?

Cheers,
Richard
-- 
  Richard Lewis
  [EMAIL PROTECTED]


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



Re: logkit error

2004-11-29 Thread Jorg Heymans
> The string "--" is not permitted within comments.
are you sure that you have exactly the same config on jboss and linux? 
Error above would happen when you do something like


 blah
-->
Norman Barker wrote:
Hi,
I have setup the logkit.xconf file to have a custom log for one of our 
apps, and it works fine
under JBoss on windows, however when using Linux I get

2004-11-29 09:59:53,995 ERROR [STDERR] Logging Error: Could not set up 
Cocoon Logger, will use screen instead
2004-11-29 09:59:53,996 ERROR [STDERR] org.xml.sax.SAXParseException: 
The string "--" is not permitted within comments.
2004-11-29 09:59:53,998 ERROR [STDERR]  at 
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
Source)
2004-11-29 09:59:53,998 ERROR [STDERR]  at 
org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
2004-11-29 09:59:53,999 ERROR [STDERR]  at 
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
2004-11-29 09:59:53,999 ERROR [STDERR]  at 
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

Has anyone seen this before?  Seems a bit odd, I am using the same 
version of XML libraries since I have put them
in /usr/java/jdk/jre/lib/endorsed and in the corresponding directory on 
windows.

Any help would be appreciated.
Thanks,
Norman


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


"Combined" style access log per host?

2004-11-29 Thread Ramon Casha
Is there any facility for maintaining access logs on a per-host basis, such as 
by configuring them in the root sitemap's host matchers? 

I'm in the process of transferring a number of virtual hosts from JSP 
(tomcat)-based webapps to Cocoon sitemaps. Everything works ok except that 
I've lost the access logs which were being used to generate statistics. Since 
all the virtual hosts are handled by one cocoon instance, tomcat puts all its 
access logs into one file which is not very useful.

-- 
Ramon Casha
Malta Linux User Group (http://linux.org.mt)

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



Forms V2 foolishness

2004-11-29 Thread Andrew M
Hi,
I have just across a problem with forms version 2 that makes no sense. In my flowscript (cocoon 2.1.5.1) I do:

cocoon.load("resource://org/apache/cocoon/forms/flow/javascript/v2/Form.js");

function myFunc(){
var form = new Form("forms/register.xml");
var bizData = form.getWidget();
var message;


bizData.fname.value = "Somevaluehere";
form.showForm("registerDetails1.xml");
}

The problem is with the line bizData.fname.value where I assign it a string value. fname is declared in register.xml as :


First Name






and in registerDetails1.xml as:





In the V2 examples I can assign a value to a widget as I have done above, but I get the following error message:

org.mozilla.javascript.EvaluatorException: "file:/Library/jboss-4.0.0/server/default/deploy/jbossweb-tomcat50.sar/ROOT.war/beyarecords/flow/register.js", line 14: The undefined value has no properties.
at org.apache.cocoon.components.flow.javascript.JSErrorReporter.runtimeError(JSErrorReporter.java:66)
at org.mozilla.javascript.Context.reportRuntimeError(Context.java:588)
at org.mozilla.javascript.Context.reportRuntimeError(Context.java:627)
at org.mozilla.javascript.Context.reportRuntimeError0(Context.java:597)
at org.mozilla.javascript.Undefined.reportError(Undefined.java:138)
at org.mozilla.javascript.Undefined.getPrototype(Undefined.java:100)
at org.mozilla.javascript.ScriptRuntime.setProp(ScriptRuntime.java:851)
at org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(ContinuationInterpreter.java:706)
at org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(ContinuationInterpreter.java:190)
at org.mozilla.javascript.continuations.ContinuationInterpreter.interpret(ContinuationInterpreter.java:138)
at org.mozilla.javascript.continuations.InterpretedFunctionImpl.call(InterpretedFunctionImpl.java:121)
at org.mozilla.javascript.ScriptRuntime.call(ScriptRuntime.java:1244)
at org.apache.cocoon.components.flow.javascript.fom.FOM_JavaScriptInterpreter.callFunction(FOM_JavaScriptInterpreter.java:702)
at org.apache.cocoon.components.treeprocessor.sitemap.CallFunctionNode.invoke(CallFunctionNode.java:130)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:49)
at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:126)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:101)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:336)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:277)
at org.apache.cocoon.components.treeprocessor.sitemap.MountNode.invoke(MountNode.java:103)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:49)
at org.apache.cocoon.components.treeprocessor.sitemap.PreparableMatchNode.invoke(PreparableMatchNode.java:130)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelineNode.invoke(PipelineNode.java:126)
at org.apache.cocoon.components.treeprocessor.AbstractParentProcessingNode.invokeNodes(AbstractParentProcessingNode.java:72)
at org.apache.cocoon.components.treeprocessor.sitemap.PipelinesNode.invoke(PipelinesNode.java:101)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:336)
at org.apache.cocoon.components.treeprocessor.TreeProcessor.process(TreeProcessor.java:277)
at org.apache.cocoon.Cocoon.process(Cocoon.java:639)
at org.apache.cocoon.servlet.CocoonServlet.service(CocoonServlet.java:1098)
at javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:237)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:75)
at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:186)
at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:157)
at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:214)
at org.apache.catalina.core.StandardValveContext.invokeNext(StandardValveContext.java:104)
at org.apache.catalina.core.StandardPipeline.invoke(StandardPipeline.java:520)
at org.apache.catalina.core.StandardContextValve.invokeInternal(StandardContextValve.java:198)
at org.apache.catalina.c

Calling components from java

2004-11-29 Thread Robin Wyles
Hi,
I am trying to call a cocoon component from within a Java class - is 
this possible?

From flow I use...
var my_component = cocoon.getComponent(Packages.MyComponent.ROLE);
... which works great. I have tried the following in my java class...
CocoonComponentManager manager = new CocoonComponentManager();
MyComponent my_component = (MyComponent) 
manager.lookup(MyComponent.ROLE);

- this results in  "java.lang.NullPointerException"
... when I try:
DefaultComponentManager = new DefaultComponentManager();
MyComponent my_component = (MyComponent) 
manager.lookup(MyComponent.ROLE);

I get " org.apache.avalon.framework.component.ComponentException: 
Unable to provide implementation. (key [MyComponent])"

Can anyone point me to samples of how I can access Cocoon components 
(declared in cocoon.xconf) in my java classes?

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


logkit error

2004-11-29 Thread Norman Barker
Hi,
I have setup the logkit.xconf file to have a custom log for one of our 
apps, and it works fine
under JBoss on windows, however when using Linux I get

2004-11-29 09:59:53,995 ERROR [STDERR] Logging Error: Could not set up 
Cocoon Logger, will use screen instead
2004-11-29 09:59:53,996 ERROR [STDERR] org.xml.sax.SAXParseException: 
The string "--" is not permitted within comments.
2004-11-29 09:59:53,998 ERROR [STDERR]  at 
org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown 
Source)
2004-11-29 09:59:53,998 ERROR [STDERR]  at 
org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
2004-11-29 09:59:53,999 ERROR [STDERR]  at 
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
2004-11-29 09:59:53,999 ERROR [STDERR]  at 
org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)

Has anyone seen this before?  Seems a bit odd, I am using the same 
version of XML libraries since I have put them
in /usr/java/jdk/jre/lib/endorsed and in the corresponding directory on 
windows.

Any help would be appreciated.
Thanks,
Norman

--
Norman Barker
Software Engineer
ComSine Ltd
Tel: +44 (0)1483 457121
Web: http://www.comsine.com
*Please Note:*
This text is confidential. If you are not the named addressee, it could be 
unlawful for you to read, copy, distribute, disclose or use the information 
contained herewith. If you are not the intended recipient please telephone 
+44(0)1483 457121.
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


RE: Repeater delete action Setting selected list programaticaly?

2004-11-29 Thread oceatoon
My apologies, I flew by the task tree sample 
Thanks Helma
Tibor 

[EMAIL PROTECTED] wrote:

> Have you looked at the task tree and the dream team samples? They use row
> buttons for adding and deleting a row.
> 
> Bye, Helma
> 
>> -Original Message-
>> From: oceatoon [mailto:[EMAIL PROTECTED]
>> Sent: Sunday, 28 November 2004 18:04
>> To: [EMAIL PROTECTED]
>> Subject: Repeater delete action Setting selected list programaticaly?
>> 
>> 
>> Hi every one
>> 
>> I have a repeater when visualised has no checkboxes for
>> selecting specific
>> rows, Therefore I would like to set the list of selected rows
>> through the
>> fd:javascript tag on-action, I didn't see any samples with
>> this, is there a
>> way to do this?
>> 
>> I could do this with a Flowscript through a pipeline call
>> with a RemoveRow
>> on my repeater but it's probably cleaner to go by the action,
>> and surely simpler .



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



RE: Portal Block - Profile Cacheing?

2004-11-29 Thread Matt Innes
Nick,

Thanks - this is just what I needed.  I don't need it to be
instantaneous, I just don't want to restart Tomcat as part of my
test/debug cycle, and your suggestion works fine.

Kind regards,
Matt

Matt Innes, UTB Consulting
matt.innesutbconsulting.com

-Original Message-
From: Nick Goupinets [mailto:[EMAIL PROTECTED] 
Sent: 25 November 2004 15:50
To: [EMAIL PROTECTED]
Subject: Re: Portal Block - Profile Cacheing?

Hi Matt,

I do not know if it will help, but I think that the profile is cached 
once for every successful log in. So normally, it should not be 
necessary to restart tomcat or reload cocoon just to get the latest 
profile available.

In case the changes to the profile were made while a user is still 
logged in, they should appear after the user logs out and logs in again.

If it's necessary to avoid this "re login" process, you can go directly 
to the PortalService and invalidate the cached profile (or a part of it)

by clearing up the corresponding profile attribute.

For example, in case portal layout needs to be reloaded, this will get 
it done:

PortalService service = (PortalService) 
this.manager.lookup(PortalService.ROLE);

service.removeAttribute("Layout:portal");

Sincerely,
Nick.

Matt Innes wrote:
> Hi,
> 
> I am building an intranet using Cocoon 2.1.5.1 running in Tomcat
5.0.28
> on XP.  I have structured my project identically to the sample (with
> coplets, profiles, resources subdirectories).  I have noticed that
> Cocoon caches the profile files (portal.xml) by default i.e. you need
to
> restart Tomcat to pick up any changes to these files. Is there an easy
> way to switch this off? 
> 
> Thanks,
> Matt
> 
> Matt Innes, UTB Consulting
> [EMAIL PROTECTED]
> 07795 300 735
> 
> 
> -
> 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: Manipulating the DOM in flowscript

2004-11-29 Thread Ugo Cei
Il giorno 29/nov/04, alle 08:02, Derek Hohls ha scritto:
I don't understand your reply; I was trying to insert
a new node before the first, second-level node... and
as I said in the post; I have tried a whole variety of
DOM manipulations, none of which worked.  So I was
concerned that either (a) the document could not be
manipulated at all or (b) there was something more
fundamentally wrong.
I think what is fundamentally wrong is your comprehansion of DOM. What 
you're trying to do:

>document.insertBefore(keyNode,keyNode);
makes absolutely no sense to me, and probably to DOM. What does it mean 
"to insert a node before itself"???

In a reply to one of your mails in the "Using htmlArea 'output' with 
SVG" thread I showed how you can use the "importNode" call to import a 
fragment of a document into another document. If that is what you're 
trying to accompish, it might help you.

I appreciate that this is not a "Cocoon" problem per se
(if one wants to be pedantically accurate) - nonetheless
the Cocoon developers have chosen to allow use of
Javascript in the flow controller, so it not unreasonable
to ask and/or answer the odd question related to its
use... just as we try to deal with simpler, XSL-related
questions before referring folk (esp. newbies) to the
XSL mailing list.
This is not a Javascript problem either. This is a DOM API problem. If 
you expect help on any java API that can be called by flowscript, be 
prepared to be disillusioned.

Ugo
--
Ugo Cei - http://beblogging.com/


smime.p7s
Description: S/MIME cryptographic signature