LinkBar: how to set a selected button's background color?
I was able to set the text color of a selected LinkBar button by "disabledColor" style of LinkBar. Accordingly, I expect to set the background color of the selected button by "backgroundDisabledColor" style, however, it didn't work; and except "backgroundDisabledColor", I didn't see any other style that could possibly achieve this. Please help. Thanks.
Solved this myself by writing a programmatic skin and set it to LinkButton's disabledSkin.
Similar Messages
-
ADF Faces : How to set the selection button in a managed bean
I am looking for a way to select the selection radio button of a specific row in a Table when using af:tableSelectOne.
I am using the tableModel to manage row but I did not find a way to select the row.Have you implemented a CollectionModel?
If so, then you must know the rowKey of the item you want to select in the table.
simply bind the "selectionState" attribute of the <af:table> to point to your RowKeySet instance that has the rowKey of the item you want selected. -
How to set Disabled Text field's Background color
We have an Applet application which we are running with Java Plug-in 1.5.0_11. We have Grey back ground for all the pages. When the text fields are in editable mode the text color is in black. When they are in non editable mode the text color changes to opaque green (with grey background page color) which is hard to read.
The same application with Java Plug-in 1.4.2_13 did not had this color problem. When text fields were disabled they appeared as dark grey which was easy to read.
We are using
import javax.swing.JTextField;
Is it a bug in newer Java Plug-in? Is there a work around for this?
Thanks for any help and suggestionsSolved this myself by writing a programmatic skin and set it to LinkButton's disabledSkin.
-
How to set default selected checkbox in af:tableSelectMany /
Hi,
I am new to ADF technology, I am using JDev 10..3g.
I want to set the checkbox as default selected for particular rows.
but I don't know how to set default selected checkbox in <af:tableSelectMany />
Is there any way to do this using ADF<af:tableSelectMany />
Thanks,
MohammedHi Jeroen,
Thanks for reply. but the problem is that I am getting data from database and based on some flag I need to select checkbox while page is loading first time.
at that time the table is null as till now it not rendered. and when its rendered it means page is displayed now.
just before display I need to set checkbox as selected.
I don't want to do like this (when user is pressing any command button then only is should update checkbox selection).
Thanks,
Mohammed. -
How to set default selection in html:radio
hai
how to set default selection in <html:radio>.No it won't help.
You can't set a value into an <input type="file"> control at all. The user has to put values in themselves.
The reason behind this is security. If the programmer could put any value they liked in there, you could upload any file at all from a users computer without their intervention. eg C:\windows\system32\passwords.txt
Bottom line: you can't put a default value into the input type="file" control.
And a good thing too ;-) -
How to set forms 11g buttons to display icons
Hi,
How to set forms 11g buttons to display icons.Actually i have tried so many links
http://blog.newtrics.com/?p=936
Re: Icon image not showing in forms 11g RELEASE 2
but i am not getting image on the Oracle Form.Bad Image is always showing.
I am trying from 1 week So plz help me Its very urgent .
Thanks
Anup
Edited by: 888679 on May 22, 2012 4:37 AMam afraid u r configuring the wrong file path pls verify....
formsweb.cfg
path = c:\Oracle\Middleware\user_projects\domains\<my_domain>\config\fmwconfig\servers\WLS_FORMS\applications\formsapp_11.1.1\conf
registry entries as well
Hope this helps...
Regards,
Amatu Allah
Edited by: Amatu Allah on May 22, 2012 6:17 AM -
How to set up selected ringtone in i-phone 5...?
hi, please help
how to set up selected ringtone in i-phone 5...?i mean if i want to select my own song from i-tune and want to set it as a ringtone...then how is it done..?
-
How to create a radio button that changes colors
I'm using Acrobat X and ID CS5 on Mac OS X.
A couple of years ago someone on the forums explained to me how to create a button that changes color with each click. You can view a sample PDF at https://dl.dropboxusercontent.com/u/52882455/colorcycle.pdf. They gave me the document JS and showed me how to set the properties of the button. I've integrated the button into a particular series of PDF forms and it's worked out very well.
Now I would like to do the same thing, but using a circle instead of a square. Can anyone tell me the best way to do this? Can I somehow set a radio button to cycle through colors in the same way? I design my forms initially in ID CS5 and then activate and format the fields in Acrobat X. I've tried using circles instead of squares in my ID document, but when I export to an interactive PDF, they're converted to squares.
Any ideas?I understand how to make buttons cycle through colors-- the problem I'm having is that I'm trying to figure out how to make a circular button cycle through colors. When I export my ID document to PDF, my round button maintains it's original appearance, but when I click on it to cycle through the colors, it behaves like a square (see new PDF at https://dl.dropboxusercontent.com/u/52882455/colorcycle2.pdf).
If I use a radio button, I can get it to cycle through colors, but I don't want it to have a black dot in the middle. Is there a way to format the radio button to not show the black dot when clicked? -
How to set a image as a background in a frame
How to set a image as a background in a frame
The following code works well in Notepad command prompt but it is not working on netbeans
I want to set a background image in a frame(awt or swings ny will do) or a panel through netbeans
1. import java.awt.*;
2. import java.awt.event.*;
3.
4. public class ImageFrame extends Frame
5. {
6. private ImageCanvas c;
7. private Image i;
8. ImageFrame( Image i )
9. {
10. this.i = i;
11. c = new ImageCanvas( i );
12. add( c );
13. }
14.
15. public static void main( String[] args )
16. {
17. Toolkit tk = Toolkit.getDefaultToolkit();
18.
20. Image im = tk.getImage( "WashuChan.gif" );
21. ImageFrame f = new ImageFrame( im );
22. f.addWindowListener( new WindowAdapter()
23. {
24. public void windowClosing( WindowEvent e )
25. {
26. System.exit( 0 );
27. }
28. } );
29. f.setSize( 300, 300 );
30. f.show();
31. }
32.
33. private class ImageCanvas extends Canvas
34. {
35. Image i;
36.
37. public ImageCanvas( Image i )
38. {
39. this.i = i;
40. }
41.
42. public void paint( Graphics g )
43. {
44. g.drawImage( i, 0, 0, this );
45. }
46.
47. public Dimension getPreferredSize()
48. {
49. int w = i.getWidth( this );
50. int h = i.getHeight( this );
51. return new Dimension( w, h );
52. }
53. }
54. } -
How to set a radio button to be selected?
I'm trying to find out how to do something that should be seemingly simple. That is to create a little function that selects a random radio button as selected. I have 3 radio buttons in a group (see code):
</mx:ApplicationControlBar>
<mx:RadioButtonGroup id="radiogroupZ"/>
<mx:RadioButton x="10" y="608" label="Button 1" groupName="radiogroupZ"/>
<mx:RadioButton x="10" y="634" label="Button 2" groupName="radiogroupZ"/>
<mx:RadioButton x="10" y="660" label="Button 3" groupName="radiogroupZ"/>
I've tried all kinds of code to try to set Button 1, 2 or 3 as selected but the compiler keeps giving me errors.
Can someone give me an example of a simple function that will set one of these as highlighted? All I need is the code that basically says for example: "Select Button 1 in the group "radiogroupZ to be selected".
Thanks// This will have the first button selected.
<mx:RadioButtonGroupd id="radiogroupZ" selectedValue="somethingHere1"/>
<mx:RadioButton x="10" y="608" label="Button 1" value="somethingHere1" groupName="radioGroupZ"/>
<mx:RadioButton x="10" y="608" label="Button 1" value="somethingHere2" groupName="radioGroupZ"/>
<mx:RadioButton x="10" y="608" label="Button 1" value="somethingHere3" groupName="radioGroupZ"/>
// To select something in a function
private function functionName():void
radiogroupZ.selectedValue = "somethingHere1"; -
How to set default selection in tableSelectOne
Hi Friends,
How to set tableSelectOne through backing bean.
I am opening a child window which will populate the list in table format. I am loading it through manually. Now i want to set the first record to be selected. Kindly let me know how to do it.
The below is my code in jspx
<af:table emptyText="#{mofRes['mofEgov.po.noItemsFound']}" rows="5" banding="row"
bandingInterval="1" binding="#{BeneficiaryTableHandler.beneficiaryTable}"
value="#{BeneficiaryTableHandler.beneficiaryTableModel}" var="rowBeneficiary"
id="table2" width="900">
<f:facet name="selection">
<af:tableSelectOne binding="#{BeneficiaryTableHandler.beneficiarySelectOne}"
id="tableSelectOne"/>
</f:facet>
<af:column sortable="false" sortProperty="bankName"
headerText="#{mofRes['mofEgov.supplier.bankName']}"
binding="#{BeneficiaryTableHandler.beneficiaryColumn3}"
id="beneficiaryColumn3" formatType="icon">
<af:outputText value="#{rowBeneficiary.bankName}"
id="beneficiaryOutputText3"
binding="#{backing_apps_po_POBeneficiaryOutput.beneficiaryOutputText3}"/>
</af:column>
<af:column sortable="false" sortProperty="bankActName"
headerText="#{mofRes['mofEgov.supplier.bankActName']}"
binding="#{BeneficiaryTableHandler.beneficiaryColumn1}"
id="beneficiaryColumn1" formatType="icon"
gridVisible="true">
<af:outputText value="#{rowBeneficiary.bankActName}"
id="beneficiaryOutputText1"
binding="#{backing_apps_po_POBeneficiaryOutput.beneficiaryOutputText1}"/>
</af:column>
</af:table>
Below code used in backing bean to create rows in the table
for (int rwIndx = 0; rwIndx < siteLiseSize ; ++rwIndx) {
beneficiaryBean = (BeneficiaryBean)beneficiaryList.get(rwIndx);
handler.createRow(beneficiaryBean);
logger.log(Level.INFO," --- Bank Name --- :"+beneficiaryBean.getBankActName()+": --- Bank Act No -- :"+beneficiaryBean.getBankActNo());
public void createRow(BeneficiaryBean bean) {
//logger.log(Level.FINE," ---- createRow Start --- ");
((Collection)beneficiaryTableModel.getWrappedData()).add(bean);
//logger.log(Level.FINE," ---- createRow End --- ");
Thanks & Regards
VBThis is probably too late to help, but I had a similar situation. There are a couple of ways to solve this.
1. Set the ID values on the af:form, af:table, and af:tableSelectOne tags, and write some javascript code to select the first radio button, in the event there are no radio buttons selected. Something like this would work.
function selectFirstRadio() {
radioButtons = document.myform['mytable:myradios'];
anypressed = false;
for (i = 0; i < radioButtons.length; i++) {
radioButton = radioButtons;
if (anypressed.checked) {
anypressed = true;
if (!anypressed) {
document.myform['mytable:myradios'][0].checked = true;
This would have an af:form with an id='myform', an af:table with an id='mytable', and an af:tableSelectOne with an id='myradios'
The other method I used was, in the accessor for getting the value for the af:table was this:
public DataModel getMyModel() {
RowKeySet selectedItem = myTable.getSelectionState();
if ((selectedItem == null) || (selectedItem.getSize() == 0)) {
Object o = myModel.getWrappedData();
List rows = (List)myModel.getWrappedData();
try {
selectedItem.getKeySet().add( "0" );
} catch (Throwable t) {
t.printStackTrace();
return myModel;
}'myTable' is a binding from an af:table to a UIXTable.
I should add, this is for ADF 10.1.3.x, not ADF 11.
Best of luck.
Edited by: daiken on Mar 27, 2009 7:13 AM -
TreeByNestingTableColumn - how to set lead selection?
Hallo Guys!
I am using TreeByNestingTableColumn in my project. I am searching for a way to select a certain context element inside of the tree shown in such a table. I actually know that setLeadSelection doesnt work properly in such a case.
Ive already read this very helpful blog /people/valery.silaev/blog/2005/06/20/master-of-columns-part-ii searching for a solution, but its seemed not to be there.
Valery had shown how to read the selected context element recursively, but there is nothing about to how to set the needed lead selection for a certain one.
In my scenario, I am loading the whole table (10-15 elements) with only two levels of hierarchy. After the user clicks on a button I have to reload this table but keep the selection of the previously selected element.
The try using getTreeSelection didnt succeed either.
Any ideas?
Many Thanks
Dimitri
Edited by: Dmytro Lubenskyy on Apr 1, 2008 3:44 PMHi,
You can use the following methods to set the selection.
IWDNodeElement nodeElement = wdContext.nodeOrders().getElementAt(2);
wdContext.nodeOrders().setTreeSelection(nodeElement);
Regards
Ayyapparaj -
How to set / reset radio buttons in screen..
hi,
i have 4 radio buttons in my screen, initially only the first one must be active and all other must not be in selected state. at any point of time only one must be selected and based on the selection the subscreen area must be filled with the subscreen.
whats the code to check if the radio button is selected or how to set the action for the radio button selection ?
also whats the statement to reset the radio button ?
thksYou put them all in a radiobutton group.
For example:
PARAMETERS: rb_pres RADIOBUTTON GROUP rbf,"Presentation Server Files
rb_app RADIOBUTTON GROUP rbf."Application Server Files
The first one is defaulted to "X", but you can also do that yourself.
You check the value = "X" to see which is selected or say IS NOT INITIAL.
Hope this helps,
Mark -
How to set up one-button embed-hotlinking for Flash SWF?
Hello,
I'm publishing a webcomic in Flash.swf format and I'd like to make it as easy as possible for people to grab my comic and put it on their website. How can I set up one-button hot-linking that will automagically provide the code so that they can easily drop it into their website, similar to the way YouTube does with video?
Thanks,
Tomyou can use the following. the bolded lines require you to use appropriate values:
<div id="flashContent">
<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="yourswfwidth" height="yourswfheight" id="swfname" align="middle">
<param name="movie" value="http://www.yourdomain.com/path/swfname.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="true" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--[if !IE]>-->
<object type="application/x-shockwave-flash" data="http://www.yourdomain.com/path/swfname.swf" width="yourswfwidth" height="yourswfheight">
<param name="movie" value="http://www.yourdomain.com/path/swfname.swf" />
<param name="quality" value="high" />
<param name="bgcolor" value="#ffffff" />
<param name="play" value="true" />
<param name="loop" value="true" />
<param name="wmode" value="window" />
<param name="scale" value="showall" />
<param name="menu" value="true" />
<param name="devicefont" value="false" />
<param name="salign" value="" />
<param name="allowScriptAccess" value="sameDomain" />
<!--<![endif]-->
<a href="http://www.adobe.com/go/getflash">
<img src="http://www.adobe.com/images/shared/download_buttons/get_flash_player.gif" alt="Get Adobe Flash player" />
</a>
<!--[if !IE]>-->
</object>
<!--<![endif]-->
</object>
</div> -
How to remove multiple selections button in LDB selection screens
Hi Friends,
I am facing a problem while doing an HR object. I took an LDB with Selection screen '100'. i got the company code select-option in it. But i need to avoid multiple selection button so that i have to take only a single company code to print the ALV heading as the company Text. Please tell me quickly, how can i do it.
Regards,
Santosh.You may have to do something like below where S_BUKRS is your company code select option of the LDB.
REPORT zakstest1 NO STANDARD PAGE HEADING.
TABLES t001.
TYPE-POOLS: sscr.
SELECT-OPTIONS s_bukrs FOR t001-bukrs.
INITIALIZATION.
*-- Remove the the ranges option
PERFORM remove_ranges_for_sel_options.
*& Form remove_ranges_for_sel_options
* text
FORM remove_ranges_for_sel_options.
DATA: optlist TYPE sscr_opt_list,
restrict TYPE sscr_restrict,
*** TYPE sscr_***.
*-- Allow EQ only
CLEAR optlist.
optlist-name = 'EQ_ONLY'.
optlist-options-eq = 'X'.
APPEND optlist TO restrict-opt_list_tab.
CLEAR ***.
***-kind = 'S'.
***-sg_main = 'I'.
***-sg_addy = 'N'.
*-- Make S_BUKRS range to have only EQ
***-name = 'S_BUKRS'.
***-op_main = 'EQ_ONLY'.
APPEND *** TO restrict-***_tab.
CALL FUNCTION 'SELECT_OPTIONS_RESTRICT'
EXPORTING
restriction = restrict
EXCEPTIONS
too_late = 1
repeated = 2
selopt_without_options = 3
selopt_without_signs = 4
invalid_sign = 5
empty_option_list = 6
invalid_kind = 7
repeated_kind_a = 8
OTHERS = 9.
ENDFORM. " rem_ranges
Maybe you are looking for
-
Call transaction skip first screen
Hi experts, Iam working on dialog programing.As soon as i save the data i want to clear all the fields and i should be able to enter new record.So i have given CALL TRANSACTION 'TCODE' AND SKIP FIRST SCREEN. Since it is loading the new screen, iam mi
-
Audio feedback on quiz buttons
Is there any way to add audio feedback to an automatically generated quiz button when it has been clicked e,g the submit button, undo button etc? I have put audio feedback on smart shape buttons via advanced actions but an advanced action cannot be a
-
Since I changed the operating system Windows 7 32bit to 64bit I can not use Firefox browser unless change the browser to safe mode.When i start it the browser is not open and appears a message Mozilla Crash Reporter == Crash ID(s) == 20100611143157 =
-
Disable eefects in after effects cs6
who can enable effects in after effects cs6?all are disable!
-
How to have bookmarks library constantly open?
Is it possbile to have my bookmarks list as a separate window similar to opera or internet explorer, you can attach it to the right or left of the screen, clicking the bookmarks you want to open. i only found the library window but everytime i open a