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


Reply via email to