Re: ImageReader et .gif

2005-09-05 Thread Philippe Guillard

Merci
Phil

Frédéric Glorieux wrote:




Oups je n'avais pas vu ces mails en effet. Merci Frederic.
Je serais pas contre de voir le code de l'action en effet, mais avant 
je crois je dois verifier mon besoin:
Je voudrais surtout en savoir plus sur le probleme de perf 
d'ImageReader : je ne gere max qu'une photo personnelle sur la page 
perso de chaque user, et pas un album, donc j'espere  beaucoup 
d'images, mais jamais 2 par page. Crois tu qu'ImageReader pourrait 
etre acceptable pour cela?



Une image par page, peu de risques de problèmes, sauf si 20 personnes 
en même temps se connectent dans la même seconde, et que la JVM est 
limitée à 64Mo. Après la première demande, l'image est bien mise en 
cache par cocoon, ce n'est plus le problème de l'ImageReader.


Un problème qui reste, l'ImageReader ne supporte pas nativement le gif.

Notre choix d'ImagMagick nous a permis de résoudre facilement ce 
problème.


Pour des autres librairies JAVA, le fil cité parle un peu de JAI, il 
faut avoir envie, sinon j'ai déjà pu tester

http://schmidt.devlib.org/jiu/documentation.html.

En exploitation, j'ai tiré du bon code pour trouver les octets 
magiques qui déterminent le format d'une image 
http://schmidt.devlib.org/image-info/index.html (sur le flux 
d'octets, sans charger un pixel).


(par contre je crois etre tombe sur cette situation similaire a ce 
que tu decris dans ces mails avec une image vide qui semble rester 
cachee quelquepart et peut etre comme j'ai lu par firefox...)



C'est vrai qu'un problème serveur peut se résoudre, mais on n'a pas la 
main sur la cache du client. Je n'ai pas trouvé de méthode pour éviter 
l'effet d'une réponse 200 de Cocoon/Tomcat, quand il y a un out of 
memory.






-
Liste francophone Apache Cocoon -- http://cocoon.apache.org/fr/
Pour vous desinscrire : mailto:[EMAIL PROTECTED]
Autres commandes : mailto:[EMAIL PROTECTED]



Re: Portal - links from outside - login

2005-09-05 Thread Ralph Goers
You use the authentication framework to redirect to login.  It isn't a 
trick, that is just how it works.  The trick is that you need to 
remember the user's original request so you can authomatically go there 
once the login has been completed.  Support for that isn't built into 
the authentication framework, but really should be. Maybe the new cowarp 
stuff Carsten has provided can do that?  I don't know.


Ralph

Philippe Guillard wrote:


Hi all,

I use portal with page labels. I'd like to do this:
1- I have a link from outside portal to an internal page, a label in 
the authenticated part (say not anonymous because he is also 
authenticated), example : portal?pageLabel=1stTabInside

2- If the user is not authenticated, i redirect directly in login page
3- Then i save the destination label in resource to go there after 
login success.


Somebody has an idea for how to do that for part 2? Should be just a 
trick in the portal sitemap with authentication framework isn't it?
The only trick i could do now is obviously have a pipeline for each 
lable, check a user is authenticated, then go where he wanted or go to 
login, really durty i think...

Regards,

Phil


-
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 - links from outside - login

2005-09-05 Thread Philippe Guillard
Thanks Ralph. Yes maybe this is the easiest way: check on the label 
name, if the label name is from outside, automatic anonymous sign-in, if 
inside, i'll redirect to login.

Phil

Ralph Goers wrote:




Philippe Guillard wrote:

Thanks Ralph. Yes i think this is an issue for making public internet 
WebApp as we see today.
My understanding is that Portal is based on Authentication framework, 
but as anonymous is systematicly authenticated, redirection to login 
for a protected page doesn't redirect to login.



The portal sample site automatically logs in a user as anonymous 
when they access the portal and are not logged in. There is no 
requirement that you do that unless, of course, you want to allow 
anonymous users.  However, as I understood your request, you want to 
allow users to go directly to a page. In your sitemap you can check if 
the pagelabel has been specified and if it has then do the 
auth-protect. If the user has not logged in this will redirect to 
login.  If you are allowing anonymous users though, you will have to 
check for that as well.


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: Browser's Back button/ Portal (Again)

2005-09-05 Thread Philippe Guillard

Hi all,

Sorry to insist, i come back with that problem, it has been discusssed 
already, but i don't see any clear solution! I'm sure some people here 
did something to resolve/avoid that?


Reminder: happens when user clicks on a link that has been transformed 
to event by event-transformer - typically a link inside a cachingURI 
coplet - , then clicks on the back button of his browser, then gets 
strange behaviour because this last action of going back has not been 
taken into account by the portal. Finally the user can go back with his 
browser button, to see what was before, but any action from him will 
rediret one  step forward. I see it as a major issue since everybody 
uses systematically the back button !


Regards,

Phil

Philippe Guillard wrote:


Hi all,

Somebody here knows the clue to Browser's Back  button issue with 
Portal Engine ?

Fo what i know at the moment:
- event-link transformer is working on events, so trouble comes when a 
user hits the browser back button, then clicks on other links, this 
doesn't happen if the link is actually a page label or a bookmark.
- I remember reading about some event history in the portal to handle 
that, but can't find it. This has been deleted?
- What people mean by invalidating the back button? (Doesn't seem 
realistic to me)
- I'm also using page-labels, so i removed action-counter action, but 
this doesn't help.


Related links i found:
-http://www.mail-archive.com/users@cocoon.apache.org/msg16199.html
-http://www.mail-archive.com/dev@cocoon.apache.org/msg14770.html

Regards,

Phil

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



CForms Selection-list: cannot replace user-selected item

2005-09-05 Thread Jose . Diaz . Seng

Hi there,

I have a problem with CForms selection
lists. What I am trying to do is the following:

The user selects a report name in a
selection-list where the names are shown in human-readable form (e.g. Money
Statement). I want to trigger a pdf processing pipeline, but my stylesheets
have short names, e.g. the one for Money Statement is called
MT950MS.xsl. So this is what I want to include in my call to
sendPage.

The problem is: This translation doesn't
work, what is passed back by sendPage is always the string the user selected.
In my flow script (see below) I translate the long name using a function

chooseMessageType:
var
mt = chooseMessageType(model.reportType);
Then I define the hash used in my call
to sendPage:
var
bizdata = { reportType : mt, account : model.account,
reportDate : model.reportDate }
Finally, the call to sendPage:

cocoon.sendPage(create, bizdata);

What have I done wrong?

I am using Cocoon-2.1.7 with Jetty on
Windows 2000.

The relevant portions of my Cocoon application
are as follows:

--
Form Definition:


 fd:widgets
  fd:field id=reportType
required=true
   fd:labelReport
type:/fd:label
   fd:datatype
base=string/
   fd:selection-list
id=reportType required=true
fd:item
value=Monthly Interest Scales/
fd:item
value=Money Statement/
...
   /fd:selection-list
  /fd:field

---
Flow:

cocoon.load(resource://org/apache/cocoon/forms/flow/_javascript_/Form.js);

function chooseMessageType (longName)
{
 var ret=;
 switch (longName) {
  case Monthly Interest
Scales:
   ret=MT935;
   break;
  case Money Statement:
   ret=MT950MS;
   break;

 }
 return ret;
}

function reportSelection() {
 var url = "">
 var form = new Form(url);
 form.showForm(reportSelection);
 var model = form.getModel();
 var mt = chooseMessageType(model.reportType);
 var bizdata = { reportType
: mt, account : model.account, reportDate : model.reportDate
}
 cocoon.sendPage(create,
bizdata);
}
---
Sitemap:

   map:match pattern=create
map:generate
src="">
map:transform
src="">
map:serialize
type=fo2pdf/
   /map:match


Kind Regards
José Diaz Seng

Re: CForms Selection-list: cannot replace user-selected item

2005-09-05 Thread Jose . Diaz . Seng

I don't know why Lotus Notes mixes up
my emails this way. So here's one more try:

Sitemap:


map:match pattern=create
  map:generate src="">
XML_{request-param:account}_{request-param:reportDate}.xml/
  map:transform src="">
  map:serialize type=fo2pdf/
/map:match


LDAP over SSL

2005-09-05 Thread Christoph Hermann
Hello,

is it possible to use the LDAP transformer to connect via SSL?
The only thing i found about this is:
http://66.249.93.104/search?q=cache:UpAk340B8tEJ:archives.real-time.com/pipermail/cocoon-users/2004-February/047030.html+cocoon+ldapshl=de

and there is no real answer to this.
So, is it possible (i.e. with ldaps://-url)? Or would i have to patch
the LDAPTransformer?

What i want to realize is a simple auth against the ldap server.

Christoph

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



Re: LDAP over SSL

2005-09-05 Thread Alberto Brosich
On Mon, 2005-09-05 at 14:56 +0200, Christoph Hermann wrote:
 Hello,
 
 is it possible to use the LDAP transformer to connect via SSL?
 The only thing i found about this is:
 http://66.249.93.104/search?q=cache:UpAk340B8tEJ:archives.real-time.com/pipermail/cocoon-users/2004-February/047030.html+cocoon+ldapshl=de
 
 and there is no real answer to this.
 So, is it possible (i.e. with ldaps://-url)? Or would i have to patch
 the LDAPTransformer?
 

ldaps:// works with port 636 but you must import certificate of the ldap
server you want to connect to (with keytool java utility).

Alberto




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



Antw: Re: LDAP over SSL

2005-09-05 Thread Martin Geissler
Hello,
ldaps:// works only in Java 1.4.2 or higher
Martin

 [EMAIL PROTECTED] Montag, 5. September 2005 15:07:28 
On Mon, 2005-09-05 at 14:56 +0200, Christoph Hermann wrote:
 Hello,
 
 is it possible to use the LDAP transformer to connect via SSL?
 The only thing i found about this is:
 http://66.249.93.104/search?q=cache:UpAk340B8tEJ:archives.real-time.com/pipermail/cocoon-users/2004-February/047030.html+cocoon+ldapshl=de
  
 
 and there is no real answer to this.
 So, is it possible (i.e. with ldaps://-url)? Or would i have to patch
 the LDAPTransformer?
 

ldaps:// works with port 636 but you must import certificate of the ldap
server you want to connect to (with keytool java utility).

Alberto




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



Cocoon hangs?

2005-09-05 Thread Antony Grinyer
Hi,

I have a simple webapp that uses a cocoon transformer to interact with a
DB XML database. I find that the browser hangs intermittently when
running the webapp, then I find this message in the sitemap.log:


[sitemap] (Unknown-URI) Unknown-thread/ExcaliburComponentManager:
disposing of handler for unreleased component. role
[org.apache.cocoon.serialization.SerializerSelector]


Has anyone come across this before? I've restarted Cocoon and this
message always appears when the webapp hangs?

Any help gratefully appreciated.

Thanks
Ant



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



[Job] Cocoon (freelance) developers needed in Germnany

2005-09-05 Thread Matthew Langham
Hi,

We are currently looking to expand our network of freelance Cocoon
developers

We are working on various Cocoon based projects for large German-speaking
corporations in cities such as Düsseldorf, Frankfurt, Vienna and of course
Paderborn :). 

You should be fluent in Cocoon (especially Flow and Forms) and have
practical experience integrating databases (e.g. Oracle) using frameworks
like Hibernate and Spring.

At the moment our emphasis is on freelancers and contract work (full-time
employment may also be an option). So, if you speak German and would be
interested in becoming part of our team then please feel free to send me
your CV or email me off-list to discuss this in more detail.

Freundliche Grüße / With kind regards

Matthew Langham

-- 

SN AG
Competence Center Open Source
Klingenderstr. 5 
D 33100 Paderborn

voice  +49 5251/1581-30
fax+49 5251/1581-71
eMail  [EMAIL PROTECTED]
Webhttp://www.s-und-n.de




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



Re: CForms Selection-list: cannot replace user-selected item

2005-09-05 Thread Jason Johnston

[EMAIL PROTECTED] wrote:


I don't know why Lotus Notes mixes up my emails this way. So here's one 
more try:


Sitemap:


map:match pattern=create
map:generate src=context:.../{request-param:reportType}
XML_{request-param:account}_{request-param:reportDate}.xml/
map:transform src=context:...{request-param:reportType}.xsl/
map:serialize type=fo2pdf/
/map:match



I think you don't want to be using the request-param: input module here, 
but instead use the flow-attr: module which allows access to the 
viewdata provided by the flowscript in the second argument to sendPage. 
 The request parameters are not affected by flow, so it makes sense 
that it's getting the value originally submitted by the HTML form.


Another option might be to actually use the short values as the option 
values in your selection list, and the long value as the label, for 
example:


fd:selection-list
  fd:item value=MT935fd:labelMonthly Interest 
Scales/fd:label/fd:item

  fd:item value=MT950MSfd:labelMoney Statement/fd:label/fd:item
/fd:selection-list

That way the short value is the one that gets submitted to the server so 
you don't have to translate it later in your flow, and the user still 
sees the long value.  It would also allow you to translate the label in 
the future.


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



CForm field selection-list: displayed vs. selected values

2005-09-05 Thread Jose . Diaz . Seng

Hi,

what's the best way to map the values
selectable by a user in a selection-list to other values (e.g. in selection-list
we have human-readable values, we want to map them to internal
values)?

Thanks in advance.
Cheers

Re: CForm field selection-list: displayed vs. selected values

2005-09-05 Thread Jason Johnston

[EMAIL PROTECTED] wrote:


Hi,

what's the best way to map the values selectable by a user in a 
selection-list to other values (e.g. in selection-list we have 
human-readable values, we want to map them to internal values)?




See my reply to your previous thread; you use the internal value as 
the @value of fd:item, and the human-readable value as an fd:label.


fd:selection-list
  fd:item value=MT935
fd:labelMonthly Interest Sales/fd:label
  /fd:item
  fd:item value=MT950MS
fd:labelMoney Statement/fd:label
  /fd:item
/fd:selection-list

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



Re: CForm field selection-list: displayed vs. selected values

2005-09-05 Thread Jose . Diaz . Seng

Jason, thank you very much for your
quick reply. It solved the problem. I will try out the other possibility
too (using the flow-attr: module).


I felt my first message was too long
and not to-the-point, so I sent another request. Your response to my first
thread arrived seconds after that.

Regards
José Diaz Seng

Re: LDAP over SSL

2005-09-05 Thread Christoph Hermann
Alberto Brosich schrieb:

Hello,

So, is it possible (i.e. with ldaps://-url)? Or would i have to patch
the LDAPTransformer?

 ldaps:// works with port 636 but you must import certificate of the ldap
 server you want to connect to (with keytool java utility).

Thanks for the hint! Can you also tell me in which file (keystore) i
have to put the certs in order to work with cocoon? (started via jetty?)

Christoph

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



Re: LDAP over SSL

2005-09-05 Thread Alberto Brosich
On Mon, 2005-09-05 at 16:26 +0200, Christoph Hermann wrote:
 Alberto Brosich schrieb:
 
 Hello,
 
 So, is it possible (i.e. with ldaps://-url)? Or would i have to patch
 the LDAPTransformer?
 
  ldaps:// works with port 636 but you must import certificate of the ldap
  server you want to connect to (with keytool java utility).
 
 Thanks for the hint! Can you also tell me in which file (keystore) i
 have to put the certs in order to work with cocoon? (started via jetty?)

My solution is:

keytool -import -file yourcertificate -keystore
$JAVA_HOME/jre/lib/security/cacerts

but I don't know if it's the only solution or the best (of course works
with every java application).

If I remember correctly you need a password to write to cacerts file.
Default password is changeit.

You find all info about keytool here:
http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/keytool.html

Alberto


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



Re: ProxyPass(Reverse)

2005-09-05 Thread Yves Vindevogel
nobody ?

On 05 Sep 2005, at 00:32, Yves Vindevogel wrote:

No, it's not for the cookies.  It's really for the session.
You can see the working version on   
1) http://212.221.24.70:8080/cocoon/reports.ecseed.com/test1.xsp (working straight in cocoon)
2) http://212.221.24.70/cocoon/reports.ecseed.com/test1.xsp (proxy forwarding / reverse from /cocoon/reports.ecseed.com to http://127.0.0.1:8080/cocoon/reports.ecseed.com)

Not working
1) http://reports.ecseed.com/test1.xsp (proxy forwarding from / to http://127.0.0.1:8080/cocoon/reports.ecseed.com/

Here's the 2 test pages

1)
x-tad-biggerxsp:page language=java
xmlns:xsp=http://apache.org/xsp
xmlns:xsp-session=http://apache.org/xsp/session/2.0
create-session=true>

html>


body>
xsp-session:set-attribute name=dbase>gerac/xsp-session:set-attribute>

p>I just set the parameter to xsp-session:get-attribute name=dbase/>/p>
p>Click a href=test2.xsp>here/a> to view a second page/p>
/body>
/html>
/xsp:page>/x-tad-bigger

2)

x-tad-biggerxsp:page language=java
xmlns:xsp=http://apache.org/xsp
xmlns:xsp-session=http://apache.org/xsp/session/2.0
create-session=true>

html>


body>

p>The value now is xsp-session:get-attribute name=dbase/>/p>
/body>
/html>
/xsp:page>

/x-tad-bigger
On 05 Sep 2005, at 00:17, Christoph Hermann wrote:

Am Sonntag, 4. September 2005 23:45 schrieb Yves Vindevogel:

Hello,

I just tested and ProxyPass(Reverse) with exactly the same arguments
keeps the session information

If I do  ProxyPass(Reverse) /cocoon/subdir/
http://127.0.0.1:8080/cocoon/subdir/my session information is kept.

Now I only need to find a way to link / to /cocoon/subdir/  because
when I  use that, I lose it again.

I assume this has to do with the cookies path-string.
Maybe adjust this for the domain or something (just an idea).

HTH
Christoph

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



Met vriendelijke groeten,
Bien à vous,
Kind regards,

Yves Vindevogel
Implements

Pasted Graphic 2.tiff>

Mail: [EMAIL PROTECTED]  - Mobile: +32 (478) 80 82 91

Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76

Web: http://www.implements.be
x-tad-smaller
First they ignore you.  Then they laugh at you.  Then they fight you.  Then you win.
Mahatma Ghandi./x-tad-smaller-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Met vriendelijke groeten,
Bien à vous,
Kind regards,

Yves Vindevogel
Implements




Mail: [EMAIL PROTECTED]  - Mobile: +32 (478) 80 82 91

Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76

Web: http://www.implements.be
x-tad-smaller
First they ignore you.  Then they laugh at you.  Then they fight you.  Then you win.
Mahatma Ghandi./x-tad-smaller
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

CForm: get the description label from selection list

2005-09-05 Thread Angelo Immediata
Hi all.

I have this problem... i have a combobox; its values are obtained by invocking 
a web service.
Now i need to show in an another page the description label of the element 
choosen by the user... how can i obtain it?

For example i have:

select name=codiceComuneNascita id=codiceComuneNascita title=
option value=Seleziona il comune/option
option value=000279SANTO ANDRE'/option
option value=000244SAN GALLO/option
option value=000243SAN MIGUEL DOS CAMPOS/option
option value=000234SAN MIGUEL/option
option value=000222SANTIAGO/option
/select

Now if the user chooses the value SAN GALLO i'll have the code 000244... 
well in the next page i'ld like to show the value SAN GALLO and not the 
code.. how can i recover this string without invocking the web service?Is it 
possible?
Thanks to all.

  Angelo




6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero!
Scaricalo su INTERNET GRATIS 6X http://www.libero.it



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



Cocoon Portal: changing profile layout

2005-09-05 Thread Angelo Immediata
Hi all.
I'm using cocoon 2.1.7.

I have several cities; these cities offer some services.
I don't want a too large portal_anonymous.xml file (now it's at about 5 
rows and it'll become greater and greater).
I need to change the portal layout according to an user choice.
This choice is a parameter and the layout should be loaded by seeing this 
parameter.
Is this possible?
Thanks




6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero!
Scaricalo su INTERNET GRATIS 6X http://www.libero.it



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



Re: LDAP over SSL

2005-09-05 Thread Sandor Spruit


Guys,

I just noticed this thread, don't know the full context. I'd like to  
add: when using a certificate
from a full-blown international certificate authority, check whether  
you enter a whole chain

of certificates all the way up to the authority's root certificate.

I do not all the details, but I recently asked our sysadmin to  
install such a certificate on one
of our servers. It was not as easy as we'd expected. Unless the  
certificate authority is known
in your browser or JRE, trusting a certificate may not be enough.  
You'll also have to confirm
that you trust the folks who issued the certificate. In our case,  
there are 3-4 additional levels
between an individual certificate and the root certificate of the  
authority ...


Just my 2 cents,
Sandor

On 5 Sep 2005, at 16:49, Alberto Brosich wrote:



On Mon, 2005-09-05 at 16:26 +0200, Christoph Hermann wrote:



Alberto Brosich schrieb:

Hello,



So, is it possible (i.e. with ldaps://-url)? Or would i have to  
patch

the LDAPTransformer?






ldaps:// works with port 636 but you must import certificate of  
the ldap

server you want to connect to (with keytool java utility).




Thanks for the hint! Can you also tell me in which file (keystore) i
have to put the certs in order to work with cocoon? (started via  
jetty?)





My solution is:

keytool -import -file yourcertificate -keystore
$JAVA_HOME/jre/lib/security/cacerts

but I don't know if it's the only solution or the best (of course  
works

with every java application).

If I remember correctly you need a password to write to cacerts file.
Default password is changeit.

You find all info about keytool here:
http://java.sun.com/j2se/1.5.0/docs/tooldocs/solaris/keytool.html




Sandor Spruit
[EMAIL PROTECTED]




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



Re: CForm: get the description label from selection list

2005-09-05 Thread Jason Johnston
On Monday 05 September 2005 11:10 am, Angelo Immediata wrote:

 I have this problem... i have a combobox; its values are obtained by
 invocking a web service. Now i need to show in an another page the
 description label of the element choosen by the user... how can i obtain
 it?

 [snip]

 Now if the user chooses the value SAN GALLO i'll have the code
 000244... well in the next page i'ld like to show the value SAN GALLO
 and not the code.. how can i recover this string without invocking the web
 service?Is it possible? Thanks to all.

How exactly is the selection-list being built from the web service?  It should 
be possible to do what you want, but the approach will depend on how you're 
getting the selection-list in the first place.

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



Re: ProxyPass(Reverse)

2005-09-05 Thread Upayavira

Yves Vindevogel wrote:

Someone in this thread mentioned the answer. You need to set the cookie 
path to / within your servlet container. Otherwise, for a Cocoon 
mounted on /cocoon the cookie path will be /cocoon, and the cookie will 
be ignored when it is proxied from a URL without the /cocoon. Set the 
cookie path to / and your problem will go away.


Upayavira


nobody ?

On 05 Sep 2005, at 00:32, Yves Vindevogel wrote:

No, it's not for the cookies. It's really for the session.
You can see the working version on
1) http://212.221.24.70:8080/cocoon/reports.ecseed.com/test1.xsp
(working straight in cocoon)
2) http://212.221.24.70/cocoon/reports.ecseed.com/test1.xsp (proxy
forwarding / reverse from /cocoon/reports.ecseed.com to
http://127.0.0.1:8080/cocoon/reports.ecseed.com)

Not working
1) http://reports.ecseed.com/test1.xsp (proxy forwarding from / to
http://127.0.0.1:8080/cocoon/reports.ecseed.com/

Here's the 2 test pages

1)
xsp:page language=java
xmlns:xsp=http://apache.org/xsp;
xmlns:xsp-session=http://apache.org/xsp/session/2.0;
create-session=true

html


body
xsp-session:set-attribute
name=dbasegerac/xsp-session:set-attribute

pI just set the parameter to xsp-session:get-attribute
name=dbase//p
pClick a href=test2.xsphere/a to view a second page/p
/body
/html
/xsp:page

2)

xsp:page language=java
xmlns:xsp=http://apache.org/xsp;
xmlns:xsp-session=http://apache.org/xsp/session/2.0;
create-session=true

html


body

pThe value now is xsp-session:get-attribute name=dbase//p
/body
/html
/xsp:page


On 05 Sep 2005, at 00:17, Christoph Hermann wrote:

Am Sonntag, 4. September 2005 23:45 schrieb Yves Vindevogel:

Hello,

I just tested and ProxyPass(Reverse) with exactly the same
arguments
keeps the session information

If I do ProxyPass(Reverse) /cocoon/subdir/
http://127.0.0.1:8080/cocoon/subdir/ my session information
is kept.

Now I only need to find a way to link / to /cocoon/subdir/
because
when I use that, I lose it again.


I assume this has to do with the cookies path-string.
Maybe adjust this for the domain or something (just an idea).

HTH
Christoph

-

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



Met vriendelijke groeten,
Bien à vous,
Kind regards,

*Yves Vindevogel*
*Implements*

Pasted Graphic 2.tiff

Mail: [EMAIL PROTECTED] - Mobile: +32 (478) 80 82 91

Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76

Web: http://www.implements.be
/
First they ignore you. Then they laugh at you. Then they fight you.
Then you win.
Mahatma Ghandi./


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

Met vriendelijke groeten,
Bien à vous,
Kind regards,

*Yves Vindevogel*
*Implements*



Mail: [EMAIL PROTECTED] - Mobile: +32 (478) 80 82 91

Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76

Web: http://www.implements.be
/
First they ignore you. Then they laugh at you. Then they fight you. Then 
you win.

Mahatma Ghandi./




-
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: [Fwd: [Chaperon-users] wiki grammer]

2005-09-05 Thread Geert Josten

Hi Oliver,

Not dead, but there aren't lots of people asking questions, so we might doze off from time to 
time... ;-)


Contrary to all the other answers, I'll focus on the actual question, because I believe it is still 
unanswered, while the answer to it is, to my humble opinion, actually quite simple.


The Wiki grammar that is shipped with Chaperon is written such that it allows a top-level title, 
followed by sub-level titles and between those subsub-level titles (intermingled with paragraphs and 
such). However, no grammar rule is added to support subsub-level titles directly underneath a 
top-level title, which means you are actually skipping a section level.


So you could say that Chaperon is quite strict, but actually it is the grammar that is not accepting 
the wiki file you supply. Change the wiki grammar to make it work.


I expect that somewhere in some logfile there is a message that will state that a subsubtitle token 
is not expected at that point. Though, the error message itself might be a little less clear about 
it.. :-P


Cheers,
Geert

Oliver Schalch wrote:


Seems like really dead on the Chaperon List...


 Original Message 
Subject: [Chaperon-users] wiki grammer
Date: Thu, 25 Aug 2005 11:33:14 +0200
From: Oliver Schalch [EMAIL PROTECTED]
Reply-To: [EMAIL PROTECTED]
To: [EMAIL PROTECTED]

Hi all,

We are building a publication for Lenya, where we can use and make Wiki
Documents. Therefor we use some parts from Chaperon/Cocoon, now the wiki
Syntax have some strange behavior, and I want to ask if anyone
noticed similar behavior or know where I should go look more into...

If I write a normal wiki document like:
!!! Bigtitle
!! A bit smaller
! Smal...
...
...
that works fine but when I insert the ! tag between !!! and !! tags then
nothing will be shown.
It looks like that it have problems just with the ! someTitle, because
if you want start the document with !, also
nothing will be displayed.

Looks like issues in the grammer (wiki.grm or generation of wiki.xgrm),
or what do you think?


Greetings
Oli


--
Drs. G.P.H. Josten


Daidalos BV
Source of Innovation
Hoekeindsehof 1-4
2665  JZ  Bleiswijk
tel: +31 (0) 10 850 1200
fax: +31 (0) 10 850 1199
http://www.daidalos.nl


De informatie - verzonden in of met dit emailbericht - is afkomstig van Daidalos BV en is 
uitsluitend bestemd voor de geadresseerde. Indien u dit bericht onbedoeld hebt ontvangen, verzoeken 
wij u het te verwijderen. Aan dit bericht kunnen geen rechten worden ontleend.


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



Re: ProxyPass(Reverse)

2005-09-05 Thread Yves Vindevogel
It is not for Cookies but for sessions.  Do sessions use cookies in Cocoon ?

On 05 Sep 2005, at 21:58, Upayavira wrote:

Yves Vindevogel wrote:

Someone in this thread mentioned the answer. You need to set the cookie path to / within your servlet container. Otherwise, for a Cocoon mounted on /cocoon the cookie path will be /cocoon, and the cookie will be ignored when it is proxied from a URL without the /cocoon. Set the cookie path to / and your problem will go away.

Upayavira

nobody ?
On 05 Sep 2005, at 00:32, Yves Vindevogel wrote:
No, it's not for the cookies. It's really for the session.
You can see the working version on
1) http://212.221.24.70:8080/cocoon/reports.ecseed.com/test1.xsp
(working straight in cocoon)
2) http://212.221.24.70/cocoon/reports.ecseed.com/test1.xsp (proxy
forwarding / reverse from /cocoon/reports.ecseed.com to
http://127.0.0.1:8080/cocoon/reports.ecseed.com)
Not working
1) http://reports.ecseed.com/test1.xsp (proxy forwarding from / to
http://127.0.0.1:8080/cocoon/reports.ecseed.com/
Here's the 2 test pages
1)
xsp:page language=java
xmlns:xsp=http://apache.org/xsp
xmlns:xsp-session=http://apache.org/xsp/session/2.0
create-session=true>
html>
body>
xsp-session:set-attribute
name=dbase>gerac/xsp-session:set-attribute>
p>I just set the parameter to xsp-session:get-attribute
name=dbase/>/p>
p>Click a href=test2.xsp>here/a> to view a second page/p>
/body>
/html>
/xsp:page>
2)
xsp:page language=java
xmlns:xsp=http://apache.org/xsp
xmlns:xsp-session=http://apache.org/xsp/session/2.0
create-session=true>
html>
body>
p>The value now is xsp-session:get-attribute name=dbase/>/p>
/body>
/html>
/xsp:page>
On 05 Sep 2005, at 00:17, Christoph Hermann wrote:
Am Sonntag, 4. September 2005 23:45 schrieb Yves Vindevogel:
Hello,
I just tested and ProxyPass(Reverse) with exactly the same
arguments
keeps the session information
If I do ProxyPass(Reverse) /cocoon/subdir/
http://127.0.0.1:8080/cocoon/subdir/ my session information
is kept.
Now I only need to find a way to link / to /cocoon/subdir/
because
when I use that, I lose it again.
I assume this has to do with the cookies path-string.
Maybe adjust this for the domain or something (just an idea).
HTH
Christoph

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Met vriendelijke groeten,
Bien à vous,
Kind regards,
*Yves Vindevogel*
*Implements*
Pasted Graphic 2.tiff>
Mail: [EMAIL PROTECTED] - Mobile: +32 (478) 80 82 91
Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76
Web: http://www.implements.be
/
First they ignore you. Then they laugh at you. Then they fight you.
Then you win.
Mahatma Ghandi./

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
Met vriendelijke groeten,
Bien à vous,
Kind regards,
*Yves Vindevogel*
*Implements*
Mail: [EMAIL PROTECTED] - Mobile: +32 (478) 80 82 91
Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76
Web: http://www.implements.be
/
First they ignore you. Then they laugh at you. Then they fight you. Then you win.
Mahatma Ghandi./

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



Met vriendelijke groeten,
Bien à vous,
Kind regards,

Yves Vindevogel
Implements




Mail: [EMAIL PROTECTED]  - Mobile: +32 (478) 80 82 91

Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76

Web: http://www.implements.be
x-tad-smaller
First they ignore you.  Then they laugh at you.  Then they fight you.  Then you win.
Mahatma Ghandi./x-tad-smaller
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: ProxyPass(Reverse)

2005-09-05 Thread Christoph Hermann
Am Montag, 5. September 2005 23:09 schrieb Yves Vindevogel:

Hello,

 It is not for Cookies but for sessions.  Do sessions use cookies in
 Cocoon ?

The sessionid (id to identify the session) is propagated via cookies if 
enabled.

Thats why i gave you the hint.

Christoph

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



Re: ProxyPass(Reverse)

2005-09-05 Thread Yves Vindevogel
If you would have included this explanation, I would have caught the hint  ;-))
I did not know why everybody was talking about  cookies when I needed sessions

tnx

On 05 Sep 2005, at 23:16, Christoph Hermann wrote:

Am Montag, 5. September 2005 23:09 schrieb Yves Vindevogel:

Hello,

It is not for Cookies but for sessions.  Do sessions use cookies in
Cocoon ?

The sessionid (id to identify the session) is propagated via cookies if 
enabled.

Thats why i gave you the hint.

Christoph

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



Met vriendelijke groeten,
Bien à vous,
Kind regards,

Yves Vindevogel
Implements




Mail: [EMAIL PROTECTED]  - Mobile: +32 (478) 80 82 91

Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76

Web: http://www.implements.be
x-tad-smaller
First they ignore you.  Then they laugh at you.  Then they fight you.  Then you win.
Mahatma Ghandi./x-tad-smaller
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: ProxyPass(Reverse)

2005-09-05 Thread Yves Vindevogel
Do you know where I set it in Tomcat 5 ??


On 05 Sep 2005, at 23:16, Christoph Hermann wrote:

Am Montag, 5. September 2005 23:09 schrieb Yves Vindevogel:

Hello,

It is not for Cookies but for sessions.  Do sessions use cookies in
Cocoon ?

The sessionid (id to identify the session) is propagated via cookies if 
enabled.

Thats why i gave you the hint.

Christoph

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



Met vriendelijke groeten,
Bien à vous,
Kind regards,

Yves Vindevogel
Implements




Mail: [EMAIL PROTECTED]  - Mobile: +32 (478) 80 82 91

Kempische Steenweg 206 - 3500 Hasselt - Tel-Fax: +32 (11) 43 55 76

Web: http://www.implements.be
x-tad-smaller
First they ignore you.  Then they laugh at you.  Then they fight you.  Then you win.
Mahatma Ghandi./x-tad-smaller
-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Cocoon Portal: changing profile layout

2005-09-05 Thread Ralph Goers
This seems pretty straightforward. Just include the parameter in the 
pipeline used to load the layout and then use it however you want.


Ralph

Angelo Immediata wrote:


Hi all.
I'm using cocoon 2.1.7.

I have several cities; these cities offer some services.
I don't want a too large portal_anonymous.xml file (now it's at about 5 
rows and it'll become greater and greater).
I need to change the portal layout according to an user choice.
This choice is a parameter and the layout should be loaded by seeing this 
parameter.

Is this possible?
Thanks




6X velocizzare la tua navigazione a 56k? 6X Web Accelerator di Libero!
Scaricalo su INTERNET GRATIS 6X http://www.libero.it



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