If you know the containerId or if a containerId
with selected value exists, you could use the
eventlistner or the to modify the FieldDefProp (see doc.inc for exemple)
But what do you want to do with this hack? Perhaps we have another solution...
Philippe
At 20.09.2005 16:02, you wrote:
Not really, because i don't want the select box to be checked, if i have
already save a container ID.
I think it's not possible to do as i'd like to do, that is the select
box appears (or can be chechecd) in the update/new popup only if there
are no other containers with checked select box in the list.
Thanks for your answers, i think i have to find an other way.
-----Message d'origine-----
De : Philippe Vollenweider [mailto:[EMAIL PROTECTED]
Envoyé : mardi 20 septembre 2005 15:47
À : [email protected]
Objet : RE : RE : RE : display field
I fact, if you add or update a container with a
checked select box, is it enought for you if you save the container ID?
Philippe
At 20.09.2005 14:17, you wrote:
>Yes...
>-----Message d'origine-----
>De : Philippe Vollenweider [mailto:[EMAIL PROTECTED]
>Envoyé : mardi 20 septembre 2005 14:08
>À : [email protected]
>Objet : RE : RE : display field
>
>Hmm... I don't understand very well... You want
>that only one container in your containerlist should be checked?
>
>At 20.09.2005 11:47, you wrote:
>
> >Thanks for your answuer, but i think i haven't express my problem on
>the
> >rigth way:
> >
> >
> >I have a container list, and in the container, i declare a boolean
> >field.
> >The aim is to prevent from checking the checkbox associated to the
> >boolean field, when a container is created or modified, if the
boolean
> >field is already checked in another container of the list.
> >
> >So, is it possible ?
> >
> >
> >-----Message d'origine-----
> >De : Philippe Vollenweider [mailto:[EMAIL PROTECTED]
> >Envoyé : mardi 20 septembre 2005 11:29
> >À : [email protected]
> >Objet : RE : display field
> >
> >At 20.09.2005 09:54, you wrote:
> >
> > >I use taglibs most of the time !
> >
> >Tee fastest way would be to mix scriptlet and taglibs with something
> >like this:
> >
> ><%
> >boolean isChecked = false;
> >%>
> ><content:container>
> >...
> > <content:textField name="yourField" valueId="yourFieldBean"/>
> > <%
> >
> > if (! isChecked) {
> > // get the value frompage context
> > String yourFieldValue =
> >pageContext.getAttribute("yourFieldBean");
> > isChecked = "true".equals(yourFieldValue);
> > // ...
> > } else {
> > // ...
> > }
> > %>
> ></content:container>
> >
> >
> > >-----Message d'origine-----
> > >De : Philippe Vollenweider [mailto:[EMAIL PROTECTED]
> > >Envoyé : lundi 19 septembre 2005 12:20
> > >À : [email protected]
> > >Objet : Re: display field
> > >
> > >Of course you can. Do you use taglibs or scriptlet?
> > >
> > >/P.
> > >
> > >At 19.09.2005 11:42, you wrote:
> > > >Hi,
> > > >
> > > >I would like to know if it is possible to display a field, when
> >adding
> > >a
> > > >container in a container list, only for one container.
> > > >In fact, i have a boolean field in a container, and i would like
>that
> > >it
> > > >could be checked only if this field isn't checked for any other
> > >container
> > > >in the list.
> > > >
> > > >Regards
> > > >
> > > >No virus found in this incoming message.
> > > >Checked by AVG Anti-Virus.
> > > >Version: 7.0.344 / Virus Database: 267.11.1/104 - Release Date:
> > >16.09.2005
> > >
> > >----------=[ pvollenweider at jahia dot com ]=-------------
> > >Jahia : The Open Java CMS and Corporate Portal Solution
> > >www.jahia.org Community and product web site
> > >www.jahia.com Commercial services company
> >
> >-------=[ pvollenweider at jahia dot com ]=---------
> >Jahia : A collaborative source CMS and Portal Server
> >www.jahia.org Community and product web site
> >www.jahia.com Commercial services company
>
>-------=[ pvollenweider at jahia dot com ]=---------
>Jahia : A collaborative source CMS and Portal Server
>www.jahia.org Community and product web site
>www.jahia.com Commercial services company
-------=[ pvollenweider at jahia dot com ]=---------
Jahia : A collaborative source CMS and Portal Server
www.jahia.org Community and product web site
www.jahia.com Commercial services company
-------=[ pvollenweider at jahia dot com ]=---------
Jahia : A collaborative source CMS and Portal Server
www.jahia.org Community and product web site
www.jahia.com Commercial services company