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

Paul-Inge Flakstad flakstad at npolar.no
Wed Apr 22 05:46:07 CEST 2009


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



More information about the opencms-dev mailing list