Remembering the radio button state between jsp pages

How do i maintain the state of radio buttons when i move from one jsp page to another. Thank you for your help.

Hi
If the next JSP is a child window,you can take a JSP hidden variable and you can store radio button state in it and can get the same on child window thorugh window.opener.
And if its not a child window(JSP),then you can maintain the state in session and get it anywhere.

Similar Messages

  • Preserving radio button state between frames

    Is there a way in CS3 to preserve radio button state (selected or not) from frame to frame?
    I have a multi-frame app where users select either yes or no (radio buttons) to an array of questions; as they complete these questions they click a forward button to move on to the next frame (set of questions). But I am wanting to add a back button that allows them to go back and change their answers...how I can preserve the state of radio buttons clicked on previous frames, so that when they go back to a previous frame (or frames) those radio buttons they selected are still selected?

    If the design is timeline based you will need to configure some form of memory (such as an array) to retain selection data so that when you enter a frame you use what is stored to set things up.

  • Radio button state on region load...

    Is there a way to set the radio button state (click event) on a region load? The default value of 0 (read-only) works when clicked, but doesn't when the page initially loads, and it's like the button click event needs to take place at the region load time. The values are 1 and 0 set statically if that matters, and the hidden value does not get changed when the radio button with the value of 1 is selected.
    The button makes the button visible when 'edit' is selected and the button disappears when 'read-only' is selected which is the expected behavior.
    I do have a condition on the 'save' button for the value to not be zero which is based on the value from the radio button.
    My gut says it'll be a region header attribute or Java Script sort of thing and I've not found anything so far, and I'm hoping there's an Apex guru out there that has a recommendation.
    Thanks in advance!
    Matt

    I used some source I found on Denes' web site and added the call, but it didn't yield the result I was hoping for.
    <script type="text/javascript" language="javascript">
    $s('P8_RADIO_BUTTON','0');
    function f_showhideButtonRadio(pThis, pValue)
    {     var show_or_hide = html_RadioValue(pValue);
    if (show_or_hide == 0)
    {html_HideElement(pThis);}
    else
    {html_ShowElement(pThis);}
    function f_showhideButtonSelect(pThis, pValue)
    {     var show_or_hide = $x(pValue).value;
    if (show_or_hide == 0)
    {html_HideElement(pThis);}
    else
    {html_ShowElement(pThis);}
    </script>
    I'm quite new to the Java Script in Apex, so if I hosed this up, please let me know. Also, does that set the click event on or does that just set the value? The reason I ask is with a 0 or 1 it yielded the same result.
    Thanks!
    Matt

  • Enable/disable/defaulting the radio button in tabular Form

    Hi friends,
    I have one radio button column in my tabular form with 3 values for it.
    <li>FC
    <li>BC
    <li>EC
    I need to enable/disable the radio buttons according to the position of the user.
    If the position of the user is CEO means,
    then FC radio button has to be checked defaultly and also for him he needs to have BC and EC radio buttons to be enabled.
    If the position of the user is between(1-4) grades means,
    then FC radio button has to be disabled, but BC radio button has to be checked defaultly and also for him he needs to have EC radio buttons to be enabled.
    If the position of the user is between(4-6) grades means,
    then FC, BC radio button has to be disabled, but EC radio button has to be checked defaultly.
    How i can achieve this radio button enabling/disabling and defaulting it dynamically according to the user.
    Where i need to specify this kind of restriction inorder to work for me in my application.
    Brgds,
    Mini

    Hi Bob,
    thanks for your reply first, and your suggestion too.
    I tried in the below manner on the lov definition of my radio button and it hide/shown according to the user who logs into the application.
    SELECT 'FC' d, 'FC' r FROM DUAL WHERE lower(:APP_USER) = (select lower(user_name) from apps.xxhy_ams_details_v where upper(job_name) = 'CEO')
    UNION ALL
    SELECT 'BC' d, 'BC' r FROM DUAL WHERE lower(:APP_USER) IN (select lower(user_name) from apps.xxhy_ams_details_v where grade_name
    BETWEEN 1 and 4 OR lower(:APP_USER) = (select lower(user_name) from apps.xxhy_ams_details_v where upper(job_name) = 'CEO'))
    UNION ALL
    SELECT 'EC' d, 'EC' r FROM DUALBut how i can check the radio button defaultly according to the user who logs in .
    <li> If the employee with the position CEO logs into the application means, he needs to have FC to be checked defaultly.
    <li> If the employee with the grade between(1-4) logs into the application means, he needs to have BC to be checked defaultly.
    <li> If the employee with the grade between(5-12) logs into the application means, he needs to have EC to be checked defaultly.
    Note:
    Instead of hide/show the radio buttons defaultly whether it is possible to enable/disable the radio button according to the user who logs into the application.
    Brgds,
    Mini...

  • Is there a way to present two or three radio buttons that will open up new fields based on the radio button pressed?

    What we want to do is ask our new clients their preferred method of billing: Credit Card, Invoiced, ACH.
    If they choose Credit Card, credit card info fields will show up.
    If invoiced, Billing Address field shows up.
    If ACH, bank account and routing number fields show up.
    Is this possible to do?

    Yes, this is one of the features of web-based forms in FormsCentral. You will use conditional elements (show/hide logic) to allow certain elements to hide or display.
    See this page for more info: http://helpx.adobe.com/acrobat-com/formscentral/help/edit-field-properties.html#conditiona l_form_elements
    You create all of your fields: Credit Card, Billing Address, and Bank routing and account number fields, and then only have them show up as a condition of which of the radio buttons the user selects.
    I hope this helps,
    Brian

  • Why are my radio buttons not renaming in pages spawned from a hidden template?

    Hi Everyone,
    I am new to PDF forms, and have never before tried to use JavaScripts. However, I have been able to learn a lot and I have followed many threads and have almost accomplished what I want, but have hit a block. I don't understand the JavaScript well enough to locate my problem. Your help is greatly appreciated.
    SYSTEM SPECS: Adobe Acrobat X Pro  Mac OS 10.8.5
    WHAT I WANT: To create a multi-page (100 pages) form for grading student assignments. Each page must have the same fields, but as each page belongs to a new student, it needs to have different values in the fields on different pages. Each page has 4 questions to score, with 4 score possibilities for each question (0, 1, 2, 3 points), and so only one score should be able to be selected per question.
    WHAT I HAVE DONE, following the directions on this thread (Re: Multiple pages form) ):
    1) Created a form with a field for student name and 4 sets of radio buttons (Labeled Questions 1-4, with score choices 0-3).
    2) Placed a button at the bottom of the page that will spawn a new page and rename fields.
    3) Defined this page as a template.
    4) Spawned a page.
    5) Made the template "hidden."
    THE PROBLEM: Steps 1-4 above work perfectly--as long as the template (named "Form") is visible, when I click the button, a new page generates and the student name field renames the fields on Page 2 to "P2.Form.Student ID #" and the radio buttons rename to "P2.Form.Question 1" etc. Each time I press the button, it renames everything appropriately.
    However, if I hide the template, then when I click the button on page 1, the fields on Page 2 are renamed to "P1.Form.StudentID ##1." AND THE RADIO BUTTONS DO NOT RENAME. They get the name "P1.Form.Question 1" etc. So the student name field did rename in a way that allows me to enter a new name on each page, but it isn't actually reflecting that I am on page 2, and as for the radio buttons, at that point, I cannot enter different scores on different pages because they are all part of the same radio button grouping.
    If I use check boxes, they rename similarly to the student ID field, but I don't want to use check boxes because I want to return one possible score value for each question for tabulating the data. I don't want to leave the template visible because when I distribute this form to other graders, they may enter values into the template page without realizing it, and then when the spawn forms they will have wrong data already entered.
    Here is the script that I have set as the button's Mouse Up script:
    // Specify the name of the template
    var template_name = "Form";
    // Get a reference to the template
    var t = getTemplate(template_name);
    // Add a new page based on the template
    if (t !== null) {
        t.spawn({
        nPage: numPages,      // Add the new page to end of document
        bOverlay: false,      // Create a new page, not an overlay
        bRename: true         // Rename the fields
    } else {
       app.alert("The template named \'" + template_name + " does not exist in this document.", 1);
    Thanks for your help

    Hi again GKaiseril,
    If you have the time, would you be able to tell me how to do that? I tried just changing the page number of the template page to zero, but I get the error "Please enter a starting value of at least 1."  I definitely noticed that all of the discussions about similar subject do all say to somehow put the first page of the form before the template and then hide the template, but I don't think that I know how to do that. I read your response on this discussion "Re: Self replicating form pages in Acrobat Pro 9 (Win XP)" before I ever started this discussion, but have to admit that I can't figure out how to follow your advice "When I create a from that uses a template, I create the template and then spawn the 1st page of the form before the template and then work out the scripting for the 1st page and template and then hide the template."
    Thanks

  • Problem with printing debug statements in JSP page

    Hi all,
    I am debugging an application with System.out.println() statements - my debug statements in the *.java class printed just fine, but when I do the same thing in my JSP page, nothing gets printed out.
    I am already wrapping my System.out.println() statements inside the <% %> tag.
    Does anyone know what may be causing this? Any help will be greatly appreciated!
    - JL

    Where do you expect to see the output?
    System.out.println will write to the console/logs
    They WON'T write to the JSP page.
    If you check your error/output logs you will probably find the statements there.
    If you want to print things into the JSP page, just use out.println.
    "out" is an implicit reference to the current JSPWriter.
    Cheers,
    evnafets

  • Urgent! pass parameters between jsp pages

    Does anyone can give an example about how to pass parameters between jsp pages?
    This is what I do:
    pageContext.forward("pag_loginc.jsp?p_idusr=" + strUsr + "&c_password=");
    But when deployed is not working.
    Help is needed.

    can you put that stuff in the session context in the first page, then pull it out in the second page?

  • When I flatten an acroform, the radio buttons no longer show as checked.

    If I don't call flatten (CFPDF....flatten="true"), the PDF shows the radio buttons selected, but as soon as I flatten the PDF, the radio buttons are not shown as selected. Checkboxes work, text fields work, but radio buttons just all show as unselected.
    This is on CF 9,0,1,274733. Has any one else seen this?
    Any suggestions?

    Yes, that setting disables the backgrounds and if button use a background image then they may become invisible.
    You can use the NoSquint extension to set font size (text/page zoom) and text color on web pages.
    *NoSquint: https://addons.mozilla.org/firefox/addon/nosquint/

  • Traversing between JSP Pages

    Hi!,
    I need a suggestion to this problem that i'm facing.I want to traverse between JSP pages which follow like a wizard.i.e,i click next to go to the next page & back to traverse back to the previous page.I have some text fields in the previous page that contain some info.When i click on Next it goes to the next page.when i click on Previous i want to be able to view the input contents in the previous page.I tried using < a href="">
    but it blanks all the fields ....
    Somebody help
    Regards,
    Chaitra

    Use theseus mvc framework. (http://sourceforge.net/projects/theseus-mvc). It will teach you to properly and cleanly right web sites the way they should be, where JSP pages server only as a "view", the action class (servlet hybrid so to speak) handles passing form data to logic, logic returns to action class that then populate the request that is passed on to the JSP page to make use, especially if you use a JavaBean or taglib.

  • Hiding the radio button

    Hi
    I have two radio group
    one is P4_Rate it has two type that i have written as page process as given below
    List of values definition
    STATIC:Ex_Factory Rate,Rate Inclusive of Transport
    2nd one is P4_Frieght_Type it has also two type that i have written as page process as given below
    List of values definition
    STATIC:Frieght Paid by Company,Frieght Paid by Customer
    Now i want to hide the item P4_Frieght Paid by Customer,
    when i click the radio button P4_Rate Inclusive of Transport,
    For this i have written the following javascript code
    <script language="JavaScript" type="text/javascript">
    function hide()
    var rv = html_RadioValue('P4_RATE');
    if (rv == 'Rate Inclusive of Transport')
    $x_HideItemRow( html_RadioValue('P4_FRIEGHT_TYPE')='Frieght Paid by Customer');
    else
    $x_ShowItemRow(html_RadioValue('P4_FRIEGHT_TYPE')='Frieght Paid by Customer');
    </script>
    but it was not working how to do this?
    any mistake in my code?
    Thanks & Regards
    rewa

    The following code works for me:
    <script language="JavaScript" type="text/javascript">
    function hide()
    var rv = html_RadioValue('P4_RATE');
    if (rv == 1)
    $x_HideItemRow('P4_FRIEGHT_TYPE');
    else
    $x_ShowItemRow('P4_FRIEGHT_TYPE');
    </script>
    Replace the 1 in if (rv == 1) by the value in your static list.

  • Using the radio button component to go to a frame on a MovieClip

    hello,
    I am using the radio button component in Flash with a continue button.
    When the user clicks their option in the radio button and then clicks continue, I want it to go to a movieClips Specific frame.
    Here is the breakdown and the script I have so far is below.
    The radio group os named RadioButtonGroup
    The instance names for each of the three options are noviceButton,intermediateButton,expertButton
    My continue button has an instance name of continueButton
    and my movie clip I am trying to target has an instance name of level_mc
    here is my code so far:
    continueButton.enabled=false
    noviceButton.addEventListener(MouseEvent.CLICK, revealContinue);
    intermediateButton.addEventListener(MouseEvent.CLICK, revealContinue);
    expertButton.addEventListener(MouseEvent.CLICK, revealContinue);
    function revealContinue(evt){
        continueButton.enabled=true;
    continueButton.addEventListener(MouseEvent.CLICK, clickContinue);
    function clickContinue(evt){
    var frameNumber=mc_levels.Number(noviceButton.group.selectedData)
    gotoAndStop (frameNumber);
    the problem starts with my varFrame line-I don't know how to get it to go to the movieClip and gotoAndStop at a specific frame, based on which radio button was clicked and after the continue button is clicked.
    Does anyone out there have any ideas?
    thanks
    babs

    use:
    continueButton.enabled=false
    noviceButton.addEventListener(MouseEvent.CLICK, revealContinue);
    intermediateButton.addEventListener(MouseEvent.CLICK, revealContinue);
    expertButton.addEventListener(MouseEvent.CLICK, revealContinue);
    function revealContinue(evt){
        continueButton.enabled=true;
    continueButton.addEventListener(MouseEvent.CLICK, clickContinue);
    function clickContinue(evt){
    var frameNumber=mc_levels.Number(noviceButton.group.selectedData)
    level_mc.gotoAndStop (frameNumber);

  • While opening a screen none of the radio button should not selected

    Hi,
    i have three radio button on the screens.By default the first radio button is getting selected for each and every time when ever i'm opening the screen.i dont want the default select should happen and even i dont want any of the radio button should be selected.
    how i can acheive through dialog programming.
    kind regards,
    Poornima.

    Hi,
    You can have radio buttons with any one field selected from a group .
    ex:
    selection-screen begin of block b2 with frame title text-042.
    parameters:r_detail    radiobutton  group g2 user-command cmd default
    'X',
           r_sumry   radiobutton  group g2,
           r_totals    radiobutton group g2.
    selection-screen end of block b2.
    or
    selection-screen begin of block b2 with frame title text-042.
    parameters:r_detail    radiobutton  group g2 user-command cmd,
           r_sumry   radiobutton  group g2 default 'X',
          r_totals    radiobutton group g2.
    selection-screen end of block b2.
    or
    selection-screen begin of block b2 with frame title text-042.
    parameters:r_detail    radiobutton  group g2 user-command cmd,
           r_sumry   radiobutton  group g2 ,
          r_totals    radiobutton group g2 default 'X'.
    selection-screen end of block b2.
    Else you can opt for checkbox and have all of them not checked.
    Regards,
    Dep

  • Calling a method in a bean when i clcked on the radio button of a table

    Hi,
    I need to call a method in the bean when i clicked on the radio button of a table
    I tried it , by callling the method in selectionListener..
    I can able to execute only System.out.prinln method,
    rather than that i am unable to execute any other expression..
    like setting rendering property to a component.
    Thanks in advance,

    Hi,
    what you say is not true. You can execute any code within a selection listener you want. If you can print then it shows the method s called and you can execute whatever you want within this method
    Frank

  • After upgrading to IOS 7.0.2 I can't see the radio button in the music app on my iPad

    The radio button does not show anymore in my music app on my iPad after I upgraded to IOS 7.0.2 - it did show briefly the first time I started the app after upgrading but immediately disappeared and is now gone for good. Don't have the issue with my iPhone at all. There it still shows - I tried to restore my iPad and again, opening the music app I was able to see the radio button for 5 seconds and than it disappeared. Any suggestion ?

    Following ultimately helped me : Make sure that you are logged in at the App Store App or iTunes App with your apple ID and password with a US account. Turn your iPad off and on and than you should see the Radio button again. It won't work if you are logged on with a foreign account. If you are not logged in at all, it worked, too.

Maybe you are looking for

  • Best way to convert InDesign stories to text doc?

    Is there a fast, easy way to convert multiple stories in ID to one RTF or Word document? I do quarterly publications that are composed of dozens (sometimes hundreds) of individual text frames, tables and graphics. The text comes from numerous sources

  • TS1398 the wi-fi tool on my ipod touch is not working.

    the wi-fi tool on my ipod touch is not working. i even can't turn it ON

  • How to design search field in webdynpro java iView

    Hi,       I created one webdynpro (java) iView.I want to design one search fields like Google on webdynpro iView.How to achieve this requirement?Can someone explain me in steps? Thanks, Kundan Edited by: Kundan 2009 on Feb 26, 2010 10:06 AM

  • Handling a very larger file from Sender system

    Hi Sdn, Can you please tell me, what should be done from an SAP+XI side to handle a very large file coming from the sender system to be posted to the receiver? What should be done in XI end so that there is no problem in handling the larger file. Tha

  • My applet doesn't work on Linux

    I've heard from some people working on Linux platform that my applet http://astro.ia.uz.zgora.pl/~nirgal/psren.htm doesn't work even if they have proper JRE plugin installed. The same people can run other applets on other web sites. The applet works