RE : display field
Philippe Vollenweider <[email protected]>
| Newsgroups | gmane.comp.cms.jahia.template |
|---|---|
| Message-ID | <[email protected]> |
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