Problem accesing f:param Values

I have two pages Page A and B. One can navigate from A to B by clicking a commandLink below
<h:commandLink action="employerViewDetailPostedJobs">
<h:outputText value="#{record.heading}"></h:outputText>
<f:param name="*jobId*" value="#{record.jobId}"/>
</h:commandLink>Problem is i am findind it hard to obtain the jobId in Page B by using
FacesContext.getCurrentInstance().getExternalContext().getRequestMap().get("*jobId*")any suggestions would be appreciated

Actually, in your original post you used ExternalContext.getRequestMap(), not ExternalContext.getRequestParameterMap(). They both exist and there is a difference.

Similar Messages

  • Accessing param values using RichFaces Drag n Drop

    Hello everyone,
    I'm using RichFaces drag and drop support and I want to pass an additional parameter so that I can access it's value when processing the dragged/dropped object.
    My JSP has:
    <rich:dragSupport dragIndicator=":indicator" dragType="measure" dragValue="#{measure}">
           <a4j:actionparam name="operator" value="#{aggOp}" assignTo="#{SessionBean.tempAggOp}"/>
           <rich:dndParam name="label" value="#{measure.name} (#{aggOp})"/>
    </rich:dragSupport>
    <h:outputText value="#{aggOp}" style="font:11px arial;"/>On my backing bean method that processes the event, I can access the object's properties fine, but the param has a strange behaviour:
    The first time I drag an object, the param value is null on the bean. The second time, it has the value it should have for the first dragged object, and so on.
    Apparently the param value is being updated after the drop event method is called. Any ideas on how to change this please?
    Thanks in advance,
    ~Ruben

    To solve this problem I used <f:param> instead of actionParam:
    On the drag support component:
    <rich:dragSupport dragIndicator=":indicator" dragType="measure" dragValue="#{measure}">
                                                        <f:param name="operator" value="#{aggOp}" />
                                                        <rich:dndParam name="label" value="#{measure.name} (#{aggOp})"/>
    </rich:dragSupport>     On the backing bean:
        //dropped item processors
        public void processDropSupportTable(DropEvent dropEvent) {
            if (dropEvent.getDragType().compareTo("measure") == 0) {
                SOLAPMeasure dragged = (SOLAPMeasure)dropEvent.getDragValue();
                FacesContext context = FacesContext.getCurrentInstance(); 
                Map requestMap = context.getExternalContext().getRequestParameterMap(); 
                String tempAggOp = (String)requestMap.get("operator");
                System.out.println("dropped: " + dragged.getId() + " named: " + dragged.getName() + " whose operator is: " + tempAggOp);
        }

  • Rendering hyperlinks using h:commanLink and setting f:param values

    dear friends,
    I want to render some hyperlinks with <h:commandLink>
    and then I want to set the <f:params > value of each hyperlink
    all those things are stored in a ArrayList whose values depends on
    parameter that I want to pass through another JSF or JSP page
    I have alredy tried combination of JSTL and JSF tags it is working
    properly
    but there is one problem when page loads for the first time
    no hyperlink gets renderd on page after refreshing page it shows all those hyperlink s
    if anybody of you is getting my question and know wht to do in this situation please guide me abt the same
    By the way Happy New Year to All Java Technology Lovers

    Actually, in your original post you used ExternalContext.getRequestMap(), not ExternalContext.getRequestParameterMap(). They both exist and there is a difference.

  • Java-Application send a param value to a JSP

    Hi All
    I'd like to ask you if can possible to send a param value from Java-Application to JSP file, If yes please provide me with any example or notes. I know that there are a contribution for a communication with an applet to JSP, but with application i don't know.
    Thank you

    Check this out...
    http://java.sun.com/j2ee/tutorial/1_3-fcs/doc/Servlets5.html#73895

  • Problem in getting parameter value from selection screen in web dynpro abap

    Hi,
    I am facing problem in getting parameter value from selection screen.
    Please find my code below:
    DATA LT_PAR_ITEM TYPE IF_WD_SELECT_OPTIONS=>TT_SELECTION_SCREEN_ITEM.
    FIELD-SYMBOLS:<FS_PAR_ITEM> LIKE LINE OF LT_PAR_ITEM,
                                 <FS_OBJ_USAGE>    TYPE REF TO data.
      WD_THIS->M_HANDLER->GET_PARAMETER_FIELDS( IMPORTING ET_FIELDS = LT_PAR_ITEM ).
      LOOP AT LT_PAR_ITEM ASSIGNING <FS_PAR_ITEM>.
        CASE <FS_PAR_ITEM>-M_ID.
          WHEN `OBJ_USAGE`.
             ASSIGN <FS_PAR_ITEM>-M_VALUE->* TO <FS_OBJ_USAGE>.      
    [ Here, sy-subrc is 4,  <FS_OBJ_USAGE> is not assigning.]
        ENDCASE.
      ENDLOOP. 
    So, can any one solve this problem.
    Thanks in advance,
    Radhika

    Hi Radhika,
    Try using GET_RANGE_TABLE_OF_SEL_FIELD...
    Please Refer below code..
       DATA: NODE_FLIGHTS TYPE REF TO IF_WD_CONTEXT_NODE.
      DATA: RT_CARRID TYPE REF TO DATA.
      DATA: ISFLIGHT TYPE TABLE OF SFLIGHT.
      DATA: WSFLIGHT TYPE SFLIGHT.
      FIELD-SYMBOLS: <FS_CARRID> TYPE TABLE.
    Retrieve the data from the select option
      RT_CARRID = WD_THIS->M_HANDLER->GET_RANGE_TABLE_OF_SEL_FIELD( I_ID = 'S_CARR_ID' ).
    Assign it to a field symbol
      ASSIGN RT_CARRID->* TO <FS_CARRID>.
      CLEAR ISFLIGHT. REFRESH ISFLIGHT.
      SELECT * INTO CORRESPONDING FIELDS OF TABLE ISFLIGHT FROM SFLIGHT
                           WHERE CARRID IN <FS_CARRID>.
      NODE_FLIGHTS = WD_CONTEXT->GET_CHILD_NODE( NAME = `FLIGHTS` ).
      NODE_FLIGHTS->BIND_ELEMENTS( ISFLIGHT ).
    Thanks,
    Regards,
    Kiran

  • I am facing a problem in passing multiple values as out parameters from fo

    Hi All,
    i am facing a problem in passing multiple values as out parameters from for loop.
    EX:
    i have a select statment inside a loop like.....
    PACKAGE SPEC:
    create or replace PACKAGE EMP_PKG AS
    TYPE TAB_NUM IS TABLE OF SCOTT.EMP.EMPNO%TYPE;
    TYPE TAB_NAME IS TABLE OF SCOTT.EMP.ENAME%TYPE;
    TYPE TAB_JOB IS TABLE OF SCOTT.EMP.JOB%TYPE;
    temp_table TAB_NUM;
    procedure test(temp_TAB_e_no OUT TAB_NUM,
    temp_TAB_e_name OUT TAB_NAME,
    temp_TAB_e_job OUT TAB_JOB);
    END EMP_PKG;
    PACKAGE BODY:
    create or replace PACKAGE BODY EMP_PKG AS
    v_e_no NUMBER;
    procedure test(temp_TAB_e_no OUT TAB_NUM,
    temp_TAB_e_name OUT TAB_NAME,
    temp_TAB_e_job OUT TAB_JOB) IS
    BEGIN
    select EMPNO bulk collect into temp_table from emp;
    for i in 1..temp_table.count loop
    v_e_no := temp_table(i);
    select empno,
    ename,
    job
    into temp_TAB_e_no(i),
    temp_TAB_e_name(i),
    temp_TAB_e_job(i)
    from emp
    where empno = v_e_no;
    end loop;
    end test;
    END EMP_PKG;
    PROBLEM FACING IS:
    I am expecting all rows returning from bellow select statment ...
    select empno,
    ename,
    job
    into temp_TAB_e_no(i),
    temp_TAB_e_name(i),
    temp_TAB_e_job(i)
    from emp
    where empno = v_e_no;
    But,while running the SP , i am getting error like
    ORA-06531: Reference to uninitialized collection
    ORA-06512: at "SCOTT.EMP_PKG", line 16
    why i am not getting all values as out parameters.please provide a solution for me.
    Thanks in advance my friend.

    user9041629 wrote:
    Hi All,
    i am facing a problem in passing multiple values as out parameters from for loop.
    EX:
    i have a select statment inside a loop like.....
    PACKAGE SPEC:
    create or replace PACKAGE EMP_PKG AS
    TYPE TAB_NUM IS TABLE OF SCOTT.EMP.EMPNO%TYPE;
    TYPE TAB_NAME IS TABLE OF SCOTT.EMP.ENAME%TYPE;
    TYPE TAB_JOB IS TABLE OF SCOTT.EMP.JOB%TYPE;
    temp_table TAB_NUM;
    procedure test(temp_TAB_e_no OUT TAB_NUM,
    temp_TAB_e_name OUT TAB_NAME,
    temp_TAB_e_job OUT TAB_JOB);
    END EMP_PKG;
    PACKAGE BODY:
    create or replace PACKAGE BODY EMP_PKG AS
    v_e_no NUMBER;
    procedure test(temp_TAB_e_no OUT TAB_NUM,
    temp_TAB_e_name OUT TAB_NAME,
    temp_TAB_e_job OUT TAB_JOB) IS
    BEGIN
    select EMPNO bulk collect into temp_table from emp;
    for i in 1..temp_table.count loop
    v_e_no := temp_table(i);
    select empno,
    ename,
    job
    into temp_TAB_e_no(i),
    temp_TAB_e_name(i),
    temp_TAB_e_job(i)
    from emp
    where empno = v_e_no;
    end loop;
    end test;
    END EMP_PKG;
    PROBLEM FACING IS:
    I am expecting all rows returning from bellow select statment ...
    select empno,
    ename,
    job
    into temp_TAB_e_no(i),
    temp_TAB_e_name(i),
    temp_TAB_e_job(i)
    from emp
    where empno = v_e_no;
    But,while running the SP , i am getting error like
    ORA-06531: Reference to uninitialized collection
    ORA-06512: at "SCOTT.EMP_PKG", line 16
    why i am not getting all values as out parameters.please provide a solution for me.
    Thanks in advance my friend.Probably not a bad thing that this isn't working for you.
    This is a horrible way to return the contents of a table.
    Are you doing this for educational purpose, or ... what is your goal here? If you just want to return a result set to a client you'd want to look in to using a REF CURSOR and not a bunch of arrays combined with horribly procedural (slow) code.

  • Howto pass dynamic jsp:param value to applet

    Hi.
    I have a JSP page with 3 to 4 links... and an applet with jsp:plugin .
    So i want to pass the URL behind the link to the applet as a Request Param..
    My JSP code looks like
    <a link href="www.google.com">Google</a>
    <a link href="www.oracle.com">Oracle</a>
    <a link href="www.gmail.com">Gmail</a>
    <jsp:plugin type="applet"
                                code="MyApplet"
                                height="0" codebase="../../jars/" width="0"
                                name="MyApplet"
                                align="bottom">
                            <jsp:params>
                                    <jsp:param name="applicationURL"
                                               value="this should be the "/>
                            </jsp:params>
                            <jsp:fallback>
                                    <p>This feature should run on applet supported
                                       browser.</p>
                            </jsp:fallback>
                    </jsp:plugin>and my applet code looks like
    init()
              String appURL = getParameter("applicationURL");
                    System.out.println(appURL);
              }I have a similar thread in Java forums... Howto pass dynamic jsp:param value to applet
    Thanks,
    Murali.

    My JSP code looks like
    <jsp:plugin type="applet"
                                code="MyApplet"
                                height="0" codebase="../../jars/" width="0"
                                name="MyApplet"
                                align="bottom">
                            <jsp:params>
                                    <jsp:param name="applicationURL"
                                               value="applicationURL"/>
                            </jsp:params>
                            <jsp:fallback>
                                    <p>This feature should run on applet supported
                                       browser.</p>
                            </jsp:fallback>
                    </jsp:plugin>and my applet code looks like
    init()
              String appURL = getParameter("applicationURL");
                    System.out.println(appURL);
              }Now i want to have links on JSP pages clicking on which corresponsing url will be displayed in applet.
    Edited by: 635237 on Jan 24, 2011 10:44 AM
    Edited by: 635237 on Jan 24, 2011 10:45 AM

  • Problem with Selection screen values of an authorization variable

    hi Gurus,
    I have an authorization variable for Division in my queries....Now whenever a user tries to run the query...a list of divisions is available to him....All divisions for which he/she has proper roles assigned.
    Now the problem is that these values are not restricted to the ones relevant to that query (namely the multi provider)
    Eg. for a Flowers Query (divisions relevant to Flowers only) all the divisions (including the ones for Vegetables, Crops etc.) are also visible only because these roles are also assigned to the same user. This needs to be avoided.
    In a nutshell....
    Is their any way by which i can restrict the number of values popping up for an authorization variable in the selection screen, to only those values which are relevant to the info-provider on which the queries are based ???

    hi Deepu,
    I did go through that SAP note. I just have one concern regarding that. The check at the Info provider level is clear enough and i already have that in place. Now there are 2 more checks required a) at the info object level and b) at the BEX designer level.
    Are all three checks required???
    and also how do you  place the check at the BEX level??? i could not quite figure that one out...
    Any inputs would be welcome.
    Thanks,
    Nikhil

  • System-property in param-value?

    Hi all,
    Is it possible to use a system-property override in a param-value element in the cache config? It doesn't seem to work for me. I have this:
    <cache-mapping>
    <cache-name>foo</cache-name>
    <scheme-name>default-near</scheme-name>
    <init-params>
    <init-param>
    <param-name>default-near-expiry-delay</param-name>
    <param-value system-property="foo.expiry-delay"/>
    </init-param>
    </init-params>
    </cache-mapping>
    Setting -Dfoo.expiry-delay=1m on the command line doesn't take effect. I've also tried putting a default in param-value and it works, but not the override. What I'm trying to do is use the same scheme for different caches, but parameterize the expiry for each.
    thanks
    john

    I just ran in to an inconvenient quirk. I thought I would be nice to add system properties for a number of caches so they will be there when I need them. I had something like this:
    In the cache mapping:
    <param-name>expiry-delay</param-name>
    <param-value system-property="foo.expiry-delay"/>
    In the scheme:
    <expiry-delay>{expiry-delay 5m}</expiry-delay>
    If I don't specify the foo.expiry-delay system property at all, I would like to get the default, but instead I get a NumberFormatException:
    java.lang.NumberFormatException: passed String ("") must contain a number
    at com.tangosol.util.Base.parseTime(Base.java:2756)
    at com.tangosol.net.DefaultConfigurableCacheFactory.instantiateLocalCache(DefaultConfigurableCacheFactory.java:1
    384)
    at com.tangosol.net.DefaultConfigurableCacheFactory.configureBackingMap(DefaultConfigurableCacheFactory.java:969
    at com.tangosol.net.DefaultConfigurableCacheFactory.configureCache(DefaultConfigurableCacheFactory.java:839)
    at com.tangosol.net.DefaultConfigurableCacheFactory.ensureCache(DefaultConfigurableCacheFactory.java:284)
    at com.tangosol.net.CacheFactory.getCache(CacheFactory.java:606)
    at com.tangosol.coherence.component.application.console.Coherence.doCache(Coherence.CDB:15)
    at com.tangosol.coherence.component.application.console.Coherence.processCommand(Coherence.CDB:192)
    at com.tangosol.coherence.component.application.console.Coherence.run(Coherence.CDB:39)
    at com.tangosol.coherence.component.application.console.Coherence.main(Coherence.CDB:3)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    at java.lang.reflect.Method.invoke(Method.java:324)
    at com.tangosol.util.ClassHelper.invoke(ClassHelper.java:746)
    at com.tangosol.util.ClassHelper.invokeStatic(ClassHelper.java:689)
    at com.tangosol.net.CacheFactory.main(CacheFactory.java:1115)
    thanks

  • Changing init-param value for servlet filter after deployment

    Is it possible to change the <param-value> of a servlet filter's <init-param> for a deployed app through Weblogic Console? Can't seem to find a place in the console where this is exposed.
    The <init-param> of course is specified in web.xml as:
    <filter>
    <filter-name>foo</filter-name>
    <filter-class>bar</filter-class>
    <init-param>
    <param-name>name</param-name>
    <param-value>value</param-value>
    </init-param>
    </filter>

    Hi,
    U can use "Plan.xml" feature provided by WLS to change the Deployment Descriptor values without Editing Physically inside your WAR or EAR or JAR application.
    Please refer to:
    http://forums.oracle.com/forums/thread.jspa?threadID=1107834
    http://weblogic-wonders.com/weblogic/2009/12/16/updating-cookiename-using-plan-xml/
    http://weblogic-wonders.com/weblogic/2010/03/14/adding-workmanager-using-plan-xml-to-a-war-file/
    Thanks
    Jay SenSharma
    http://weblogic-wonders.com (Middleware Wonders Are Here)

  • Problem when defaulting a value to the field

    Hi CRM Experts,
    I am new to CRM, i am facing a problem when defaulting a value to the field in the Tcode 'SOLMAN_WORKCENTER' (Solution Manager Server).
    when i am defaulting it is displaying fine in the view( Redefined the getter method there i passed the value), i set a break point in the getter method when i am executing the getter method i am unable to get the defaulted value in the importing parameter value, but i am getting the value here when i used to type manually in the filed, i cant understand why it is behaving like that? please can any body help in this regard...
    Thanks in advance
    Hari..

    There are other ways to get the string-value of an enum (format into string with a %s formatter for instance).
    But I have no idea what you are seeing.
    However I would not use the enum to string technique chose you have, just add the enum to the 'file' VI as an input.
    And the =0 comparison you have is useless, add the enum to the case structure as the selector.
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Problem to fetch aquisition value

    hi,
    i am facing the problem to fetch aquisition value.
    my smart form working fine if equipment is not goes for AUC settlement but when it goes for settlement then i m not getting the aquisition value for deptt.
    since after settlement equipment assign with a new asset number. so i m not getting the exect field to get the aquistion value.
    b4 that i m using aqistion value for deptt is kansw from anlc table but it fails under settlement.
    i got one field AIBN1 in ANLA for new asset number under settlement but not sure about the amount that where it will b.
    since in our dev system data is not there so i m not sure that where i will get the aquision value, i hav track one field in ANLA (URWRT) or field will be same KANSW for new asset number in ANLC..
    please help me if u can?
    thanks in advance and marks will be sure for each helpfull answer*
    regards
    vijay

    Hi Vijay,
    Yes the field is right. It will store the original asset number.
    Regards,
    Atish

  • XMLTansform and xsl:param values

    Hello,
    I would like to know if it is possible to pass xsl:param values when calling XMLTransform(xml, xsl).
    If not, is there another way to render an XML with an XSL that takes parameters?
    Thank you.

    RDC has been deprecated since version 9 meaning no new functionality has been added to it. Cascading Parameters were added in CR 11.
    There is no set of API's to access these types of Parameters at this time.

  • How to open a report without refreshing  and sending some param value

    we have a summary report which has links to the detail report.For example the summary report has data like
    Countries        EmployeeCount
    UK                5
    US                6
    China                7
    Total                18
    When we click on China it must show the Employees whose country is China (detail report) When we click on Total it shows Employee of all countries UK,US,China...
    Now when we run the summary report online say at 5:10 it shows the staus of countries at 5:10.Say the report is open while an employee of china is moved from China to Uk.But when we open the detail report it shows China count as 6 which should actually be 7 according to the summary report run time.
    A similar problem exist when we schedule the report .When we schedule the summary report and detail report at same time..And then try to open the scheduled instance of detail report from summary scheduled instance ,It only works fine if no parameter is passed to openDocument url.
    Say suppose I click China on summary report the Value China should be passed to detail report as Country.But whenever we try to open a scheduled instance of Detail Report along with a parameter using openDocument Url.It refreshes the whole data even though refresh is set to 'N'.So the scheduled data is lost..Even if we try for Drillfilters in detail Report we cannot set it at runtime using open document Url.

    Mihail - I detailed a couple of approaches here: Re: Application Link
    Scott

  • Having problem to get the value from radio button

    i am doing my double module project for my degree course and i am also a newbie in JSP. Hope there is someone can help me to solve this problem. Now, i set the value of a radio button to "don't smoke", "smoke lightly", and "smoke heavily". Then i use request.getParameter ("smoking behavior") to get the value selected by the user, but the result is only "don't" or "smoke", which the character after spacing will be not be retrieved. I dun know how to solve it, so can any expert here help me to solve this problem? Thanks for helping.

    Why do you have to use whitespace. If your radio button group is name smokingBehavior - no whitespace, wouldn't it just make sence to have values of don't, lightly and heavily. This would solve the problem easily. If your teacher is being a pain in the a&!, and requires you to use whitespace for your naming variables I guess you could insert %20 between the two words and unescape the value on the server side. This seems like a lot of unnecessary work and a silly solution - good luck!

Maybe you are looking for

  • Error through F-44 that  Consolidated  companies 1000 and ' ' are different

    Dear Expert At the time of Vendor clearing through F-44 I get the warning message that "Withholding tax information ignored" where Withholding tax related customization and master has been updated accordingly. If I ignore the same warning and save th

  • Jsf datatable inside datatable component rendering problem.

    I am creating an online survey application using JSF with IceFaces component library. The survey can have any number of questions. Each question can be any one of the types checkbox, radio button, etc with multiple options. For this, I am using a dat

  • JDBC Adapter - Connection Pooling

    Does anybody know if we can specify a Connection Pool to the JDBC Adapter? I mean the number of connections that the Adapter can have open to say Oracle Data. Regards Mike

  • Indesign broken link file open performance

    We use Indesign CS3 on a windows network with a DFS backend handling data replication. We recently changed server technology, to take advantage of windows DFS, and that subsequently changed the unc path that is in the links inside of our Indesign doc

  • Daqmx error 200547 and 500247

    Hi all, Iam working on the pci-6723 and labview7.1 and daqmx 7.3 version software,when iam running the following attached programme iam getting 2 errors 1.200547 daqmx write fails 2.500547 transfer didnot complete within the specified timeout period