Radiobutton actionmap problem

I'm implementing a questionnaire consisting mainly of multiple choice questions.
To speed up inputting I want to bind keys to the radiobuttons (numpad 1 for the first option, 2 for the second etc...) All the questions are embedded in panels that are displayed as cards through the cardLayout.
But the keybindings only work for the first two cards (there are 30 questions/cards)? I don't understand why.
Can anyone help?
(Using Mnemonics results in exact the same problem but I don't want the user having to press the ALT-key.)
My (stripped) code :
The for loop that adds the radiobuttons to the panel (this panel is a card - for layout reasons its embedded in another panel) :
          for (Possibility possibility : question.getPossibilities()){
               possibilityRadioButton = new MultipleChoicePossibilityRadioButton();
               possibilityRadioButton.setBackground(QuestionPanel.BACKGROUND_COLOR);
               possibilityRadioButton.setFont(ANSWER_FONT);
               possibilityRadioButton.addActionListener(this);
               possibilityRadioButton.setActionCommand(ANSWER_SUBMITTED);
               KeyStroke keystroke = KeyStroke.getKeyStroke(NumpadKeys.get(question.getPossibilities().indexOf(possibility)),0);
               possibilityRadioButton.getInputMap(JComponent.WHEN_IN_FOCUSED_WINDOW).
                                                                 put(keystroke,ANSWER_SUBMITTED);
               possibilityRadioButton.getActionMap().put(ANSWER_SUBMITTED,
                         new AbstractAction() {
                              public void actionPerformed(ActionEvent ae) {
                                   ((MultipleChoicePossibilityRadioButton) ae.getSource())
                                             .doClick();
               c.gridy = layoutRow++;
               contentPanel.add(mogelijkheidRadioButton,c);
               buttonGroup.add(mogelijkheidRadioButton);
          }NumpadKeys is a static list :
     private final static ArrayList<Integer> NumpadKeys = new ArrayList<Integer>();
       static {
            NumpadKeys.add(KeyEvent.VK_NUMPAD1);
            NumpadKeys.add(KeyEvent.VK_NUMPAD2);
            NumpadKeys.add(KeyEvent.VK_NUMPAD3);
            NumpadKeys.add(KeyEvent.VK_NUMPAD4);
            NumpadKeys.add(KeyEvent.VK_NUMPAD5);
            NumpadKeys.add(KeyEvent.VK_NUMPAD6);
            NumpadKeys.add(KeyEvent.VK_NUMPAD7);
            NumpadKeys.add(KeyEvent.VK_NUMPAD8);
            NumpadKeys.add(KeyEvent.VK_NUMPAD9);
       }Edited by: Garfke on Jul 23, 2009 4:25 AM

You should submit an SSCCE to get a better chance of other people reproducing and debugging the problem.
However, based on your description I'd suspect one thing (which I can't check myself as you didn't provide an SSCCE):
From the Swing tutorial on [How to use key bindings|http://java.sun.com/docs/books/tutorial/uiswing/misc/keybinding.html] :
+If more than one binding exists for the key, only the first valid one found is used. Input maps are checked in this order: (...)
Because the order of searching the components is unpredictable, avoid duplicate WHEN_IN_FOCUSED_WINDOW bindings!+ (highlighting and exclamation marks are not mine, but are present as well in the tutorial!).
In your case, several JRadioButtons of the CardLayout have the same keystroke "1", "2",... bound (to the same action name, but that's irrelevant since once the action name is found, the action will be fetched from the component's ActionMap). All bindings are valid in the WHEN_IN_FOCUSED_WINDOW mode, and only the "first" one is returned.
As the order is unpredictable, it's probably only by chance that the "first" card's binding work. I don't get why the first and second both work, although I suspect the ordering or the search may be affected by the cardLayout swapping the cards, with no guarantee of the current card being the first one searched. Indded the javadoc for CardLayout.show(...) makes no such provision.
Edited by: jduprez on Jul 23, 2009 12:18 PM - added note on action name being the same
Edited by: jduprez on Jul 23, 2009 12:22 PM - and on cardLayout.show()

Similar Messages

  • CS4 Radiobutton Component Problem

    I have converted a Flash3 to a Flash4 presentation.  My radiobutton component radiobutton graphic no longer appears but yhr buttonm is still active as well as the RB label.  WhenI run this with firefox, this error message appears:
    TypeError: Error #1009: Cannot access a property or method of a null object reference.
        at fl.controls::RadioButton/drawLayout()
        at fl.controls::LabelButton/draw()
        at fl.controls::RadioButton/draw()
        at fl.core::UIComponent/callLaterDispatcher()
    Does anyone have a hint as to what I can do to eliminate this proble?

    I have this exact problem, though this FLA has never not been a CS4 FLA.
    To ensure it wasn't the recent 10.0.2 patch, I removed the components from the library as suggested and re-dragged them from the Components panel.  The error still persists.
    I should note that if I have the components out on the main stage, they work fine and produce no errors.  They are inside of a clip which is instantiated at run-time and added to the stage (a popup window).  I am having a different, but probably related, error with the ComboBox.  It gives the following two errors:
    TypeError: Error #2007: Parameter child must be non-null.
        at flash.display::DisplayObjectContainer/addChildAt()
        at fl.controls::BaseButton/drawBackground()
        at fl.controls::BaseButton/draw()
        at fl.core::UIComponent/drawNow()
        at fl.controls::ComboBox/drawLayout()
        at fl.controls::ComboBox/draw()
        at fl.core::UIComponent/callLaterDispatcher()
    TypeError: Error #2007: Parameter child must be non-null.
        at flash.display::DisplayObjectContainer/addChildAt()
        at fl.controls::BaseButton/drawBackground()
        at fl.controls::BaseButton/draw()
        at fl.core::UIComponent/callLaterDispatcher()

  • [CS3] Radiobutton group problem

    Hi, I'm creating a small quiz in Flash, and I have a nasty
    problem I hope you can help me with.
    I've set a group name like "group1" for the first group of
    three radio buttons, and "group2" for the next, and so on. I have 2
    groups per frame. The problem is that if I continue by having
    "group3" and "group4" on frame 2, when it's exported; The first
    frame is fine, but when I continue to the next frame, the radio
    buttons label is gone, and the radio buttons are all selectable,
    like check marks.
    I would really appreciate some help on this

    Anyone?

  • Radiobutton (little problem)

    Hi,
    When I view a applet in jre1.4.1 the text of the radio button is truncated, it is working fine in jre1.3.
    The application was developed in jdk1.3. Now I can't go back and open all the source code to increase the width of the radiobutton.
    Any solution.

    There is no change on resizing the appletSorry, no other idea :(

  • Imposible to toggle a Radiobutton in Web Dynpro for Java

    Hi Forum
      I have one table, one column table has a RadioButton, the problem is basically that i can put active all the
    radiobuttons in that column, when only one should be active.
    What can i  do ?*
    Thnks
    Josué Cruz

    Hi,
    Try using a checkbox which can be controlled using a boolean variable (if it does not change your application behavior). if the value need to be set using the result from the backend, it will be easy and u can disable the checkbox.
    Hope this is convenient for u.
    Regards,
    Poojith MV

  • Problem with TextInput and RadioButton

    Hi,
    I've encountered a problem with TextInput and RadioButtons.
    I've created some text fields and radio buttons for a
    feedback form under a movie _root.feedback.
    But for some reason, I can't seem to enter text into the text
    field (no blinking cursor), and I can't see the "label" next to my
    radio buttons.
    Just as a workaround, I tried moving these fields to _root,
    and now I can enter text and see the radio button labels.
    But to keep my hierarchy clean, I want to use a the
    _root.feedback movie for my feedback fields. Any ideas what could
    be going wrong? I checked Window -> Component Inspector, and
    these textInput fields are enabled.
    Stuck.
    Thanks.

    Is the text the same color as the background or do you need
    embedded fonts?

  • Problem with ClusterPanelWidget having RadioButtons

    Hi All,
    I was facing a problem in InDesign CS3 on Mac in using two panels having radio buttons on a dialog box. Details are as follows:-
    1: I had created a modal dialog .
    2: At run time I am adding two GenericPanelWithBorderWidget to this dialog.
    3: Both the above mentioned panels contain ClusterPanelWidget having RadioButtons.
    4:I am using two buttons on the dialog box, these two buttons are used to show the respective panels.
    5:One of the panel is appearing by default on the dialog.
    6:At run time the panel which is displayed first or by default is working fine with its radio buttons.
    7:When second panel is showed, it appears without Radio buttons for the first time, and rest of the time its radio buttons only get draws , but will not get any of the mouse events.
    8:The above scenario only happens with radio buttons, all the other resources on the second panel are working fine.
    9:Above scenario is working fine in Windows i.e. both the panels are working fine with their radio buttons.
    Any Help Will be Appriciable

    Hi All,
    I was facing a problem in InDesign CS3 on Mac in using two panels having radio buttons on a dialog box. Details are as follows:-
    1: I had created a modal dialog .
    2: At run time I am adding two GenericPanelWithBorderWidget to this dialog.
    3: Both the above mentioned panels contain ClusterPanelWidget having RadioButtons.
    4:I am using two buttons on the dialog box, these two buttons are used to show the respective panels.
    5:One of the panel is appearing by default on the dialog.
    6:At run time the panel which is displayed first or by default is working fine with its radio buttons.
    7:When second panel is showed, it appears without Radio buttons for the first time, and rest of the time its radio buttons only get draws , but will not get any of the mouse events.
    8:The above scenario only happens with radio buttons, all the other resources on the second panel are working fine.
    9:Above scenario is working fine in Windows i.e. both the panels are working fine with their radio buttons.
    Any Help Will be Appriciable

  • Problem in extending Actionmapping

    hi
    I tried to extend Action mapping class to provide my own custom actionampping.I tried very simple apllication.but atleast it's not going to server.it's showing "page not displayed"
    my entry in struts-config.xml is
    <form-bean name="LookupForm" type="LookupForm"/>
    <action className="mymapping">
    path="/mymappingaction"
    type="mappingaction"
    name="LookupForm"
    scope="request"
    >
    <set-property property="logResults" value="true"/>
    <forward
    name="success"
    path="/ju.jsp"/>
    <forward
    name="failure"
    path="/fail.jsp"/>
    </action>
    (besides this action i had some other action entries in struts-config.xml)
    " mymapping" is the class that extends ActionMapping and it's code is
    import org.apache.struts.action.ActionMapping;
         public class mymapping extends ActionMapping {
              protected boolean logResults = false;
              public mymapping() {
                   super();
              public void setLogResults(boolean logResults) {
                   this.logResults = logResults;
              public boolean getLogResults() {
                   return logResults;
    I am setting "logResults" value in <set-property > in struts-config.xml.
    then i write a simple jsp in weblogic workshop
    <%@ taglib uri="http://jakarta.apache.org/struts/tags-html" prefix="html"%>
    <html:form action="/mymappingaction">
    <html:text property="symbol"/>
    <html:submit/>
    </html:form>
    it's displaying "page not found"
    please assist me

    hi
    thanks for your reply.now it's working after i placed mapping class in to some package. but there is a problem in making it more granular.
    In my struts-config.xml file if i give
    <action-mappings type="com.mymapping">
    </action-mappings>
    the mapping is working and the mapping "com.mymapping " applicable to "all the actions" inside <action-mappings>
    but i needed that more granular level like the mapping "com.mymapping" should applicable to only specified action.if i give as mentioned below it's not identifying the mapping class at all.
    <action classname="com.mymapping">
    path="/mymappingaction"
    type="mappingaction"
    name="LookupForm"
    scope="request">
    <set-property property="logResults" value="true"/>
    <forward
    name="success"
    path="/success.jsp"/>
    <forward
    name="failure"
    path="/fail.jsp"/>
    </action>
    thanks .

  • Problem in creating radiobutton dynamically

    Hi,
    In WdDoModifyView() of view, i wrote the following code......
    IWDRadioButton button=(IWDRadioButton)view.createElement(IWDRadioButton.class,"radioButton1");
             button.setText("abc");
             IWDTransparentContainer tc=(IWDTransparentContainer)view.getElement("RootUIElementContainer");
             tc.addChild(button);
    when i run the application, it is displaying 500 internal error ......
    java.lang.ClassCastException
         at com.sap.tc.webdynpro.progmodel.context.Paths.getAttributeInfoFor(Paths.java:202)
         at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.RadioButtonAdapter.setViewAndNodeElement(RadioButtonAdapter.java:165)
         at com.sap.tc.webdynpro.clientimpl.html.uielements.adaptmgr.URAdapterManager.getAdapterFor(URAdapterManager.java:231)
         at com.sap.tc.webdynpro.clientimpl.html.uielements.adaptmgr.URAdapterManager.getAdapterFor(URAdapterManager.java:64)
         at com.sap.tc.webdynpro.clientimpl.html.uielib.standard.uradapter.FlowLayoutAdapter$Items.getControl(FlowLayoutAdapter.java:318)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.FlowLayoutRenderer.renderFlowLayoutItemFragment(FlowLayoutRenderer.java:252)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.FlowLayoutRenderer.renderFlowLayoutFragment(FlowLayoutRenderer.java:193)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.FlowLayoutRenderer.render(FlowLayoutRenderer.java:41)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:294)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:102)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.ScrollContainerRenderer.renderScrollContainerFragment(ScrollContainerRenderer.java:516)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.ie6.ScrollContainerRenderer.render(ScrollContainerRenderer.java:61)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:294)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:102)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.UiWindowRenderer.render(UiWindowRenderer.java:45)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:294)
         at com.sap.tc.webdynpro.clientimpl.html.renderer.uielements.base.AbstractRenderManager.render(AbstractRenderManager.java:102)
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendHtml(HtmlClient.java:555)
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendResponse(HtmlClient.java:346)
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.sendResponse(HtmlClient.java:253)
         at com.sap.tc.webdynpro.clientimpl.html.client.HtmlClient.retrieveData(HtmlClient.java:157)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.handleActionEvent(WebDynproMainTask.java:425)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:649)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:248)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.runServlet(HttpHandlerImpl.java:390)
         at com.sap.engine.services.servlets_jsp.server.HttpHandlerImpl.handleRequest(HttpHandlerImpl.java:264)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:347)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.startServlet(RequestAnalizer.java:325)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.invokeWebContainer(RequestAnalizer.java:887)
         at com.sap.engine.services.httpserver.server.RequestAnalizer.handle(RequestAnalizer.java:241)
         at com.sap.engine.services.httpserver.server.Client.handle(Client.java:92)
         at com.sap.engine.services.httpserver.server.Processor.request(Processor.java:148)
         at com.sap.engine.core.service630.context.cluster.session.ApplicationSessionMessageListener.process(ApplicationSessionMessageListener.java:33)
         at com.sap.engine.core.cluster.impl6.session.MessageRunner.run(MessageRunner.java:41)
         at com.sap.engine.core.thread.impl3.ActionObject.run(ActionObject.java:37)
         at java.security.AccessController.doPrivileged(Native Method)
         at com.sap.engine.core.thread.impl3.SingleThread.execute(SingleThread.java:95)
         at com.sap.engine.core.thread.impl3.SingleThread.run(SingleThread.java:160)
    can anyone tell what is the problem in this.......

    You can't create radiobutton  without binding to the context because it needs to save value of 'selected key' property somewhere. Context is the only place for storing selectedKey property
    Follow the below steps:
    1. Create a ValueAttribute "radiobutt" 
    2.. Write the following in wdDoModifyView() method
    IWDRadioButton button=(IWDRadioButton)view.createElement(IWDRadioButton.class,"radioButton1");
    button.setText("abc");
    button.bindselectedkey("radiobutt");
    IWDTransparentContainer tc=(IWDTransparentContainer)view.getElement("RootUIElementContainer");
    tc.addChild(button);
    Message was edited by:
            Kanwalpreet
    Message was edited by:
            Kanwalpreet

  • Problem in displaying data using Radiobuttons?

    Hi All,
    I have a requirement where along with some input fields in have three radiobuttons and under each of the radiobuttons there are date fields, now when i click on the first radiobutton the second date field has to be disabled and the a report o/p has to be generated, again when i click on the second radibutton the first date field has to be disbaled and second report o/p has to be generated and when the third one is clicked both the date fields has to be disabled and the third report o/p has to be generated.
    I have written the code for disabling the fields, the problem is when i click on the second radiobutton it does not disable the first date field and is taking a long time in execution and the control is terminating the program.
    The report o/p logic has been written in three different subroutine forms. Please tell me how i can overcome this problem. I am attaching my code in this mail.
    selection-screen begin of block b1 with frame title text-001.
    select-options: s_bukrs for v1 modif id ABC,
                    s_vkorg for v2 obligatory modif id ABC,
                    s_vtweg for v3 obligatory modif id ABC,
                    s_spart for v4 obligatory modif id ABC,
                    s_fkart for v5 obligatory modif id ABC.
    selection-screen end of block b1.
    selection-screen begin of block b2 with frame title text-002.
    selection-screen begin of line.
    parameters: p1 radiobutton group g1 default 'X' user-command ucomm.
    selection-screen end of line.
    parameters:s_date type sy-datum modif id XYZ.
    selection-screen skip 1.
    selection-screen begin of line.
    parameters:p2 radiobutton  group g1.
    selection-screen end of line.
    parameters:s_date1 type sy-datum modif id XYZ.
    selection-screen skip 1.
    selection-screen begin of line.
    parameters:p3 radiobutton group g1.
    selection-screen end of line.
    selection-screen skip 1.
    selection-screen end of block b2.
    At Selection-Screen Output.
    loop at screen.
    if p1 = 'X' and
    screen-name = 'S_DATE1' or screen-group1 = 'ABC' .
    screen-input = 0.
    modify screen.
    elseif p2 = 'X'
    and screen-name = 'S_DATE' or screen-group1 = 'ABC'.
    screen-input = 0.
    modify screen.
    elseif p3 = 'X' or screen-group1 = 'ABC'.
    check screen-group1 = 'XYZ'.
    screen-active = 0.
    modify screen.
    endif.
    endloop.
    At Selection-Screen.
    if p1 = 'X'.
    perform dailysummaryinvoice.
    elseif p2 = 'X'.
    perform blockedinvoices.
    elseif p3 = 'X'.
    write:/ 'Display'.
    endif.
    refresh: s_bukrs,
           s_vkorg,
           s_vtweg,
           s_spart,
           s_fkart.
    Please help.
    Regards,
    MD

    Hi friend,
    Check this code i hope it ll be hep full for u.
    *& Report  ZDTK_FI_CRDB
    *& AUTHOR            : D TARUN KUMAR
    *& FUNC CONSULTANT   : ABDUL GANI
    *& TRANSPORT REQ NO. : RD1K902089
    *& PACKAGE           : ZTARUN
    *& TRANSACTION CODE  : ZCRDB
    *& DESCRIPTION : CREDIT DEBIT NOTE FOR CUSTOMER OR VENDOR.
    REPORT  ZDTK_FI_CRDB NO STANDARD PAGE HEADING
                                LINE-COUNT 65(5)
                                LINE-SIZE 80
                                MESSAGE-ID ZTAR_FI
    *&       STRUCTURE DECLARATION
    TYPES : BEGIN OF TY_ADDR,
                    BUKRS TYPE BUKRS,          "COMPANY CODE
                    LIFNR TYPE LIFNR,          "VENDOR NO
                    KUNNR TYPE KUNNR,          "CUSTOMJER NO
                    NAME1 TYPE NAME1,          "NAME1
                    NAME2 TYPE NAME2,          "NAME2
                    ORT01 TYPE ORT01,          "CITY
                    ORT02 TYPE ORT02,
                    PSTLZ TYPE PSTLZ,          "POSTAL CODE
                    STRAS TYPE STRAS,          "STREET
                    ADRNR TYPE ADRNR,          "ADDRESS NO
                    TELF1 TYPE TELF1,          "TELEFHONE NO
                    TELF2 TYPE TELF2,          "TELEFHONE NO 2
                    TELFX TYPE TELFX,          "FAX
             END OF TY_ADDR,
          BEGIN OF TY_LFA1,
                   KUNNR TYPE KUNNR,          "CUSTOMJER NO
                   NAME1 TYPE NAME1,          "NAME1
                   NAME2 TYPE NAME2,          "NAME2
                   ORT01 TYPE ORT01,          "CITY
                   ORT02 TYPE ORT02,
                   PSTLZ TYPE PSTLZ,          "POSTAL CODE
                   STRAS TYPE STRAS,          "STREET
                   ADRNR TYPE ADRNR,          "ADDRESS NO
                   TELF1 TYPE TELF1,          "TELEFHONE NO
                   TELF2 TYPE TELF2,          "TELEFHONE NO 2
                   TELFX TYPE TELFX,          "FAX
            END OF TY_LFA1,
           BEGIN OF TY_DOCM,
                    GJAHR TYPE GJAHR,
                    BELNR TYPE BELNR_D,
                    BUDAT TYPE BUDAT,
                    BLDAT TYPE BLDAT,
                    BLART TYPE BLART,
                    BSCHL TYPE BSCHL,
                    SHKZG TYPE SHKZG,
                    XBLNR TYPE XBLNR,
                    DMBTR TYPE DMBTR,
                    SGTXT TYPE SGTXT,
                    REBZG TYPE REBZG,
                    REBZJ TYPE REBZJ,
                    KUNNR TYPE KUNNR,
                    LIFNR TYPE LIFNR,
             END OF TY_DOCM.
    *&       TABLE DECLARATION
    DATA : T_ADDR TYPE STANDARD TABLE OF TY_ADDR,
    *&       WORK AREA  DECLARATION
           W_ADDR TYPE TY_ADDR,
           W_DOCM TYPE TY_DOCM,
          W_LFA1 TYPE TY_LFA1,
    *&       GLOBLE VARIABLE DECLARATION
           G_KUNNR TYPE KUNNR,
           G_LIFNR TYPE LIFNR,
           DCAMT TYPE DMBTR.
    *&       INITIALIZATION
    INITIALIZATION.
    CLEAR :
    *REFRESH :
    *&       SELECTION SCREEN DECLARATION
    SELECTION-SCREEN: BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.
    SELECTION-SCREEN SKIP 1.
    PARAMETERS : S_BUKRS TYPE BSID-BUKRS OBLIGATORY DEFAULT '1000'.
    PARAMETERS : S_BELNR TYPE BELNR_D OBLIGATORY DEFAULT '1600000070'.
    PARAMETERS : S_GJAHR TYPE GJAHR OBLIGATORY DEFAULT '2008'.
    PARAMETERS : ASON TYPE BUDAT OBLIGATORY DEFAULT SY-DATUM.
    PARAMETERS : S_KUNNR TYPE KUNNR MODIF ID GP1.
    PARAMETERS : S_LIFNR TYPE LIFNR MODIF ID GP2.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN : END OF BLOCK B1.
    SELECTION-SCREEN BEGIN OF BLOCK B2 WITH FRAME TITLE TEXT-002.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN BEGIN OF LINE.
    PARAMETERS R1  RADIOBUTTON GROUP RAO DEFAULT 'X' USER-COMMAND hit.
    SELECTION-SCREEN COMMENT (50) TEXT-003 FOR FIELD R1.
    PARAMETERS R2  RADIOBUTTON GROUP RAO.
    SELECTION-SCREEN COMMENT (50) TEXT-004 FOR FIELD R2.
    SELECTION-SCREEN END OF LINE.
    SELECTION-SCREEN SKIP 1.
    SELECTION-SCREEN END OF BLOCK B2.
    *SELECTION-SCREEN: BEGIN OF BLOCK B3 WITH FRAME TITLE TEXT-005.
    *SELECTION-SCREEN SKIP 1.
    *SELECTION-SCREEN BEGIN OF LINE.
    *PARAMETERS R3  RADIOBUTTON GROUP RAJ DEFAULT 'X' USER-COMMAND hit.
    *SELECTION-SCREEN COMMENT (50) TEXT-006 FOR FIELD R1.
    *PARAMETERS R4  RADIOBUTTON GROUP RAJ.
    *SELECTION-SCREEN COMMENT (50) TEXT-007 FOR FIELD R2.
    *SELECTION-SCREEN END OF LINE.
    *SELECTION-SCREEN SKIP 1.
    *SELECTION-SCREEN : END OF BLOCK B3.
    *&       AT SELECTION SCREEN
    AT SELECTION-SCREEN.
           PERFORM VALIDATE_SELECTION.
    *&       AT SELECTION SCREEN OUTPUT
    AT SELECTION-SCREEN OUTPUT.
           PERFORM SCREEN_OUTPUT.
    *&       START OF SELECTION
    START-OF-SELECTION.
    IF R1 = 'X'.
            PERFORM GET_DOCUMENT_L.
    ELSEIF R2 = 'X'.
            PERFORM GET_DOCUMENT_K.
    ENDIF.
    *&       END OF SELECTION
    END-OF-SELECTION.
    PERFORM DISPLAY.
    *&       TOP OF PAGE
    *TOP-OF-PAGE.
          PERFORM PAGE_HEADER.
    *&      Form  VALIDATE_SELECTION
          text
    form VALIDATE_SELECTION .
    DATA : L_BUKRS TYPE BSID-BUKRS.
    SELECT SINGLE BUKRS FROM KNB1
                        INTO L_BUKRS
                       WHERE BUKRS = S_BUKRS.
    *IF SY-SUBRC <> 0.
    *MESSAGE E001.
    *LEAVE LIST-PROCESSING.
    *ENDIF.
    DATA : L_KUNNR TYPE BSID-KUNNR.
    SELECT SINGLE KUNNR FROM BSID
                        INTO L_KUNNR
                       WHERE KUNNR = S_KUNNR.
    *IF SY-SUBRC <> 0.
    *MESSAGE E002.
    *LEAVE LIST-PROCESSING.
    *ENDIF.
    endform.                    " VALIDATE_SELECTION
    *&      Form  SCREEN_OUTPUT
          text
    form SCREEN_OUTPUT .
        IF R1 = 'X'.
          LOOP AT SCREEN.
            if screen-group1 = 'GP1'.
              SCREEN-active = '0'.
    *SCREEN-INTENSIFIED = '0'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        ELSE.
          LOOP AT SCREEN.
            IF SCREEN-group1 = 'GP2'.
              SCREEN-active = '0'.
    *SCREEN-INTENSIFIED = '1'.
              MODIFY SCREEN.
            ENDIF.
          ENDLOOP.
        ENDIF.
    endform.                    " SCREEN_OUTPUT
    *&      Form  GET_DOCUMENT_L
          text
    FORM GET_DOCUMENT_L .
    DATA : MESSG(60).
    SELECT SINGLE BUKRS
                  LIFNR
                  GJAHR
                  BELNR
                  BUDAT
                  BLDAT
                  BLART
                  BSCHL
                  SHKZG
                  DMBTR
                  SGTXT
                  REBZG
                  REBZJ FROM BSIK
                        INTO CORRESPONDING FIELDS OF W_DOCM
                       WHERE BUKRS = S_BUKRS AND
                             GJAHR = S_GJAHR AND
                             BELNR = S_BELNR.
    SELECT SINGLE DMBTR FROM BSIK INTO DCAMT
                       WHERE BELNR = W_DOCM-REBZG AND
                             GJAHR = W_DOCM-REBZJ.
    IF NOT W_DOCM IS INITIAL.
            PERFORM GET_LFA1.
    ELSE.
    SELECT SINGLE BUKRS
                  LIFNR
                  GJAHR
                  BELNR
                  BUDAT
                  BLDAT
                  BLART
                  BSCHL
                  SHKZG
                  DMBTR
                  SGTXT
                  REBZG
                  REBZJ FROM BSAK
                        INTO CORRESPONDING FIELDS OF W_DOCM
                       WHERE BUKRS = S_BUKRS AND
                             GJAHR = S_GJAHR AND
                             BELNR = S_BELNR.
    SELECT SINGLE DMBTR FROM BSAK INTO DCAMT
                       WHERE BELNR = W_DOCM-REBZG AND
                             GJAHR = W_DOCM-REBZJ.
          IF NOT W_DOCM IS INITIAL.
                  PERFORM GET_LFA1.
          ELSE.
          CONCATENATE 'THERE IS NO DOCUMENT NO' S_BELNR S_GJAHR 'FOR VENDOR' INTO  MESSG
                       SEPARATED BY SPACE.
          MESSAGE I011 WITH MESSG.
          LEAVE LIST-PROCESSING.
          ENDIF.
    ENDIF.
    ENDFORM.                    " GET_DOCUMENT_L
    *&      Form  GET_LFA1
          text
    FORM GET_LFA1 .
    SELECT SINGLE LIFNR
                  NAME1
                  NAME2
                  ORT01
                  ORT02
                  PSTLZ
                  STRAS
                  ADRNR
                  TELF1
                  TELF2
                  TELFX FROM LFA1 INTO CORRESPONDING FIELDS OF W_ADDR
                          WHERE LIFNR = W_DOCM-LIFNR.
    ENDFORM.                    " GET_LFA1
    *&      Form  GET_DOCUMENT_K
          text
    FORM GET_DOCUMENT_K .
    DATA : MESSG(60).
    SELECT SINGLE BUKRS
                  KUNNR
                 LIFNR
                  GJAHR
                  BELNR
                  BUDAT
                  BLDAT
                  BLART
                  BSCHL
                  SHKZG
                  DMBTR
                  SGTXT
                  REBZG
                  REBZJ FROM BSID
                        INTO CORRESPONDING FIELDS OF W_DOCM
                       WHERE  BUKRS = S_BUKRS AND
                              GJAHR = S_GJAHR AND
                              BELNR = S_BELNR.
    SELECT SINGLE DMBTR FROM BSID INTO DCAMT
                       WHERE BELNR = W_DOCM-REBZG AND
                             GJAHR = W_DOCM-REBZJ.
    IF NOT W_DOCM IS INITIAL.
            PERFORM GET_KNA1.
    ELSE.
    SELECT SINGLE BUKRS
                  KUNNR
                 LIFNR
                  GJAHR
                  BELNR
                  BUDAT
                  BLDAT
                  BLART
                  BSCHL
                  SHKZG
                  DMBTR
                  SGTXT
                  REBZG
                  REBZJ FROM BSAD
                        INTO CORRESPONDING FIELDS OF W_DOCM
                       WHERE  BUKRS = S_BUKRS AND
                              GJAHR = S_GJAHR AND
                              BELNR = S_BELNR.
    SELECT SINGLE DMBTR FROM BSAD INTO DCAMT
                       WHERE BELNR = W_DOCM-REBZG AND
                             GJAHR = W_DOCM-REBZJ.
          IF NOT W_DOCM IS INITIAL.
                  PERFORM GET_KNA1.
          ELSE.
          CONCATENATE 'THERE IS NO DOCUMENT NO' S_BELNR S_GJAHR 'FOR CUSTOMER' INTO  MESSG
                       SEPARATED BY SPACE.
          MESSAGE I011 WITH MESSG.
          LEAVE LIST-PROCESSING.
          ENDIF.
    ENDIF.
    ENDFORM.                    " GET_DOCUMENT_K
    *&      Form  GET_KNA1
          text
    FORM GET_KNA1 .
    SELECT SINGLE KUNNR
                  NAME1
                  NAME2
                  ORT01
                  ORT02
                  PSTLZ
                  STRAS
                  ADRNR
                  TELF1
                  TELF2
                  TELFX FROM KNA1 INTO CORRESPONDING FIELDS OF W_ADDR
                          WHERE KUNNR = W_DOCM-KUNNR.
    ENDFORM.                    " GET_KNA1
    *&      Form  DISPLAY
          text
    FORM DISPLAY .
    LONG TEXT *************************
    *DATA : BEGIN OF inline OCCURS 0,
    *END OF inline.
    *TYPES: BEGIN OF TY_LONGT,
                   tdformat TYPE tdformat,
                   tdline TYPE tdline,
          END OF TY_LONGT.
    *DATA : TLONGT TYPE STANDARD TABLE OF TY_LONGT,
          WLONGT TYPE TY_LONGT.
    DATA: BEGIN OF DTEXT OCCURS 50.
    *DATA: MATNR LIKE PBIM-MATNR.
    INCLUDE STRUCTURE TLINE.
    DATA: END OF DTEXT.
    DATA: BEGIN OF HTEXT.
    INCLUDE STRUCTURE THEAD.
    DATA: END OF HTEXT.
    DATA: BEGIN OF LTEXT OCCURS 50.
    INCLUDE STRUCTURE TLINE.
    DATA: END OF LTEXT.
    DATA: TNAME LIKE THEAD-TDNAME.
    CONCATENATE S_BUKRS W_DOCM-BELNR S_GJAHR '002' INTO  TNAME.
    *SEPARATED BY SPACE.
    DATA : W_STXL TYPE STXL.
    SELECT SINGLE * FROM STXL INTO W_STXL
                             WHERE TDNAME = TNAME.
    IF NOT W_STXL IS INITIAL.
    *SELECT * FROM PBIM WHERE WERKS IN S_WERKS.
    *MOVE PBIM-BDZEI TO TNAME.
    CALL FUNCTION 'READ_TEXT'
      EXPORTING
        CLIENT                        = SY-MANDT
        ID                            = W_STXL-TDID
        LANGUAGE                      = W_STXL-TDSPRAS
        NAME                          = TNAME
        OBJECT                        = W_STXL-TDOBJECT
      ARCHIVE_HANDLE                = 0
      LOCAL_CAT                     = ' '
    IMPORTING
        HEADER                        = HTEXT
      TABLES
        LINES                         = LTEXT
    EXCEPTIONS
      ID                            = 1
      LANGUAGE                      = 2
      NAME                          = 3
      NOT_FOUND                     = 4
      OBJECT                        = 5
      REFERENCE_CHECK               = 6
      WRONG_ACCESS_TO_ARCHIVE       = 7
      OTHERS                        = 8
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    LOOP AT LTEXT.
    IF LTEXT-TDLINE NE ''.
    MOVE LTEXT-TDLINE TO DTEXT-TDLINE.
    APPEND DTEXT.
    ENDIF.
    ENDLOOP.
    ENDIF.
    LONG TEXT *************************
    CUSTOMER / VENDOR NO *************************
    DATA : CUVE(10).
    IF R1 = 'X'.
    CUVE = W_ADDR-LIFNR.
    ELSEIF R2 = 'X'.
    CUVE = W_ADDR-KUNNR.
    ENDIF.
    CUSTOMER / VENDOR NO *************************
    CR / DR DATA *************************
    IF DCAMT IS INITIAL.
    SELECT SINGLE DMBTR FROM BSIS INTO DCAMT
                       WHERE BELNR = W_DOCM-REBZG AND
                             GJAHR = W_DOCM-REBZJ .
                          ( KOART = 'D' OR KOART = 'K' ).
    ENDIF.
    CR / DR DATA *************************
    DATA: CNAME TYPE BUTXT.
    SELECT SINGLE BUTXT FROM T001 INTO CNAME
                       WHERE BUKRS = S_BUKRS.
    DATA : NAME(60),
           STREET(60),
           TELFX(60).
    CONCATENATE W_ADDR-NAME1 W_ADDR-NAME2 INTO  NAME
    SEPARATED BY SPACE.
    CONCATENATE W_ADDR-ORT01 W_ADDR-ORT02 'POSTAL CODE :' W_ADDR-PSTLZ INTO  STREET
    SEPARATED BY SPACE.
    CONCATENATE 'Tel No.:' W_ADDR-TELF1 W_ADDR-TELF2 'FAX :' W_ADDR-TELFX INTO  TELFX
    SEPARATED BY SPACE.
    DATA : CRDB(20),
           CRDBA(16),
           BALC TYPE DMBTR.
    IF W_DOCM-SHKZG = 'S'.
    CRDB = 'Debit Note No. :'.
    CRDBA = 'DEBIT'.
    BALC = DCAMT + W_DOCM-DMBTR.
    ELSEIF W_DOCM-SHKZG = 'H'.
    CRDB = 'Credit Note No. :'.
    CRDBA = 'CREDIT'.
    BALC = DCAMT - W_DOCM-DMBTR.
    ENDIF.
    SKIP 5.
    *FORMAT INVERSE.
                ULINE 03(77).
    WRITE : 03 SY-VLINE, 80 '|',
            /03 SY-VLINE, NAME, 60 'No.:' COLOR 7, CUVE COLOR 7, 80 '|',
            /03 SY-VLINE, W_ADDR-STRAS, 80 '|',
            /03 SY-VLINE, STREET, 80 '|',
            /03 SY-VLINE, TELFX, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 05 CNAME COLOR 2,  80 '|',
            /03 SY-VLINE, 36 CRDB RIGHT-JUSTIFIED, 59 W_DOCM-BELNR, 71 W_DOCM-GJAHR, 80 '|',
            /03 SY-VLINE, 58 'DATE :', W_DOCM-BUDAT, 80 '|',
            /03 SY-VLINE, 80 '|'. ULINE 03(77).
    WRITE : /03 SY-VLINE, 80 '|'.
    IF NOT DTEXT IS INITIAL.
    LOOP AT DTEXT.
    WRITE : /03 SY-VLINE, 05 DTEXT-TDLINE COLOR 1, 80 '|'.
    ENDLOOP.
    ELSEIF W_DOCM-SGTXT NE ''.
    WRITE : /03 SY-VLINE, 05 W_DOCM-SGTXT COLOR 1, 80 '|'.
    ELSE.
    WRITE : /03 SY-VLINE, 80 '|'.
    ENDIF.
    WRITE : /03 SY-VLINE, 80 '|',
    *WRITE : /03 SY-VLINE, TNAME, 80 '|',
           /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 08 'WORKING OF INTEREST CALCULATION AS ON                                   ' COLOR 4,
             47 ASON COLOR 4, '  [ 360 DAYS BASIS ]' COLOR 4, 80 '|',
            /03 SY-VLINE, 80 '|'. ULINE 03(77).
    WRITE : /03 SY-VLINE, 11 'DATE', 23 'INVOICE', 41 CRDBA, 55 'BALANCE', 64 'DAYS', 70 'INTEREST', 80 '|',
            /03 SY-VLINE, 23 ' AMOUNT', 41 'AMOUNT', 55' AMOUNT', 70 ' @ 8.00% ', 80 '|',
            /03 SY-VLINE, 80 '|'. ULINE 03(77).
    WRITE : /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 06 W_DOCM-BUDAT, 15 DCAMT, 32 W_DOCM-DMBTR, 47 BALC, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|'. ULINE 03(77).
    WRITE : /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 10 'PREPARED BY', 35 'ACCOUNTANT', 60 'MANAGER', 80 '|',
            /03 SY-VLINE, 80 '|',
            /03 SY-VLINE, 80 '|'. ULINE 03(77).
    ENDFORM.                    " DISPLAY
    Thanks & Regards,
    D Tarun Kumar.
    Edited by: Devalla Tarun Kr. on Aug 28, 2008 3:40 PM

  • RadioButton event handler problem!!

    I have 2 arrays of radiobuttons, lRB[] and corresponding to that array zRB[][], ie when lRB[1] is clicked zRB[1][] should be displayed. Every other part of the program was working fine until I added the following piece of code! I can't see why it should be a problem cos I had it working for a simplier lRB1, lRB2 corresponding to zRB1[], zRB2[].
    private class RadioButtonHandler implements ItemListener
    public void itemStateChanged( ItemEvent event )
    for( int g=0; g<lRB.length; g++ )
    if( event.getSource() == lRB[g] )
         for( int y=0; y<lRB.length; y++ )
    for( int f=0; f<zRB[y].length; f++ )
         zPanel.remove( zRB[y][f] );
         for( int h=0; h<zRB[g].length; h++)
         zPanel.add( zRB[g][h] );
         repaint();
    When any of lRB[] are clicked the zRB[1][] buttons are removed but that's it and then a ream of text appears in the DOS window rendering the program un-useable.
    Any help would be great cos this really has me stumped.
    wALLY!

    Thanks for the help Denis.
    Here's what I ended up using
    private class RadioButtonHandler implements ItemListener
    public void itemStateChanged( ItemEvent event )
    for( int g=0; g<lRB.length; g++ )
    if( event.getSource() == lRB[g] )
    if(lRB[g].isSelected())
    for( int f=0; f<zc[prevLevel]; f++ )
    zPanel.remove( zRB[prevLevel][f] );
    prevLevel = g;
    for( int h=0; h<zc[g]; h++)
    zPanel.add( zRB[g][h] );
    zPanel.revalidate();
    I meant to say in the original message that when a lRB[] button is selected the program should remove the previous buttons in zPanel and add the new set of buttons to it ( it's doing that now)
    The original problem was I was using "zRB[g].length" thinking that it was returning the used no. of spaces in that column of the array but it was infact returning the max no. of spaces that could be used- Therefore the program was trying to remove buttons from the zPanel that weren't there. So now I'm using zc[] to store the no. of spaces used in each column of the array.
    I have a question on your code though..
    1. Does "if( event.getSource() == lRB[g] )" do the same thing as "if(lRB[g].isSelected())" ???? ( it seems to in my program - just wondering is there another purpose for it)
    2. The "zPanel.revalidate()" (or .validate....I think their the same thing) was working when I simplified the code but when I added the "for"
    loop it stopped - I tryed it in various places in the code but with no success. So now, for any changes to be seen, I have to resize the window!
    Any suggestions?
    Thanks again for your help,
    wALLY!

  • Problem with radiobuttons & inputfields.

    Hi All,
    I developed one application by using radiobuttons and inputfields.
    when i click on radiobutton i can able to enter the value in the corresponding input field. when i click on second radiobutton i can able to enter the value in the corresponding inputfield and the value in the firstinput field is cleared.This is fine and working according to my requirement.
    Now my problem is with inputfields.when i click on the firstinputfield directly(i.e with out selecting radiobutton) and entering the value in that field.Then after pressing enter the corresponding radiobutton is activating.
    but i want that radiobutton should be activated when i just click on the corresponding inputfield.
    How to acheive this.
    Is there any posibilty to get event apart from onEnter for inputfield.
    i think u got my requirement.
    Regards
    Sreelakshmi.

    Hi Sreelakshmi,
    I hope ur requirement is such that the UI should behave in both ways (i.e, Activating the Input Field when the radio button is clicked or vice-versa).
    For this u can write the action code in both the UI elements, i.e when radio button is clicked enable the InputField or onEnter Action of the InputField write the code to make the corresponding radio button active.
    There is another way which i can suggest u is that, u can disable the Input Field as long as the User doesn't click on the Radiobutton.
    Hope this helps u.
    Regards,
    Poojith M V

  • ABAP Web Dynpro Radiobuttons Problem???

    Hi,
    I need to have 6 radiobuttons horizontally in ABAP Web Dynpro.
    I got the radiobuttons on the web page,
    What I have done is
    For each radiobutton I have KeyToSelect binded to rb1, rb2, rb3, rb4, rb5 and rb6 (rb1, rb2, rb3, rb4, br5 and rb6 are boolean)
    For each radiobutton I have SelectedKey binded to group1 where group 1 is again boolean.
    My problem is if I select the 2nd radiobutton, all the others buttons gets checked, except that radio button and if I try clicking it for the second time then it is fine.
    Please let me know where I am going wrong or is it that I am missing something else to do.
    Thanks
    Sandeep

    Hi,
    Try to use radiobutton group by index UI element. Have a node in the context element with cardinality 0..n and have an attribute text type string. In the properties of the node provide the supply function as "fill_the_node". Bind this node to the radiobuttongroupbyindex UI element.
    In the fill_the_node method.
    data : node type ref to if_wd_context_node,
             elem type ref to if_wd_context_element.
    data : it type table of if_view=>element_node,
             wa like line of it.
    wa-text = 'radiobutton1'.
    append wa to it.
    wa-text = 'radiobutton2'.
    append wa to it.
    wa-text = 'radiobutton3'.
    append wa to it.
    wa-text = 'radiobutton4'.
    append wa to it.
    wa-text = 'radiobutton5'.
    append wa to it.
    wa-text = 'radiobutton6'.
    append wa to it.
    node->bind_table( it ).
    In this way you can have 6 radiobuttons on the browser.
    Thanks
    Mallika

  • Radiobutton problem

    Hi All
    In one of our forms we have several Radiobuttons by key. If I bind them to a node which provides the respective value Dynpro automatically generates two Radiobuttons for the underlying values Yes and No. Unfortunateley the label is being generated out of the fixed value for the field ("Y" and "N") instead of the short text "yes and "no". Can anyone help?

    Hi,
       If your problem is showing Text for the Radio Button By Key, just create a Simple Type in your project with Enumeration values as Yes and No. And assign it to the context variable which you bind to the Radio Button by Key. It will show the Text for the radio Buttons.
    Regards,
    Sridhar

  • Problem with html table and htmlb radiobutton group

    Hello,
    I wrote this code:
           <table width="100%" border="1">
            <tr>
              <th>
                Valutazione manageriale complessiva dell#anno
              </th>
              <th>1</th>
              <th>2</th>
              <th>3</th>
            </tr>
            <tr>
              <th>
                imprenditività
              </th>
              <htmlb:radioButtonGroup id="PROVA1"
                                       columnCount="3"
                                        mode="LOGICAL_GROUPING">
              <th><htmlb:radioButton id="1" text="1"  encode="TRUE"/></th>
              <th><htmlb:radioButton id="2" text="2"  encode="TRUE"/></th>
              <th><htmlb:radioButton id="3" text="3"  encode="TRUE"/></th>
              </htmlb:radioButtonGroup>
            </tr>
            <tr>
              <th>
                Autorevolezza
              </th>
              <htmlb:radioButtonGroup id="PROVA2"
                                       columnCount="3"
                                        mode="LOGICAL_GROUPING">
              <th><htmlb:radioButton id="1" text="1"  encode="TRUE"/></th>
              <th><htmlb:radioButton id="2" text="2"  encode="TRUE"/></th>
              <th><htmlb:radioButton id="3" text="3"  encode="TRUE"/></th>
              </htmlb:radioButtonGroup>
            </tr>
          </table>
    but the third row (where there is "Autorevollezza/PROVA2") appears out of the table.
    Do yuo now why?
    Regards
    Maria

    you need to put the htmlb:radioButtonGroup Tags within the
    tags
    <tr>
    <td>
    imprenditività
    </td>
    <td>
        <htmlb:radioButtonGroup id="PROVA1" columnCount="3" mode="LOGICAL_GROUPING">
        <htmlb:radioButton id="1" text="1" encode="TRUE"></htmlb:radioButton></td>
    <td><htmlb:radioButton id="2" text="2" encode="TRUE"></htmlb:radioButton></td>
    <td><htmlb:radioButton id="3" text="3" encode="TRUE"></htmlb:radioButton>
         </htmlb:radioButtonGroup></td>
    </tr>
    there is a invisible table rendered by htmlb and the browser does not know what to do when you put that between </tr> and </table> so he ends your table...
    better you use <htmlb:gridLayout> instead of html-tables...
    stefan

Maybe you are looking for

  • "do not have sufficient permissions to sync"

    My son has an iPod touch. My other son had a classic iPod for a while and I tried to point both their iPods at a shared library. I think that failed epically, and may be the cause of our later problems. Starting several months ago, #1 son couldn't sy

  • HT4946 Do Voicemails back up?

    I am transferring from Iphone 4 to Iphone 5. Will my voicemails transfer over?

  • Return to front window the image changes back to the first one

    I have two images loaded in sequence. After loading the second image, I put the frame into the background. When I open the image frame (to the front window), the first image is shown (but not the second as expected). Why and how to show the lastest i

  • Delta links

    I followed SAP's recommendation to make copies of the original ESS Portal objects (iViews, Pages, Worksets) so that customer modifications do not happen on the original SAP objects. I have therefore created delta-link copies for all the original SAP

  • Ellipsis - exactly what is it good for?

    Seriously, I have yet to find a use for this thing. I can't use it as a phone. When I first activated it, I tried to call it from my smartphone for testing. "We're sorry. The number you dialed has been changed, disconnected, or is no longer in servic