Html:checkbox - which box is selected and on in what tr

I have a jsp in which I iterate over a LinkedList of people. Each person gets there own row in a table on the jsp page. In each row is the name of a person in the first <td> and then a checkbox in each of the next three <td>'s.
A user may order one of three reports on any or each of the names coming from my LinkedList by clicking on a checkbox.
Right now I am able to determine which report to order by which checkbox is selected in a row, but am unable to determine which row/person to order the report for.
I've seached this forum and went through the first couple pages of results with no luck. And spent a bit of time on google but can't seem to get the exact keywords to retrieve the results I need.
Here is a small sample of how I am setting up the table. Just a snippet, names have been changed, you won't be able to compile this.
<logic:iterate id="person" name="someLogical" property="personsList" type="someDataObjectType">
     <tr>
          <td valign="top" nowrap>
               <bean:write name="person" property="name"/> �
          </td>
          <td align="center" valign="top">
               //someForm is my actionForm, and orderReportOne is a boolean being set in the form
               <html:checkbox name="someForm" property="orderReportOne"/>
          </td>
          <td align="center" valign="top">
               <html:checkbox name="someForm" property="orderReportTwo"/>
          </td>
          <td align="center" valign="top">
               <html:checkbox name="someForm" property="orderReportThree"/>
          </td>
     </tr>
</logic:iterate>The booleans in my form are being set correctly but don't relate to a specific person. They would just order reportOne for each person in the list.
Edit: I will be leaving soon for the rest of the day and may or may not be able to reply again until monday, but appreciate any responses. Thanks
Message was edited by:
Hentay

It depends on how you're utilising your XML, but ComboBox has selectedIndex property so that you can trace the index number of the item selected.

Similar Messages

  • My Apple ID was changed.  Yet when I try to update apps I am asked to enter the password for the old IG which will not work and no matter what I do. When I attempt to update apps it still askes for the wrong ID data.

    My Apple ID was changed.  It works fine on my IPad mini, my MAc and in Itunes Store,  Yet when I try to update apps on my IPAD 1 I am asked to enter a password for the old ID user name which appears in the pop up window. When It still askes for the wrong ID data. I have uodated it in settings, and I have logged ontht the account to verify that it still works properly and it does.  I reboot the IPAD and then attempt to update apps again but it still asked for the Old ID password and still shows the old ID username.  The dame thing refuses to recognize my new Apple ID data.  This is making my older IPAD unuseable.

    You cannot change your Apple ID. You can get a new one if you want, but all of your Apps and media are linked to yoru old Apple ID. And no, Apple won't transfer your old ID purchases to yoru new ID.

  • My Mac Book Pro using Mountain Lion will show a usb headset with a mic to select in the settings window. But the Rosetta Stone software I am using will not find the mic for me to select and use. What should I do?

    Mac Book Pro with OS X Mountain Lion will not recognize headset mic via Rosetta Stone software. What should I do?

    Hi Illaass,
    I am using version 3. I have used the apple/settings on my mac. The headset is appearing there and it is selected there. In the Rosetta Stone select/find window nothing shows up. It is blank. But the volume bars react when I speak and sliding the fader has the expected effect of raising and lowering the input. There is just no device showing up as the selected input device in the Rosetta Stone software.
    I have done everything my Mac instructions say to uninstall and reinstall the Rosetta Stone software properly.
    I'm guessing the problem may be in the licensing. I installed it first on the old hard drive that crashed. Maybe that used the terms of the license and now installing it in the new hard drive violates the license somehow. So that's why it will not work properly. It allows me to open the lessons and asks me if I want to continue from where I left off. I click continue. Then it asks me if I want to register the software. I click the tab for already registered software and click continue. Then nothing happens. So again I click on the button that indicates I want to continue lessons from where I left off. The same process happens with it asking me if I want to register the software. And it will not proceed through a lesson.

  • I can't install flash player because it does not recognise my password -which I already changed and verified. What do I do?

    I have already changed my password going to the log in option but when installing it, adobe does not recognize my new password -nor my apple id password when I try to change the password directly from the install dialogue. What do i do? is there any problem with installing it in MacBooks?

    Hi paulac45940277,
    This is the OS, not Flash Player, prompting for the password.  The password being requested is the one you use to log into your system, not your Adobe ID passwrod.  Please see What userid & password do I need to install Flash Player? for more information, including links to Apple KB articles if you are having difficulty resetting your password.
    Maria

  • "Atach photos to message" checkbox-"How to control this and why?

    For my iPhoto collection when I share a photo via email this box is selected and the item is grey'd.
    Want to know when and why I would not want this to happen. I'm more experienced with iPhoto and this does not bother me but I'm trying to help a Win7 to iMac switcher and am not sure about this.
    Thanks...

    Sending from iPhoto create a HTML message and the photo is optimised for the medium (read: reduced in size). Also, some mail applications don't handle HTML mail very well.
    The check box means that an attachment is sent along as well, which can make it easier to get full quality images for the recipient.
    Not sure why your option is greyed out though. Mine isn't.
    Regards
    TD

  • How can I make a field unfillable when a check box or radio box is selected?

    I'm looking to create a rule that makes selected fields un-fillable when one check box is selected, and fillable when another is selected. Is this possible in Adobe Acrobat?

    In that case they are mutually exclusive, or at least should be...
    You can use something like this as the custom MouseUp script for the check-boxes:
    if (event.target.value=="Yes") {
         this.getField("Field1").readonly = true;
         this.getField("Field2").readonly = true;
         this.getField("Field3").readonly = true;
         this.resetForm(["Field1", "Field2", "Field3"]); // this line will clear those fields as well
    } else if (event.target.value=="No") {
         this.getField("Field1").readonly = false;
         this.getField("Field2").readonly = false;
         this.getField("Field3").readonly = false;

  • Identifying which line was selected from a WebDynpro table

    Hi,
    can any one give me some advice, I've created a view which displays a table of filenames, which in fact are "LinkToAction" columns. The idea was that when a filename(LinkToAction) was selected, I could retrieve the appropriate file from the Applicatio server and Open the file in Excel or Save as Excel. My problem is, when I select a filename I don't know how to identify what line was selected in the table. Any advice would be great.
    Thanks,
    C

    Hi , Just identify its element which is lead selected and read attribut of that element .
    Have the code for the same
    DATA:
        node_nd_worlflow                    TYPE REF TO if_wd_context_node,
        elem_nd_worlflow                    TYPE REF TO if_wd_context_element,
        stru_nd_worlflow                    TYPE wd_this->element_nd_worlflow ,
        lead_selection_index                TYPE i,
        relation_no                         TYPE guid_32.
    navigate from <CONTEXT> to <ND_WORLFLOW> via lead selection
      node_nd_worlflow = wd_context->get_child_node( name = wd_this->wdctx_nd_worlflow ).
    @TODO handle not set lead selection
      IF ( node_nd_worlflow IS INITIAL ).
      ENDIF.
    get element via lead selection
      lead_selection_index = node_nd_worlflow->get_lead_selection_index( ).
      elem_nd_worlflow = node_nd_worlflow->get_element( index = lead_selection_index ).
    elem_nd_worlflow->get_static_attributes( IMPORTING static_attributes = stru_nd_worlflow ).
    Cheers
    Parry

  • html:checkbox disabling based on a condition

    does anyone know how to disable the <html:checkbox ?? it should be disabled based on some condition
    thanks

    It is very unclear what you want. There is a disabled flag available to html:checkbox. You could do something like:
    <html:checkbox disabled="<%= somebooleanVar %>" ...and so on. What are you trying to do?
    Need Java help? Want to help people who do? Sit down with a cup of Java at the hotjoe forums.
    Sure they're new - come get them started!

  • How to select and change special characters

    Hi all,
    In my document wherever a, e, i, o, u comes in RED color that i want to add one black dot below that characters.
    Now what we do is place one dot then use baseline shift after that use kerning upto 400 like that only.
    Job font is Palatino Lt Std.
    Its time consuming a lot!!!
    Write now i am using GREP options only.
    or
    Myself creating script for wherever RED color comes it create a character style  after that i did it  manually without seeing the  Manuscript.
    My script follows:
    Any script is availble which i can select and change it.

    Can anyone look into my previous thread?
    Please find my attachment first, after that definitely you got an idea.
    Awating for your reply....
    by
    Learner

  • When I sign in to the Adobe Reader XI (which is the only option that I have to open a pdf document, I will sign in to the Adobe ID sign-in page. After I do this, the "Convert To" box goes "gray" and I am unable to convert the document I have selected.  It

    When I sign in to the Adobe Reader XI (which is the only option that I have to open a pdf document, I will sign in to the Adobe ID sign-in page. After I do this, the "Convert To" box goes "gray" and I am unable to convert the document I have selected.  It was working great for the first week that I used it, but now it doesn't give me the converting option.  I am very frustrated as I have done nothing to change anything, and I was thinking this was so great...now I am just pulling out my hair and do not have the option of calling anyone since no phone numbers are listed. I am VERY busy and do not have time to sit and wait over a half an hour to "chat", which I tried to do yesterday.  All I want to do is very simply, convert pdfs to Word.  I have paid for this and am not getting any help. I am not very savvy when it comes to Adobe this program and Adobe that program...I feel I am being scammed as I do not get simple answers for something that appeared was going to be simple. You can't even call customer service to talk to someone live to help walk you through. 

    Hello Kathie,
    Sorry for the inconvenience that has caused to you.
    Please let me know if you have tried converting any other PDF to word with Reader.
    Alos, please sign up at "https://cloud.acrobat.com/" using your Adobe ID credentials. Click on 'ExportPDF' tab and upload the PDF that you want to convert to Word.
    Let me know if this converts fine.
    Hope to hear from you.
    regards,
    Anubha

  • Problem using pdk-html:multibox and pdk-html:checkbox

    Hi all,
    I am developing a PDK struts application using OC4J 10.1.2. I have to create some form pages which are going to have some checkboxes. I have tried to follow the following code in order to use the pdk version of the checkbox in my form:
    in jsp file
    <logic:iterate id="item" property="items">
    <pdk-html:multibox property="selectedItems">
    <bean:write name="item"/>
    </pdk-html:multibox>
    <bean:write name="item"/>
    </logic:iterate>
    Given an ActionForm setup like this
    private String[] selectedItems = {};
    private String[] items = {"UPS","FedEx","Airborne"};
    public String[] getSelectedItems() {
    return this.selectedItems;
    public void setSelectedItems(String[] selectedItems) {
    this.selectedItems = selectedItems;
    ....... //getters and setters of items//
    In the reset method I also reinitialize the selectedItems array like :
    selectedItems=new String[]{};
    But the value of the multibox is not reflected in the action class. To my surprise, the html code generated by the server is similar to ordinary checkbox which ideally should carry some portlet specific information like pdk-html:text
    Same is the case with single checkbox. I have created a boolean variable for the single checkbox in the actionForm class. But same problem frustrates me again. The value is not passed simply.
    Can anybody comment. Is this some kind of a bug or may be there is no support for checkbox and multibox in pdkstruts.jar (10.1.2.0.2).
    Best regards,
    Omer

    following below the code that generate the XML. I still need help.
    I hope someone can help me in this issue
    The servlet that generate the XML.
    response.setContentType("text/xml");
    String Xml = "";
    Xml = Xml + "<?xml version=\"1.0\"?>";
    Xml = Xml + "<?xml-stylesheet href=\"/XslGravaCrit.xsl\" type=\"text/xsl\"?>";
    Xml = Xml + "<!-- Here is a sample XML file -->";
    Xml = Xml + "<page>";
    Xml = Xml + "<title>Test Page</title>";
    Xml = Xml + "<content>";
    Xml = Xml + "<paragraph>What you see is what you get!</paragraph>";
    Xml = Xml + "</content>";
    Xml = Xml + "</page>";
    try{
    TransformerFactory tFactory = TransformerFactory.newInstance();
    byte[] arr=Xml.getBytes();
    ByteArrayInputStream bytes=new ByteArrayInputStream(arr);
    Source xsl=new StreamSource("../XslGravaCrit.xsl");
    Templates template=tFactory.newTemplates(xsl);
    Transformer transformer = template.newTransformer();
    transformer.transform(new StreamSource(bytes), new StreamResult(response.getWriter()));
    }catch(Exception e){
    System.out.println("Excecao 100: " + e.getMessage() + e.getLocalizedMessage());
    The XSL XslGravaCrit.xsl
    <xsl:stylesheet xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
    xmlns:java="http://xml.apache.org/xslt/java" exclude-result-prefixes="java"
    version="1.0">
    <xsl:strip-space elements="*"/>
    <xsl:output method="html" indent="yes" version="4.0"/>
    <xsl:template match="page">
    <html>
    <body><b>
    <xsl:value-of select="java:java.util.Date.new()"/>
         </b>
    <xsl:for-each select="/page">
    <xsl:sort select="paragraph"/>
    <xsl:value-of select="paragraph"/>
    </xsl:for-each>
    <i>Hello World</i>
    </body>
    </html>
    </xsl:template>
    </xsl:stylesheet>

  • Make html:checkbox selected by default depending upon bean value --struts

    Hi all,
    I have a doubt regarding the html:checkbox .
    I have the following code in my jsp.
    I am giving it inside logic:iterate tag and fetching the value from session scope.
    <html:checkbox property ="readchk" value ="read" indexed="true" onclick="return assignme(this.value,this.checked,'s')"/>
    How to make this checkbox selected by default.
    "readchk" (bean) is in my ActionForm, it has been been assigned either
    0 or 1 .
    I want to make the checkbox selected by default if the readchk is 1
    and the checkbox not selected if the readchk value is 0.
    Could anybody please help me out in fixing this problem.
    Thanks
    Parvathi

    If u give the value for ur check box in the action form it wld be checked!!
    regards
    Shanu

  • Disable text box on selecting a checkbox of multiple selection lookup field in infopath 2010

    Hi
    In edit mode of the form,
    We have added one field in infopath which is lookup column and shows multiple selection chekboxes.
    One of the option from that lookup checkbox list is "Other".
    There is one textbox field which will be disabled by default.
    We want to enable this text box on selection of "Other" from lookup field checkbox list.
    Is it possible?
    if yes how can we do this?

    Hi Vyanky, I don't believe that's possible without some major functionality. The problem, as you probably know, is that it's a lookup with checkboxes. If it was added directly in InfoPath, then it wouldn't be an issue. You should consider adding "Other"
    as a separate yes/no field instead. That way you'll be able to add an action rule to it to enable the text box.
    cameron rautmann

  • I need the dialog box (which contains page selection etC) HOW TO MAKE IT?

    hi
    i have done an requirement in smartforms.
    i need the dialog box (which contains output device name, page selection etc) when i take the print (smartforms).
    And now i already can see a dialog box .but still it doesn't have the page selection.
    I mean if the smartforms which have 5 pages,and what i need is just print the page 1 and page 3 . so I need the page selection
    which can help me on this issue. 
    Would anyone know something about it  and give me some advice . I will be appericate it.

    Hi,
    Just check with the control parameters of the function module, if you have changed any of it.
    If you have changed it then try to give the no-dialog field of the control parameter table as space.
    If the dialog box which gives you the Output device name and others appears then just below the output device name you have the column for the page selection.Just pass the values of the pages separating them with comma(like 2, 5 will print second and fifth pages) and it prints only those pages.
    Regards
    Sarves

  • How to incorporate File name and timestamp automatically into select and save file dialog box?

    Hello,
    i am trying to incorporate the file name which is inputed by the user along with the timestamp into the selected and save file dialog box. Can you help?
    Thanks
    Solved!
    Go to Solution.

    You can pass a default file name to the 'File Dialog' Express VI.
    Use the 'selected path' output to open the file.
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness
    Attachments:
    FileDialog.vi ‏21 KB

Maybe you are looking for

  • Can no longer open any native files

    Suddenly when I try to open any of my native .an files I get the following error "Edge Animate encountered errors reading the HTML in this file." Three out of the four were working fine and I hadn't even opened them for some time. Any ideas?

  • Unable to connect SAP XI Server

    Hi Guys, My SAP XI Server is on remote machine all these days I am connecting the SAP XI Server through the fallowing URL http://10.77.222.65:50000/rep/index.html It working fine till last day. Today while I try to connect it showing the fallowing Er

  • Open a new browser window to show document

    Hi, I am trying to click an item in datagrid to open a new browser window and display the document for this selected item. how to implement it? thank you.

  • Difference in SYSADMIN Profile Values

    Is there a way to query the SYSADMIN profile values from two different environments and to compare the differences? I figured I could query them and dump them into excel side by side and somehow compare but I wondered if there was a way to do it via

  • I can access a website and select the 'print' option but the print misses out

    I can access a website and select the 'print' option but the print misses out photos that should be included in the print. It happens on more than one website. If I use Explorer it doesn't happen. I guess there must be a setting or something that I h