Is There a Bug in pdk-html:checkbox  .... ?

I am attempting to use the <pdk-html:checkbox ....> tag and cannot get it to work.
When the user presses the Submit button and my code processes the checkbox the checkbox does not reflect that the user checked it.
The code I wrote in the .jsp is:
<pdk-html:checkbox value="yes" name="facListBean" property="check_box"></pdk-html:checkbox>
When the page gets rendered the code gets translated to :
<input type="checkbox" name="check_box" value="yes">
Notice the name is not qualified in any way. In the other pdk-html tags I have used the name gets prepended with qualifying data.
Is this a bug in the pdk-html:checkbox tag? Has anyone else use the pdk-html:checkbox successfully?

Thanks Don,
I was unaware of the multibox tag so I looked into it after reading your response. I tried to implement the following example code I found on the Husted web site:
JSP:
<logic:iterate id="item" property="items">
<html:multibox value="val" property="selectedItems">
<bean:write name="item"/>
</html:multibox>
<bean:write name="item"/>
</logic:iterate>
Action Form
private String[] selectedItems = {};
private String[] items = {"UPS","FedEx","Airborne"};
public String[] getSelectedItems() {
return this.selectedItems;
public void setSelectedItems(String[] selectedItems) {
this.selectedItems = selectedItems;
I get the error:
"You must specify the value attribute or nested tag content"
I added a value attribute to the multibox tag but that didn't change the error. Any idea what what I need to do here? What am I missing?
Thanks,

Similar Messages

  • 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>

  • JavaScript and "pdk-html:form" Variables

    I am having a problem using javaScript with my "pdk-html:form" variables.
    Here is what the .jsp looks like:
    <SCRIPT type=text/javascript>
         function test() {
              alert("act = "+window.document.facListBean.act.value);
    </SCRIPT>
    <pdk-html:form name="facListBean" .......>
         <pdk-html:text property="act" />
    </pdk-html:form>
    The problem is that when the HTML is rendered the name of the form field "act" gets translated to "_piref584_1533941_584_1533923_1533923.act"
    Is there a simple way to handle this problem? Can someone suggest a workaround?
    Thanks,

    hi Matt,
    i've faced the same problem. The only solution i've found was that:
    cicle your form and get all the elements in it.
    var field1;
    var x=document.getElementById("myForm");
    for (var i=0;i<x.length;i++) {
    if(x.elements.name.indexOf('field1')) field1 = x.elements[i];
    []s,
    Felippe

  • Is there a Bug or Bug Fix in iPlanet 4.1 for URL Forwarding???

    Here's the issue...
    We are forwarding a number of URL's from one website to another.
    When we create these under the iPlanet Web Server Admin UI, the URL's appear, and get written to obj.conf, and the Web Server appears to "Save and Apply" the changes, effectively restarting the Solaris Process ID.
    The problem is that the httpd process does not actually restart, and the URL forwards return a 404.
    If we manually restart the Web Server daemon, everything appears to funtion properly.
    I have been searching through the iPlanet Knowledge Base, and not haveing any luck, so I am hoping someone here may have an idea.
    Thanks!

    Hi,
    Please let me know your iWS version including service pack(example:4.1sp7)and OS version. So that i can test it and let you know the feedback.
    Is there a Bug or Bug Fix in iPlanet 4.1 for URL Forwarding???
    yes is there, but related to NSAPI please check the below link.
    http://docs.iplanet.com/docs/manuals/enterprise/41/rn41sp9.html#26930
    Thanks,
    Daks.

  • 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.

  • Bug in rendering  HTML content Apex 2.2 (in Apex 2.0 was OK)

    We have many PLSQL processes which are called through boolean function which return some message as well as the result.
    <br>
    function some_func (pid IN NUMBER,err_msg OUT NOCOPY VARCHAR2) RETURN BOOLEAN;<br>
    and at the end function looks like:
    <br>
      :err_msg := 'Pitanje <*b>'||TO_CHAR(p_id)||'<*/b> je OK!';
      RETURN TRUE;<br>
    Later, in "On load before header", we call this function and assign "err_msg" value to hidden item "P2_MESSAGE", placed on the same page. Assigment is done in an way like:
    <br>
      some_bool:=some_func (:P2_ID,:P2_MESSAGE);<br>
    In one HTML reagion, we put in "Source", code like:
    <br>
    <*class="t16dataalt">&P2_MESSAGE.</class><br>
    and until now, bold tags are applied as well as class-we get only text!
    <br>
    But now, in Apex 2.2, (original theme 16 used) in result we get all content as it is not recognized as HTML code.
    <br>
    In browser the result(in a case of OK result) is:
    <br>
    Pitanje <*b>1<*/b> je OK!<br>
    and the generated source is:
    <br>
    <*class="*t16dataalt">Pitanje &*lt;*b&*gt;1&*lt;/b&*gt; je OK!</*class="*t16dataalt"><br>
    Is that a bug or what?
    <br>
    Once more, before the same code was working nice, theme 2 used...
    <br>
    THX!
    <br>
    P.S
    <br>
    "*" is added to be read clearly!
    <br>
    P.S II
    <br>
    We have imported app that was exported on Apex 2.0 and the same problem occure!
    <br>
    So we think this is a bug in rendering HTML region!
    <br>
    Is there any hint to overcome that until patch come ?
    Message was edited by:
    Funky

    The issue is easy to reproduce. Create HTML region:
    User Interface Template-Reports Region
    Display point-Page template body
    Assign one hiden item in on load process with value:
    P2_MESSAGE := "< b>OK</ b<>";
    Put P2_MESSAGE in HTML Source with content like this:
    < class="t16dataalt">&P2_MESSAGE.</ class>
    and you have it!

  • 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!

  • Is there a bug in implementation of RequestDispatcher with sessions?

    Hi,
    I have two applications, one that contains /stest1/test1.jsp, the other that contains /stest2/test2.jsp. In test1.jsp I set the attribute "stest1-attribute" in the session. Then I get the context of /stest2, include /test2.jsp, and then see if I get the "stest2-attribute", which is set in /test2.jsp. I end up getting "stest2-attribute" but it seems to be I shouldn't since where I set that attribute is in an entirely different web context. Is there a bug here?
    /stest1/test1.jsp
    ========================================================
    <html><body>
    Beginning test in /stest1/test1.jsp. Including JSP page /stest2/test2.jsp
    <p>
    <%
    out.flush(); // must flush before include
    ServletContext ctx = pageContext.getServletContext();
    ServletContext parentCtx = ctx.getContext("/stest2");
    session.setAttribute("stest1-attribute", new String("stest1-only"));
    RequestDispatcher rd = parentCtx.getRequestDispatcher("/test2.jsp");
    rd.include(request, response);
    String s2 = (String) session.getAttribute("stest2-attribute");
    if (s2 != null)
    out.println("<b>*** ERROR - should not see stest2-attribute in web application stest1</b>");
    else
    out.println("Correct - no stest2 attribute visible in stest1");
    %>
    </body></html>
    /stest2/test2.jsp
    ========================================================
    In included page /stest2/test2.jsp.
    <%
    if (session.getAttribute("stest1-attribute") == null)
    out.println("<p>Correct - stest1-attribute should not be visible here");
    else
    out.println("<p><b>*** ERROR - should not see stest1-attribute in web application stest2</b>");
    session.setAttribute("stest2-attribute", new String("stest2-only"));
    %>

    What I discovered was that the main WLAN was mapped to the management interface, and AP Group was overriding the setting.  However, what I found was a lot of access points never got assigned to the AP Group, so they were sitting in the default group and I can only wonder what the service was like with "holes" in the coverage on the main WLAN that is meant for production.
    Moving forward, I think I will replace this Farm with a 5508 and use an interface group on the main wlan and do away with the ap groups.  That way, an AP can boot up and be in the default group and will work..That way technicians don't have to remember what ap group to configure, etc.

  • When my iPod Touch is connected to my Mac, and I select Update to update the software of my iPod Touch, I get a message saying that my iTunes software is current, but it will not update my iPod Touch software.  Is there a bug in the iPod program?

    When my iPod Touch is connected to my Mac, and I select Update to update the software of my iPod Touch, I get a message saying that my iTunes software is current, but it will not update my iPod Touch software.  Is there a bug in the iPod program?

    If you have the first gen ipod touch as your information shows, then you would have to buy a software update:
    Purchasing iOS 3.1 Software Update for iPod touch (1st generation)

  • My JPEGS are no longer being copied over to Finder.  Only a random fraction are copied.  It use to work perfect.  Is there a bug in the updated versions of iPhoto?

    My JPEGS are no longer being copied over to Finder.  Only a random fraction are copied.  It use to work perfect.  I can move them 4 or 5 at a time, but it is very time consuming.    Is there a bug in the updated versions of iPhoto?

    OK - here is what I've done in the past.  As I want to be able to save my photos on  a DVD that can be read by both a PC and a Mac, I am burning them in Finder.  I start by downloading into IPhoto.  I'll flag and edit the ones I want to print or post to the web.  After that I want to take all the keepers and move them from IPhoto to various files I create in the document  section of Finder.  I've done it both ways in the past, copy and paste or just drag over, all the files would transfer over.  Now there may be dozens of pictures that do not move over - very random, in one case there were only 6 photos and the 3 vertical ones did not copy over.
    I'm wondering if this is a software issue or if there is just too much data being moved around.  FYI there are 2 Nikon cameras I use and the files from both do this.
    Thanks

  • Is there a way to prevent HTML from being displayed in forum?

    Is there a way to prevent HTML from being displayed in forum in BC to avoid linking to other sites on an eCommerce site?

    Thank you for your post!
    Unfortunately there isn't a way to restrict customers to post on your forums links to other sites.
    However what I suggest here is to choose to moderate each forum post and this way you can choose to approve or remove links from the posts sent by customers.
    I hope this helps!
    Andrei

  • After updating to IOS 8.0.2 on my IPAD2 s Prorked great with last IOS version. Is there a bug fix?

    After updating to IOS 8.0.2 on my IPAD2, I cannot print to my Samsung Wireless Printer. It worked great with last IOS version. Is there a bug fix?

    Try this:
    1. Turn the router, iPad and printer off
    2. Turn on the router and then wait 30 seconds
    3. Turn on printer and then wait 30 seconds
    4. Turn on your iPad and test print.

  • Numbers Sort function. In Numbers 09 there was 'rearrange' which worked perfectly. New Numbers 13 has Sort by column but I can't get it to work. is there a bug?

    In Numbers 09 there was 'rearrange' which worked perfectly. New Numbers 13 has Sort by column but I can't get it to work. is there a bug?

    Numbers '09 has a Reorganize panel and the top section of that panel is for sorting. Numbers 3 also has the ability to sort and it works.  However, Numbers '09 and Numbers 3 sort differently.
    In Numbers '09, if you had a formula such as =Table 1::A1 and if a sort of Table 1 moved cell A1 to A20, the formula would change to =Table 1::A20. In Numbers 3, the formula would stay =Table1::A1.

  • Hi. Whenever I go through one of the menus in firefox, the links remain highlighted after my mouse passes over them. Is there a bug fix for this or is there something wrong with my computer? I am running windows 7 if that helps.

    Hi. Whenever I go through one of the menus in firefox, the links remain highlighted after my mouse passes over them. Is there a bug fix for this or is there something wrong with my computer? I am running windows 7 if that helps. This problem started ever since I upgraded to version 5.

    I have downloaded and used the iPod Reset Utility, alot that did. My current state is iTunes on my XP Home with SP3 sees the iPod. When I drag a song to the iPod, the Sync message appears for about 5 minutes, then the Apple symbol appears. But no song has been transferred to the iPod.
    I tried to tap into the XP iTunes database from my iBook, but although it acted like it would add the XP library to the iBook library, it did not. I've got 19 Gs of songs on the XP. If I have to load each song from its original CD to get it on my iBook I'm going to start looking for some other app or device so that I can listen to my music.
    It is a shame, in the old days, Apple techs use to look at what was going on, now it appears they don't, so they never know they have problems until Apple's profits fall.

  • Is there a bug or problem with increased noise when exporting pictures out of Lightroom 4?

    Is there a bug or problem with increased noise when exporting pictures out of Lightroom 4?

    As you are asking about it, looks like you do see a problem. So if googling does not provide a solution, you should describe the issue in detail so we can try to help out.

Maybe you are looking for

  • Purchase Order Approval Workflow

    I am Trying to create purchase order process for my company in a SharePoint list.  I have successfully created a InfoPath form with multiple line Items and have a calculated field as Grand Total Field.  Created a calculated column in SharePoint for t

  • Can you add a link?

    Hi, I would like to add a 'Terms of Use" and "Privacy Policy" link at the bottom of all the pages of my site, rather than having it as a separate page. Is there a way to do this? Currently, I have this as a page on my site, but I've seen other sites

  • Does the JavaMail license permit to repackage the jar as a OSGi bundle ?

    I need to change the manifest file in mail.jar and in activation.jar for including OSGI infos, but it's not clear to me if it's legal or not, according the license. Indeed, it states (a) you distribute Redistributable complete and unmodified and only

  • How to hide cursor???

    I'm creating a screensawer in Swing. How to hide cursor?? Please, help!

  • Xerox Phaser 6100 printer in Mountain Lion?

    My migration from old hardware and OS 10.4 is almost complete but I have found no way to drive my Xerox Phaser 6100 printer.  Xerox recently (belatedly!) released a long list of Mountain Lion compatible drivers which were included in the latest syste