Check box problem in struts

I am getting several checkboxes on a JSP form that are created depending on the no. of iterator values. e.g.
<s:iterator value="group">
<s:checkbox name="check"/>
<s:textfield name="name"/>
</s:iterator>
Now all the check boxes created are having same name i.e. check.
I have to pass values of these boxes on the click of a button to an action class, how can i pass an array of checkbox values if i have only one element with one name. In action class, I have to determine whether the check boxes are selected or not.

How can we use an array of struts 2 tag elements which may contain multiple check boxes.

Similar Messages

  • Input control -Check Box Problem in webi4 over Bex query

    Hi All
    i am in webi4 over bex query
    my customer requirement is to have the option to select multiple values from object (e.g Document class) with out the need of presenting the field(e.g document class) in the report
    when I use the input control check box or list box i have the following problem
    if I select from the input control all values I see the report ok
    if I select 2 values from the list I receive #UNAVAILABLE , but if i add the field to the report ( the document class) it works fine.
    the problem is that  if I don't have the field in the report i get the #UNAVAILABLE
    any assistance is appreciated
    Thanks

    Hi,
    this question has been asked many times before on this forum, so do please search first.
    Here's some steers : http://forums.sdn.sap.com/thread.jspa?messageID=10852102#10852102
    and : http://forums.sdn.sap.com/thread.jspa?messageID=10838993#10838993
    Also, do search the knowledge base articles over here in the cross-search: www.service.sap.com/xsearch
    you keywords would be "4.0 webi #UNAVAILABLE"    (there are 12 sap notes about this)
    Finally, make sure you use all the latest Patches (Patch2.11,  2.12 next week) to include corrections.
    Regards,
    H

  • Adobe Acrobat Check Box Problems

    Hello,
    I am setting up a form within Adobe Acrobat Pro v 9. I have been able to set check boxes up within the form that when you click on them they make a field visible. The problem is that when you uncheck them the field stays visible. I am trying to get it where when you click on it and the check mark is there the field is visible but when you uncheck it the same field that became visible when you checked it becomes invisible.
    If you are responding an example of a checkboxes name and the field name would be Checkbox Numbers and then the field name would be Numbers Font.
    Thanks for your help!
    J .:

    Hey this is great! Works seemlessly.
    Is there a way to do the same thing with JavaScript to control layers?
    So say we use the original checkbox which is named Checkbox Numbers.
    Whenever we click on Checkbox Numbers to be checked we want the layer named
    Numbers be visible however when we uncheck it we want it to become
    invisible.
    Is that possible through JavaScript and if so what would that code be?
    (Sorry I'm not a programmer)
    Thanks for your help!

  • Need code for Dynamic check box creation in struts

    dynamic checkbox should be created with details of data stored in database(with check mark for already selected check box).
    once user make any change to that page and click submit the result ahould be saved in database..
    can anybody explain me how to proceed this.
    If any sample source code you have plz do sent me..

    consider these are the details in database
    1. apple checked
    2. orange
    3. mango
    4. grapes checked
    consider a jsp page which should display list of fruits in the datsbase,
    the jsp page should retrieve these data and diaplay with check box.
    These should be generated dynamically.
    Assume the jsp page has option for user to enter some other fruit name which should be updated into database of fruits and that should be displayed with the jsp page during next visit.(i.e) number of fruits in the database is not constant.

  • Select many check box problem

    I'm having a lot of trouble with a selectManyCheckBox. I've got a faces panelTabbedPane - and one of the tabs contains a selectManyCheckbox. All the data in the tabs applies to the same bean so I want to apply all the changes or none of them.
    If I don't have the h:form around the tab then the check boxes aren't initialised. However with the h:form when I try and submit the form the checkbox values don't get set on my bean.
    What am I doing wrong and how do I fix it? Any help would be appreciated.
    JSP containing the panel tabbed pane
        <h:form id="edit.form">
            <x:messages id="messageList" showSummary="true" showDetail="true" summaryFormat="{0}:" styleClass="error" />
            <x:panelTabbedPane title="#{msg['account.edit.tabs.title']}" >
                <f:subview id="tab1" >
                    <jsp:include page="editGeneral.jsp"/>
                </f:subview>
                    <h:form id="roles.form">
                <f:subview id="tab2" >
                            <jsp:include page="editRoles.jsp"/>
                </f:subview>
                    </h:form>
                <f:subview id="tab3" >
                    <jsp:include page="editPreferences.jsp"/>
                </f:subview>
                <f:subview id="tab4" >
                    <jsp:include page="editCustomers.jsp"/>
                </f:subview>
                <f:verbatim><br /></f:verbatim>
                <x:commandButton id="editButton" value="#{msg['account.update']}" action="#{selectedAccount.update}" title="#{msg['account.update.alt']}" />
                <x:commandButton id="cancel" immediate="true" value="#{msg['enable.cancel']}" action="cancel" title="#{msg['enable.cancel.alt']}" />
            </x:panelTabbedPane>
        </h:form>And the included JSP
    <x:panelTab label="#{msg['account.edit.tab.roles']}" title="#{msg['account.edit.tab.roles.title']}" >
        <h:panelGrid columns="2" >
            <h:outputLabel for="roles" value="#{msg['account.edit.role']}" />
            <h:selectManyCheckbox id="roles" value="#{selectedAccount.roles}" layout="pageDirection" styleClass="menuSelectMany" >
                <f:selectItems value="#{userPreferences.roles}" />
            </h:selectManyCheckbox>
        </h:panelGrid>
    </x:panelTab>Thanks

    What type does 'userPreferences.roles' represent in your included jsp?
    Is it a collection of Role classes returned as a SelectItem array?

  • Turkish Character and Check Box "?" Problem in XML Publisher

    In aplication and XML Publisher I must use Turkish Characters e.g. 'ş','ı','ğ','ç','ö' and check boxes. In html preview there is no problem, I can see all of them correctly. Hovewer in PDF preview in XML Publisher and also PDF output in Oracle Application all these Turkish Characters and Check Boxes looks like question mark (?). How can I solve this problem ?
    Thanks for helps....

    Hi Tim,
    Related to Special Italian characters, when I try with "Courier New" font with static data,the XML Preview display those characters.But when those chars come from XML source file,they get vanished.I tried two cases:
    Case1 ) IN EBS,I have attached courbi.ttf(font file) to the template manager(followed as per instructions in Font mapping section in User Guide).
    When I try running the report ,its getting completed with Warning.
    Case 2) I have also modified xdo.cfg ( as per Doc ID:400755.1 www.metalink.oracle.com)-
    In both cases ,I am not acheving the desired results.
    Please let me know where I am going wrong.
    Thanks and Regards,
    Kaveri

  • Problem in Creating Check boxes as a column in a table using MVC

    I am trying to display a table format using the Model view controlers, with 1st column as a checkbox. if the user chooses some check boxes and submit the screen then i need to update the information in a custome table.
    I am having a problem in creating the check boxes, also pls tell me how to catch the line items checked by the user in the table...
    Sri

    HI Srinivas
       I am not getting what the exact problem is.....
    I am giving you a work around.....to me it does not seems to be an Ideal Solution..But Probably it will solve your problem....
    Changes To be Made in Page Layout...
    In Pagelayout     
    <htmlb:tableView id   = "tvX"                           width                 = "100%"                           visibleRowCount       = "8"                           fillUpEmptyRows       = "X"                         selectedRowIndexTable = "<%= selectedRowIndexTable %>"
    <b>selectedrowindex      = "<%= selectedrowindex %>"
    onrowselection        = "select"</b>
    selectionMode   = "MULTISELECT"                           table                 = "<%= sflight %>" />
    <b>selectedindexrow is an attribute of type INT4</b>
    In Do handle event.....instead of using the previous code use this one...
    if event->id = 'SUBMIT'.  
    DATA:      WA  TYPE  INT4.     
    LOOP AT SELECTEDROWINDEXTABLE INTO WA.
    *Here you can read your table of TABLEVIEW with index *equal to WA into a workarea and then use that workarea *to update the customer table      ENDLOOP.   
    elseif event->id = 'tvX'.
    tv ?= CL_HTMLB_MANAGER=>GET_DATA( request = request                                      name    = 'tableView'                                      id      = 'tvX' ).  
    IF tv IS NOT INITIAL.    
    table_event = tv->data.   
    selectedRowIndex = table_event->SELECTEDROWINDEX.
    append selectedrowindex into SELECTEDROWINDEXTABLE.
    endif.
    ENDIF.
    Meanwhile..Let me check why that code does not work.....
    Hope it solve your problem....
    Cheers:)
    Mithlesh

  • Check box rendering problem in List.

    Hi All,
                I am using list component in my app and list component allows multiple selections. I am using an itemrenderer having the checkbox and label in hbox.
    Rendering is working fine. but when I selected three or four items randomly using check boxes in list and If I scroll it vertically (up and down) the selections of check boxes changedto another items. If I keep on doing this finally I will get all the check boxes selected. but I have selected only three check boxes.
                 I wanted get out of this problem. If i selected two or three checkboxes and when scroll it vertically it should remain as it is. Selections should not change... please help on this.. 
                     I am posting the code of Item renderer
    <?xml version="1.0" encoding="utf-8"?>
    <mx:HBox xmlns:mx="http://www.adobe.com/2006/mxml" horizontalGap="2"
        width="100%" height="100%"
        implements="mx.controls.listClasses.IDropInListItemRenderer"
        initialize="init()"
        verticalScrollPolicy="off"
        horizontalScrollPolicy="off"
        click="handleClick(event)">
        <mx:Metadata>
            [Event(name="checkBoxEvent", type="com.comp.name.ui.events.CheckBoxEvent")]
        </mx:Metadata>
        <mx:Script>
            <![CDATA[
                import mx.controls.List;
                import mx.controls.listClasses.ListData;
                import com.comp.name.ui.events.CheckBoxEvent;
                import com.comp.name.ui.filters.StringUtils;
                import mx.controls.dataGridClasses.DataGridListData;
                import mx.controls.listClasses.BaseListData;
                private var _listData:BaseListData;
                private var _list:List;
                public function init():void
                    this.addEventListener(Event.CHANGE, onChangeEvent);
                public function get listData() : BaseListData
                    return _listData;
                public function set listData( value:BaseListData ) : void
                    _listData = value;
                    if(listData)
                        _list = listData.owner as List
                override public function set data(value:Object):void
                    super.data = value;
                protected function handleClick(event:MouseEvent):void
                    if(check.selected)
                        check.selected = false;
                    else
                        check.selected = true;
                protected function checkBoxSelected(event:Event):void
                    if(data)
                        if(check.selected){
                            dispatchEvent(new CheckBoxEvent(CheckBoxEvent.CHECKBOX_EVENT, data.mx_internal_uid,data as Object, true,true));
                        }else
                            dispatchEvent(new CheckBoxEvent(CheckBoxEvent.CHECKBOX_EVENT, data.mx_internal_uid,data as Object, false,true));
                protected function onChangeEvent(event:Event):void
            ]]>
        </mx:Script>
        <mx:CheckBox id="check" change="checkBoxSelected(event)" click="handleClick(event)"/>
        <mx:Label id="lb" width="100%" height="100%" htmlText="{_list.labelFunction(data)}"/>
    </mx:HBox>
    I have faced this problem in so many times in so many list component..  Please help me on this...

    Can any one please give a reply .. If you dont understand it please let me .. I will give you detailed explanation.. Please it is an urgent requirement..

  • Problem with custom sharepoint designer approval workflow - check box: 'Start this workflow to approve publishing a major version of an item' is greyed out

    I wanted to create a simple approval workflow. Hence I opted to start from scratch rather than copy the OOTB approval WF. Using SharePoint Designer (not Visual studio) I created a reusable workflow and have added the built in 'Start approval process' action.
    It's saved and published globally.
    Everything works fine except that when associating the WF with a list the 'Start this workflow to approve publishing a major version of an item' check box is disabled.
    Major and minor versioning is enabled for the library.
    What am I missing here? Or do I have to start from the OOTB approval WF to get this to work?
    Regards
    Henning

    Again - new ideas pop up right after defining the issue as a problem. :-) Problem solved!
    I solved this by creating a new workflow from the original publishing approval workflow (copy and replace), but instead of tweaking the already defined approval process (WF action) I deleted it, then deleted all initiation form and local variables,
    and then added the 'Start approval process' action again. This re-installs all the necessary local variables without any initiation form involvement, which is just what I want.
    From here I can tweak the workflow to make it more user friendly, much like
    described by Bobby Chiang in his great blog.
    Remember to add action Set Workflow Variable 'EnableContentApproval' to Yes right before the Start Approval Process action, else the document's status won't be set to 'Approved' or 'Rejected' as an output of the workflow.
    Learning every day!
    Henning

  • I have a problem with mail.  the spelling and grammer check box before sending the messege is no longer there.  I did everything but cannot get it back.  is ther anyone who knows how to get the box with spelling and grammer checks before sending

    i have a problem with mail.  the spelling and grammer check box before sending the messege is no longer there.  I did everything but cannot get it back.  is ther anyone who knows how to get the box with spelling and grammer checks before sending the mail.
    Also the mail is acting very funny by not getting the rules work in a proper method.  Is ther a software to repair mail.

    i did both of them, but still the while sending the mail the diolog box is not showing up and also the spelling and grammer does not do the spelling check. 
    This problem just started for about 3 to 4 days now.  earlier it was working normally.

  • I have a new MacBook Pro with OS10.8.2 and cannot get Contacts to print a list of addresses with pictures showing.  There is a check box selecting "picture" which has been checked - but no picture.  This worked fine on OS10.7.5.  Problem??

    I have a new MacBook Pro with OS10.8.2 and cannot get Contacts to print a list of addresses with pictures showing.  There is a check box selecting "picture" which has been checked - but no picture.  This worked fine on OS10.7.5.  Problem??

    First, back up all data immediately, as your boot drive might be failing.
    There are a few other possible causes of generalized slow performance that you can rule out easily.
    Reset the System Management Controller.
    If you have many image or video files on the Desktop with preview icons, move them to another folder.
    If applicable, uncheck all boxes in the iCloud preference pane.
    Disconnect all non-essential wired peripherals and remove aftermarket expansion cards, if any.
    Check your keychains in Keychain Access for excessively duplicated items.
    If you have more than one user account, you must be logged in as an administrator to carry out this step.
    Launch the Console application in the same way you launched Activity Monitor. Make sure the title of the Console window is All Messages. If it isn't, select All Messages from the SYSTEM LOG QUERIES menu on the left. If you don't see that menu, select
    View ▹ Show Log List
    from the menu bar.
    Select the 50 or so most recent entries in the log. Copy them to the Clipboard (command-C). Paste into a reply to this message (command-V). You're looking for entries at the end of the log, not at the beginning.
    When posting a log extract, be selective. Don't post more than is requested.
    Please do not indiscriminately dump thousands of lines from the log into this discussion.
    Important: Some personal information, such as your name, may appear in the log. Anonymize before posting. That should be easy to do if your extract is not too long.

  • Problem in PRD to display check box parameter on selection screen

    hi ,
            i had one problem, i created one report which will show customer advances, for this report i created one selection screen, i transport req to QAS and PRD it shows fine. after that i need to add one more check box to that report selection screen. i transport reqt to QAS and PRD, in QAS it is woking fine but in PRD i am not able to see the check box which i was enterd. transport was perfect. i am saw the report coding in PRD that has the Check box statement. but it not comming,
    1, why the selection screen is not showing that check box parameter ?
    2, i had 19 selection fields is their any restriction to display the selection screen ?
    please try to solve it for me,
    thanq,
    rajesh.k

    Hello Rajesh,
    First check the Log of your TR. whether it is transported properly without any error or with error.
    again delete your Checkbox statement and write code again then try to transport again.
    there is no any limitation to provide option on selection screen. you can give as per your requirement.
    Regards,
    Sujeet

  • Problem with check box need an idea

    hello i need some help.
    i am tring to make a attendence register as an assignment. what i am tring to do is that i can add student name in a file and then retrive them from a file and then mark there presents or absents.the part i cant get done is how do i mark the attendence. i want to display name and then the teacher can just click in the check box infront of the name to mark the present and when he clicks on the save button it would save the attendence in the file.
    now the problem is the check box have to increase and decrease if a name is add or deleted in the file
    SO does any one have any ideas what i can do to solve this problem

    lets suppose your file contains student name which are seperted by comma or space (what ever).then u can read it and open stringtokenizer with delimater you used to seperate names.count the number of tokens and create your check box on the count of tokens.There may be some good idea too and if any one have i would like to know.

  • Vendor Master Upload Problem with Check Box

    Hi All,
    I have a problem with Vendor Master Upload program. In one of the screen of XK01 transaction depending upon the PO Box, Postal Code, Other City and Other Region i have to check the PO Box w/o no check Box. So in my program after i check the PO Box, Postal Code, Other City and Other Region values how to write a code that i can check the PO Box w/o no. Or other wise how can i send value to the Po Box w/o no check box. field
    Thanks in advance.

    The call to the first screen should look something like:
        perform dynpro
          tables bdcdata
          using:
         'X' 'SAPMF02K'     '0105',         "Create Vendor: Initial Screen
          ' ' 'RF02K-BUKRS'             'COCO',
          ' ' 'RF02K-KTOKK'             'YYYY',
          ' ' 'USE_ZAV'                 'X'.
    I'm using screen 105, not 100 here.
    Rob

  • Problem Using Check Box in a Report

    Hi all,
    I have a simple SQL report with a check box.The problem is when paginating forward and backward in the report(Next and Previous),The report region is refreshed and all the check boxes is reset to unchecked.
    P.S: I'm using APEX 4.0.
    Any Help will be appreciated,
    Ola

    Ola,
    If you search the forum, you will find lot of discussions on this issue..
    In nutshell, solution is -
    Case 1: If you have enabled partial refresh for your report ( pagination works through AJAX)
    Then
    a. onClick of any check-box, call JS function, lets say fnSaveState(this);
    b. In JS function, update/store all the checked check-boxes info in JS variable or array.
    c. Bind a JS function, lets say fnSetState() - which will set the check boxes to either checked or un-checked based on JS variable/array value(s) to pagination onClick event.
    Case 2: If you have not enabled partial refresh for your report
    Then
    a. onClick of any check-box, call JS function, lets say fnSaveState(this);
    b. In JS function, store the check-box status in any hidden_item and insert its value into session with dummy AJAX call.
    c. On page load call JS function, lets say fnSetState() - which will set the check boxes to either checked or un-checked based on hidden item value(s) .
    Hope it helps.
    Regards,
    Hari

Maybe you are looking for

  • Dúvidas sobre B2B

    Bom dia ALL, Tenho algumas dúvidas  a levantar em relação ao B2B - XML Email. Primeiro ponto) Caso o fornecedor envie uma nota fiscal que esta em duplicidade, usando ou não a solução GRC, vou receber duas vezes na caixa de e-mail ? Se isso acontecer,

  • IPhone 4 locked after upgrade to iOS 5.0.1

    I've bought an IPhone 4 in Canada at Apple Store last september with IOS 4.3.3 to use in Brasil. Everything was just fine, but yesterday I upgrade it to the latest IOS with ITunes and the IPhone don't regonize my sim card anymore. The support in Bras

  • Upgrade script for 2.1.0.9.3?

    did anybody try to upgrade a WebDB version 2.1.0.9.3 to Portal 3.0? The upgrade script for WebDB2.2 to Portal30 fails due to the version number. I do not know the differences between WebDB 2.1.x and 2.2. If the changes have not been too significant,

  • Enhance ERP Sales Order

    Hi Experts, I'm searching for detailed technical information how to enhance the ERP Sales Order. Let me describe the scenario: in ECC the Sales Order is already enhanced in the way that there are some custom fields on Item level under Additional Data

  • Opening file from web site in JavaScript

    I have some JavaScript I've written (Windows PC platform with PS CS3) that opens a legal notice (jpg file) which runs from the File | Scripts menu and places the legal notice jpg on the bottom of the currently open Photoshop document. It opens and wo