ADF - how to change the style of a user of JavaScript interface component?

Hello

I have a client page jsf with several components, in addition to the interaction works through JavaScript, it is because if you do hollow actions a managed bean, she has a delay, and must respond very quickly to the page.

What I need now is to change the color and the background color of some components via JavaScript.

Do you know how?

I tried something like

var ot = component.findComponent("componentId");
ot.style.color="red";

Or something like

var adfComponent = component.findComponent("componentId");
var adfComponentClientId = adfComponent.getClientId();
var div = document.getElementById(adfComponentClientId + '::content');
div.style.color="red";

But it did not work.

You have an idea?

Thanks in advance.

Kind regards.

Daniel.

See example 4-9

function color (event) {}

var inputComponent = event.getSource ();

inputComponent.setproperty ("inlineStyle", "background-color: Red");

}

http://docs.Oracle.com/CD/E16162_01/Web.1112/e16181/af_arch.htm#ADFUI10024

Tags: Java

Similar Questions

  • How to change the style of picture frame

    I would like to know how to change the style of table on the front. For the example below, I would like to remove the covered framework of gray color.

    I could not find the table style editor.

    First option: use the table on the classic controls palette, which has no border.

    Second option-

    1. Select the painting tool.
    2. Right click on the border.
    3. With open color dialog box, click the space bar. This toggles the color picker to work on color FG, the background color, or both. It is also described at the bottom of the color picker.
    4. When the two have been selected, you can make the frame completely transparent by selecting the color of T.
  • How to change the password for all users in the database

    Hi buddies!

    Could someone tell me how to change the password for all users in the database? I want to set the same password for all users.

    Thank you.

    Nith

    Published by: user645399 on March 1, 2011 14:23

    Write the file spooling
    as

    Make sure that all profiles has password_verify_function with a NULL value

    then

    Select 'edit user' | username: ' identified by ;' from dba_users;

    you will get the output... you just run.

  • PageNumbers: How to change the style of pagenumber?

    Normally, you change the style between letters as VII and numbers like 7 in the "layout" window by clicking on the button for "numbers". But in my iBook version 2.4.1 author is not any button like that. There are only functions for the lines, as you can see:

    What ist wrong? Can someone help me?

    Hello

    Try the iBooks author User Guide > https://help.apple.com/ibooksauthor/mac/

  • How to change the style of point of the last lot on multiplot XY graph programmatically?

    Hi all

    I have a multiplot XY Chart.  I want to change the style of the last plot point by program.  Any way to do it?  I tried and it looks like only the first property parcel is changeable by program.

    Thanks for any help.

    Anne

    ergwser wrote:

    Hi all

    I have a multiplot XY Chart.  I want to change the style of the last plot point by program.  Any way to do it?  I tried and it looks like only the first property parcel is changeable by program.

    Thanks for any help.

    Anne

    Nodes property can be resized by dragging down on them.

    resize the property node you re using and use a "Conspiracy Active" property to set the index of the plot of the plot you wan to act on.

    Also note that property nodes are running up and down, so the "active conspiracy" must be above the property where you specify the point style.

    Ben

  • How to change the style of the text of segmentedControl

    Hi all

    Is there a way to change the style of the text in a segmented control?

    The control works perfectly but the texts are so big and I can't change the fontSize of them.

    Someone at - it already do this?

    Thank you

    Because we can not style more standard controls of waterfalls, you can do this without re - implement the entire control, at least for now.

  • How to change the language settings in firefox using JavaScript

    My question is: how to change the language settings in the use of JavaScript in firefox:

    I want to set the value of intl.accept_languages en using JavaScript.

    How can I do?

    EDIT: The reason mail, I want to do is to be able to run selenium for different languages test scenarios with manually change them rather progrmmetically

    You will need to close and open the pref via user.js or prefs.js before restarting Firefox to perform the next test.

    See:

  • How to change the style of letter and size on the Thunderbird page

    On my homepage of Thunderbird, I want to change the letter format and style. Not in the new section of e-mail letters.

    The e-mails contained in the subject.

    Thank you

    Try to use the add-on theme font & size changer.

    Also:

  • How to change the style of the icons used on the tool bars mainly forward and back arrows

    Hello.
    He there always used to be a way to change the appearance of firefox arrowws ect for the moment I saw just type arrows forwards and backwards, I'd rather the older green arrows much easier to see and look much better how can I cange this now
    This is on Firefox 9.0.1 64 bit on Arch Linux current

    Under Linux, you can also select a pack of different icons like Tango such as used by the current theme.

    • GNOME: System > appearance > appearance > theme > customize
  • How to change the creator to a user account, or what I can?

    I created a user account for work purposes and the account name was the company I worked for so I switched companies and I changed the name of the user account to the new company, I work for.  Now if I had a post-it note, say, in an Adobe PDF file, when I consult my comment, it shows the comment I added, but also the preivous company name, so that I worked. I was able to fix this problem in the PDF properties, however, I don't want to take the risk to send him something to potential customers with the name "old."

    Is it possible for me to change the creator of user account without having me to delete the account?

    Hello

    Unfortunately, this can not be done.

  • How to change the username of a user in BI Analytics

    Hi the gems...

    I have number of BI Analytics users.
    Now, one of them wants to change his username (not the name that is displayed when it connects).

    is it possible to change the username?
    When I try to change it to the repository, then the username field is grey I means caant change from there. is there a way out?

    Please suggest... Thanks in advance

    No I don't think you can change the user name.
    You will need to create a new user and apply the same settings of security unfortunately.

    Concerning
    Adil

  • How to change the style of the mystery guitar man

    Hello.

    Im trying to edit a video for a compitetion, but it's hard! Its not like this kind of video. http://www.youtube.com/watch?v=rvuXnrjPfyM any help would be nice.

    rjgolfer wrote:

    Is there an easyer that way? I fell like a second-grade student who does not know how to cut, copy and paste. Laughing out loud

    Sure... Just go and buy this camera Canon Lens new 36. You will also need 36 Flash cards. Then rent 36 people so you can push all the buttons to record at the same time. Then import you clips into the Canon of 36-to-1 software. This will give you a perfect film of the 26 cases unique...

    All joking aside... How could it be any easier than just import your movies in AE, scale them, prune and export.

    easier to wipe your own Donkey after taking a dump ;-)))

  • How to change the style of FolderLink in outgoing mail?

    I use much characteristic Thunderbird FolderLink to attach big files. However, every time I use filelinks Thunderbird puts a html big with link to the attachment block, as shown in this screenshot: http://imgur.com/XexKeLK . Initially, it looks good and fancy but it very soon becomes very distracting, annoying and confusing to the recipient. Many times people confuse also with advertising! Also, when you use FolderLink, thunderbird would attach a file of 0 bytes with names like "Part1.2". So my question is:

    1. is it possible to simplify the html block generated by the function FolderLink? Just a clear link with can be the size of the file is good enough, at least for me. I tried to modify the HTML source of outgoing mail myself, but this isn't a solution because it must be done for each of the emails.

    2. can you Thunderbird not reach 0 byte files using FolderLink? It is also a source of confusion to the recipient.

    Thank you

    As suggested by christ1, switching to plain text email solves number 1 and it seems to work with all providers of FolderLink.

    Question 2 is not resolved by above workaround. However, I mark always this issue as resolved as first issue was the more boring for me. Thank you.

  • How to change the report based on users?

    Hi all

    I've created a report based on a table. Based on the users (Administrator, user), I want to change my appearance of report. But users are not available in this table. Users are not available in this area table.Common available.

    Req: If I enter as a user I want to not see that my documents.

    If I enter an admin I want to see all users folders.

    How to solve this problem.

    Please explain in detail.

    Thank you and best regards,

    Rambeau

    Hai raghu, pls mark closed this issue.its as a response!

  • Change the style of the drop-down list for the fill-in-the-white questions

    As the title says, I just want to know how to change the style, or at least font size in the drop-down lists to fill-in-the-blank questions. By default have a tiny font that is difficult to read, and a blocky interface. I can do to fix that?

    Hello

    I'm sorry, but this is not possible at the moment. If you fill a feature request (as I already did) to find out a better way to format these drop-down lists?

    Lilybiri

Maybe you are looking for