cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jan Hoskens" ...@schaubroeck.be>
Subject Re: Woody READONLY Fields
Date Fri, 09 Jan 2004 09:31:41 GMT
Hi,

A while ago, I had a similar problem of handling a directory of files with
some of them, created by a user, could be changed, and others (original,
deployed by administrator) cannot. As Marc (mpo@outerthought.org) pointed me
out, you can handle very much with your flow containing the woody stuff. As
an example: you can pass your role as a parameter to your flow and select a
different pipeline (woody template)/ definition or binding based on that
parameter. (In my case I can check an attribute in my data file before
selecting the appropriate woody stuff./ still working on it though;-)

Sounds helpfull?

Bye,

Jan


----- Original Message ----- 
From: "Olivier Billard" <obillard@rennes.jouve.fr>
To: <users@cocoon.apache.org>
Sent: Friday, January 09, 2004 9:58 AM
Subject: Re: Woody READONLY Fields


> Hi Michael,
>
> You can use the role to filter the wd:styling (@type='output' for a
read-only rendering) :
> read-write : <wt:widget id="myWidget"/>
> read-only : <wt:widget id="myWidget"><wi:styling
type="output"/></wt:widget>
>
> see woody-field-styling.xsl in the woody samples
>
> To do this, you can render your template file with an XSP.
> It works for me.
>
> --
> Olivier
>
>
> On 09/01/2004 09:28, Michael Roth wrote:
>
> > I'm on my first project using the woody framework.
> > Till now I'm satiesfied with it, but there is a
> > big problem. I've to show a form and some of the fields
> > are read/write or read only depending on the role
> > of the user. How can I do this with Woody ?
> >
> > Thanks a lot
> >
> > Michael Roth
> >
> >
> > Michael Roth
> > Technische Universität Wien
> > Zentraler Informatik Dienst -  Zentrale Services
> > Wiedner Hauptstraße 8-10, 1040 Wien
> > Tel.: 58801 42091  /  Fax: 58801 42099
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message