Skip to Main Content

Application Development Software

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

netui:Checkboxoption, set checked without javascript

774482May 21 2010 — edited May 24 2010
I 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
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 21 2010
Added on May 21 2010
2 comments
1,517 views