Radio Buttons with images

Hello everyone,
JDeveloper 11.1.1.7.0
Is it possible to have radio buttons with images instead of plain text?
If not, are you interested in having this kind of feature? I am ;-)
Thx.
Filip Huysmans

Hi Flip,
The user when switching between modes will fire an event to the server. This even needs to be caught in a bean and set a variable's value to either true or false.
Now you can treat "TRUE" to be in view and "FALSE" to be in edit mode.
Depending on this images can be changed.
Ex: your bean will be like
class catchMode{
private boolean mode;
public void changeMode(ActionEvent ae)
boolean modVal=this.getMode();
if(modVal) //if mode is true; i.e. view mode
     this.setMode(false);
else if(!modVal) //in EDIT mode
this.setMode(true);
//Generate accessors for mode
in JSPX:
<af:image source="#{catchMod.mode eq true ? 'view.png' : 'edit.png'}"
Also the partialSubmit for the command component will be set to true
Thanks,
Pandu

Similar Messages

  • How to differentiate between Radio Buttons with the same name?

    My form has two fields, to which I gave the same name ("Radio Button 1.0") in order to achieve mutual exclusivity.
    Now, I would like to use JavaScript to retrieve the value of one the two fields:
    var checkMark = this.getField("Radio Button1.0");
    if (checkMark.value == "Yes") {
    Questions:
    What is the proper way to inspect the value of a Radio Button? I have tried this:
    if (checkMark.value == "No") [...]
    but it doesn't seem to work.
    How can I tell apart 2 radio buttons with the same name?
    TIA,
    -RFH

    When Radio Buttons and Check Boxes are unchecked their value is "Off", so if you have "Yes", "No" buttons you will also encounter an 'Off" value. Now if you want to look at a given button, you will have to use the "isBoxChecked(nWidget)" method.
    nWidget:
    The 0-based index of an individual radiobutton or checkbox widget for this field. The index is determined by the order in which the individual widgets of this field were created (and is unaffected by tab-order).
    Every entry in the Fields panel has a suffix giving this index, for example MyField #0.
    Returns
    true if the specified widget is currently checked, false otherwise.
    Example
    var f = this.getField("ChkBox");
    if(f.isBoxChecked(0))
    app.alert("The Box is Checked");
    else
    app.alert("The Box is not Checked");

  • Radio Button with Submit Ready Only problem

    Hello,
    My radio button with submit ready only condition doesn't work correctly. When I click the a link on the first page
    it brings me to an update page. I have a radio button with submit, that won't open as a read only.
    It is being populated by SQL query, with the Null option selected. When I open the page I don't want the user to be able to edit the field unless they delete records associated with the field. Pretty much I want it to be disabled if the user has a record associated with it.
    Here are the queries.
    Source:
    SELECT OPLAN_IMPACTED_I
    FROM DFCY
    WHERE DFCY_SEQNO = :P12_DFCY_SEQNO
    Read only condition:
    SQL Exists query
    SELECT o.dfcy_seqno
    FROM oplan_impactd o, dfcy d
    WHERE o.dfcy_seqno = :p12_dfcy_seqno
    and :P12_OPLAN_IMPACTED_I = d.OPLAN_IMPACTED_I
    and :P12_OPLAN_IMPACTED_I = 'Yes'
    So when the page renders it's like you can change oplan, how do I make it read only when the page renders?
    Thanks,
    Mary

    Hi,
    If that is the source of the radiogroup, then it should be:
    SELECT OPLAN_IMPACTED_I d, OPLAN_IMPACTED_I r
    FROM DFCY
    WHERE DFCY_SEQNO = :P12_DFCY_SEQNOThis should return two values for each radio button - the displayed text and the returned value. If your radios do not have a returned value, then "Yes" will never be found. You can check this by loading the page and doing a View Source on it - search for RADIO and check what "value" attributes they have.
    Andy

  • Radio buttons with dropdowns?

    I'm creating a form for my company's HR department, and I need some radio buttons with dependent dropdowns.
    In other words, I'd like (for example) three radio buttons. No dropdowns appear until one of the buttons is selected, and then the appropriate dropdown appears. Is this possible? Or is there a better way to do this? I don't want the unselected dropdowns to be available.
    I have Pro 9 for Windows and Pro X for Mac. I know virtually nothing about scripting, but I know that it can be done.
    Thanks in advance for any help!
    Theresa

    Do I add this code to the group's action, or to individual radio button actions?
    To each individual radio-button.
    Do I make the dropdowns visible or hidden?
    Their visibility will be determined by the state of the radio-buttons. As default you can set them to be hidden, when no radio button is selected.
    Do I put any code in the dropdown properties, or just in the radio button properties?
    Just in the radio buttons.
    And when you say "embed this code at the doc-level," what does that mean?
    Go to Advanced - Document Processing - Document JavaScripts...
    Create a new script, remove the default text that appears in the window and paste the code I provided instead.

  • Printing Buttons with Images

    In my application, I am attempting to print a document that has both buttons with text and buttons with images, along with plain text.
    When I print, the buttons with the images are larger than they ought to be (i.e. they don't fit within the area they were suppose to be drawn within (btw, for this application, I am using absolute positioning)).
    However, this does NOT occur with the buttons that have only text and no image.
    Can anybody tell me why this might be? It seems that to printing a JButton comes from the functionallity of JComponent.print, which simply sets a few printing flags and calls JComponent.paint.
    So whatever changes those flags make, I would think they ought to effect all buttons the same?
    Has anybody else run into this problem, and possibly found a solution for it?

    myJButton.setSize(new java.awt.Dimension(<width>,<height>));
    that line should do it. keep in mind that that will not resize your image. since you are using absolute positioning I will assume your button is of constant size. you should manually resize your images to be of the proper size for your buttons.

  • Add radio button with script

    Hi All
    On my form i have RadioButtonList with one radio button in it. I want to do next, on button click new radio button into the RadioButtonList should appear. I tried something like this:
    var oNode = xfa.form.createNode("radioButton");
    questionary.#subform[0].RadioButtonList.nodes.append(oNode);
    but got an error "argument mismatch".
    Could you help me with this issue?

    Hi Mike,
    Thanks for the quick info.
    There is no text to edit. I have a box with a radio button at the far right side.
    When I right-click on the radio button I get the following options: Cut, Copy, Paste, Delete, Rename Object..., Change Object Type>, Send Backwards, Send To Back, Palettes> and Add to Library...
    When I tried the Radio Button in a document created in LC it workd as you mentioned. It is only when I import a PDF file.
    I figure I probably have something configured incorrectly. I am using PDF 1.7 (Acrobat 8) when distilling.
    I also noticed that some of the items in the Standard libarary are grayed out: Circle, Content Area, Image, Rectangle, Text, and Subform.
    Lee

  • PSD Rollover Button with image in front stops button from changing state

    I have a wide PSD button that changes state when rolled over. I would like to place a PNG image with transparency in some areas over the top of it so that the rollover button shows through the transparent areas of the PNG.
    How can you get it to do the rollover effect when the user mouses over the bit of the button that the image is in front of? Is ther a way of making the PNG 'invisible' to the mouse?
    I know I could redesign the button so that it includes the image but I'm trying to keep file sizes and load times to a minimum, I use this button a lot on my website with a different on each, and having that number of individual buttons would result in a bloated, slow-loading website.

    Hi Abhishek
    Thanks for your reply. I was able to achieve the effect I wanted by having the PNG and the PSD Button with the same link and then grouping them. This means I can mouse over the PNG and still get the PSD rollover effect, which is perfect.
    However I also have another similar problem. I have some different PSD Rollover Buttons which have some text in front of them (basically it's the button label). On some of these buttons when you roll over the text it prevents the rollover state of the button, and on other buttons the rollover effect occurs as it should, and there doesn't appear to be any consistency about which does what. Grouping or ungrouping doesn't appear to make a difference. Can you help?

  • Replace Buttons with Images.

    Folks,
    I have buttons in my application which perform a certain functions
    by clicking on them.
    I want to replace the buttons by gif/jpg images,so that when the
    user clicks on them,it does the same set of functionality as discussed
    above.
    HOW CAN I REPLACE THE BUTTONS with Gif and implement the actionListener??

    Hello,
    there are several methods to set the icon for the button like setIcon and setRolloverIcon etc. You better setContentAreaFilled(false) if you want an icon-only button. Have a look at [url http://java.sun.com/j2se/1.4.2/docs/api/javax/swing/AbstractButton.html]AbstractButton for further information.
    Regards,
    Tim

  • Click radio button with Apple Script

    I have something like this going on at the moment:
    tell application "Adobe Reader"
           activate
    end tell
    tell application "System Events"
           tell process "Adobe Reader"
                  click menu "file" of menu bar 1
                  click menu item "Print..." of menu "file" of menu bar 1
                  click radio button "pages" of window "Print"
                  --click button "Printer..." of window "print"
                  --click menu button "PDF" of window "Print"
                  --click menu item "Save as PDF…" of menu 1 of menu button "PDF" of window "Print"
                  --keystroke "D" using {command down, shift down}
                  --keystroke "G" using {command down, shift down}
           end tell
    end tell
    How do I click the radio button "Pages" in the print dialog box under "pages to print" with applescript?
    Thanks

    I ended up using key codes to tab using control down to get to it, which works for me.

  • Button with image in JSP

    In JSP, how could we create a button with an image on it.
    Normally in JSP we use something like :
    <input type="submit" name="ButtonName" value="Submit"> to create a button
    and we use < request.getParameter("ButtonName")> to invoke it.
    How can we create a button with an image? and how to invoke the button. Thanks.

    Not too sure how you are invoking with the request.getParameter() (I'm still fairly new to JSP), but you can certainly create a submit button with an image by using:
    <input type="image" src="buttonimage.gif" height="100" width="100" name="ButtonName" value="Submit" />(Where or course src, width and height are dependant on your image.)
    Hope that helps.

  • How to check Radio buttons with Differfent button values

    Good Day,
    I am currently trying to write a script that would hide 5 of 6 radio buttons
    I have a radio button called "3. Transfer"
    with values of :
         Yes;
         Supp;
         Reg; and
         do_not_transfer
    as well I have a drop down called "REL.ITEM"
    with values of
              3(A);
              3(B);
              4(A);
              4(B); and
              4(C)
    I know how to get the value of the box and manipulate other fields
    like
    //START
    var transfer = getField("3. Transfer").value
    var relitem = getField("REL.ITEM").value
    if (transfer = "Yes" || transfer = "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
         getField("a. recommend").checkThisBox(0,true);
         getField("a. recommend").display = display.visible
        getField("a. I do not recommend").checkThisBox(0,false);
        getField("a. I do not recommend").display = display.hidden
    else if (transfer = "do_not_transfer")
         getField("a. recommend").checkThisBox(0,false);
         getField("a. recommend").display = display.hidden
         getField("a. I do not recommend").checkThisBox(0,ftrue);
         getField("a. I do not recommend").display = display.visible
    //END
    I would like to make it so that if REL.ITEM != 4(A); 4(B); 4(C) that the radio box's with values of "Yes", "Supp" and "Reg" are hidden while "do_not_transfer" is still displayed and checked.
    I've been going through forums, google and acrobat documentation and I can't seem to find what I'm looking for.
    Thanks for your help in advance.

    if (transfer = "Yes" || transfer = "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
    This should be:
    if ((transfer == "Yes" || transfer == "Supp") && (relitem == "4(C)" || relitem == "4(B)"))
    Similarly,
    else if (transfer = "do_not_transfer")
    should be:
    else if (transfer == "do_not_transfer")
    In order to work with an individual widgets of a form field, obtain an object that represents the widget using the getField method as specifically demonstrated in example #2 in the documentation: http://livedocs.adobe.com/acrobat_sdk/9.1/Acrobat9_1_HTMLHelp/JS_API_AcroJS.88.476.html

  • How to display Radio buttons with default selection on

    Hi
    I want to display Radio buttons using jsf
    i have done it using
    <h:dataTable id="apartmentList" value="#{userBean.allApartmentList}"
                   var="apartments">
                   <h:column>
                        <h:selectOneRadio id="selectedApartment" onclick="javascript:setSelectedApartment(this);">
                             <f:selectItem itemValue="#{apartments.apartmentVO.apartmentId}" />
                        </h:selectOneRadio>
                   </h:column>
    inside a data table
    now when i click some page i want to display the radio's with default radio button selected
    also when i select one radio button and click on some command button
    eg:<h:commandButton action="#{userBean.setSelectedApartment}"
    the Radio button's Selection should not disappear
    i have written a javaScript
    function setSelectedApartment(oRadio)
              oForm = oRadio.form;
              elems=oForm.elements;          
              for(iIndex=0;iIndex<elems.length;iIndex++)
                   if(elems[iIndex].type == 'radio')
                        if(elems[iIndex].name != oRadio.name)
                             elems[iIndex].checked=false;
              document.getElementById("apartmentListForm:selectedApartmentId").value=oRadio.value;
    To check which Raio button is Selected
    How do i show the Default Selected button and How the selection should not disappear
    Can any one suggest me links or the solution to this problem
    Thank you
    Geetanjalee

    -set the value binding expression of select items to a request scope bean
    - on the page load event() ,do
    setdefaultval("ur default value")
    so each time on the page load it sets the default value. and you can get selected value by getdefaultval()
    --raju                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Buttons with images in web!!! Please help-me!!!!

    I want to publish mine forms 6i in web. They have buttons with figures. I already converted the figures of .ICO for .GIF. I already read diverse papers on the subject but I did not understand them. What I must make now?
    I need step-by-step that to make now, therefore I have stated period to carry through this task and is if depleting. Who to know, please says which archives to me must edit, where to place the figures, etc.
    Thanks!!!!!

    Joao,
    There is Registry.dat file in which there are two items:
    default.icons.iconpath=
    default.icons.iconextension=
    My Registry.dat contains this:
    default.icons.iconpath=/nis-img/
    default.icons.iconextension=gif
    The url /nis-img/ is defined in httpd.conf (I use Apache).
    kind regards,
    Ivan
    I want to publish mine forms 6i in web. They have buttons with figures. I already converted the figures of .ICO for .GIF. I already read diverse papers on the subject but I did not understand them. What I must make now?
    I need step-by-step that to make now, therefore I have stated period to carry through this task and is if depleting. Who to know, please says which archives to me must edit, where to place the figures, etc.
    Thanks!!!!!

  • Radio buttons with same groupName in different MCs

    In my application, I have a set of three radio buttons that
    should all belong to the same radio button group. However, I need
    to put them into separate movie clips. Setting the group name for
    all three to the same string doesn't do anything (neither does just
    leaving it to default).
    Is there some way I can get this to work, or am I just going
    to have to work around it?

    Here is some sample code to explain what I am trying to
    do:

  • Flash button with images

    hi,
    I want to create a flash button,& for the button
    different images should load for press & release events. also I
    want to reuse this button. Please can someone tell me how to do
    that

    you'll need to use server-side scripting to handle part of the file upload and the file name retrieval from the upload folder.  assigning the uploaded files names you'll do from flash.  you'll use another script to retrieve the file names and in flash load and display which ever subset you want.

Maybe you are looking for

  • It does not load List in Task List side panel. How to fix?

    I access Google Task on web with no problem, but my newly installed Thunderbird does not show tasks in the Task List Side Panel. Does anyone have a fix? Thank you Stephen

  • Dynamic Linq with Where and ObjectParameter doesn't work

    Hello !  I have this code : Imports System.Linq.Dynamic Dim mylist As IQueryable(Of Myobject) Dim ob1 As New List(Of ObjectParameter) Dim dynstr as string=string.empty dynstr += "it.id= @id" ob1.Add(New ObjectParameter("id", 26)) mylist=context.MyObj

  • IPod very messed up

    okay, so the other day i went to turn on my iPod and it said the battery was very low, so i went to plug it into the computer to charge, and it got stuck on the "do not disconnect" screen. i attempted to reset the iPod and all it did was flash the ap

  • Camera Raw - Lens Profile Correction

    I'm just beginning to work with Photoshop CS5.  When I was editing with the camera raw features; I discovered that there had not been a "Lens Profile Correction" loaded for my Panasonic Lumix DMC-L10 with a Leica lens 14-150.  I"m looking for a metho

  • Windows Login Dialogue in LabVIEW

    Hi Erveryone, I want to show the Windows Login Dialogue from LabVIEW application for Windows level authentication and check if the user is member of a specific group. I have developed a code which validates the credentials and then if the credentials