[opencms-dev] How to test a checkbox???

vespucio sotormcf at gmail.com
Wed Apr 22 11:04:25 CEST 2009


oh...i forgot to say the version i'm using sorry...he
thanks
Regards



Fabian Huschka-2 wrote:
> 
> Hello Vespucio,
> 
> this is another legitimate approach for 7.x - did not know which OpenCms
> version you are using.
> 
> Regards,
> 
> \Fabian
> 
> vespucio wrote:
>> finally,i did this:
>>
>> <cms:contentload collector="allInFolderPriorityDateDesc"
>> param="/folder/Popup/popup_%(number).html|Popup|1">
>> <cms:contentaccess var="content" scope="page" />
>>
>> 	<c:if test="${content.value.MyCheckBox == 'true'}">
>> 	       .....do something...........
>> 	</c:if>
>> 	
>> </cms:contentload>
>>
>>  
>>
>>
>>
>> Fabian Huschka-2 wrote:
>>   
>>> With the help of the JSTL and the OpenCms taglib a feasibile solution
>>> for JSPs would be:
>>>
>>> <c:set var="checkbox_value"><cms:contentshow element="MyCheckBox"
>>> /></c:set>
>>>
>>> <c:if test="${checkbox_value}">
>>> ... do something ...
>>> </c:if>
>>>
>>> Cheers,
>>>
>>> \Fabian
>>>
>>>
>>> Paul-Inge Flakstad wrote:
>>>     
>>>> I use a code like this:
>>>>
>>>> boolean checkboxValue = false;
>>>> CmsJspXmlContentBean cms = new CmsJspXmlContentBean(pageContext,
>>>> request,
>>>> response);
>>>> I_CmsXmlContentContainer container = cms.contentload("singleFile",
>>>> "${opencms.uri}", true);
>>>>         
>>>> while (container.hasMoreContent()) {
>>>>     checkboxValue = Boolean.parseBoolean(cms.contentshow(container,
>>>> "MyCheckBox"));
>>>> }
>>>>
>>>> Cheers,
>>>> Paul
>>>>
>>>> -----Original Message-----
>>>> From: opencms-dev-bounces at opencms.org
>>>> [mailto:opencms-dev-bounces at opencms.org] On Behalf Of vespucio
>>>> Sent: 21. april 2009 15:59
>>>> To: opencms-dev at opencms.org
>>>> Subject: [opencms-dev] How to test a checkbox???
>>>>
>>>>
>>>> im trying to test the value of a checkbox....true or false.....
>>>> how can i do this?
>>>> --
>>>> View this message in context:
>>>> http://www.nabble.com/How-to-test-a-checkbox----tp23156740p23156740.html
>>>> Sent from the OpenCMS - Dev mailing list archive at Nabble.com.
>>>>
>>>>
>>>> _______________________________________________
>>>> This mail is sent to you from the opencms-dev mailing list
>>>> To change your list options, or to unsubscribe from the list, please
>>>> visit
>>>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>>>>
>>>> _______________________________________________
>>>> This mail is sent to you from the opencms-dev mailing list
>>>> To change your list options, or to unsubscribe from the list, please
>>>> visit
>>>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>>>>   
>>>>       
>>> -- 
>>> componio GmbH
>>> Robert-Bosch-Straße 7
>>> D - 64293  Darmstadt
>>> Tel:	+49.6151.500.367.11
>>> Office:	+49.6151.500.367.0
>>> Fax:	+49.6151.500.367.6
>>> Internet: http://www.componio.net
>>> E-Mail:	componio at componio.net
>>> HRB 9624 - Registergericht Amtsgericht Darmstadt 
>>>
>>>
>>> _______________________________________________
>>> This mail is sent to you from the opencms-dev mailing list
>>> To change your list options, or to unsubscribe from the list, please
>>> visit
>>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>>>
>>>
>>>     
>>
>>   
> 
> 
> -- 
> componio GmbH
> Robert-Bosch-Straße 7
> D - 64293  Darmstadt
> Tel:	+49.6151.500.367.11
> Office:	+49.6151.500.367.0
> Fax:	+49.6151.500.367.6
> Internet: http://www.componio.net
> E-Mail:	componio at componio.net
> HRB 9624 - Registergericht Amtsgericht Darmstadt 
> 
> 
> _______________________________________________
> This mail is sent to you from the opencms-dev mailing list
> To change your list options, or to unsubscribe from the list, please visit
> http://lists.opencms.org/mailman/listinfo/opencms-dev
> 

-- 
View this message in context: http://www.nabble.com/How-to-test-a-checkbox----tp23156740p23172437.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.




More information about the opencms-dev mailing list