How do you assign a value to an expression in a composite component?

Hi all,
I have just started out on JSF 2.0 not too long ago. I am trying to create a composite component that can execute a method defined by the user and then assign the returned results to a bean, also defined by the user.
Something like the one below:
<composite:myComponent value="#{someBean.someProperty}"  action="#{someBean.someActionMethod}" />If its just executing the method, I have no problems with that. But I do not know how to assign the returned value. Can anyone enlighten me on how to execute the method in the component and then assign the returned value to the bean?
Thank you.
Edited by: honsho on Aug 4, 2010 1:36 AM

I am not sure about that. Do you mean that all I have to do is provide the interface <cc:attribute name="value" type="lvl1.lvl2.someClass"/> and when I run the method, the returned result will be written into the expression provided in "value"?

Similar Messages

  • How do you assign a value to the APEX field APP_USER

    Application Express 4.0.2.00.07
    Hi
    Is there a special function/procedure to assign a value to the APP_USER field
    or a simple APP_USER := :P1_LOGIN_NAME would do
    Z

    Hello Zac,
    >> or a simple APP_USER := :P1_LOGIN_NAME would do
    The APEX engine is already doing it for you after a successful login – setting the value of APP_USER as the user login name. You can use it as a substitution string or with the bind variable notation (:APP_USER).
    Regards,
    Arie.
    &diams; Please remember to mark appropriate posts as correct/helpful. For the long run, it will benefit us all.
    &diams; Author of Oracle Application Express 3.2 – The Essentials and More

  • How do you assign multiple values to a single element in an array?

    I'm probably not wording the question right.
    I have an array, let's call it M[], and for each element in the array (we'll say M[1]), I need assign three integers: row, col and value.
    I need to set it up so I can do something like this:
    A.row = M[i].col;
    A[i].col = M[i].row;
    A[i].value = M[i].value;
    The algorithm isn't what I need help with, it's assigning .col, .row and .value to an index of an array.
    Please help if you can.

    You are right. You did not word your question perfectly, but I still think I get what you want.
    First of all: A single element in an array always has exactly one value. No more, no less.
    But that's not a problem. The element in an array is either of a primitive type (boolean, byte, char, short, int, long, float, double) or it's a reference (to a Object, String, MyClass, ...).
    You can simply write a class that holds your three values and create an array of that type:
    public class SomeData {
      public int row;
      public int col;
      public int value;
    // somewhere else:
    SomeData[] a = new SomeData[10];
    a[0] = new SomeData();
    a[0].row = 10;
    a[0].col = 5;
    a[0].value = 42;Note how you only assign a single value to the element (a[0]) itself. All other assignment actually go to fields of the object refered to by that element in the array.
    Also note that in Java types (such as classes, interfaces, ...) should start with a upper-case letter, while variables (local variables, members, parameters) and method names should start with a lower-case letter.
    Edit: I'm getting old ...

  • How do you assign a value for Products in a Pop-up menu?

    I am preparing production cost spread sheet. In one column I2 - I have a pop up menu with lamination types to be selected - ie: None, Standard Film, Vehicle Film, Liquid Coating. I want to be able to associate values of these costs in column J2 - On another table (Laminating Costs) I have set values for each product ie: None = 0, Standard Film = $1, Vehicle Film =$2 and Liquid Coating =$0.5 -
    Therefore if I select Liquid Coating from the from the Pop-up menu in I2 on the main spread sheet - I want to see the associated cost of $0.5 appear in J2 by referencing the Laminating Costs table - I have tried various SUMIF formulas with no luck - Could someone point me in the right direction please.
    Thanks

    You can assign values to the items using a lookup table.
    http://discussions.apple.com/thread.jspa?threadID=2539456&tstart=0

  • How do you assign program changes to external controllers in mainstage 1

    i would like to use 6 specific buttons on my controller to toggle between patches
    i know how to scroll through patches using my controller by assinging the next and previous patch functions to 2 buttons on my controller
    however what i want is to just be able to push button 1 and go to my gladiator AU synth, then push button 3 to go to my sylenth AU synth. basically i want to be able to change in real time on the spot, spontaniously without premeditation or having scroll between multiple patches to get to the one i want to use.
    in the previous posts it says
    on the patch list select the instument
    in the patch inspector go to attributes
    select program change, then assign it a number
    then assign a midi controller button to trigger that program change number
    i can do everything except the last part
    how do you assign a program change to a controller button? i cant see anywhere how to do this,
    i am using mainstage 1.0.2 thank you so much for any support you can give me

    I am not sure about that. Do you mean that all I have to do is provide the interface <cc:attribute name="value" type="lvl1.lvl2.someClass"/> and when I run the method, the returned result will be written into the expression provided in "value"?

  • How do you set multiple values in "Internal-Properties" in XSLT

    Hi All,
    I'm running SOA 11g with the Oracle B2B Adapter.
    I have a need to dynamically set the InterchangeReceiverID, InterchangeSenderID, GroupSenderID, and GroupReceiverID from within SOA prior to passing the xml to the B2B Adapter. When using the Transform Activity, I don't understand how to set multiple values at the Interchange/Group levels. I am able to set ONE value at each level using the structure below, but have not been able to determine the proper way to set more than one value at each level.
    Any help would be appreciated.
    thanks,
    bw
    <ns4:Internal-Properties>
    <ns4:Data-Structure>
    <xsl:attribute name="Name">
    <xsl:text disable-output-escaping="no">Interchange</xsl:text>
    </xsl:attribute>
    <ns4:Lookup>
    <xsl:attribute name="Name">
    <xsl:text disable-output-escaping="no">InterchangeSenderID</xsl:text>
    </xsl:attribute>
    <xsl:text disable-output-escaping="no">1234</xsl:text>
    </ns4:Lookup>
    <ns4:Data-Structure>
    <xsl:attribute name="Name">
    <xsl:text disable-output-escaping="no">Group</xsl:text>
    </xsl:attribute>
    <ns4:Lookup>
    <xsl:attribute name="Name">
    <xsl:text disable-output-escaping="no">GroupSenderID</xsl:text>
    </xsl:attribute>
    <xsl:text disable-output-escaping="no">5678</xsl:text>
    </ns4:Lookup>
    <ns4:Data-Structure>
    <xsl:attribute name="Name">
    <xsl:text disable-output-escaping="no">Transaction</xsl:text>
    </xsl:attribute>
    <ns4:Lookup>
    <xsl:attribute name="Name">
    <xsl:text disable-output-escaping="no">TransactionID</xsl:text>
    </xsl:attribute>
    <xsl:text disable-output-escaping="no">856</xsl:text>
    </ns4:Lookup>
    </ns4:Data-Structure>
    </ns4:Data-Structure>
    </ns4:Data-Structure>
    </ns4:Internal-Properties>

    Hi Anuj,
    Thanks for taking time to consider this. I think I did not explain my problem clearly. I'm not trying to assign more than one value to any one property. My issue is that I cannot figure out the proper syntax within the XSLT to assign a value to more than one property at the Interchange level. For instance, do you have an example of how I would assign one value to the InterchangeSenderID and another value to the InterchangeReceiverID? Constant values (rather than dynamic ones) would be fine for an example. Thanks again for your time.
    thanks,
    bw

  • From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    From two given tables, how do you fetch the values from two columns using values from one column(get values from col.A if col.A is not null and get values from col.B if col.A is null)?

    Hi,
    Use NVL or COALESCE:
    NVL (col_a, col_b)
    Returns col_a if col_a is not NULL; otherwise, it returns col_b.
    Col_a and col_b must have similar (if not identical) datatypes; for example, if col_a is a DATE, then col_b can be another DATE or it can be a TIMESTAMP, but it can't be a VARCHAR2.
    For more about NVL and COALESCE, see the SQL Language manual: http://docs.oracle.com/cd/E11882_01/server.112/e26088/functions119.htm#sthref1310
    I hope this answers your question.
    If not, post a little sample data (CREATE TABLE and INSERT statements, relevant columns only) for all tables involved, and also post the results you want from that data.
    Explain, using specific examples, how you get those results from that data.
    Always say which version of Oracle you're using (e.g., 11.2.0.2.0).
    See the forum FAQ: https://forums.oracle.com/message/9362002

  • How do you assign a user or group FULL access to all Exchange 2013 DAG mailbox databases?

    How do you assign a group or user FULL mailbox access rights to ALL mailboxes in the Organization or DAG mailbox databases?
    Commands I've tried with no avail:
    get-mailboxdatabase -server “exch01″ | add-adpermission -user “domain admins” -AccessRights GenericAll
    get-mailboxdatabase -identity "DAG database" | add-adpermission -user "user" -accessrights FullAccess
    Please let me know if you can help! Thanks.

    Get-Mailbox | Add-MailboxPermission -Identity UserMailbox -User "Domain\Group" -AccessRights FullAccess - worked for me! Thanks again!

  • HT2486 How do you assign a new contact to an account other than default account?

    I have multiple mail accounts (iCloud, exchange server, gmail) each with their own contacts. When adding a contact how do you assign it to the right account? I know you can assign a default account under settings but how can you assign it to an account other than the default?

    Apple allows you a deauthorize all option once every 12 months.
    iTunes Store: Authorize or deauthorize your Mac or PC
    Deauthorize all computers
    After you authorize two computers, you'll have the option to deauthorize all computers for your Apple ID. You can deauthorize all computers once a year.
    Just like deauthorizing a single computer, you won’t delete anything if you choose to deauthorize all computers. You just won’t be able to play content that you bought from iTunes on those computers. After you deauthorize all, you can easily authorize computers again one by one. Just follow the steps to authorize a Mac or PC.
    Here's when you should deauthorize all your computers:
    If a computer doesn't work anymore
    If you don't have one of your computers
    If you used 5 authorizations and want to authorize a new computer
    To deauthorize all your computers, follow these steps using one of your authorized computers:
    1.Click to open your account in iTunes (you may need to sign in with your Apple ID), or follow these steps:
         a. Open iTunes and click iTunes Store.
         b. Click Sign In and enter your Apple ID.
         b. Click your Apple ID and select Account.
    2. Click Deauthorize All.
    The Deauthorize All button appears only if you have more than two authorized computers.

  • How do you assign charStyles with proper fillCollor settings

    How do you assign charStyles with proper fillCollor settings

    Have a look at these Links...
    http://cnettv.cnet.com/free-custom-ringtones-text-tones-ios-5/9742-1_53-50113469 .html
    http://cnettv.cnet.com/create-free-ringtones-itunes-10/9742-1_53-50093086.html

  • How can add some suggested value to a propert on a Declarative Component,

    how can add some suggested value to a propert on a Declarative Component?

    kenyatta,
    Where you want to add the value ?
    If you want put some UIComponent(Value) to your declarative Component than follow my blog ( http://jneelmani.blogspot.com/2009/02/11g-how-to-create-declarative-component.html ) and add your value in STEP-5.
    You can watch live-demo at http://www.oracle.com/technology/products/jdev/viewlets/viewlet.html
    --Neelmani Jaiswal
    Edited by: Neelmani Jaiswal on Mar 23, 2009 11:11 AM

  • How could I assigning object values to internal table?

    CREATE DATA dref TYPE TABLE OF (table).
        ASSIGN dref->* TO <intab>.
        SELECT * FROM (table) INTO CORRESPONDING FIELDS OF TABLE <intab>.
    I have create a internal table intab1.
    obviously, the expressing "intab1 = <intab> " is wrong.
    then,how should intab1 get the value of <intab>?

    Hi
    If you need only to transfer all data: <b>INTAB1[] = <INTAB>[]</b>. But INTAB1 has to be as <INTAB>.
    If the structure of INTAB1 is different, you have to use the field-symbols:
    LOOP AT <INTAB> ASSIGNING <WA>.
      ASSIGN COMPONENT SY-INDEX OF STRUCTRE <WA> TO <VAL_F>.
      IF SY-SUBRC <> 0. EXIT. ENDIF.
      ASSIGN COMPONENT SY-INDEX OF STRUCTRE INTAB1 TO <VAL_T>.
      IF SY-SUBRC <> 0. EXIT. ENDIF.
      <VAL_T> = <VAL_F>.
    ENDLOOP.
    So how to transfer the data depends on the structures of INTAB1 and <INTAB>.
    Max

  • How would you assign passwords in a script for a user

    How would i assign a password in script??

    the only way to "automate" password/user additions is to use expect - to allow you to input some meaningful password - stdin doesn't work too well as you've probably seen
    Alternatively you can find the crypted value for some password and use that in a cut and paste fashion into the /etc/shadow file (as root obviously) but there are some limitations...
    i.e.
    echo "${newuserid}:x:${uid}:${gid}:${GCOS}:${homedir}:${usershell}" >> /etc/passwd
    echo "${newuserid}:${cryptedpasswd}:0:7:90::::" >> /etc/shadow
    this means that you have basically one password you're assigning to each new user, which may or may not be what you're digging after.
    If you can figure out how to crypt the password (with the appropriate salt) so it fits into the /etc/shadow crypted format, you'd have your problem solved.

  • How i can assign multiple values to tabuler text item (Help)

    HI
    IM PROGRAMMING ONE FORM AND I PUT THERE TABULER TEXT ITEM
    I WANT ASSIGN 63 VALUES TO THIS TEXT ITEM ONE BY ONE BY CODE I MEAN PUT FIRST VALUE IN THE FIRST TEXT ITEM ROW THEN SECOND TO THE SECOND TEXT ITEM AND LIKE THIS UNTIL I REACH TO THE LAST
    I MAKE LOV PUT I CAN ASSIGN ONE VALUE BY ONE VALUE EACH TIME DOUBLE CLICK ON THE TEXT ITEM ASSIGN ONE VALUE THEN DOUBLE CLICK ON THE SECOND ROW PUT MY BOSS WANT ASSIGN ALL VALUES 63 FROM ONE CLICK ON BUTTON

    Then you will have to create a when-validate-item trigger with a cursor based on your selection of your LOV . Loop through that cursor assigning the next in the next record by using the built-in function next_record. (put you selection for you value in a hidden item for example.
    something like this:
    Declare
    cursor c is
    select returnValueFromLOV
    from <yourtable>
    where yourdisplay value = :hidden_tem;
    begin
    for r in c loop
    next_record;
    item := r. returnValueFromLOV;
    end loop;
    exception
    when no_data_found
    your error handling;
    end;
    Hope it put you on the road to reach what you want
    Erwin

  • How do you lookup multiple values in different columns based on variable criteria?

    Essentially, I'd like to be able to do a Vlookup but instead of searching for one value only, search for multiple values in separate columns. A smaller version of my current spreadsheet as an example...
    Attack Type ->
    Fire
    Water
    Grass
    Fire
    1/2x
    2x
    1/2x
    Water
    1/2x
    1/2x
    2x
    Grass
    2x
    1/2x
    1/2x
    Fire/Water
    1/4x
    1x
    1x
    Fire/Grass
    1x
    1x
    1/4x
    Grass/Water
    1x
    1/4x
    1x
    The headers are the attack types and the list of types to the left are the receiving Pokemon. Fire does half damage (1/2x) to fire types, Water does double damage (2x) to fire types, etc. I'd like to be able to search for specific damages for each type. For example, I'd like to find a Typing that recieves half (1/2x) damage from Fire-type attacks but also recieves double (2x) from Grass-type attacks. I do want more than just two search criteria though seeing as the actual table is much, much larger.
    I've tried assigning number values to each damage multiplier and then merging all of them together for a specific typing and doing a VLOOKUP based on checkboxes determining what damage multiplier I want in a few specific types, the rest being filled in to the standard of 1x but the result isn't correct most of the time.

    Hi Mitchell,
    VLOOKUP can be set for accept either an 'exact match' or a 'close match'.  Your 17 digit 'number' is actually a 17 character text string (Numbers can handle numbers to a precision of only 15 places). Provided all 17 digits are present, sorting should be the same as for numerical values—the leftmost character is the most significant.
    As a text string, your 'number' is sorted/evaluated alphabetically. A 'close match' accepts the 'largest value that is less than or equal to the search value'.
    If your search term is 000200000 (a 9 character string), several 'wrong' answers will fit the 'close match' criteria, including all of those listed below:
    000200000 (the 'correct' match)
    0000xxxxx (x may be any of the three acceptable values)
    0001xxxxx (x may be any of the three acceptable values)
    The main problem here is that digits in a number (or characters in a text string) have decreasing significance related to their distance from the beginning of the string/number. You want a search in which each character has the same significance as each of the others when compared to the search key. To do that, you need to compare each character in the search string with the character in the same position in the similar string for each type of Pokemon, then take a count of the matches or a sum of the differences.
    Here's one approach:
    Column A contains labels.
    Column B, the 17 digit search term, created in whatever manner you wish, and the similar 17 digit string for each of the characters.
    Columns C through S contains a formula that detines, using subtraction, the difference between each digit of the search term and the corresponding digit of each character's profile.
    Column C uses SUM() to calculate the total of columns C to S for each row.
    T1 uses =MIN(T) to calculate "least different" profile.
    Column A is a Header column; Row 1 is a Header row.
    Formulas:
    C2, and filled right to S2, then down to the last row of data:
    =ABS(MID($B$1,COLUMN()-2,1)-MID($B2,COLUMN()-2,1))
    T1: =MIN(T)
    T2, and filled down column T: =SUM(C2:S2)
    The conditional formatting rule set for all body cells in column T is shown below the table.
    This may be enough to get you started. Formulas can be tweaked to produce results more closely matching what you're looking for, if necessary.
    Regards,
    Barry

Maybe you are looking for

  • Security Question and Awnser

    Hallo, i want to modifiy with WD or "Portal Component" the "security question" and "the answer of the security question" for a user. I want to develop my own "my profiles" application. It's realy easy to develop "my profiles" without the "security gu

  • Can not receive messages - user mailbox locked

    Suddenly my incoming messages stopped coming and a dialogue box appeard, saying: "The sending of password failed. The e-mail server (pop3) answered user mailbox locked." I've been in contact with my internet service provider and they found nothing wr

  • How do you calculate the count in before a cue start?

    Here's what I can't figure out. I have a quicktime loaded and I need to start a cue at, let's say, 1:05:07:10. I want the tempo to be, oh, 120. I arbitrarily say - this will be measure 41 but it doesn't really matter, I just need my downbeat at that

  • IPhoto quit unexpectedly

    My iPhoto keeps quiting unexpectedly when I open one of my books I have created. I wanted to buy the book and now it wont even open. I have looked up other discussions and tried some of their suggestions. I tried deleting the com.apple.iPhoto.plist a

  • Help i have this message when i try to strat Illustrator

    Exit Code: 6 Please see specific errors below for troubleshooting. For example,  ERROR: DF037, DF045,D ... -------------------------------------- Summary -------------------------------------- - 0 fatal error(s), 17 error(s) ----------- Payload: Adob