AdfFacesContext.getCurrentInstance().getPageFlowScope().put() Issues

Hi,
I have a bounded task flow and have defined a bean (UserDetails) defined in it.
Now in a class, I create a new object of the bean and use the following to put the object in the page flow scope:
AdfFacesContext.getCurrentInstance().getPageFlowScope().put("UserDetails",userDetails);
When I run the code, I get a null pointer exception at AdfFacesContext.getCurrentInstance().getPageFlowScope();
Can you please give an idea so as to how to put the object in the page flow scope?
There is something that I am doing wrong. Can you please point that out to me?
Regards,
Sud.

Thanks for the reply.
I run the java code and from there I call AdfFacesContext.getCurrentInstance().getPageFlowScope().put().
By the way John, I a populating a jspx page(with af:selectOneChoice and f:selectItems) with data that is fetched after a web service call.
The data is a Map, which actually contains values that are an arraylist.
So in order to populate this array list of questions, I created a bean with attributes, something like this:
This fetches the array list from the map.
List<QuestionBean> questionSet = null;
QuestionBean questionBean = null;
while (itt.hasNext()) {
questionSet = new ArrayList<QuestionBean>();
Map.Entry p = (Map.Entry)itt.next();
System.out.println(p.getKey() + " " + p.getValue().getClass());
ArrayList all = (ArrayList)p.getValue();
Iterator it2 = all.iterator();
while (it2.hasNext()) {
questionBean = new QuestionBean();
FoxChallengeQuestion question = (FoxChallengeQuestion)it2.next();
questionBean.setQuestion(question.getQuestion());
questionBean.setQuestionId(question.getQuestionId());
System.out.println("Question : " + questionBean.getQuestion());
questionSet.add(questionBean);
systemQuestions.add(questionSet);
Now in the bean "ChallangeQuestionsSetBeans ", I put each arraylist in an attribute questions5
private List<SelectItem> questions5;
List<QuestionBean> questionSet5 = systemQuestions.get(4);
this.questions5 = new ArrayList<SelectItem>();
for(QuestionBean bean : questionSet5) {
item = new SelectItem();
item.setLabel(bean.getQuestion());
item.setValue(bean.getQuestionId());
questions5.add(item);
I have set this bean ChallangeQuestionsSetBeans in the page flow scope, and used the following expression in the jspx to populate the values of the array list in the page:
<af:selectOneChoice label="Security Question 5" value="#{pageFlowScope.ChallengeQuestionSetBean.selectedQuestion5}" id="selectOneChoice5">
<f:selectItems value="#{pageFlowScope.ChallengeQuestionSetBean.questions5}" id="selectItem13"/>
</af:selectOneChoice>
I can see the values in the array list in the back end.
but when the jspx page executes, I do not see the values populating.
In the task flow, the above mentioned activities are called as a method and from the method call initialized the bean ChallangeQuestionsSetBeans
Where exactly am I going wrong. Is the task flow re-initializing the bean ChallangeQuestionsSetBeans while the jspx is rendered?
Please let me know if any other information is required.
Regards,
Sud.

Similar Messages

  • Dreamweaver 8.0.2 "Put" Issue with WebDav

    Dreamweaver 8.0.2 "Put" Issue with WebDav
    In Dreamweaver:
    I am able to see all of the files in the local and I can see
    all of the files in the remote. So here is the kicker....
    Dreamweaver is only allowing me "Read" access" in the remote view.
    When I try to "Put" files to the server I get an error that says
    the put failed... "Access Denied" I am using the exact same
    credentials in DW8 with WebDav.
    In Windows:
    In Windows (My Network Places) I use Windows XP's "web
    folders" to bring up an explorer window of my remote servers files.
    Read, Write, Edit, Delete works just fine from Windows "web
    folders". I am pretty sure "web folders" are an example of a WebDAV
    client. When I access the server (remote) folder via Internet
    Explorer 7 and Web Folers (WebDav client) I am able to Write, Read,
    Edit, Delete.
    What we have tried:
    - We gave full right access. Still did not work.
    - We updated Dreamweaver to DW8.0.2 and it still doesn't want
    to work.
    Here is what an error message looks like in Dreamweaver
    {Background File Activity - Detail}
    Started: 5/2/2007 4:07 PM
    Lean\5S\default.aspx - error occurred - An HTTP error
    occurred - cannot put default.aspx. Access Denied. The file may not
    exist, or there could be a permission problem.
    File activity incomplete. 1 file(s) or folder(s) were not
    completed.
    Files with errors: 1
    Lean\5S\default.aspx
    Finished: 5/2/2007 4:07 PM
    Any help here would be much appreciated!
    Is this a Windwos rights issue, Microsoft IIS issue, or a
    dreameaver issue?
    HELP...HELP..HELP - Thank you.

    We found the answer.... We need to remove the extension in
    IIS. In IIS you must go into the application configuration IIS >
    Home Directory Configuration... > App Mappings > Remove
    Extensions used. By removing the ASP, ASPX and SHTML extension APP
    Mappings we were able to upload files to the site.
    Website 2: Setting up a second IIS website devoted to
    handling WebDAV requests. **** Read Item # 3 ***
    http://www.adobe.com/cfusion/knowledgebase/index.cfm?id=tn_19095
    Here is the cut of text from article.
    Disable the ASP script server, the ColdFusion script server
    or other script server you may be using. You do this by clicking
    the "Configuration..." button in the screen shot above and removing
    the appropriate DLL. This will prevent IIS from sending the
    server-side script to the application server for processing.
    Someone editing a ColdFusion page would want to see the
    pre-processed ColdFusion code, not the resultant post-processed
    HTML code.
    Everything now is working just fine... Adobe Phone Tech
    Support helped us solve this one. Thank you.

  • Delivery out put issue

    hi,
    i am not able to get the print preview for delivery output, i have checked delivery output has got determined, when i goto vl02n, and issue out put then i am able to get the delivery output type, when i select the output type and click on the print preview i get the error "output could not be issued" errormessage no. vl086.
    please suggest

    Hi,
    1) Kindly check what output type is assisgned to the Delivery Type at OVLK.
    2) Then goto Tcode-> NACE.
    Select V2-> 'Shipping' and click on Condition Record.
    Then select the approprieate Access sequence and check whether condition record is maintained or not.
    3) If condition record does not exit create , if created then select the approprieate method and Select the condition record and click on the communication button. Here Output Device, Print immediately should be checked.
    Thank You,
    RB

  • How to put "Issue Tracking" Demo HTML DB application in my development site

    I have set up Oracle 10g DB and HTML DB 1.5 on my Windows/XP machine.
    I also downloaded issue_tracker-3rd demo to my machine.
    I am new to HTML DB.
    Can someone tell me how to put issue_tracker into my HTML DB environment and test running it?
    Many Thanks....

    cckung,
    If you unzip the issue tracker zip file you will find it has a readme.txt file in it.
    You should just follow the directions in this file and you'll have the demo working in no time.
    Greg

  • MRP out put issue

    Dear All PP gurus,
    I am having one issue regarding MRP as below
    We encounter one item 1.03424.0009  x 6 , which system did not prompt us to buy on 30.03.09 after MRP run .
    Can you please advise why ?
    strategy is 40,MRP type PD ,Lot size is MB,Availability check ZC,Procurement type F.
    Means what my problem is that why the system didnot prompt to buy yhis item on 30.03.2009?
    Thanks,
    Narayan

    Hi,
    Please create a planning file entry for this material - plant combination using MD20.
    After creating the entry, re-run MRP & the system should put out a procurement proposal if there is no stock.
    Check & revert if it resolves the issue.
    Regards,
    Vivek
    Added
    For MRP run to consider a material, initial pre-requisites the MRP type should be relevant for MRP eg: PD, then a planning file entry should exist.
    In this case as you say there is no planning file entry, system will not consider the same. Hope it clarifies your query.
    Edited by: Vivek on Apr 7, 2009 4:24 PM

  • Multiple Out put issued

    Dear All,
    I have one sales order where out put types DLO1, DLO3 and DLO4 are determined as sales order confirmation out put. The transmission medium for all of these is Print out ie external send.
    Here in the sales order multiple out puts are issued. Customer has received 5-6 mails for each output. When i go to out put determination / edit screen thre also i can see as many number of lines partaining to output types.
    Can you please help me solving this issue since i am not able to analyse from where or how this thing is happening.
    One imp thing i noted that all the out put are automatically detemined. I mean no mannual addtion of lines has happened.
    Regards,
    Vishi.

    Hi Vishi
    Please check you routine associated with your output type, suppose you have a requiremnt that is qty=5 then trigger DLO1, in such cases every time you save sales order with qty =5 output will trigger automatically.
    To avoid such cases add some code in routine that is output has already triggered then don't trigger.
    Take help of ABAPer.
    try and revert

  • Out Put issue in Billing

    Hi Gurus,
    I have customized billing document out put as follows:
    1) i have maintained condition table 002 that is Sales Org/Billing document type.
    2) i have maintained condition type with Z and given appropriate name and In the overview i have maintained following details against each Tab:
        General Data tab :
               i have given access sequence as 002 that is Sales 
                                org and billing type i have clicked on Access to 
                                conditions.
         Default values tab :
             Dispatch time : 3 Send with application own transaction
             Transmission medium : Print output
             Partner function : BP bill to party
             Communication Strategy : blank
         Time tab:
             no were i have maintained  any value.
         Storage System:
             Storage Mode : printing only
             Document type: SDINVOICE
          Print:
            Print Param : Sales organization
    In Processing routines :
      in output type : i have maintained my own output type
      Application : V3
      Medium  : Print out
      Program : RLB_INVOICE
      FORM routine : Entry
      PDF/Smart form : ZLB_BIL_VATINVOICE2
    Partner function :
      i have maintained Out type
                                  Medium : print out
                                  function : BP
    In determination procedure V10000
          i have maintained my output types and i have given requirement  62 for my all out put types.
    and i have assigned this out type procedure to my billing documents.
    i have maintained condition records (VV31) for my key combination Sales org and billing type.
    But problem is after saving my billing document and posting the billing document i am not getting out put type automatically.
    Even i am not able to see any billing documents in t-code VF31 after giving necessary details.
    So pls tell me where i am wrong in config
    My second question is we have made couple of invoices proper to this config so will system pick up those invoices which are pending for print out by giving VF31.
    Please reply me on urgent basis since all the invoices are pending for print out and client is panic.
    Correct asn will get good reward.
    thanks & regards
    Srini

    Hi murali,
    thanks for your reply
    I have maintained communication for condition records
    like Output Device : ZAA3
    clicked on  Print immediately
                     release after output
    these i have maintained in condition records.
    So please tell me where else i am missing.
    thanks
    Srini

  • Deliver out put issue

    sales order is created for sales area 1000/10/00. The material used in the sales order belongs to division 10.
    There is a condition record maintained for delivery output with combination of 1000/10/10 and this is getting picked at the delivery header.
    question is how this record is picked up in the delivery of the sales order that is created for 1000/10/00.
    Issue is imp, kindly guide on this.

    Helllo,
    Goto change mode of the Delivery document and goto the Extras-Delivery output-Header and then choose the output type
    In the Menu bar you can find DETERMINE ANALYSIS for output,  Please check there, you can get some idea .
    May be in the Output definition you might have set the Output as Manual entry option also.
    Please check and revert back.
    regards,
    santosh

  • "Put" issues

    I do hope someone can help me. I have been thru adobe support, dreamweaver, other forums, etc.
    I have two sites that I work on and use Dreamweaver for both. One site (appliedtaiji.com) will not update files, all of a sudden. There are two people who work on this site and I can't figure out why it will not update now. I added paypal buttons and they were working fine, now only one of them works. They work from my computer (C:) files, but dreamweaver will not update from either of our computers. The second site (taijicommunity.com) updates fine so I know it is an issue with the appliedtaiji.com site, but I can't find what is causing it. Can you help?
    Thank you,
    Suzanne

    That was weird, because I actually rememberd to paste the link in the email. This time I am trying it from the post instead of an email. LOL
    <form target="paypal" action="https://www.paypal.com/cgi-bin/webscr" method="post"> <input type="hidden" name="cmd" value="_s-xclick" /> <input type="hidden" name="hosted_button_id" value="8ZGVWZ3RYN2UJ" /> <input type="image" src="https://www.paypal.com/en_US/i/btn/btn_cart_SM.gif" border="0" name="submit" alt="PayPal - The safer, easier way to pay online!" /> <img alt="" border="0" src="https://www.paypal.com/en_US/i/scr/pixel.gif" width="1" height="1" /> </form>

  • Output Put Issue - ME9A RFQ

    Hi ,
    I have created on requeset for quotation document with standard document type : AN. I am trying to create the printout from ME9A t.code. it is throughing the following..
    error details: No schedules eixst for the scheduling document 600000175.
    what is remedy for this . i tried in different to give printout, but i could n't able to do it.
    if any body having ideas please let me know.
    Regards,
    Naga

    got solution

  • ALV GRID out put issue

    hi,
    how to increase the font size of the output of alv grid...
    Actually my list is printing nearly 50 lins in one page how to control it to 20 and how to increase the font size in the alv grid output
    can anyone guide me its bit urgent  plzzzzzz
    SIRI

    Ya Rich,
    Actually... While i am taking all the records on the paper i got all the records on one page so if they wanted to enter some more data in the last filed which i provided blank they were telling that its too small font and its not so easy to enter
    so they were asking me to do the above job
    how to do that can u guide me plz
    SIRI

  • Building table based on a pageFlowScope variable

    Hi,
    I am trying to show a page with a popup that contains a region. Within the region, I am trying to build a table using a pageFlowScope variable as
    <af:table var="row" rowBandingInterval="0" id="t4"
    value="#{pageFlowScope.expression}"
    binding="#{exprBean.expression}">
    <af:column sortable="false" headerText="col5" id="c2">
    <af:inputText value="#{row}" id="it3"/>
    </af:column>
    </af:table>
    <af:commandButton text="Add Row" id="cb1"
    partialSubmit="true"
    actionListener="#{exprBean.addRow}"/>
    Here "pageFlowScope.expression is a List<String> object.
    The pageFlowScope.expression is being passed from the parent page to the region. The value comes up on the page which i have tried to print out in the region using <af:inputText> and this comes up fine.
    I am able to get the individual items as rows. Now, I want to dynamically add a row to the list. (I initially have one row).
    So, in the backing bean for this page, I have the following code for "add row"
    public void addRow(ActionEvent actionEvent) {
    RowKeySet rkSet = expression.getSelectedRowKeys();
    if (rkSet != null) {
    System.out.println("row key="+expression.getRowKey());
    Iterator it = rkSet.iterator();
    if (it.hasNext()) {
    Object key = it.next();
    expression.setRowKey(key);
    else {
    expression.setRowKey(new Integer(0));
    List<String> newExpr = new ArrayList<String>();
    newExpr.add(expression.getRowData());
    newExpr.add(new String());
    AdfFacesContext.getCurrentInstance().getPageFlowScope().put("expression", newExpr);
    Here, I want the table to get refreshed with the new list that i put in the pageFLowScope.
    But the problem here is though this gets called, the table stops with a message "Fetching Data..."
    I tried with a simple partialSubmit for teh button as:
    <af:commandButton text="Add Row" id="cb1"
    partialSubmit="true"/>
    But even in this case, the table doesn't show up the old data. It just shows "Fetching Data..."
    Edited by: user646817 on Sep 7, 2010 10:45 PM

    Hi,
    I have tried that too. But to no avail. I still get to the same issue.
    Before long, I would like to mention that I am working with a non-bc4j component. And my jdev version is 11.1.1.3
    I also built a data control which would return a list of strings. With this I bound the table in the page and after adding i refreshed the iterator. But strangely, i am still getting the same.
    The table gets refreshed but the inner content doesn't come out.
    I only see 'Fetching Data...' for long.
    And to add more info, this page is actually a page fragment within a region that is included as a popup in another page fragment.
    And the popup is as
    <af:popup id="cb" contentDelivery="lazyUncached"
    popupFetchListener="#{backingBeanScope.formulaBuilderBackingBean2.putConditionInPFS}">
    <af:dialog id="d2">
    <af:region value="#{bindings.CBuilder1.regionModel}"
    id="r1"/>
    </af:dialog>
    <af:setPropertyListener from="#{requestScope.expression}"
    to="#{pageFlowScope.expression}"
    type="popupFetch"/>
    </af:popup>
    And the page definition for the corresponding task flow is as:
    <taskFlow id="CBuilder1"
    taskFlowId="/WEB-INF/pages/oracle/epm/calcmgr/common/cbuilder/CBuilder.xml#CBuilder"
    activation="deferred"
    xmlns="http://xmlns.oracle.com/adf/controller/binding"
    Refresh="ifNeeded">
    <parameters>
    <parameter id="expression" value="#{pageFlowScope.expression}" xmlns="http://xmlns.oracle.com/adfm/uimodel"/>
    </parameters>
    </taskFlow>
    Thanks,
    Pawan.

  • VO with bind variable defined in SQL is not updated correctly

    Hi Experts,
    I have one simple question here, could you please help answer? Thanks a lot!
    I have 2 pages, the first page displays an employee table, the second page shows some details related to the selected employee. When select one employee and click on the detail button I can be naviaged to the second page and see the details for the selected employee. The vo used on the second page uses a bind variable called "empId" which is binding to a pageFlowScope value 'adf.context.pageFlowScope.empId', and this pageFlowScope value will be populated to the selected empId in detail button actionListener at runtime).
    The question here is, now the first navigating is ok, the detail page can show the correct information for the employee selected on the employee page, but when navigating back and choosing another employee, and then click on the detail button again, the detail page is NOT updated, it still shows the first selected employee information. I do debug the actionListener in the backing bean and the second selected empId does get passed to pageFlowScope.empId, the bind variable in the VO should get the new value, right? but why the second page does not get updated (query using the new bind variable value)?
    Thanks!
    Edited by: user774592 on Jul 20, 2011 11:13 PM
    Edited by: user774592 on Jul 20, 2011 11:15 PM
    Edited by: user774592 on Jul 20, 2011 11:15 PM

    Hi Timo,
    Thanks for you response! The JDev version I used is 11.1.2.0.0. Actually, they are different VOs, the 1st page is EmployeeVO, the second page is ResourceSummaryVO which binds the empId variable in SQL. The ActionListener code is as below.
    public void viewResSummary(ActionEvent actionEvent) {
    // Add event code here...
    DCBindingContainer bc = (DCBindingContainer)this.getBindings();
    DCIteratorBinding empIteBinding =
    bc.findIteratorBinding("SEmployeeView1Iterator");
    //Get employee id from the current selected employee record
    Row currentRow = empIteBinding.getRowSetIterator().getCurrentRow();
    Long employeeId = ((DBSequence)currentRow.getAttribute("EmployeeId")).getValue();
    //Set employeeId as a pageFlowScope object which will be used in ResourceSummaryPage
    AdfFacesContext.getCurrentInstance().getPageFlowScope().put("empId", employeeId);
    empId is defined using Bind Variable Dialog and is referenced in ResourceSummaryVO on the second page. I used the EL expression to defined its value to adf.context.pageFlowScope.empId which will be populated using above code at runtime.
    Again, thanks for your help!

  • Best practice for calling application module methods and plsql code

    In my application I am experiencing problems with connection pooling, I seem to be using a lot of connections in my application when only a few users are using the system. As part of our application we need to call database procedures for business logic.
    Our backing beans, call methods on the application module which in turn call a database procedure. For instance in the backing bean we have code like this to call the application module method.
    // Calling Module to generate new examination/test.
    CIGAppModuleImpl appMod = (CIGAppModuleImpl)Configuration.createRootApplicationModule("ky.gov.exam.model.CIGAppModule", "CIGAppModuleLocal");
    String testId = appMod.createTest( userId, examId, centerId).toString();
    AdfFacesContext.getCurrentInstance().getPageFlowScope().put("tid",testId);
    // Close the call
    System.out.println("Calling releaseRootApplicationModule remove");
    Configuration.releaseRootApplicationModule(appMod, true);
    System.out.println("Completed releaseRootApplicationModule remove");
    return returnResult;
    In the application module method we have the following code.
    System.out.println("CIGAppModuleImpl: Call the database and use the value from the iterator");
    CallableStatement cs = null;
    try{
    cs = getDBTransaction().createCallableStatement("begin ? := macilap.user_admin.new_test_init(?,?,?); end;", 0);
    cs.registerOutParameter(1, Types.NUMERIC);
    cs.setString(2, p_userId);
    cs.setString(3, p_examId);
    cs.setString(4, p_centerId);
    cs.executeUpdate();
    returnResult=cs.getInt(1);
    System.out.println("CIGAppModuleImpl.createTest: Return Result is " + returnResult);
    }catch (SQLException se){
    throw new JboException(se);
    finally {
    if (cs != null) {
    try {
    cs.close();
    catch (SQLException s) {
    throw new JboException(s);
    I have read in one of Steve Muench presentations (Oracle Fusion Applications Team' Best Practises) that calling the createRootApplicationModule method is a bad idea, and to call the method via the binding interface.
    I am assuming calling the createRootApplicationModule uses much more resources and database connections that calling the method through the binding interface such as
    BindingContainer bindings = getBindings();
    OperationBinding ob = bindings.getOperationBinding("customMethod");
    Object result = ob.execute()
    Is this the case? Also is using getDBTransaction().createCallableStatement the best way of calling database procedures. Would it be better to expose plsql packages as webservices and then call them from the applicationModule. Is this more efficient?
    Regards
    Orlando

    Thanks Shay, this is now working.
    I successfully got the binding to the application method in the pagedef.
    I used the following code in my backing bean.
    package view.backing;
    import oracle.binding.BindingContainer;
    import oracle.binding.OperationBinding;
    public class Testdatabase {
    private DCBindingContainer bindingContainer;
    public void setBindingContainer (DCBindingContainer bc) {this.bindingContainer = bc;}
    public DCBindingContainer getBindingContainer() {return bindingContainer;}
    public static String validateUser()
    // Calling Module to validate user and return user role details.
    System.out.println("Getting Binding Container from Home Backing Bean");
    BindingContainer bindings = BindingContext.getCurrent().getCurrentBindingsEntry();
    System.out.println("Obtain binding");
    OperationBinding operationBinding = bindings.getOperationBinding("calldatabase");
    System.out.println("Set username parameter");
    operationBinding.getParamsMap().put("p_userId",userId);
    System.out.println("Set password parameter");
    operationBinding.getParamsMap().put("p_testId",examId);
    Object result = operationBinding.execute();
    System.out.println("Obtain result");
    String userRole = result.toString();
    System.out.println("Result is "+userRole);
    }

  • Add selected table row value to PageFlowScope so I can access in taskflow

    Hi all,
    Running into a problem getting a value from a selected ADF table row to a taskflow that is displayed as an inline popup. Here's the scenario. I have a view which displays a table. When I click on an edit btn I display my taskflow as an inline popup. What I would like to do is take the currently selected table row, pull off lets say the row name value and pass it to my taskflow for display. I've tried settting this value inside a mbean when I click the edit btn using:
            AdfFacesContext.getCurrentInstance().getPageFlowScope().put("editTargetNameSource", targetName);
            String tmpClear = (String) AdfFacesContext.getCurrentInstance().getPageFlowScope().get("editTargetNameSource");Which seems to get set but when I attempt to grab this value using EL inside my taskflow jspx page it looks to not be set.
    <af:outputLabel value="Selected Row" id="ol1"/><af:outputText value="#{pageFlowScope.editTargetNameSource}"It seems like pageFlowScope for my popup taskflow != pageFlowScope for the page my table lives in. I've tried setting this as a input page param but I have a feeling I'm missing something. I'd like to be able to set this value inside my bean when a user clicks the edit btn and then display this value in my taskflow popup.
    Any help is appreciated,
    -Wraith

    Thanks for the links Timo. I still must be missing something here. In the vids you linked it looked like he was using regions to pass params from main page to a taskflow; setting a param on child taskflow (causes param to be required when dragging into main page). So I think I understand I add an expected param to my taskflow which somehow will be set by my main page. The part I'm missing is from my main page how can I get the selected table row value and set it in the expected pageflowscope param that my taskflow is expecting?
    I've tried several things:
    1) Using managed bean associated with my main page; setting param inside the bean on main page btn click and then try accessing this mbean param (couldn't access this value as different pageflowscope I believe)
    2) Programmatically setting PageFlowScope as I linked in previous post.
    3) using setPropertyListener I can set a static value setting value in pageflowscope.start and then inside adfc.config for the task set start value to another value expected by the taskflow page. This seemed to work but I can't figure out how to do the programmatic version of this using the currently selected row and its value.
    One who seems to be missing something,
    -Wraith

Maybe you are looking for