Re: Calling the sample webservices from AXIS block [SOLVED]

2007-07-18 Thread Armaz Mellati
lient will react to that. That I am going to find out. I have also found this, another way of setting up webservices in cocoon which is brilliant. But it seems too easy ?!!! http://wiki.apache.org/cocoon/WebServiceServer Regards, Armaz Armaz Mellati wrote: Hello everybody I am investigating

Calling the sample webservices from AXIS block

2007-07-18 Thread Armaz Mellati
Hello everybody I am investigating how to use cocoon as a webservice-server. But I can't find out how to use(call) the webservices in Axis block samples. There is only one example there and that is using Perl !!! Can someone PLEASE post a simple Axis client code that works with those examples

Re: How to get objectModel from Flow ?

2007-07-02 Thread Armaz Mellati
: org.apache.cocoon.auth.ApplicationUtil.getUser(objectModel); Regards, Armaz Mellati - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED

How to get objectModel from Flow ?

2007-06-28 Thread Armaz Mellati
Hi How do I get the objectModel when in flow ? I need it to do something like this, as I can in an action : org.apache.cocoon.auth.ApplicationUtil.getUser(objectModel); Regards, Armaz Mellati - To unsubscribe, e-mail: [EMAIL

RE: Authentication Framework and database

2007-03-01 Thread Armaz Mellati
Hi It seems to me you are doing this wrong : Replace that with Look carefully at http://cocoon.apache.org/2.1/userdocs/sql-transformer.html right bbelow "Substitution". Hope it helps. Regards Armaz > -Original Message- > From: J.D. Williams [mailto:[EMAIL PROTEC

RE: is session-fw block deprecated? what is replacement

2007-02-02 Thread Armaz Mellati
Hi Well, within the sitemap you can still use stuff like {ID}, don't you ? I am actually working with the same problem. I have figured out that by getting the user object, and making my own modules/generators I will eventually be able to get the same functionality as before. But it will take ti

Roadmap/status of 2.2

2007-02-01 Thread Armaz Mellati
Hi I wonder what is the general status of cocoon 2.2? When can I hope to be able to build 2.2 and have same kind of samples as in 2.1 working? Sometime this year? Or is it too optimistic? And thanks for the great job everybody has done so long. Regards, Armaz Mellati

RE: Authentication puzzle

2007-01-10 Thread Armaz Mellati
Hi May I ask you what version av Cocoon you are using? I ask because the documentation you are refering to is somewhat outdated if you are using 1.2.10 (may be even for 1.2.9). I found out that in version 1.2.10 Cocoon is set up to use the new CoWarp authetication framwork (Which is a better on

RE: Repost: Profiles in Portal, how?

2006-02-03 Thread Armaz Mellati
Hi What do you mean by " I only see those coplets defined in the global profile. No user/role-based info seems to be retrieved." Are you sure you haven't forgotten the layout-part ? If any thing is missing from the copletdata/instancedata files, you get an ugly error message. You define cop

RE: How to make sessions survive browser restart

2006-01-31 Thread Armaz Mellati
Dear Armaz All you needed to do was : Cookie [] cookies = request.getCookies(); for (int i=0;i -Original Message- > From: Armaz Mellati [mailto:[EMAIL PROTECTED] > Sent: 30. januar 2006 15:18 > To: users@cocoon.apache.org > Subject: How to make sessions survive browser res

How to make sessions survive browser restart

2006-01-30 Thread Armaz Mellati
axAge(). But how can I do that for the JSESSIONID cookie ??? Where is that cookie made ? Thanks for any tip in advance. Regards, Armaz Mellati - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [

RE: how to post in 2.1.7?

2006-01-28 Thread Armaz Mellati
, actually it is better to do most of the logic in a Java class of your own and just use your Java class from from the flow. By the way, HttpClient jar files are already part of Cocoon. Hope it helps. Regards, Armaz Mellati [1] http://jakarta.apache.org/commons/httpclient/ > -Original Mess

RE: How to access the session context with flowscript?

2006-01-16 Thread Armaz Mellati
Your idea is almost right as far as I can see. Just some small modifications needed. function callGetCode() { var user = cocoon.session.getAttribute("ID"); var csc = new CodeSnippetCreator(); var code = csc.getCode(user); cocoon.sedPage("name-of-a-pileline-with-a-jx-tem

Portal : Disabling the fullscreen-buttons on portlets

2005-11-28 Thread Armaz Mellati
Hi How and where do I specify that some of my coplets don't want that fullscreen buttons ? I have tried putting this on copletdata and copletinstancedata xml-files, but it didn't help. full-screen http://www.w3.org/2001/XMLSchema-instance";>false Any example

RE: Accessing "authentication"-contex wthout actually protecting a pipeline?

2005-10-21 Thread Armaz Mellati
Yeah, but be careful with that. Know that wont protect any pipeline for your guest users. As long as "auth-protect" is concerned, your guest user is an authenticated user just any other user. It took me several hours to discover that :( To protect your pipeline from guest users you have to d

RE: AJAX and Cocoon - Design Patterns

2005-10-04 Thread Armaz Mellati
> -Original Message- > From: Sylvain Wallez [mailto:[EMAIL PROTECTED] > Sent: Tuesday, October 04, 2005 3:22 PM > To: users@cocoon.apache.org > Subject: Re: AJAX and Cocoon - Design Patterns > > > > Where Cocoon can shine IMO with Ajax apps is that a website (not > necessarily a

Bug in session-transformer getxml ?

2005-09-01 Thread Armaz Mellati
Hi I have found out that transforming elements like Doesn't return the ID. It returns _nothing_. However Or Transforms as expected. Here is the whole content of my /authentication context: neo admin

Portal best practice using "roles"

2005-07-25 Thread Armaz Mellati
Hi How should I handle users having several roles in Cocoon Portal (with authentication framework)? I have 3 roles (or group of people). Each with its own set of coplets and layout. However there are users who can have several roles (belong to several groups). How should I set up the Portal to

CForms: Validation based on values from several widgets

2005-06-29 Thread Armaz Mellati
Hi What is the best way of validating based on the values of several widgets in a CForm ? I mean somthing like this: If (model.foo == 'something') && (model.bar == null) { return false; }else{ return true ; } Where should I do or can I do such a validation ? Any idea ?? Re

RE: Application Integration with Cocoon

2005-06-17 Thread Armaz Mellati
Hi   And yes, you can use http session object from within xsp and/or a pipline. Within xsp you have access to the  "request" object. With a call like request.getSession() (or something like that) you can access the session object. And within a pipeline you can use  Session Input Module.  Loo

RE: 2.1[.7]: XSP: Include XML from Java-[J]DOM

2005-04-05 Thread Armaz Mellati
I actually ment ,Armaz > -Original Message- > From: Armaz Mellati [mailto:[EMAIL PROTECTED] > Sent: Tuesday, April 05, 2005 3:25 PM > To: users@cocoon.apache.org > Subject: RE: 2.1[.7]: XSP: Include XML from Java-[J]DOM > > Hi > > I am surprised why

RE: 2.1[.7]: XSP: Include XML from Java-[J]DOM

2005-04-05 Thread Armaz Mellati
Hi I am surprised why nobody suggestet using the in your xsp ? It is one of the functions of the XSP UTIL stylesheet. You just have to include its namespace at the begining of your XSP (like any other Logicsheet you use) xmlns:util="http://apache.org/xsp/util/2.0"; Regards, Armaz > -O

Creating a new Transformer

2004-12-27 Thread Armaz Mellati
Hi I have a problem to make my Transformers to work. Goal : Make a slightly altered CincludeTransformer To do this I have copied the whole source of the CincludeTransformer into a class of my own, renamed it, compiled and added in the sitemap under the transformer definitions. When I try to use

enctype="multipart/form-data" => no req-prarameters

2004-07-29 Thread Armaz Mellati
clearly by looking at the log-files (I use DEBUG level) If I change post to get or remove enctype, it works. I must have post and enctype because I want to upload files. Is this a known bug somehow ? I couldn't find any info on it in archives. Is there any solution ?

RE: Sendmail action won't use the smtphost I assign

2004-07-25 Thread Armaz Mellati
Hi I have the same prolem. Would anybody explain how and where in cocoon.xconf I can spesify the smtphost to use ?? Thanks in advance Armaz > -Original Message- > From: Gerben ten Wolde [mailto:[EMAIL PROTECTED] > Sent: 9. juli 2004 14:36 > To: [EMAIL PROTECTED] > Subject: Sendmail ac

RE: How to view plain text files in IE 6

2004-07-19 Thread Armaz Mellati
Ah, that problem. Some of our users had that problem. The solution was to delete all temporary files in IE. It seems when the number of those files increase, IE gets that problem. Hope it works for U too. ,Armaz > -Original Message- > From: Stephanie Zohner [mailto:[EMAIL PROTECTED]

problem choosing transform-src dynamically

2004-06-30 Thread Armaz Mellati
Hi I have big trouble deciding transform-src on runtime based on some value I get from an action and xsp. The point is, by the time I enter the "match" I don't know what the filename is. I need to extract it from my database. As you see I have tried to use session-attr-module. I set the HTML_st

RE: [Portal] Content Management within a portal? (Jetseed vs Cocoon)

2003-09-26 Thread Armaz Mellati
y any experince with any of those two ? And thanks to all you Cocoon makers :) Armaz Mellati > -Original Message- > From: Nicolas Toper [mailto:[EMAIL PROTECTED] > Sent: 26. september 2003 10:45 > To: [EMAIL PROTECTED] > Subject: RE: [Portal] Content Management within a