Binary data / PDF

2004-10-15 Thread Steinar Rune Eriksen
hei I am trying to display a pre-generated PDF file in Cocoon; so I am not using the FOP stuff. I have a Java generator that loads the PDFs from a database and holds it as a byte array (byte[]). Question is : how do I pass a byte array back to Cocoon from the generator; and how does the

Problems on JBoss 4.0 release version

2004-09-24 Thread Steinar Rune Eriksen
I've been using Cocoon 2.1.5.1 successfully on JBoss 4 RC1 and RC2 for a while. Very few issues at all actually. I just had to swap the Castor versions and put commons-logging into jboss/server/default/lib and it worked fine. However, on JBoss 4. final release I get some more serious

Re: Database connection from custom Authenticator class

2004-09-21 Thread Steinar Rune Eriksen
Personally I made a Generator that generates the XML used in the portal to identify users and roles. It authenticates against a DB inside a session bean, and this method returns the role of the user sent back again into the portal framework through the authentication XML. public class

Re: Portal: Desperately seeking autehtication/ID from Java code

2004-09-17 Thread Steinar Rune Eriksen
Laurent Trillaud wrote: Hi Try this : var sessionManager = cocoon.getComponent( Packages.org.apache.cocoon.webapps.session.SessionManager.ROLE); var userLogin = sessionManager.getContextFragment( authentication, /authentication/ID).getFirstChild().getNodeValue(); Laurent Trillaud Great, this

(SOLVED)Re: Portal: Desperately seeking autehtication/ID from Java code

2004-09-17 Thread Steinar Rune Eriksen
(); SessionManager sessionManager = (SessionManager)cm.lookup( org.apache.cocoon.webapps.session.SessionManager.ROLE); String userLogin = sessionManager.getContextFragment( authentication, /authentication/ID).getFirstChild().getNodeValue(); return userLogin; } Steinar Rune Eriksen wrote

Portal: Desperately seeking autehtication/ID from Java code

2004-09-16 Thread Steinar Rune Eriksen
I am writing XML generators for the new portal framework. In order to do something useful I need in Java code to access the authentication/ID in order to get the name of the person currently logged into the session. How can I do that?

Form in Coplet

2004-09-08 Thread Steinar Rune Eriksen
I am trying to link a form into a coplet, and I am very confused about the difference between the attributes: uri and temporary:application-uri in portal.xml. It does not work if I only use temporary:application-uri, I have to add my application into the uri section. What is

Re: Form in Coplet

2004-09-08 Thread Steinar Rune Eriksen
references uri and temporary:application-uri. I currently have them both pointing to the same uri. Steinar Rune Eriksen wrote: I am trying to link a form into a coplet, and I am very confused about the difference between the attributes: uri and temporary:application-uri in portal.xml. It does

Links in portal

2004-09-07 Thread Steinar Rune Eriksen
Hi I have used Cocoon a bit before but I am new to the portal. I would like to have a list of icons in the top of my portal-page.xsl which may be clicked to alter the contents of one of the coplets in the bottom of the screen. Is this possible and what would be the best approach? I have heard