netui:Checkboxoption, set checked without javascript
774482May 21 2010 — edited May 24 2010I am working on weblogic 8 portal and attempting to set the checkboxoption to checked when the page initially renders with the following code with style=(quotes) checked:true (quotes), sorry if i'm typing (quotes) since it's emptying it out on the forum.
<netui:checkBoxGroup dataSource="{pageFlow.displayDocuments}">
<%
if (pageContext.getAttribute("isDocumentExposedToInternet").toString().equalsIgnoreCase("true")) {
%>
<netui:checkBoxOption value="{container.index}" tagId="chkBox" style=(quotes) checked:true (quotes) onClick="setRdoValue(this)">TRUE</netui:checkBoxOption>
<%
} else {
%>
<netui:checkBoxOption value="{container.index}" tagId="chkBox" style=(quotes) checked:true (quotes) onClick="setRdoValue(this)">FALSE</netui:checkBoxOption>
<%
}
%>
</netui:checkBoxGroup>
does anyone know if this is the only way to set the checkbox value? I can't really do it with javascript since i need an onclick event to access it and i need this to be checked when the page initially renders.
thanks in advance.
Edited by: user12959394 on May 21, 2010 7:21 AM
Edited by: user12959394 on May 21, 2010 7:22 AM
Edited by: user12959394 on May 21, 2010 7:22 AM