RE : CheckBox

"Nicolas Lafaury" <[email protected]>
Newsgroups gmane.comp.cms.jahia.devel
Message-ID <[email protected]>
Thanks,
 
It's working good.
 
Nicolas
 
-----Message d'origine-----
De : Marc Cardle [mailto:[email protected]] 
Envoyé : vendredi 22 juillet 2005 11:06
À : [email protected]
Objet : RE: CheckBox
 
Hi Nicolas,
 
If you want to use a checkbox to allow the user to select multiple values from a list, may I suggest you use a 
 
value="<jahia_multivalue_multiple[value1:value2:value3]>value1"  (displays three choices for this field and
allows the user to pick one or more with value1 as the default selection)
 
instead of a 
 
value='<jahia_multivalue[left:right:default]>left'  (displays three choices for this field and allows the user to only pick one)
 
If however you want to use a checkbox for aesthetic reasons, then this can be done by modifying the SmallText edit engine which (currently defaults to a <select>):
 
\jahia\core\src\webapp\jsp\jahia\engines\shared\smalltext_field.jsp  (in the source distribution)
 
Or 
 
\tomcat\webapps\jahia\jsp\jahia\engines\shared\smalltext_field.jsp  (in the Jahia installation)
 
Please feel free to send us your modified version of the JSP so that we can commit it into Jahia.
 
Regards
 
Marc
 
 
 
  _____  

From: Nicolas Lafaury [mailto:[email protected]] 
Sent: 21 July 2005 10:34
To: [email protected]
Subject: CheckBox
 
Hello all
 
Is anyone knows if we can have checkbox in a containerList ?
 
For an example, this code create a select box.
 
<content:declareContainer>
    <content:declareField name='<%="monStatutDossier"+containerId%>'
      title="Statut Dossier"
      type="SmallText"
      value="<%=getMultivalues(listDossierName)%>"
    />
</content:declareContainer>
 
 
I want to use a checkbox to select multiple value.
 
Is it possible?
 
Thanks all
 
Nicolas
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.