Netui:checkbox usage

I'm looking for an example of using the netui:checkbox (or group, etc), in a jsp
page within a page flow. In particular, I want to render multiple rows (using
the netui:repeater), with a checkbox on each row. When the user submits the page,
I want a collection of all the checkbox's checked!
Is this possible?
Thanks.
GregM

Greg--
Here's a basic sample that shows using the <netui:checkBox/> tag
inside of the repeater.
The repeater renders Widget[] on the page with a check box per Widget
which changes the "boolean" property on a particular Widget.
What you'll get on POST are updates to all of the "available"
properties on the Widget[] inside of the page flow's "widgetForm"
proeprty. If you need a Collection from that, you can always convert it
by hand. You could also use a Widget List instead of a Widget array
inside of the WidgetForm.
One thing to notice here is that the repeater binds to a property of
the page flow instead of binding to an action form. This means that
values are POSTed directly into the page flow and that you'll need to
perform validation by hand. The sample is this way simply for
simplicity; if you'd rather POST into a FormData object so validation is
called by the framework as usual, you can use Struts merge to scope a
form bean into the session for the "postback" action.
Hope this helps...
Eddie
Greg McCarty wrote:
I'm looking for an example of using the netui:checkbox (or group, etc), in a jsp
page within a page flow. In particular, I want to render multiple rows (using
the netui:repeater), with a checkbox on each row. When the user submits the page,
I want a collection of all the checkbox's checked!
Is this possible?
Thanks.
GregM[att1.html]
package checkBoxRepeater;
import com.bea.wlw.netui.pageflow.FormData;
import com.bea.wlw.netui.pageflow.Forward;
import com.bea.wlw.netui.pageflow.PageFlowController;
import java.io.Serializable;
* @jpf:controller
* @jpf:view-properties view-properties::
* <!-- This data is auto-generated. Hand-editing this section is not recommended. -->
* <view-properties>
* <pageflow-object id="pageflow:/checkBoxRepeater/Controller.jpf"/>
* <pageflow-object id="page:index.jsp">
* <property value="240" name="x"/>
* <property value="100" name="y"/>
* </pageflow-object>
* <pageflow-object id="formbean:checkBoxRepeater.Controller.WidgetForm"/>
* <pageflow-object id="action:postback.do">
* <property value="400" name="x"/>
* <property value="100" name="y"/>
* </pageflow-object>
* <pageflow-object id="forward:path#success#index.jsp#@action:postback.do@">
* <property value="364,320,320,276" name="elbowsX"/>
* <property value="103,103,103,103" name="elbowsY"/>
* <property value="West_2" name="fromPort"/>
* <property value="East_2" name="toPort"/>
* <property value="success" name="label"/>
* </pageflow-object>
* <pageflow-object id="action-call:@page:index.jsp@#@action:postback.do@">
* <property value="276,320,320,364" name="elbowsX"/>
* <property value="92,92,92,92" name="elbowsY"/>
* <property value="East_1" name="fromPort"/>
* <property value="West_1" name="toPort"/>
* </pageflow-object>
* <pageflow-object id="action:begin.do">
* <property value="80" name="x"/>
* <property value="100" name="y"/>
* </pageflow-object>
* <pageflow-object id="forward:path#success#index.jsp#@action:begin.do@">
* <property value="116,160,160,204" name="elbowsX"/>
* <property value="92,92,92,92" name="elbowsY"/>
* <property value="East_1" name="fromPort"/>
* <property value="West_1" name="toPort"/>
* <property value="success" name="label"/>
* </pageflow-object>
* <pageflow-object id="formbeanprop:checkBoxRepeater.Controller.WidgetForm#widgets#checkBoxRepeater.Controller.Widget[]"/>
* </view-properties>
public class Controller extends PageFlowController
* The list of available widgets.
private Widget[] widgets = null;
* This is a FormData object that is stored in the JPF.
* POSTing done from index.jsp to this property doesn't use
* the typical request-scoped form, it uses a form instance
* that is stored in the JPF and is POSTed to directly. This
* means that you'll need to validate the values manually.
* You can also use Struts merge to use a session scoped
* form that will live across requests in the session
private WidgetForm widgetForm = null;
* Get the Page Flow scoped form instance
public WidgetForm getWidgetForm() {return widgetForm;}
* This method represents the point of entry into the pageflow
* @jpf:action
* @jpf:forward name="success" path="index.jsp"
protected Forward begin()
// create the widget list
widgets = new Widget[] {
new Widget("Spoon", true),
new Widget("Knife", false),
new Widget("Fork", true)
widgetForm = new WidgetForm();
widgetForm.setWidgets(widgets);
return new Forward("success");
* @jpf:action
* @jpf:forward name="success" path="index.jsp"
protected Forward postback()
return new Forward("success");
* FormData get and set methods may be overwritten by the Form Bean editor.
public static class WidgetForm
extends FormData
private Widget[] widgets = null;
public Widget[] getWidgets()
return widgets;
public void setWidgets(Widget[] widgets)
this.widgets = widgets;
* A class representing a Widget. It has two properties, name and
* an available <code>boolean</code>.
public static class Widget
implements Serializable
private boolean available = true;
private String name = null;
public Widget(String name, boolean available)
this.available = available;
this.name = name;
public String getName()
return name;
public void setName(String name)
this.name = name;
public boolean getAvailable()
return available;
public void setAvailable(boolean available)
this.available = available;

Similar Messages

  • Workshop 8.1 - netui-data:repeater and netui:checkBox

    Hi everybody.
    How can i use netui-data:repeater and netui:checkBox to build a group of checkboxes ? I need something like Struts "indexed and mapped properties" (http://struts.apache.org/struts-doc-1.1/faqs/indexedprops.html)
    I've tried something like this
    == FORM ==
    public List getSearchResult() {
       return searchResult;
    public void setSearchResult(List searchResult) {
       this.searchResult = searchResult;
    }== JSP ==
    <<netui-data:repeater dataSource="{actionForm.searchResult}">>
    <<tr bgcolor="#ffffff" class="text8b">>
    <<td>><<netui:checkBox dataSource="{container.item.selected}" />><</td>><</tr>>
    <</netui-data:repeater>>
    I can see the values inside this page but when i submit this form, my list is empty (null).
    What is the right way of do it ?
    Thanks in advance.

    Hi Daniel
    There are 2 ways you can acheive this.
    1) Using something called Pageflowscoped form for this. This will let you use arrays for checkbox group.
    The main part will be that you need to define a member varaible of the form at the pageflow level there by the data will not be lost
    2) Using Request scoped form like you have now but need to modify the getter method to populate the "searchResult" object.
    public List getSearchResult() {
    if( null == searchResult){
    System.out.println(" Pouplate the searchResult here. ");
    searchResult= new ArrayList();
    //populate the default values.
    return this.searchResult;
    More info at:
    http://e-docs.bea.com/workshop/docs81/doc/en/workshop/guide/netui/guide/conReqScopedVsPageScopedBean.html
    I have a sample with pageflowscoped bean and requestscoped bean that I can send you if you provide your email address.
    Unfortunately we cannot attach files in the newsgroup.
    Thanks
    Vimala

  • How to pass a JSP var to a Script function called in a netui:checkbox

    How to pass a JSP variable to a Java Script function called in a netui:checkbox onSelect?
    I have a requirement where based on the checkBox selected or deselected in a repeater tag I would have to select or deselect other checkboxes in a netui:form. I am trying to pass the index or unique name of the checkbox to the JavaScript function. When I try this code I am getting a Syntax Error!! and getting a " item undefined" in the javascript. This works when I use just the html form tag but when I use the <netui:form> tag I am facing this issue. Any help would be highly appreciated.
    function selectACheckBoxOnClick(name) {
    alert ("called selectACheckBoxOnClick ");
    alert ("called name "+name);
    <netui-data:repeater dataSource="{pageFlow.unregisteredContractAssetsDTOArr}">
    <netui-data:repeaterItem>
    <% String checkboxName = "selectACheckBox_"+i;
    String serialNum = "serialNum_"+i;
    String hidenboxName = "hiddenACheckBox_"+i;
    String loopNo = new Integer(i).toString();
    System.out.println("Loop String :"+ loopNo);
    System.out.println("CheckBox Name:"+ checkboxName);
    System.out.println("serialNum :"+serialNum); %>
    <tr bgcolor="#ffffff">
    <td align="center">
    <netui:checkBox dataSource="{container.item.selectedAssetFlag}" onSelect="selectACheckBoxOnClick(<%=checkboxName%>);" tagId="<%=checkboxName%>"/>
    </td>
              <td class="small"><netui:label value="{container.item.model}"/></td>
              <td class="small">
    <netui:hidden dataSource="{container.item.splitAssetNo}" tagId="<%=serialNum%>"/>
    <netui:label value="{container.item.serial}"></netui:label></td>
              <td class="small"><netui:label value="{container.item.equpimentId}"/></td>
              <td class="small">
    <netui-data:getData resultId="siteId" value="{container.item.siteNo}" />
    <%String siteId = (String) pageContext.getAttribute("siteId");%>
    <netui:anchor action="getSiteLevelAssets" formSubmit="true">
    <netui:parameter value="{container.item.siteNo}" name="siteNo" />
    <netui:label value="{container.item.siteNo}" />
    </netui:anchor>
    </td>     </tr>
    <%i++;%>
    </netui-data:repeaterItem>
    </netui-data:repeater>
    This code works within a form:
                   <td align=center>
                        <input type=image name="unassign" onclick="javascript:unassignReplacement(<%=replacementSupply.getPMSupplyId()%>)" src="<%=request.getContextPath()%>/images/bt_sm_x.gif" border=0 alt="Unassign">
                        </td>
    Thanks,
    Salome

    hi
    i did not go thru your code completly
    but u can use the following for your problem
    the checkbox in the repeater must have unique TagID
    counter = 0; (initialize)
    <netui-data:repeaterItem>
    <netui:checkBox dataSource="" tagId='<%="count"+String.valueOf(counter)%>' onClick="some function()" />
    <%counter++;%>
    </netui-data:repeaterItem>
    here if u have 3 checkbox
    They will have Tagid's as count1 , count2 and count3
    now in the javascript somefunction()
    use the following line
    for(j=0;j<<%=counter%>;j++)
    document.forms(0)[getNetuiTagName"count"+j)].checked=false;     
    }

  • How does netui:checkBox work?

    Hello,
    Is there a way to make <netui:checkBox> "checked" if a value x is = to a given value z ?
    Thanks,
    e

    yeah, but the defeats the whole purpose of netui...
    the checkbox and select netui tags ought to have the ability to "check" or "select" based on the datasource value matching the checkbox/option value...
    I think I see how this would be done in the form bean... you bascially have to create a getter for checkbox and select conditions, and then use it in the netui tag... bummer

  • How to submit a form with checkboxes in a page flow?

    I'm having some trouble with a form that contains several checkboxes, and
    how to submit this form within a page flow...
    I have a JSP page containing a form with N checkboxes. The value and
    checked/unchecked status of each checkbox is generated from parsing an XML
    document. Here is the (simplified) code:
    <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>
    <netui:form action="doUpdate">
    <x:forEach select="...">
    <input type="checkbox" name="id"
    <x:if ...>checked</x:if> value="<x:out ... />">
    </x:forEach>
    <netui:anchor formSubmit="true" action="doUpdate">Submit</netui:anchor>
    <netui:anchor action="doCancel">Cancel</netui:anchor>
    </netui:form>
    When this form is submitted, the checkbox values are lost -- the following
    code (in the action) produces an empty array:
    String[] prefs = this.getRequest().getParameterValues("id");
    I looked at the <netui:checkbox> tag, but it does not appear to give me a
    way to set the state and value (unless I've missed something).
    Can I submit a form without using a form bean? If I do use a form bean, can
    I set the state and value from my JSP?
    Any suggestions on how to do this (or insights into what I'm doing wrong)
    are welcome...
    -- Craig

    I am new to this, but I think this may solve your problem:
    I am not sure if this is what you are looking for, but you can create a LinkedHashMap
    with the req key/value pairs in the page-calling action in the pageflow and then
    pass that via a getRequest().setAttribute("myCheckboxes",myCheckboxHashMap);
    You can then access it in code using the optionsDataSource portion of the netui:checkBoxGroup
    - ie
    <netui:checkBoxGroup dataSource="{actionForm.thisCheckbox}" optionsDataSource="{request.myCheckboxes}">
    Hope this helps!
    m
    "Craig Coffin" <craig+1268fbec@nfld-dot-com> wrote:
    I'm having some trouble with a form that contains several checkboxes,
    and
    how to submit this form within a page flow...
    I have a JSP page containing a form with N checkboxes. The value and
    checked/unchecked status of each checkbox is generated from parsing an
    XML
    document. Here is the (simplified) code:
    <%@ taglib uri="http://java.sun.com/jstl/xml" prefix="x" %>
    <netui:form action="doUpdate">
    <x:forEach select="...">
    <input type="checkbox" name="id"
    <x:if ...>checked</x:if> value="<x:out ... />">
    </x:forEach>
    <netui:anchor formSubmit="true" action="doUpdate">Submit</netui:anchor>
    <netui:anchor action="doCancel">Cancel</netui:anchor>
    </netui:form>
    When this form is submitted, the checkbox values are lost -- the following
    code (in the action) produces an empty array:
    String[] prefs = this.getRequest().getParameterValues("id");
    I looked at the <netui:checkbox> tag, but it does not appear to give
    me a
    way to set the state and value (unless I've missed something).
    Can I submit a form without using a form bean? If I do use a form bean,
    can
    I set the state and value from my JSP?
    Any suggestions on how to do this (or insights into what I'm doing wrong)
    are welcome...
    -- Craig

  • Unable to read checkbox tag value in workshop

    I'm trying to embed a repeater tag in a form, the JSP code is, the requirement is to get a list of records and display them to the user. The user then has to select a particular row of values and this is sent back to the database. I am able to display all the rows correctly from the database, but when I put the check box on my jsp, i am unable to get the proper value of the checkbox to determine which row has been selected so that I can post those values to the database.
    I am trying to use a check box within a repeater tag, but even though I have a boolean[] varible defined in my form bean I am unable to get the form bean value for each row.
    my jsp looks as follows
    <%@ page language="java" contentType="text/html;charset=UTF-8"%>
    <%@ taglib uri="netui-tags-databinding.tld" prefix="netui-data"%>
    <%@ taglib uri="netui-tags-html.tld" prefix="netui"%>
    <%@ taglib uri="netui-tags-template.tld" prefix="netui-template"%>
    <netui:html>
    <head>
    <title>
    Peripheral Data available in Arbor
    </title>
    </head>
    <body>
    <netui:image src="resources/images/verio_logo.gif"/>
    <netui:image src="resources/images/about_hd.jpg"/>
    <h2>Peripheral Data available in Arbor</h2>
    <netui:form action="updatePeripheralData">
    <netui-data:callPageFlow method="getPeripheralDataArrayList" resultId="peripheralDataList"/>
    <netui-data:repeater dataSource="{pageFlow.peripheralDataList}">
    <netui-data:repeaterHeader>
    <table border="1">
    <tr>
    <td><b>Select</b></td>
    <td><b>Arbor Description</b></td>
    <td><b>Arbor Id</b></td>
    <td><b>Universal Id</b></td>
    <td><b>Revenue Type</b></td>
    <td><b>Equipment Type</b></td>
    <td><b>Journal Code</b></td>
    <td><b>Tax Group</b></td>
    </tr>
    </netui-data:repeaterHeader>
    <netui-data:repeaterItem>
    <tr>
    <td>
    <netui:checkBox defaultValue="{container.item.dataSelected}" dataSource="{actionForm.dataSelected}"/>
    </td>
    <td>
    <netui:label value="{container.item.prod_description}" defaultValue=" "></netui:label>
    <netui:hidden dataInput="{container.item.prod_description}" dataSource="{actionForm.productDescription}"/>
    </td>
    <td>
    <netui:label value="{container.item.application_prod_id}" defaultValue=" "></netui:label>
    <netui:hidden dataInput="{container.item.application_prod_id}" dataSource="{actionForm.productId}"/>
    </td>
    <td>
    <netui:label value="{container.item.universal_prod_id}" defaultValue=" "></netui:label>
    <netui:hidden dataInput="{container.item.universal_prod_id}" dataSource="{actionForm.universalProductId}"/>
    </td>
    <td>
    <netui:label value="{container.item.revenue_type_code}" defaultValue=" "></netui:label>
    <netui:hidden dataInput="{container.item.revenue_type_code}" dataSource="{actionForm.revenueType}"/>
    </td>
    <td>
    <netui:label value="{container.item.equip_type_code}" defaultValue=" "></netui:label>
    <netui:hidden dataInput="{container.item.equip_type_code}" dataSource="{actionForm.equipmentType}"/>
    </td>
    <td>
    <netui:label value="{container.item.gl_code}" defaultValue=" "></netui:label>
    <netui:hidden dataInput="{container.item.gl_code}" dataSource="{actionForm.glCode}"/>
    </td>
    <td>
    <netui:label value="{container.item.tax_category_id}" defaultValue=" "></netui:label>
    <netui:hidden dataInput="{container.item.tax_category_id}" dataSource="{actionForm.taxCategory}"/>
    </td>
    </tr>
    </netui-data:repeaterItem>
    <netui-data:repeaterFooter></table></netui-data:repeaterFooter>
    </netui-data:repeater>
    <netui:button value="Add Peripheral Data" type="submit"/>
    </netui:form>
    </body>
    </netui:html>
    I am not sure why I am unable to pass my checkbox value to my boolean variable.
    Please help.
    Thanks
    Bobby.

    1. Add your list (getPeripheralDataArrayList) as a property of the FormBean.
    2. Set the repeater dataSource to the list in the FormBean.
    3. Set he CheckBox dataSource="{container.item.dataSelected}", as well as all other members in the lists object.
    4. In the controller iterate through the list to find the row selected when the form is submitted.
    Hope this helps...

  • Checkbox disabled facility in portal 8.1

    Hi,
    I need to disable the checkbox from the server side code. I would not be able
    to find respective attribute from the tag <netui:checkbox ...>.
    please tell us, is this is a bug in the weblogic portal 8.1 (currently i am using
    weblogic portal 8.1) or something else.
    thanks,
    shashi

    The PortalServletFilter supports form-based login and will fire a
    SessionLoginEvent to the EventService when a user goes from
    unauthenticated to authenticated (assumging the fireSessionLoginEvent
    init param is true, which it is by default).
    You can configure BehaviorTracking to persist events to a database
    table. Most of the 7.0 docs
    (http://e-docs.bea.com/wlp/docs70/dev/evnttrak.htm#998197) are probably
    still valid; they haven't moved been migrated into the 8.1 doc-set yet.
    Or, you could write your own ServletFilter which notices when a user
    become authenticated and performsn your action. With this, you would
    have full access to the live HttpServletRequest and HttpSession.
    Greg
    olivier wrote:
    Our portal is secured with a form-based login page.
    How can we track the login event ?

  • How to use java code in netui

    Hi all,
    i want to use
    <input type="checkbox" name="active" value="1" <%=( appraiser.getActive()).equals("1")
    )?" checked ":""%>> Yes</td>
    in netui like
    <netui:checkBox dataSource="{actionForm.active}" />
    but until now, i can find how to solve this problem .....
    the goal is ... if the value in active is 1, i want the check box is check .....else
    Thanks
    Sougata
    thank's for your help
    best regard

    Sougata,
    Is your question how to set a netui:checkBox to checked or unchecked when
    the checkBox is first presented to the user?
    - john
    "Sougata" <[email protected]> wrote in message
    news:40584118$[email protected]..
    >
    Hi all,
    i want to use
    <input type="checkbox" name="active" value="1" <%=(appraiser.getActive()).equals("1")
    )?" checked ":""%>> Yes</td>
    in netui like
    <netui:checkBox dataSource="{actionForm.active}" />
    but until now, i can find how to solve this problem .....
    the goal is ... if the value in active is 1, i want the check box is check.....else
    Thanks
    Sougata
    thank's for your help
    best regard

  • Prob in accessing DataSourece value from netui-data:repeater after submit

    HI all,
              I am new to this WLWS. PLease guide me in the following scenario:
              I am retrieving an array of records (activityDetails[]) from a Db control and setting this to the datasource property of a netui-data:repeater. Basically I am populating a list of records in my jsp page which works fine.
              But When a submit the page, I am not able to access that array of records from the action method difined in my controller.jpf file, even though I have declared the array in the Form bean.
              And I am not sure if have set the proper datasource for the checkBox defined within the records. The purpose of this checkbox is to select the records form the list to be saved in the database. Is there any better way of achieving the same.
              It's throwing Null pointer exception in the method called
              doProcess.
              Here is the related code:
              activities.jsp
              <netui:button type="submit" tagId="btnSave" value="Save" styleClass="btn" action="doProcess"/>
              <netui:button tagId="btnPrint" value="Print" styleClass="btn" onClick="doPrint()"/>
                                       </td>
                                  </tr>
              <netui-data:repeater dataSource="{actionForm.activityDetails}" >
              <netui-data:getData resultId="pkg" value="{container.item.pkg_header_id}" />
              <tr bordercolor="#A8A8A8" >
              <%
              if (pageContext.getAttribute("pkg") == null)
              %>
              <td><netui:content value=" "/></td>
              <%
              else
              %>
              <td><netui:checkBox dataSource="{container.item.activity_id}"/>
              <%
              %>
              <td><netui:content value="{container.item.prt_no}"/> </td>
              <td><netui:content value="{container.item.activity_num}"/> </td>
              <td><netui:content value="{container.item.frc_acct_code}"/> </td>
              <td><netui:content value="{container.item.frc_acct_code}"/> </td>
              <td><netui:content value="{container.item.status_code}"/> </td>
              <td><netui:content value="{container.item.location_code}"/> </td>
              <td><netui:content value="{container.item.task_code}"/> </td>
              <td><netui:content value=" "/> </td>
              <td><netui:content value="{container.item.wpid}"/> </td>
              <td><netui:content value="{container.item.original_qty}"/> </td>
              <td><netui:content value="{container.item.act_obj_hrs}"/> </td>
              <td><netui:content value="{container.item.act_actual_hrs}"/> </td>
              <td><netui:content value="{container.item.act_rmng_hrs}"/> </td>
              <td><netui:content value="{container.item.act_rmrk}"/> </td>
              </tr>
              </netui-data:repeater>
              </table>
              </netui:form>
              </netui-template:section>
              </netui-template:template>
              Here is the .jpf file
              public class VSchedController extends PageFlowController
              * @common:control
              private custom.ConstSched constSched;
              private ActivityDetails[] activityDetails;
              * @jpf:action
              * @jpf:forward name="index" path="index.jsp"
              * @jpf:forward name = "success" path = "packageActivities.jsp"
              protected Forward begin(PackageSchedForm form) throws SQLException
              HttpSession s = getRequest().getSession(false);
              int jobID = (s.getAttribute("JOB_ID") != null) ? Integer.parseInt(s.getAttribute("JOB_ID").toString()) : 0;
              if (jobID == 0) jobID = 6;
              setActivityDetails(constSched.getAllActivities(jobID));
              form.setActivityDetails(activityDetails);
              return new Forward("success");
              * @jpf:action
              * @jpf:forward name="success" path="packageActivities.jsp"
              protected Forward doProcess(PackageSchedForm form) throws SQLException
              System.out.println("----------------------------------------");
              System.out.println("ActivityDetails is null ? " + (form.activityDetails == null));
              for(int i=0; i < 6; i++)
              try
              System.out.println("Checked -> " + form.activityDetails.activity_id);
              catch(Exception e)
              System.out.println(i);
              System.out.println("----------------------------------------");
              return new Forward("success");
              public ActivityDetails[] getActivityDetails()
              return this.activityDetails;
              public void setActivityDetails(ActivityDetails[] activityDetails)
              this.activityDetails = activityDetails;
              * FormData get and set methods may be overwritten by the Form Bean editor.
              public static class PackageSchedForm extends FormData
              private ActivityDetails[] activityDetails;
              public ActivityDetails[] getActivityDetails()
              return this.activityDetails;
              public void setActivityDetails(ActivityDetails[] activityDetails)
              this.activityDetails = activityDetails;

    Personally, I have had a hard time doing what you are asking for using netui tags. I have had the same case, and asked the person in my team to just return a collection of value objects and then iterate through it without the repeater tag. To use the checkbox, I have had to use a String[].
              Kunal

  • Checkbox - One affects all?  Need solution

    Hello all,
    I recently started a small program for the sake of testing out Checkboxes and already I am running into a brick wall.
    The problem I am having, as I can best explain it, is that I am testing a very small program that does the following:
    - Allows user to check multiple boxes
    - As each box is checked, the price is INCREASED based on the value of that box
    - As each box is unchecked, the price is DECREASED based on the value of that box
    I am finding that if I begin the program with several empty boxes and make just one choice (on one box), all other empty boxes are treated as if they've been UNCHECKED (aka as if they were actually checked before!) Obviously in my case, beginning the program with several checkboxes and selecting only one - something that's supposed to add one dollar amount to the "0.00" beginning balance - instead makes it go into the negatives because the actions for deselecting the checkboxes are taken (those actions which tell the program to SUBTRACT the value from the unchecked boxes . . which is only supposed to occur if they were checked previously and are being unchecked now.)
    What I need is some sort of system in which each checkbox is treated independently and so that action is taken only if the box I'm clicking has been selected/deselected, whereas any other boxes within the applet window are not changed at all.
    My sample code is as follows:
    import java.applet.*;*
    *import java.awt.*;
    import java.awt.event.*;
    public class Sample extends Applet implements ItemListener
              //-------CHECKBOXES------------------------------
              Checkbox priceOneCB = new Checkbox("First Price");
              Checkbox priceTwoCB = new Checkbox("Second Price");
         public void init()
              //-------SET UP INTERFACE--------------------------------
              add(priceOneCB);
                    priceOneCB.addItemListener(this);
              add(priceTwoCB);
                    priceTwoCB.addItemListener(this);
         public void itemStateChanged(ItemEvent e)
               // price one selected
              if (priceOneCB.getState())
              System.out.println("PRICE ONE SELECTED!");
              // price one NOT selected
              else if (!(priceOneCB.getState()))
              System.out.println("PRICE ONE DESELECTED!");
              // price two selected
              if (priceTwoCB.getState())
                 System.out.println("PRICE TWO SELECTED!");
                // price two NOT selected
                else if (!(priceTwoCB.getState()))
                System.out.println("PRICE TWO DESELECTED!");
    }Does anyone have any suggestions? Am I just completely missing the mark here with my Checkbox usage? I am a complete "newbie" to this subject and I'm very frustrated, so hopefully someone can lead me down the right path. I also apologize if my explanation wasn't clear enough, but I did the best I could. It's a toughie to explain.
    Thanks very much in advance!
    - Chubz

    Aren't you confusing deselected with unselected?
    What your code is doing every time there is an event is going through all the boxes and saying "FOO SELECTED" if it is checked and "FOO DESELECTED" if it is not checked.. But you really want only to respond to changes.
    You could do this directly by checking to see what CheckBox caused itemStateChange() to be fired. The ItemEvent class has a couple of methods which look like candidates to return this information. Once you know which check box was selected/deselected, you know how much to change the total by.
    Another approach is to work out the total each time there is a click anywhere. Ie go through all of the check boxes and if they are selected multiply by the "value" associated with that box and add them up.
    Always use braces - even for one line blocks. It adds greatly to readability
    if(foo) {
    } else if (bar) {
    if(baz) {
    }If there is a choice between just two things just use if-else:
    if(someCondition) {
        // if true
    } else {
        // if not
    //if(someCondition) {
    //    // if true
    //} else if(!someCondition) {
    //    // if not
    //}This is especially important if someCondition is returned by a method - because it may change between one invocation and the next causing strange results.
    Why are you using CheckBox, rather than JCheckBox?

  • Checkboxes in nested repeaters always return false

    I display a table using nested <netui-data:repeater> tag sets.
    <p>
    In the left column of the table, I have a checkbox to indicate user row selections for further action. These checkboxes are bound to an array of Row objects that have a boolean field indicating whether they are selected. These work great and I can iterate through the array of Row objects returned in the (pageflow-scoped) form.
    <p>
    In the first (header) row of the table, each cell contains the column name and a checkbox to allow the user to hide columns they don't want to see. These checkboxes are bound similarly to an array of Column objects with Boolean (used to be boolean, tried the object type to see if it helped) indicating their selected state. The initial values of the checkboxes are correct - they are all displayed as "checked"/true - so the data binding seems ok at this point.
    <p>
    PROBLEM: The selected values returned from the JSP are always all set to false for the Column objects! The only real coding difference is that the column checkboxes are rendered within a set of nested <netui-data:repeater> tags inside the set that render the row checkboxes (see below).
    <p>
    The {pageFlow.activity3Form.rows} are of type RowData with fields/getters/setters for fields:
    private boolean selected;
    private String[] fieldData;
    private long oid;
    <p>
    The {pageFlow.activity3Form.columns} are of type Column with fields/getters/setters for fields:
    private Boolean selected;
    private String columnName;
    private int columnIndex;
    <p>
    activity3Form contains a bunch of fields including:
    private RowData[] rows;
    private Column[] columns;
    <p>
    JSP code for the table:
    <code>
    <table width="2000" border="0">
    <tr class="style3" valign="top" bgcolor="#ffffff">
    <th colspan="150" class="style3_3" align="left">
    <netui:anchor action="showAllDataAL3" formSubmit="true">Show All Data</netui:anchor>
    <netui:anchor action="showDefaultDataAL3" formSubmit="true">Show Default Data</netui:anchor>
    <netui:anchor action="showSelectedDataAL3" formSubmit="true">Show Selected Data</netui:anchor>
    </th>
    </tr>
    <tr>
    <!-- The dataSource for the repeater is the array of EsiMemberRows in the form -->
    <netui-data:repeater dataSource="{pageFlow.activity3Form.rows}">
    <netui-data:repeaterHeader>
    <table class="tablebody" border="0" cellpadding="1" cellspacing="3">
    <tr class="style3" valign="top" bgcolor="#ffffcc">
    <th bgcolor="#89fbfb" nowrap valign="bottom">
    <input type="checkbox" name="checkall" onclick="checkUncheckAll(this);"/>All
    </th>
    <netui-data:repeater dataSource="{pageFlow.activity3Form.columns}">
    <netui-data:repeaterItem>
    <th valign="bottom">
    <netui:label value="{container.item.columnName}" defaultValue=" "/><br>
    <netui:checkBox dataSource="{container.item.selected}"/>
    </th>
    </netui-data:repeaterItem>
    </netui-data:repeater>
    <th align="left" nowrap valign="bottom">
    Transaction Status<br>
    <input type="radio" name="setall" value="Update" onclick="setAllRadioGroupsTheSame(this, 'Update');">Update
    <input type="radio" name="setall" value="Hold" onclick="setAllRadioGroupsTheSame(this, 'Hold');">Hold
    <input type="radio" name="setall" value="Proof" onclick="setAllRadioGroupsTheSame(this, 'Proof');">Proof
    <input type="radio" name="setall" value="Reject" onclick="setAllRadioGroupsTheSame(this, 'Reject');">Reject
    <input type="radio" name="setall" value="Unset" onclick="setAllRadioGroupsTheSame(this, 'Unset');">Unset
    </th>
    </tr>
    <tr class="style3" valign="top" bgcolor="#facf92">
    </tr>
    </netui-data:repeaterHeader>
    <netui-data:repeaterItem>
    <tr class="style3_3" valign="top" bgcolor="#89fbfb">
    <td background="#ffffff"><netui:checkBox dataSource="{container.item.selected}"/></td>
    <netui-data:repeater dataSource="{container.item.fieldData}">
    <netui-data:repeaterItem>
    <td nowrap><netui:label value="{container.item}" defaultValue=" "></netui:label></td>
    </netui-data:repeaterItem>
    </netui-data:repeater>
    <td align="left" nowrap>
    <netui:radioButtonGroup tagId="subGroup" dataSource="{container.item.oid}" labelStyleClass="style3_1">
    <netui:radioButtonOption value="Update">Update</netui:radioButtonOption>
    <netui:radioButtonOption value="Hold">Hold</netui:radioButtonOption>
    <netui:radioButtonOption value="Proof">Proof</netui:radioButtonOption>
    <netui:radioButtonOption value="Reject">Reject</netui:radioButtonOption>
    <netui:radioButtonOption value="Unset">Unset</netui:radioButtonOption>
    </netui:radioButtonGroup>
    </td>
    </tr>
    </netui-data:repeaterItem>
    <netui-data:repeaterFooter></table></netui-data:repeaterFooter>
    </netui-data:repeater>
    </tr>
    <!-- Data section END -->
    </table>
    </code>

    <p>
    A bit more info - how the HTML is rendered to the browser:
    <p>
    The failing (and initially checked/true) column checkboxes are generated as:
    <br>
    <input type="hidden" name="wlw-checkbox_key:{pageFlow.activity3Form.columns[0].selected}OldValue" value="false"><input type="checkbox" name="wlw-checkbox_key:{pageFlow.activity3Form.columns[0].selected}" checked>
    <p>
    The working (and initially unchecked/false) row checkboxes are generated as:
    <br>
    <input type="hidden" name="wlw-checkbox_key:{pageFlow.activity3Form.rows[0].selected}OldValue" value="false"><input type="checkbox" name="wlw-checkbox_key:{pageFlow.activity3Form.rows[0].selected}">

  • Netui:textBox tag attributes - readonly and disabled

              What's the difference between these two?
              Thanks
              

    Your solution only work with checkboxex. If u want to disable dropdown it is not
    possible to disable the <td> tag. Does any one know how to disable dropdowns with
    netui tags???
    Murat
    "Tom" <[email protected]> wrote:
    >
    If anyone wants to know....
    my checkbox is in a table data cell... so I disabled the check box by
    disabling
    the table cell.
    <td disabled><checkbox blah blah> </td>
    "Tom" <[email protected]> wrote:
    In a standard HTML form, you can disable a field from being editable
    by specifying
    DISABLED such as
    <input type=checkbox name='Authorized' checked disabled>
    In NETUI, some fields support the readonly flag..but others do not...
    specifically
    <netui:checkBox dataSource="{request.myCompany.cmcdEntitled}" >
    How can I make a NETUI check box (or other fields) read only if it doesn't
    have
    the readonly flag?
    thanks,
    Tom

  • NETUI input tag support for disabled option

    In a standard HTML form, you can disable a field from being editable by specifying
    DISABLED such as
    <input type=checkbox name='Authorized' checked disabled>
    In NETUI, some fields support the readonly flag..but others do not... specifically
    <netui:checkBox dataSource="{request.myCompany.cmcdEntitled}" >
    How can I make a NETUI check box (or other fields) read only if it doesn't have
    the readonly flag?
    thanks,
    Tom

    Your solution only work with checkboxex. If u want to disable dropdown it is not
    possible to disable the <td> tag. Does any one know how to disable dropdowns with
    netui tags???
    Murat
    "Tom" <[email protected]> wrote:
    >
    If anyone wants to know....
    my checkbox is in a table data cell... so I disabled the check box by
    disabling
    the table cell.
    <td disabled><checkbox blah blah> </td>
    "Tom" <[email protected]> wrote:
    In a standard HTML form, you can disable a field from being editable
    by specifying
    DISABLED such as
    <input type=checkbox name='Authorized' checked disabled>
    In NETUI, some fields support the readonly flag..but others do not...
    specifically
    <netui:checkBox dataSource="{request.myCompany.cmcdEntitled}" >
    How can I make a NETUI check box (or other fields) read only if it doesn't
    have
    the readonly flag?
    thanks,
    Tom

  • How can I use javascript to access netui data-repeater item?

    I have a 2-dim table of <netui: checkbox> using a <netui data-repeater> to interate over a contact email (column) and an event (rows).
              My problem is that I need to have a select all checkbox at the bottom of each column (per email) and be able to select all event for an email (when checked) and deselect all when the checkbox is unchecked.
              I can do it in java page flow but I can't have a page refresh.
              I want to do it on the page with javascript. The problem is that using
              document[getNetuiTagName("aform", this)][getNetuiTagName("email1", this)].checked
              with the "tagId" in each <netui> tag I can't access each iteration of the data repeater (I only get the last one).
              What I need is a reference to each repeater element. I do not know how many rows or columns I will have (based on the data).
              Is there any way to reference the obeject itself in javascript so I can loop through the items in the netui data-repeater?
              This is what is rendered in the html netui mapping:
              netui_names.con1="portlet_2_3wlw-checkbox_key:{actionForm.opts[4].cons[1].selContact}"
              I really want to be able to access this and loop through the arrays for opts (event) and cons(email)
              Here's the code:
              <netui:form action="submitEvents" tagId="eform" focus="">
              <table>
              <tr>
              <td>
              <table id="eTable" cellpadding="2" cellspacing="1" border="0">
              <tr bgcolor="#cccccc" class="BlackHeavy8">
              <!-- <td>Selected</td> -->
              <td colspan="2">Event</td>
              <netui-data:repeater dataSource="{pageFlow.contacts}" defaultText="No contacts configured.">
              <netui-data:repeaterHeader>
              </netui-data:repeaterHeader>
              <netui-data:repeaterItem>
              <netui-data:choiceMethod object="{pageFlow}" method="getAddHeader">
              <netui-data:methodParameter value="{container.item.contact_icon}" />
              </netui-data:choiceMethod>
              <netui-data:choice value="default">
              <td nowrap="true" bgcolor="#FFCCCC"><netui:image src="{container.item.contact_icon}"/>
              <netui:label value="{container.item.contact_value}" defaultValue=" "></netui:label>
              </td>
              </netui-data:choice>
              <netui-data:choice value="blue">
              <td nowrap="true" bgcolor="#D8EBFE"><netui:image src="{container.item.contact_icon}"/>
              <netui:label value="{container.item.contact_value}" defaultValue=" "></netui:label>
              </td>
              </netui-data:choice>
              <netui-data:choice value="green">
              <td nowrap="true" bgcolor="#CCFFCC"><netui:image src="{container.item.contact_icon}"/>
              <netui:label value="{container.item.contact_value}" defaultValue=" "></netui:label>
              </td>
              </netui-data:choice>
              <netui-data:choice value="yellow">
              <td nowrap="true" bgcolor="#FFFFCC"><netui:image src="{container.item.contact_icon}"/>
              <netui:label value="{container.item.contact_value}" defaultValue=" "></netui:label>
              </td>
              </netui-data:choice>
              </netui-data:repeaterItem>
              <netui-data:repeaterFooter></netui-data:repeaterFooter>
              </netui-data:repeater>
              </tr>
              <tr>
              <td colspan="7">
              <netui-data:repeater dataSource="{actionForm.opts}">
              <netui-data:repeaterHeader>
              </netui-data:repeaterHeader>
              <netui-data:repeaterItem>
              <netui-data:choiceMethod object="{pageFlow}" method="isEvenRow">
              <netui-data:methodParameter type="int" value="{container.index}" />
              </netui-data:choiceMethod>
              <netui-data:choice value="true">
              <tr class="BlackNorm8">
              <!-- <td align="center"> -->
              <!-- </td> -->
              <td colspan="2">
              <netui:label value="{container.item.eventName}" />
              <netui:hidden dataSource="{container.item.eventId}" />
              </td>
              <netui-data:repeater dataSource="{container.item.cons}">
              <netui-data:repeaterHeader>
              </netui-data:repeaterHeader>
              <netui-data:repeaterItem>
              <netui-data:choiceMethod object="{pageFlow}" method="getAddHeader">
              <netui-data:methodParameter value="{container.item.contact_icon}" />
              </netui-data:choiceMethod>
              <netui-data:choice value="default">
              <td align="center" bgcolor="#FFCCCC" >
              <netui:checkBox tagId="con1" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
              <netui:hidden dataSource="{container.item.contact_id}" tagId="conid1" />
              </td>
              </netui-data:choice>
              <netui-data:choice value="blue">
              <td align="center" bgcolor="#D8EBFE" >
              <netui:checkBox id="con2" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
              <netui:hidden dataSource="{container.item.contact_id}" tagId="conid2" />
              </td>
              </netui-data:choice>
              <netui-data:choice value="green">
              <td align="center" bgcolor="#CCFFCC" >
              <netui:checkBox tagId="con3" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
              <netui:hidden dataSource="{container.item.contact_id}" tagId="conid3" />
              </td>
              </netui-data:choice>
              <netui-data:choice value="yellow">
              <td align="center" bgcolor="#FFFFCC" >
              <netui:checkBox tagId="con4" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
              <netui:hidden dataSource="{container.item.contact_id}" tagId="conid4" />
              </td>
              </netui-data:choice>
              </netui-data:repeaterItem>
              <netui-data:repeaterFooter>
              </netui-data:repeaterFooter>
              </netui-data:repeater>
              </tr>
              </netui-data:choice>
              <netui-data:choice value="false">
              <tr class="BlackNorm8" bgcolor="#eeeeee">
              <!--<td align="center">-->
              <!--</td>-->
              <td colspan="2">
              <netui:label value="{container.item.eventName}" />
              <netui:hidden dataSource="{container.item.eventId}" />
              </td>
              <netui-data:repeater dataSource="{container.item.cons}">
              <netui-data:repeaterHeader>
              </netui-data:repeaterHeader>
              <netui-data:repeaterItem>
              <netui-data:choiceMethod object="{pageFlow}" method="getAddHeader">
              <netui-data:methodParameter value="{container.item.contact_icon}" />
              </netui-data:choiceMethod>
              <netui-data:choice value="default">
              <td align="center" bgcolor="#FFCCCC" >
              <netui:checkBox tagId="conalt1" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
              <netui:hidden tagId="conidalt1" dataSource="{container.item.contact_id}" />
              </td>
              </netui-data:choice>
              <netui-data:choice value="blue">
              <td align="center" bgcolor="#D8EBFE" >
              <netui:checkBox tagId="conalt2" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
              <netui:hidden tagId="conidalt2" dataSource="{container.item.contact_id}" />
              </td>
              </netui-data:choice>
              <netui-data:choice value="green">
              <td align="center" bgcolor="#CCFFCC" >
              <netui:checkBox tagId="conalt3" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
              <netui:hidden tagId="conidalt3" dataSource="{container.item.contact_id}" />
              </td>
              </netui-data:choice>
              <netui-data:choice value="yellow">
              <td align="center" bgcolor="#FFFFCC" >
              <netui:checkBox tagId="conalt4" dataSource="{container.item.selContact}" defaultValue="{container.item.selContact}" />
              <netui:hidden tagId="conidalt4" dataSource="{container.item.contact_id}" />
              </td>
              </netui-data:choice>
              </netui-data:repeaterItem>
              <netui-data:repeaterFooter>
              </netui-data:repeaterFooter>
              </netui-data:repeater>
              </tr>
              </netui-data:choice>
              </netui-data:repeaterItem>
              <netui-data:repeaterFooter>
              </netui-data:repeaterFooter>
              </netui-data:repeater>
              Â </td>
              </tr>
              <!-- Select All Checkboxes -->
              <tr bgcolor="#cccccc" class="BlackHeavy8">
              <!-- <td>Selected</td> -->
              <td colspan="2">Select ALL</td>
              <netui-data:repeater dataSource="{pageFlow.contacts}" defaultText=" ">
              <netui-data:repeaterHeader>
              </netui-data:repeaterHeader>
              <netui-data:repeaterItem>
              <netui-data:choiceMethod object="{pageFlow}" method="getAddHeader">
              <netui-data:methodParameter value="{container.item.contact_icon}" />
              </netui-data:choiceMethod>
              <netui-data:choice value="default">
              <td align="center" nowrap="true" bgcolor="#FFCCCC">
              <netui:hidden dataSource="{container.item.contact_id}" tagId="chbox1" />
              <input type="checkbox" value="false"
              onclick="selectAllEvents('chbox1')">Select ALL
              </td>
              </netui-data:choice>
              <netui-data:choice value="blue">
              <td align="center" nowrap="true" bgcolor="#D8EBFE">
              <netui:hidden dataSource="{container.item.contact_id}" tagId="chbox2" />
              <input type="checkbox" value="false"
              onclick="selectAllEvents('chbox2')">Select All
              </td>
              </netui-data:choice>
              <netui-data:choice value="green">
              <td align="center" nowrap="true" bgcolor="#CCFFCC">
              <netui:hidden dataSource="{container.item.contact_id}" tagId="chbox3" />
              <input type="checkbox" value="false" onclick="selectAllEvents('chbox3')">Select All
              </td>
              </netui-data:choice>
              <netui-data:choice value="yellow">
              <td align="center" nowrap="true" bgcolor="#FFFFCC">
              <netui:hidden dataSource="{container.item.contact_id}" tagId="chbox4" />
              <input type="checkbox" value="false" onclick="selectAllEvents('chbox4')">Select All
              </td>
              </netui-data:choice>
              </netui-data:repeaterItem>
              <netui-data:repeaterFooter></netui-data:repeaterFooter>
              </netui-data:repeater>
              </tr>
              <!-- END Select ALL checkboxes -->
              </table>
              </td>
              <tr align="right">
              <td>
              <netui:button type="submit" value="Cancel" action="begin" styleClass="BlackNorm8"></netui:button>
              <netui:button value="Update" styleClass="BlackNorm8"/>
              </tr>
              </table>
              </netui:form>

    hi ,
    i dont know anything about delphi but from the experience from VB if the connection to oracle in delhpi doesnt recognise object type data field. Then try using OO4O drivers from oracle.if u use these drivers then u can access the sdo_geometry field !
    Hope this helps
    Vikesh

  • Netui tags and javascript

              Hello Gang, not sure if anyone has run into this issue, but here it goes.
              I got a netui:form with netui:checkboxes that I need to have a specific type of
              functionality.
              The first netui:checkbox when checked calls a javascript function that enables
              the remaining netui:checkboxes so that the user can check them.
              Except the first netui:checkbox, all other netui:checkboxes need to be disabled
              at run time and then enabled once the first check box is checked, below is the
              code I got thus far, can't get the diable/enable part to work for the netui tags.
              (Keep in mind that this works well with regular html checkbox tag and javascript)
              The following code wont generate javascript errors.
              It's not doing anything in terms of enabling/disabling the netui:checkboxes.
              <script language="javascript">
              function checkBoxDisable()
              document[getNetuiTagName("updateForm")][getNetuiTagName("tue")].disabled=true;
              document[getNetuiTagName("updateForm")][getNetuiTagName("wed")].disabled=true;
              document[getNetuiTagName("updateForm")][getNetuiTagName("thu")].disabled=true;
              document[getNetuiTagName("updateForm")][getNetuiTagName("fri")].disabled=true;
              function checkboxEnable()
              if (document[getNetuiTagName("updateForm")][getNetuiTagName("mon")].checked)
              document[getNetuiTagName("updateForm")][getNetuiTagName("tue")].disabled=false;
              document[getNetuiTagName("updateForm")][getNetuiTagName("wed")].disabled=false;
              document[getNetuiTagName("updateForm")][getNetuiTagName("thu")].disabled=false;
              document[getNetuiTagName("updateForm")][getNetuiTagName("fri")].disabled=false;
              else
              document[getNetuiTagName("updateForm")][getNetuiTagName("tue")].disabled="true";
              document[getNetuiTagName("updateForm")][getNetuiTagName("wed")].disabled="true";
              document[getNetuiTagName("updateForm")][getNetuiTagName("thu")].disabled="true";
              document[getNetuiTagName("updateForm")][getNetuiTagName("fri")].disabled="true";
              </script>
              <netui:form action="updateContact" tagId="updateForm">
              <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[0]}"
              tagId="mon" onClick="checkboxEnable()"/>Monday
              <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[1]}"
              tagId="tue"/>Tuesday
              <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[2]}"
              tagId="wed"/>Wednesday
              <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[3]}"
              tagId="thu"/>Thursday
              <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[4]}"
              tagId="fri"/>Friday
              </netui:form>
              Any help on this will be appreciated ..
              

              Hello Gang, not sure if anyone has run into this issue, but here it goes.
              I got a netui:form with netui:checkboxes that I need to have a specific type of
              functionality.
              The first netui:checkbox when checked calls a javascript function that enables
              the remaining netui:checkboxes so that the user can check them.
              Except the first netui:checkbox, all other netui:checkboxes need to be disabled
              at run time and then enabled once the first check box is checked, below is the
              code I got thus far, can't get the diable/enable part to work for the netui tags.
              (Keep in mind that this works well with regular html checkbox tag and javascript)
              The following code wont generate javascript errors.
              It's not doing anything in terms of enabling/disabling the netui:checkboxes.
              <script language="javascript">
              function checkBoxDisable()
              document[getNetuiTagName("updateForm")][getNetuiTagName("tue")].disabled=true;
              document[getNetuiTagName("updateForm")][getNetuiTagName("wed")].disabled=true;
              document[getNetuiTagName("updateForm")][getNetuiTagName("thu")].disabled=true;
              document[getNetuiTagName("updateForm")][getNetuiTagName("fri")].disabled=true;
              function checkboxEnable()
              if (document[getNetuiTagName("updateForm")][getNetuiTagName("mon")].checked)
              document[getNetuiTagName("updateForm")][getNetuiTagName("tue")].disabled=false;
              document[getNetuiTagName("updateForm")][getNetuiTagName("wed")].disabled=false;
              document[getNetuiTagName("updateForm")][getNetuiTagName("thu")].disabled=false;
              document[getNetuiTagName("updateForm")][getNetuiTagName("fri")].disabled=false;
              else
              document[getNetuiTagName("updateForm")][getNetuiTagName("tue")].disabled="true";
              document[getNetuiTagName("updateForm")][getNetuiTagName("wed")].disabled="true";
              document[getNetuiTagName("updateForm")][getNetuiTagName("thu")].disabled="true";
              document[getNetuiTagName("updateForm")][getNetuiTagName("fri")].disabled="true";
              </script>
              <netui:form action="updateContact" tagId="updateForm">
              <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[0]}"
              tagId="mon" onClick="checkboxEnable()"/>Monday
              <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[1]}"
              tagId="tue"/>Tuesday
              <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[2]}"
              tagId="wed"/>Wednesday
              <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[3]}"
              tagId="thu"/>Thursday
              <netui:checkBox dataSource="{actionForm.accessDays}" defaultValue="{pageFlow.days[4]}"
              tagId="fri"/>Friday
              </netui:form>
              Any help on this will be appreciated ..
              

Maybe you are looking for

  • I cannot sync my apps to my iphone 3gs

    i have a huge problem... i cannot seem to sync my apps to my iphone... the calendars and music and photos all sync properly except the apps... i also cannot check or click the sync apps in my itunes... this problem started when i transferred all my f

  • Client copy Locked function module

    HI, I'm trying to make a client from client 400 to 420. The problem is that the function module is locked by the current user (the same running the client copy); Then when It can't deletes the FM it states that it already exists: "G_GLDB_POSTING_A al

  • No sound from headphone jack -- here's what I've tried -- now Genius bar?

    Hi all, Some time ago the headphone jack on my MacBook decided to stop putting out sound. I've searched a bunch of forums looking for clues but no dice yet. I've looked into a bunch of things trying to diagnose and fix this problem, which I'll summar

  • Thumbnail Images in ECC6.0 in DMS

    Hi DMS Experts In ECC6.0 There is functionality in DMS in Transaction Code CV04N to display thumbnail images . I have done setting in Workstation apllication and Set Up Workstation Application for Thumbnails (Images).Still I am not able to display im

  • XML to string using xslt or java mapping

    Hi Experts, I want to put xml into string and i need to change lessthan symbol to "&lt"   and greaterthan symbol to "&gt" , can anyone please help me how to do this??? can you provide code for java mapping or XSLT mapping to achive this. SOURCE <?xml