Detect what field called java getter/setter - jdev 11.1.2.3

Hello:

I have an af:output field and the value of this comes from a bean to support.

I'm trying to make the more generic support bean. (to work with more than one field)

Is it possible in java to detect the field that calls the method?

Now, I must have a separate for each field method, because I need in each method of the value, and I understand not with what follows in the bean:

String val = "#{rank." DueDate}"then getValueExpression()...

In essense, cela hard codes the method on the field and I want to break this hard coding.

Is it possible, within a bean, to detect the field by calling the method?

Almost as if I could pass a parameter to the java method that identifies the scope of the method call?

Any ideas?


Thank you

Hello
If understand your case, you must add f: attribute to the field, and in the method, you can read the value of the attribute.




  
    
      
        
      
    
  

package view;

import java.util.Map;

import javax.faces.component.UIComponent;
import javax.faces.event.ValueChangeEvent;

public class Test
{
  public Test()
  {
  }

  public void testMe(ValueChangeEvent valueChangeEvent)
  {
    // Add event code here...
    UIComponent component = valueChangeEvent.getComponent();
    Map attributes = component.getAttributes();
    String object = (String) attributes.get("myParam");
    System.out.println(object);

  }
}

Tags: Java

Similar Questions

  • I have problems with my system trying to detect what is called a SM Bus controller, I can't find an update for this anywhere?

    www.tomshardware.com/Forum/244238-45-Controller, I tried this site to find updates

    Hello

    1. What is the model of the computer and do?

    2 have you done any recent software or the hardware changes on your computer?

    SM Bus controller is the Controller of Bus management system and that your computer will work better if you find the right drivers for your motherboard. SM Bus controllers usually come as part of the Chipset drivers.

    You will need to find the good your motherboard chipset and download then install the drivers for SM Bus controller.

    Provide us with more information about the configuration of your computer so that we are able to help you the best.

  • What number to call to get warranty service?

    The HP Web site has apparently deleted or any telephone number a cleverly hidden could call to get warranty service.  My PC 5 - months, has lost its wireless capability.  Given that the wireless is the main method of Internet connection, I would like to make a difference.  -Where or what is the number?

    Thank you.

    George

    The phone number can be found here, the page is valid. It is likely that your link was the 404 error.

    Most WiFi connection loss goes back to initialization problems. Unplug the cable from WiFi for 30 sec. Then re - connect the power supply. Don't forget to restart the computer after the re-connection wi - fi power.

  • Whenever I start my PC, I get a Windows program that is trying to install what is called a sound Module of Activation.

    Original title: Windows Sonic Activation Module.

    Whenever I start my PC, I get a Windows program that is trying to install what is called a sound Module of Activation. He asks I insert the disk and the only way I can get to go is repeatable keep hitting the choice to cancel again and again until it finally disappears. How can I get this feature to disconnect and stopped trying to load thios program I have ever heard of.

    http://en.community.Dell.com/support-forums/software-OS/f/3526/t/19342454.aspx

    This is if you have a Dell.

    Do you have?

  • How to set the alignment of the field in a table in jdev 11.1.2.3?

    Hello
    How to set the alignment of the field in a table in jdev 11.1.2.3?
    for example: to display a body of numbers in a table as right aligned.
    I tried to put field (amount) VO UI Hint Format Type: Number; Format: 0000.00
    and jspx, flowing, but it doesnot work.
    Thank you.
    Bao

    < af:column sortProperty = "#{bindings." VO1.hints.amount.name}.
    sortable = "true".
    headerText = "#{bindings." VO1.hints.amount.label}.
    ID = "c44" width = "60".
    Align = "center" >
    < af:inputText value = "#{row.bindings.Amount.inputValue} '"
    label = "#{bindings." VO1.hints.amount.label}.
    required = "#{bindings." VO1.hints.amount.mandatory}.
    columns = "#{bindings." VO1.hints.amount.DisplayWidth}.
    maximumLength = "#{bindings." VO1.hints.amount.precision}.
    shortDesc = "#{bindings." VO1.hints.amount.ToolTip}.
    ID = "it58.
    secret = "false".
    inlineStyle = "" text-decoration: overline; ">"
    < f: validator binding="#{row.bindings.Amount.validator}"/ >
    < / af:inputText >
    < / af:column >

    Hello
    To set a field right alignment in a table:
    It doesnot work when InlineStyle-> text-align: right;
    It works when ContentStyle-> text-align: right;

  • What we call this effect? Trying to figure out the name of it, so I can search for tutorials...

    Hey guys, just have a quick question.

    What we call this effect? I'm looking to do a clip like this: Her.ie - storm Queen Teresa Mannion | Facebook

    Basically I want to motion track an object in a video and paste it into another.

    Thank you!

    You would follow the head in the shot that you want to replace, and then apply to a null tracking information.

    In another composition stabilizes you the replacement head so that the head does not move in the picture, then mask around the head. It is important that the head does not move much in the frame. So, if you were effective, you must set the "region of interest" to the computer simply include the stabilized head and then reframe the model of the region of interest. (If you don't know what I'm talking about then look it up using the search help field in the upper right of EI or don't you worry about this).

    Then you nest your head stabilized inside the main comp comp, set the anchor to the bottom of the neck, place the replacement on the body head and parent then head replacement for the null value.

    AE Basics...

  • Detect what (guest) VM consumes host resources

    Imagine a small host ESXi (free) hosting a few VMs comments.

    In certain circumstances, I guess that among the guest virtual machines increases the use of the resources of the host so that degrade the performance of the global environment.

    Can I use get-stat to get the total amount of RAM and CPU, and other resources used by the host.

    How can I detect what VM comments, at one point, uses the majority of the resources of the host?

    If I use get-stat to query virtual computers invited, how can I get the amount of the resources of the host used rather than the amount of the resources of the customer used?

    Should what counters I use?

    Concerning

    Marius

    You can combine counters in 1 call to Get-Stat.

    For example, for the use of the CPU, you can use cpu.totalcapacity.average on the node of ESXi and cpu.usagemhz.average on each virtual machine.

    Then it's a question of the use of the rule of three to get the percentage.

    $esxName = "MyEsx".

    $entities = @)

    $entities += get-VMHost-name $esxName

    $entities += get-VM-location $esx

    $stat = 'cpu.usagemhz.average ','cpu.totalcapacity.average '.

    Get-Stat - $entities - Stat $stat entity - Realtime - MaxSamples 1 - ErrorAction SilentlyContinue |

    Group-object - property Timestamp | %{

    $totalCPU = $_. Group | where {$_.} MetricId - eq "cpu.totalcapacity.average"} | Select value - ExpandProperty

    $_. Group | where {$_.} Entity.ExtensionData - is [VMware.Vim.VirtualMachine] - and $_. -Eq for instance "- and $_. MetricId - eq "cpu.usagemhz.average"} | %{

    New-Object PSObject-property @ {} TypeName

    Name = $_. @entity.name

    Time = $_. Timestamp

    "CPU % ofESXi" = [math]: tour ($_.) Value / $ totalCPU * 100, 2)

    }

    }

    }

    For percentages of memory, you can use mem.totalcapacity.average and mem.active.average.

    But look at one is expressed in MB, while the other is in KB.

  • Help! -What creation customer I get this ERROR "To provide a positive whole number for the amount of the minimum balance customer or per cent balance amount overdue type is amount or percentage respectively."

    What creation customer I get this ERROR "To provide a positive integer for the customer minimum balance amount or percent when the balance amount overdue type is amount or percentage respectively."

    I tried troubleshooting when I saw the other post and created a new class of customer profile, but still get an error, even if I created another profile as below and existing it attached to another customer that has worked, but when I tried to create a new customer it still gives me the error. I use Oracle Applications R12.1.1


    Steps I followed to create a new customer profile

    = Make sure that the new class of customer profile that allows you to create is in the active state. Cross check the steps below when you define a class Profile of the client... e.g. name: by DEFAULT (and active)

    (* 1) profile of class tab :*

    ) a FWD billing balance: not enabled

    (b) billing-> tax print (summary by name of tax), consolidation of rule (DEFAULT)

    (c) define the conditions according to your requirement, allow the delivery & terms of substitution

    (d) Dunning set according to your requirement,

    (e) filled in info collectors according to your requirement of credit check enabled...

    (f) reception-> auto cash rule defined as 'Standard '...

    *2) Load profile * ended it according to requirement

    *3) Amounts class profile* for example say currency defined as 'USD '.

    (a) credit limit: 100000

    (b) limits of credit order: 100000

    (c) minimum amount: 1.00

    (d) statement amount min: 1.00

    (e) do not put any value in the type of exchange rate (for example, monthly, Plan etc...)

    (f) minimum customer balance: Amount-> value: 5.00

    (g) minimum balance Bill: Amount-> value: 5.00

    (h) right to minimum per invoice: 1, the maximum charge per invoice: 100 under the interest Charge

    (i) Reference Type as a set rate, value: 10

    (j) you can avoid using the penalties for now...

    Step - 2_ one) open a customer... * go to Bill the site details *-> click on the profile tab-> under class profile field please include new profile class that is created by you (for example, by DEFAULT). (b) go in the sizes tab profile-> Click (Show) on currencies USD-> check the establishment here as well, I could see it.

    When I tried to create a new customer using the new profile, it's repeating the same mistake. Help, please.

    Thank you for your reply Emmanuel.

    Sorry could not inform earlier, I tried at first with my amount of class XX profile newly created for all currencies. But he has not solved.

    When I changed the default profile for all the currencies class. It is resolved.

  • The class call Java Custom WCC?

    How to call a Java class customized WCC when a certain field of metadata is set on "On" and at the time of check-in?

    Thank you

    Randy

    Randy,

    You would control this logic within your code for FilterImplementor.

    Retrieve you the values of metadata fields and if they meet the criteria, continue with your custom logic. If not, go back and do nothing.

    Jonathan

    http://jonathanhult.com

  • Pushing a value in a table by a getter/setter

    Hey everybody, I think you run into a situation where when I push a value in a table which is held in a singleton via a getter/setter, Flash seem to so access the Get accessor on the Set accessor method.

    in my command/controller (I use RobotLegs)

    override public function execute():void
    {
         // various line of code here
    
         //Place screenshot image into an array from model for later reference.
         model.unitScreenshots.push(screenShot); // screenshot is just a Bitmap object
    }
    

    the getter and setter in my legs singleton model for example robot

    public function get unitScreenshots():Array
    {
         return _unitScreenshots;
    }
    
    
    public function set unitScreenshots(value:Array):void
    {
         _unitScreenshots = value;
    }
    

    When I put a breakpoint on the getter and setter, only the Get accessor method is being called, why?  I think that a value of push on the table would trigger the Set accessor, not the Get accessor, advice?

    Thank you.

    model.unitScreenshots

    fire the Get accessor as you go to unitScreenshots the name of the Get accessor. you found unitScreenshots model in order to access push unitScreenshots method.

    and the push does not access the Set accessor, because you don't specify what to unitScreenshots.

    to access the Set accessor, you would need to write

    var someArray:Array = [12, 23: 45];  or you want to put in it

    model.unitScreenshots = untableau

    you could write something like

    public function set aUnitScreenshot(value:Bitmap):void
    {
         _unitScreenshots.push(value);
    }

    then call

    override public function execute():void
    {
         // various line of code here

    //Place screenshot image into an array from model for later reference.
         model.aUnitScreenshot = screenShot; // screenshot is just a Bitmap object
    }

    but it is not very intuative cause you do not actually define anything just add something

  • Development of pilots WEC2013 SDHC - what are the registry and setting of the catalog

    Development of pilots WEC2013 SDHC - what are the registry and setting of the catalog

    We are the WEC2013 portage for a controller ARM. The operating system works very well.
    We have made our development using SYSGEN_FSREGRAM and SYSGEN_FSRAMROM.
    We are now developing driver SD card. We have helped in SYSGEN_SD_MEMORY, SYSGEN_SDBUS, SYSGEN_SDHC_STANDARD, and FAT in the catalog items for SD card.

    We did our sdhc.dll to our platform.

    We get the following error,

    PID:00400002 TID:004 B 0006 + SHC_IOControl (0xa5838f80, 0x00071c24, 0 x 00000000, 0, 0xac67fc70, 16, 0xac67f928)
    PID:00400002 TID:004 B 0006-SHC_IOControl(rc = 0)
    PID:00400002 TID:004 B 0006 FSDMGR! MountStore: Failed to open store "SHC1;: error = 31

    Can we do something else?

    This issue is beyond the scope of this site and must be placed on Technet or MSDN

    http://social.technet.Microsoft.com/forums/en-us/home

    http://social.msdn.Microsoft.com/forums/en-us/home

  • When I open 'Windows', I get a warning that "battery is not detected. How can I get rid of him?

    My battery is no longer eneral in my laptop.  Whenever I open my 'Windows', I get the message "battery is not detected.  I want to get rid of it, how do I do that

    Hello

    1. What is the brand and model of the laptop?
    2 have you made any changes to the computer before the show?

     
    You could also have a bad battery.
     
     
    Try contacting the manufacturer of the laptop computer for more help.
     
     
    Reference:
     
  • Is there a phone # I can call to get real help? I never had trouble answering ads on Craigslist so far. Why won't he answer me?

    Is there a phone # I can call to get real help? I never had trouble answering ads on Craigslist so far. Why won't he answer me?

    It should be easier than that to send and receive e-mails via craigslist.

    Hello

    1. did you of recent changes to the system?

    2. what happens when you try to add?

    3. do you get an error message?

    4. what Web browser do you use?

    Please provide more information on the issue to get help.

    Also, I suggest to see the link below and contact the Support of Craigslist for help.

    http://stlouis.craigslist.org/

    https://forums.craigslist.org/?forumid=9

    http://www.craigslist.org/about/Help/FAQ

  • What field in ApplicationDescriptor is unique

    What field in ApplicationDescriptor is unique?

    Javadoc, getIndex() function must be unique. but, I see that each getIndex() value is 0.

    However, getModuleHandle() function gives different numbers. It is perhaps unique? or how can I unique field for each application?

    getModuleHandle should give a unique value for each particular application installed on a BlackBerry smartphone. However, these values are not directly to an application, which means that if you get the handle of the module for the same application on an another BlackBerry smartphone you will probably get a different value.

  • Generated by an expression values get set cached?

    Does anyone know if the generated output as an expression values get set cached for the frame as the rendered image only?

    Meaning, does make any improvement in speed to a value of the term of reference of the same frame as opposed to this calculation on each image.

    As a simplified example, I have an expression on the values of the slider with some heavy calculation that does not change over time. It improves the speed of calculation of expression to call the resulting value of a single point in time (like the time = 0), as opposed to the present appellant, which certainly recalculates on each image?

    N ° expressions are always evaluated for each image and looking for the values of another era in fact get worse since AE can evaluate the expression of the current framework and then based on the code to evaluate it again on the other images. AE simply has no way to differentiate the State of an expression unless it evaluates actually just as it does not store persistent values, does not the JIT compilation or that this is another thing that you could imagine. It is an assessment of strictly linear script, image by image and line-by-line optimization depends on structure the code and structure of the project. Of course nothing prevents you to outsource the code for the "inert" invisible layers or comps do not used anywhere, but it has other implications where your calculations depend on time or the layer order. If things get slow, you can also always convert expression to keyframes.

    Mylenium

Maybe you are looking for

  • How can I block pop - unwanted ups?

    I read your forum and I still don't know how to block a given page. I also have the case of the reward of 50 euros and I want to reach this page shows not yet.Please tell me the solution.Thank you.

  • multi level cells

    Hi, is it possible to have the text on several levels in the same cell in a table? In excel I press ALT + ENTER to allow a 2nd line. I don't want 2 separate cells. Thank you

  • creation of component custom Multisim version 12

    Hi guys,. So I am a student with a project I have to simulate on multisim. It is not part of the project, but the project has over 100 components inside so I started to wonder if I could make my own components with the circuits inside of them. So ive

  • Password - Windows XP is invites me for a password for the first time in 6 years

    Windows xp wonder for the first time in 6 years for my password. I forgot. Help

  • RDP IP log in the security log

    I would like to enter the IP address of the people who connect via RDP (well myself really like I'm the one who should). When I look at the event view security log, I'm unable to see the IP address of the computer, that I accessed from the newspaper.