About passing the values attributes of UI components

Hi,
I have a question related to passing the values attributes of UI components from JSF to a baking bean.
Assume I have inputText and I need to pass its value to the data model via an application module. So, this will be done as follows:
<h:inputText value= "#{bindings.MyValue.inputValue}";
I need also to pass this value to a managed bean. Therefore I used EL class prepared by Steve Muench available at:
http://radio.weblogs.com/0118231/stories/2006/12/18/sourceForMyFavoriteElHelperClass.html
So, in the JSF page will be as follows:
<h:inputText value="#{myBean.myValue}";
In managed bean:
String myValue;
public String get MyValue () {
return EL.getAsString("#{bindings.MyValue.inputValue }");
public void set MyValue t(String value) {
EL.set("#{bindings.MyValue.inputValue }",value);
Then when I want to use myVlaue in the managed bean just I use this line:
myVlaue = get MyValue ();
I tried to use the same steps to pass the value of selectOneMenu but I always get errors such as cannot be cast to java.lang.String.
But I achived this by binding the value of selectOneMenu to a HtmlSelectOneMenu attribute in the managed bean as follows:
In JSF page:
<h:selectOneMenu value="#{bindings.TaskView1TaskName.inputValue}"
binding= "#{projectBean.selectOneChoice1}">
In managed bean:
private HtmlSelectOneMenu selectOneChoice1;
public void setSelectOneChoice1(HtmlSelectOneMenu selectOneChoice1) {
this.selectOneChoice1 = selectOneChoice1;
public HtmlSelectOneMenu getSelectOneChoice1() {
return selectOneChoice1;
Then I can used the selectOneChoice1 value as follows :
somenu= getSelectOneChoice1();
somenuValue = (Integer)somenu.getValue();
task= taskName(somenuValue);
this works with me. Now what is the different between this way and using EL class
And how can I use EL class to pass the value of selectOneMenu to the managed bean
Thank you
Waheed

they are look like:
<list id="TaskView1TaskName" IterBinding="TaskView1Iterator"
ListOperMode="0" StaticList="true">
<AttrNames>
<Item Value="TaskName"/>
</AttrNames>
<ValueList>
<Item Value="value1"/>
<Item Value="value2"/>
<Item Value="value3"/>
</ValueList>
</list>
and TaskName is String

Similar Messages

  • Passing the values to another page.

    Hi all,
    In the first column of the report is radio buttons
    After selecting the radio button of a row and pressing the button view, has to go the next page where i can view the full details of the row.
    How i should pass the values of the selected row in the view button.
    In other words
    How to refer the report items when pressing a button.
    For eg:
    If i say in URL Target like.....
    javascript:redirect('f?p=&APP_ID.:3:&SESSION.:DISPLAY:NO::P3_ACC_NO:' +#id#+)
    if i put #id# the value is not appearing..
    Could any one please guide me ?
    Thanks in advance
    bye
    Srikavi

    Hello,
    >> only if it is the primary key as you mentioned it is appearing.but, if i put an non-pk column it is not appearing.
    I’m not sure what you mean by that. The onclick event will always set your hidden item according the any database column. In my example it’s ‘empno’, but I don’t see any reason to use any other column in the row. Anyway, the reason to use PK as the passes parameter is that with the PK you can retrieve the entire record on your next page, and use any column you need from the record.
    If I misunderstood you’ please be more descriptive about the problem.
    Regards,
    Arie.

  • How to pass the value to "Assignment" when submit the program RFITEMGL?

    Hello friends,
    I want to submit program RFITEMGL  (t-code FBL3N) with some screen fields, some fields are OK to fill such as u201COpen at key dateu201D, u201CG/L accountu201D and u201CCompany codeu201D。 But for the field "Assignment" (It will appear after cilck Dynamic Selection), I don't know how to pass value to it.
    Could you help me about how to pass the value to "Assignment" when submit the program RFITEMGL  (t-code FBL3N) ?
    Thanks a lot!

    Hi,
    Well you can create a small BDC.
    Regards,
    Harsh Bansal

  • CRM contact record passing the values from Custom application

    Hi,
    I am passing the values from my custom WPF application to create the contact.
    while passing the first name, last name, addressLine 1  Mobile number it's working fine. while am passing the date of birth it's throughing an error. I am not able to identify the exact issue please giv me the suggestions
    var firstname = txtFirstName.Text;
                var lastname = txtLastName.Text;
                var dataofbirth = this.DatePickerValue;
                var mobilenumber = txtMobileNumber.Text;
                var rfcvalue = txtRFC.Text;
                var addressValue = txtAddress.Text;
                var extraqs = "firstname=" + firstname;
                extraqs += "&lastname=" + lastname;
                extraqs += "&mobilephone=" + mobilenumber;
                extraqs += "&address1_line1=" + addressValue;
                extraqs += "&birthdate=" + dataofbirth;
                //var totalextravalue = "extraqs=firstname%3D" + firstname + "lastname%3D" + lastname + "birthdate%3D" + dataofbirth + "mobilephone%3D"
    + mobilenumber + "ifp_rfc%3D" + rfcvalue + "address1_line1%3D" + addressValue;
                var contacturl = Constants.Contact.Attributes.URLNew + "etc=2&id=&pagetype=entityrecord&extraqs=" + HttpUtility.UrlEncode(extraqs);
    -Regards
    Rammohan

    You should set date in this format 
    &extraqs=date=01/31/11Hope this helps
    Sreeni Pavalla

  • How Do I Pass The Value Of My Custom PSObject Into A Winforms Multiline Inputbox?

    Hello all!
    I've tried to just pass the value of my custom object by doing $Inputbox.Text = $CustomObject but i only get whitespaces in my inputbox. I also tried $CustomObject.tostring() and get "SystemObject[]"
    Thanks for the help!!

    Thanks so much for the reply! It helps alot.
    I guess it's more than just one object. It's an array of PSObjects. It gathers local user account properties and drops it into an array of objects. it contains things like, account name, descriptions, password expiration information, if it's disabled or
    not... things like that. Just a bunch of text fields. it's created by
    $AllLocalUsers += $Users | Foreach-Object {
    (code to search for account properties...)
    New-Object PSObject -Property @{
    Name = $_.Name
    Disabled = $_.Disabled
    (etc...)
    When I type $AllLocalUsers in the console, it will print all the objects information but when I try to do that in a text box, ie $textbox.text = $AllLocalUsers, It gives me about 33 white spaces, the number of objects in the array, and nothing else.

  • How can I pass the session attributes to other applications?

    I need to pass a value across the web application. Is it possible?
    I use Forward to redirect the page in JPF. Before redirection, I set some attribute/value in session. In new application, I found the atttribute value is null. Is there a way to pass the value between web applications.
    Thanks in advance.

    Hi,
    Two different Webapps doesn't share the same session , they have two different. So as far as i known you have to use something like a db to pass variables or another common way. Maybe when you redirect you can store an atribute to the HttpRequest and get it in your other app.Something very simple is to fix the url like that
    http://www.mydomain.com/manager.jsp?passingAttribute=passingValue
    Hope that helps
    BR

  • Job scheduling(passing the values to the child program)

    when i'm trying to schedule a background job(using job_open job_submit and job_close) i'm passing the values of the selection screen(parent program) to my child program using set parameter id. And trying to get the values using get parameter id in the cild program.
    But the values of the parent program are not being passed to the child program what may be the cause for it?

    rathan,
    Why con't you use
    SUBMIT... [VIA SELECTION-SCREEN]
    [USING SELECTION-SET <var>]
    [WITH <sel> <criterion>]
    [WITH FREE SELECTIONS <freesel>]
    [WITH SELECTION-TABLE <rspar>].
    When you start an executable program, the standard selection screen normally appears, containing the selection criteria and parameters of both the logical database connected to the program and of the program itself (see Direct Execution - Reports). When you start an executable program using SUBMIT, there are various additions that you can use to fill the input fields on the selection screen:
    SUBMIT... [VIA SELECTION-SCREEN]
    [USING SELECTION-SET <var>]
    [WITH <sel> <criterion>]
    [WITH FREE SELECTIONS <freesel>]
    [WITH SELECTION-TABLE <rspar>].
    These options have the following effects:
    VIA SELECTION-SCREEN
    The selection screen of the called executable program (report) appears. If you transfer values to the program using one or more of the other options, the corresponding input fields in the selections screen are filled. The user can change these values. By default, the system does not display a selection screen after SUBMIT.
    USING SELECTION-SET <var>
    This option tells the system to start the called program with the variant <var>.
    WITH <sel> <criterion>
    Use this option to fill individual elements <sel> of the selection screen (selection tables and parameters). Use one of the elements <criterion>:
    <op> <f> [SIGN <s>], for single value selection
    If <sel> is a selection criterion, use <op> to fill the OPTION field, <f> to fill the LOW field, and <s> to fill the SIGN field of the selection table <sel> in the called program.
    If <sel> is a parameter, you can use any operator for <op>. The parameter <sel> is always filled with <f>.
    [NOT] BETWEEN <f1> AND <f2> [SIGN <s>], for interval selection
    <f1> is transferred into the LOW field, <f2> into the HIGH field, and <s> into the SIGN field of the selection table <sel> in the called program. If you omit the NOT option, the system places the value BT into the OPTION field; if you use NOT, the system fills OPTION with NB.
    IN <seltab>, transferring a selection table
    This addition fills the selection table <sel> in the called program with the values of the table <seltab> in the calling program. Table <seltab> must have the structure of a selection table. Use the RANGES statement to create selection tables.
    WITH FREE SELECTION <freesel>, user dialog for dynamic selections
    To use this option, the called program must be connected to a logical database that supports dynamic selections. In the calling program, use the function modules FREE_SELECTIONS_INIT and FREE_SELECTIONS_DIALOG. They allow the user to enter dynamic selections on a selection screen. One export parameter of these function modules has structure RSDS_TEXPR from the RSDS type group. Transfer the values of this export parameter by means of the internal table <freesel> of the same structure to the called report.
    WITH SELECTION-TABLE <rspar>, dynamic transfer of values
    You need an internal table <rspar> with the Dictionary structure RSPARAMS. The table then consists of the following six fields:
    SELNAME (type C, length 8) for the name of the selection criterion or parameter
    KIND (type C, length 1) for the selection type (S for selection criterion, P for parameter)
    SIGN, OPTION, LOW, HIGH as in a normal selection table, except that LOW and HIGH both have type C and length 45.
    This table can be filled dynamically in the calling program with all of the required values for the selection screen of the called program. If the name of a selection criterion appears more than once, the system creates a multiple-line selection table for that criterion in the called program. If the name of a parameter appears more than once, the system uses the last value. Note that LOW and HIGH have type C, so that the system executes type conversions to the criteria of the called program. This is important for date fields, for example. Before your program is used in a live context, you should check it using the VIA SELECTION-SCREEN addition.
    Except for WITH SELECTION-TABLE, you can use any of the above options several times and in any combination within a SUBMIT statement. In particular, you can use the WITH <sel> option several times for one single criterion <sel>. In the called program, the system appends the corresponding lines to the selection tables used. For parameters, it uses the last value specified. The only combination possible for the WITH SELECTION-TABLE option is USING SELECTION-SET.
    If the input fields on the selection screen are linked to SPA/GPA parameters, you can also use this technique to pass values to the selection screen (see Passing Data Between Programs).
    The following executable program (report) creates a selection screen containing the parameter PARAMET and the selection criterion SELECTO:
    REPORT  demo_program_submit_rep1.
    DATA number TYPE i.
    PARAMETERS      paramet(14) TYPE c.
    SELECT-OPTIONS  selecto FOR number.
    The program DEMO_PROGRAM_SUBMIT_REP1 is called by the following program using various parameters:
    REPORT demo_program_submit_sel_screen NO STANDARD PAGE HEADING.
    DATA: int TYPE i,
          rspar TYPE TABLE OF rsparams,
          wa_rspar LIKE LINE OF rspar.
    RANGES seltab FOR int.
    WRITE: 'Select a Selection!',
    SKIP.
    FORMAT HOTSPOT COLOR 5 INVERSE ON.
    WRITE: 'Selection 1',
         / 'Selection 2'.
    AT LINE-SELECTION.
      CASE sy-lilli.
        WHEN 4.
          seltab-sign = 'I'. seltab-option = 'BT'.
          seltab-low  = 1.   seltab-high   = 5.
          APPEND seltab.
          SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
                          WITH paramet eq 'Selection 1'
                          WITH selecto IN seltab
                          WITH selecto ne 3
                          AND RETURN.
        WHEN 5.
          wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
          wa_rspar-sign = 'E'. wa_rspar-option = 'BT'.
          wa_rspar-low  = 14.  wa_rspar-high = 17.
          APPEND wa_rspar TO rspar.
          wa_rspar-selname = 'PARAMET'. wa_rspar-kind = 'P'.
          wa_rspar-low  = 'Selection 2'.
          APPEND wa_rspar TO rspar.
          wa_rspar-selname = 'SELECTO'. wa_rspar-kind = 'S'.
          wa_rspar-sign = 'I'. wa_rspar-option = 'GT'.
          wa_rspar-low  = 10.
          APPEND wa_rspar TO rspar.
          SUBMIT demo_program_submit_rep1 VIA SELECTION-SCREEN
                          WITH SELECTION-TABLE rspar
                          AND RETURN.
      ENDCASE.
    Pls. reward if useful...

  • Assigning a String Value to the value attribute of html:file

    Hi,
    we facing a problem while assigning a value to the VALUE attribute of file tag
    <html:file property="fileupload" size='25' value="sample.xls" onchange="callsheet()" />
    can anyone help me out plzzz,

    Two points -
    1) Java is not Javascript or HTML; you would do better to find a more appropriate forum.
    2) When you take this to a better forum, you need to describe the problem.

  • Help Creating A Link In An IR Report Passing The Value From A Different Col

    Version 4.0.2.00.07
    Hello,
    I have an Interactive Report with a column that I need to create a link on but I need to pass the value of another column.
    This report shows the Features of a particular Release. There is a select list for the Release that is selected and executes the report.
    There is a column that indicates whether the Feature has a Commitment attached to it. If there is have that a link to another report that shows all the Commitments for that Feature by passing the FEATURE_ID which is also a column on the Feature report.
    Query:
    SELECT
          ,CASE WHEN ft.feature_id IN (SELECT cc.feature_id
                                       FROM customer_commitments cc
                                       WHERE ft.feature_id = cc.feature_id
                                      ) THEN 'Yes' ELSE 'No'
           END "Commitment Exists"
              ,ft.feature_id
    FROM ....If "Commitment Exists" has a 'Yes', the 'Yes' is a link that will pass the FEATURE_ID to another report that will show the Commitments for that Feature. If the "Commitment Exists" has a 'No' then no link.
    I was also wondering if the Commitment report could open in a seperate window and make it modal?
    I hope this is clear and someone could help me.
    Please let me know if it's not clear or more information is needed.
    Thanks,
    Joe

    To accomplish this I would build the link as part of the value. So if Yes the Yes itself would be a link, if No is simply text as today.
    It would look something like this:
    SELECT
          ,CASE WHEN ft.feature_id IN (SELECT cc.feature_id
                                       FROM customer_commitments cc
                                       WHERE ft.feature_id = cc.feature_id
           THEN
            '<a href="f?p=&APP_ID.:NEW_PAGE:&SESSION.::::Pn_FEATURE_ID:' || ft.feature_id || '">Yes</a>'
           ELSE
            'No'
           END "Commitment Exists"
              ,ft.feature_id
    FROM ....One problem with this approach is when you export the report (as a CSV for example). There are a few ways to handle this, one is to simply duplicate the column with clear text yes and no and set this column to be included on export and only visible on export. The other column, with the link, set it to no export.
    The other option is to add another condition on the REQUEST value.
    SELECT
          ,CASE WHEN ft.feature_id IN (SELECT cc.feature_id
                                       FROM customer_commitments cc
                                       WHERE ft.feature_id = cc.feature_id
           THEN
                  decode(:REQUEST, 'CSV', 'Yes'
                , '<a href="f?p=&APP_ID.:NEW_PAGE:&SESSION.::::Pn_FEATURE_ID:' || ft.feature_id || '">Yes</a>'
           ELSE
            'No'
           END "Commitment Exists"
              ,ft.feature_id
    FROM ....It seems that the link itself is getting replaced with a #. The link would look something like this:
    'f?p=&APP_ID.:NEW_PAGE:&SESSION.::::Pn_FEATURE_ID:' || ft.feature_id
    Hope this helps.
    Oh and of course, in order for the link to display you need to change the Display Type to "Standard Report Column" otherwise the HTML will be escaped.
    Thanks
    -Jorge

  • How to pass the values to stored proc using presentation variable in OBIEE

    Need your help regarding in resolving an issue in OBIEE 10.1.3.4.1
    There are 6 reports say ‘A’,’B’,’C’,’D’,’E’,’F’ in the same subject area.
    The reports are being configured with prompts using either the repository/presentation variables.
    One of the reports say ‘A’ has been configured to pass the values using presentation variables from the prompt in Advanced Tab of the report request to the stored procedure defined in the Execute Before Query section of the connection pool.
    After running another report ‘B’ in the same subject area, upon visiting the report ‘A’ view display error is being seen ( Please have a look below screen shot for your reference) .
    Speculate the issue is around presentation variables of report ‘A’ getting initialized even before running the report.
    Appreciate your earliest advise as this is a prod issue.

    Hi Prasad,
    I got your note, you should not use Session variable syntax to call presentation variable.
    you should use like @{AIC_PROJ_PLAT_SEQ_NO}
    One more thing: first test the variable AIC_PROJ_PLAT_SEQ_NO value then try to pass to SP.
    Hope this helps

  • Unable to pass the values to stored proc using presentation variable in OBI

    Hi All,
    Need your help regarding in resolving an issue in OBIEE 10.1.3.4.1
    There is an OBIEE requirement whereby two prompts need to be defined.
    1.     Textbox prompt
    2.     Drop-down prompt
    The dropdown values should be populated using textbox prompt. So, we have used presentation variable in textbox prompt and passing the same to select query of drop-down.
    Until this step, the report works just fine.
    Now, the value in both textbox and drop-down needs to be passed to stored proc.
    While trying to pass the values by using the presentation variable, the following error comes-up saying
    Session variable has no value definition.
    Note:Although the corresponding session variable has been set to default value,still the error appears.
    Please advise.
    Regards,
    Prasad

    "Session variable has no value definition" I'm assuming typo error and it should be presentation variable.
    Set default value for presentation variable that may work

  • Passing the values between two pages

    hi all,
    I am trying to pass the value from one page to another page. by referring the Link
    http://www.youtube.com/watch?v=4eyzBiIf5MM&feature=related
    I have created the code based on the demo. it is deployed without any issues. but when i press the hyperlink from the first page it is not moving to the second page.
    Regards
    C.Karukkuvel

    Hi john,
    My Requirement is to create a ADF page based on the Human Task with the Default payload. In that page when the user presses the empid link field, It will show all the information related to the employee id in a separate page.
    so ,
    1. i have created the View Object based on the Query with where clause
    2. Create a bind variable for the where clause
    3.Created s new page for displaying the employee details
    4.drag and drop the both the pages (employee details, default page created by human task) into the adfcconfig file.
    5.drag and drop the Execute with params into the adfcconfig file
    6.wire it from human task page --> execute with params--> Employee details page
    7.change the employee field in that human task page to a link field.
    8.drag and drop the set property listener to that employee field.
    Testing
    Enter the input values for the Web service, logging to the BPM worklist, double click that task .it is showing the details when I press the employee id it is not navigating to the employee details page.
    Thanks in advance
    C.Karukkuvel

  • Passing the values from one pgm to another pgm (Calling pgm has no sel scr)

    Hi gurus,
    In my requirement i need to pass the values from one program to another program.
    I am using SUBMIT statement . But , the program which i am calling has no selection screen.
    So how can i pass the values?
    Please help me ASAP.
    Regards,
    Bhanu.R

    Export your internal tables or work areas to a memory id in ur program before u use submit.
    Then in second pgm you have to import from memory id given above.
    example.
    EXPORT gs_header FROM gs_header to memory id 'HEADER'.
    EXPORT gt_item FROM gt_item to memory id 'ITEM'.
    SUBMIT YFIIN_DISHC_MAILREPORT EXPORTING LIST TO MEMORY AND RETURN.
    In your second pgm you can write
    import gs_header TO gs_header from MEMORY id 'HEADER'.
    import gt_item TO gt_item from MEMORY id 'ITEM'.

  • Passing the values in Recipe  PLM WEBUI

    Created a new tab for Recipe via customization in PLM Web UI. But I am not able to  create new fields in the screen and pass the values.
    Please let me know the configuration steps and how to pass the values to PLM Web UI

    Hi Shailesh
    You will have to create 'New Selection' in either Row/Columns (wherever you wish to display the Key Figures) or you could also create a 'Restricted Key figure'.
    In  the First Selection / RKF.. select the ey Figure for  'No of Employee' and then select the Characteristic for the From/To Period (0I_FPER).
    In the second Selection / RKF..select the Key Figure for the Amount and then select the Char for the From/To Period (0I_FPER).
    If there is any other characteristic which is used for identifying the Employees that have resigned, (say for Eg. Employee Status could be 0 for resigned employee, a hypothetical case), select the char. for Employee status with the value '0' and include it in both the selections / RKFs and you will get the desired results.
    Pl remember, if you select a period variable with a range (i.e. from and to values within the same variable)  , then you will get only one column for 'Amount' and the value in this column will be for value for the period.
    If you want Amount for From and To values to appear in two different columns , the do not select variable with a 'range'. Instead select two variables with single value , one each from From and To.  (However, I am not sure if you requirement wants From and To in two different columns, although, you are saying so !!!). If you select two variable (say for eg. ZPERIOD1 and ZPERIOD2 then in your selections you will not use 0I_FPER instead the new variables).
    Hope you find the answer useful.
    Regards
    Umesh

  • Passing the values from the graph when we use Navigate to the BI Content

    Hi,
    The following are the problems which we are facing when navigating to the other BI report.
    1)When using the “Navigate to BI content” action the values are not getting passed to the detail report from the graph. Is there any limitation or any alternative to make it work?
    When I click on the Bar graph I need to pass the corresponding period and the dimension (EX: Operating Unit – Vision Services R+D) to the detail report.
    2)I have tried using the “Navigate to Web page” action. I am able to pass the values but the page is getting opened in another window. I want that page to be opened in the same window so that my presentation variable values are not lost.
    3)When I click on the bar graph, I am able to pass the values period and operating unit. But my presentation variable values are lost. I want to retain them.
    Please help me out in achieving this scenario.
    Thanks,
    Chaithanya

    Hi,
    In the column properties give the navigation to other reports from the interaction tab and make a chart with the column and in the dashboard -->edit dashboard-->in the section where the report is placed--->give 'drill in place'.
    Regards
    MuRam
    NOTE: Please mention if this resolved your problem/still facing and close the thread.

Maybe you are looking for

  • What is missing in OS 5.0 ??

    Hello Folks, I updated my BB into 5.0 after struggling for 8 months with 4.6 .. For the whole period i was regretting why i bought one (Definetly because of BBM ). Once I updated into 5.0 things changed. I fell in love with it . it is cuter, with ric

  • Query of month to date

    <u></u> Hi all, i need to define a query to restrict the key figure base on month to date(current date") of this year, and the range of last year. **let's say today i run the query, and today is 11 of Aug,so i want to get the this year's Month to dat

  • Trip simulation error in WD ABAP

    Hi SDNers, We are using WD ABAP based travel management via ESS/MSS with EP 7.0 ECC 6.0 EhP4 landscape. We are trying to raise a travel request for various employees (pernrs), it gives the following error message. Trip can not be saved due to errors

  • Using script to automatically arrange timeline and sceneline workspaces.

    This is a simple demonstration of using VB Script to adjust panels in PE3. In PE3, when you adjust the height of the timeline, the height of the sceneline is also adjusted the same amount, and vice versa. You could use script to automatically adjust

  • Posting slideshow on iweb from iphoto

    okay, i'm new to mac and website design. i would like to know how i can add a slideshow that i made in iphoto and place it on iweb? i'm using the 60 day trial. is this feature not available to me? in iphoto >share > send to iweb> the options aren't h