OnPageLoad

Hi,
I have an adf edit form based on a view. on the page load i want to display the current date on an inputtext field.
i added this function OnPageLoad on the managed bean for the page and my class event extending PagePhaseListener class.
public void onPageLoad() {
java.util.Date currDate = GregorianCalendar.getInstance().getTime();
System.out.println(currDate);
SimpleDateFormat sdf = new SimpleDateFormat("yyyy-MM-dd");
String sqlDateString = sdf.format(currDate);
System.out.println(sqlDateString);
FacesContext ctx = FacesContext.getCurrentInstance();
FacesMessage saveMsg = new FacesMessage(sqlDateString);
ctx.addMessage(null,saveMsg);
AttributeBinding TextBind1 = (AttributeBinding)getBindings().getControlBinding("BorrowDate");
TextBind1.setInputValue(sqlDateString);
when i am running the page is giving the following error "Error testing property 'inputValue' in bean of type null" for the BorrowDate
but it is displaying in the FacesMessage.
Anyone please help urgent.
Thanks
Mahdi

Hi,
why don't you create a managed bean method
String currDate;
public void setCurrDate(String d){
public String getCurrDate(){
Date d = GregorianCalendar.getInstance().getTime();
SimpleDateFormatter sdf = new SimpleDateFormatter("dd-MMM-yyyy");
String s = sdf.parse(d);
return s;
(Note that I didn't check the syntax, so the code above might not be accurate)
The you set the following EL string to the value property of the output component
#{managedBean.currDate}
This will add the current date to the page. Using a PagePhaseListener for such a trivial task is just too heavyweight
Frank

Similar Messages

  • How i can implement onPageLoad method in ADf Fusion Middleware

    I want to implement onPageLoad method in ADF Fusion Middleware. What i did so far is :
    - Created my own PagePhaseListener class which implements PagePhaseListener interface.
    I wrote following code in that class
    public void afterPhase(PagePhaseEvent event) {
    PageLifecycleContext ctx = (PageLifecycleContext)event.getLifecycleContext();
    if (event.getPhaseId() == Lifecycle.PREPARE_RENDER_ID) {
    BindingContainer bc = ctx.getBindingContainer();
    onPagePreRender();
    bc = null;
    public void onPageLoad() {
    // Subclasses can override this.
    public void onPagePreRender() {
    // Subclasses can override this.
    public void beforePhase(PagePhaseEvent event) {
    PageLifecycleContext ctx = (PageLifecycleContext)event.getLifecycleContext();
    if (event.getPhaseId() == Lifecycle.PREPARE_MODEL_ID) {
    BindingContainer bc = ctx.getBindingContainer();
    onPageLoad();
    bc = null;
    - Created a backingbean with session scope and override onPageLoad method
    - Inside pageDefinition i added Controller class using EL like #{MyPhaseListenerBean}
    but it game me error that no "MyPhaseListenerBean class found.

    Hi ,
    When am Adding ControllerClass ( ControllerClass="com.hp.rebates.grs.view.backing.fragments.ItemTabsBean" ) for PageDef File am getting error as...
    <[ServletContext@31287410[app:grs module:grs-ViewController-context-root path:/grs-ViewController-context-root spec-version:2.5 version:V2.0]] Servlet failed with Exception
    java.lang.ClassCastException: com.hp.rebates.grs.view.backing.fragments.ItemTabsBean cannot be cast to oracle.adf.model.RegionController
    at oracle.adf.model.binding.DCBindingContainer.getRegionController(DCBindingContainer.java:4944)
         at oracle.adf.controller.internal.binding.TaskFlowRegionController.doRegionRefresh(TaskFlowRegionController.java:225)
         at oracle.adf.controller.internal.binding.TaskFlowRegionModel.processBeginRegion(TaskFlowRegionModel.java:117)
         at oracle.adf.view.rich.component.fragment.UIXRegion$RegionContextChange.doChangeImpl(UIXRegion.java:1182)
         at oracle.adf.view.rich.context.DoableContextChange.doChange(DoableContextChange.java:91)
         Truncated. see log file for complete stacktrace
    >
    Any one can help me solve this issue.
    Thanks in Advance.

  • Trying to work on my page at with godaddy's website tonight I keep getting this error message... Calling onPageLoad() failed: TypeError: DesignerMenuConstants is undefined ... I have tried to allow the website, cleared the cache, cookies etc but still

    only happens on this PC

    I am not sure what you mean by "Flash Player for steam"; the only Flash Player installers I know is the ActiveX (for Internet Explorer) and the plugin (for other browsers); you can find both at http://helpx.adobe.com/content/help/en/flash-player/kb/installation-problems-flash-player- windows.html#main-pars_header
    [topic moved to Flash Player forum]

  • OnPageLoad method for some pages

    I'm looking for a way to call a method on or before a page loads, so that I can redirect the user. The idea is to only let the user view a couple pages if they havent paid for the service yet, but have signed up. I've already implemented Form/Container based authentication and dont want to have to us anything as "big" and bulky as JAAS. Can I do this
    Current I have a "hacked" solution that looks something like this:
    /mysite/somepage.xhtml contains
    #{someBean.hasPaid}
    <bunch of code>
    </bunch of code>
    which then calls the someBean.myPaid before the page loads, but this feels clunky.
    Is there anything else I can use? Maybe PhaseListeners? I dont quite understand how i would go about using those though?

    Use a Filter or a PhaseListener.
    If you need access to the FacesContext and some JSF managed beans, a PhaseListener is more suitable than a Filter. If you want to act on specific URL's only, a Filter may be more suitable. To create a Filter, implement javax.servlet.Filter and define it in web.xml. To create a PhaseListener, implement javax.faces.event.PhaseListener and define it in faces-config.xml.

  • Get tree selected node onPageLoad

    We just turned on change persistence to keep our row selections as we traverse our taskflows and pages.
    In one of our pages we have a situation where we have a tree (master) and table (table) whose data is partially based on what is selected in that tree. We use the following logic to determine what is selected in the tree to perform the query on the table.
    public static JUCtrlHierNodeBinding getTreeSelectedNode(RichTree tree) {
    JUCtrlHierNodeBinding node = null;
    if (tree != null) {
    Object oldRowKey = tree.getRowKey();
    try {
    RowKeySet selectedRowKeySet = tree.getSelectedRowKeys();
    if (selectedRowKeySet != null) {
    for (Object selectedRowKey : selectedRowKeySet) {
    tree.setRowKey(selectedRowKey);
    node = (JUCtrlHierNodeBinding)tree.getRowData();
    break;
    } finally {
    tree.setRowKey(oldRowKey);
    return node;
    I hooked up a beforePhase listener on my jspx to call this function and get the (previously - last time user was on this page) selected row and then refresh the table based on the selected tree row's data. This seems to work, but . . . in my log I'm seeing the following error. It seems like for some reason it's trying to convert my Raw UUID to an int, I have no idea why.
    <SortableModel> <_toRowIndex> Invalid rowkey:oracle.jbo.Key[B68F305BF7F5496D8A0FF99EE8F97CF0 ] type:class oracle.jbo.Key
    <SortableModel> <_toRowIndex>
    java.lang.ClassCastException: oracle.jbo.Key cannot be cast to java.lang.Integer
    at org.apache.myfaces.trinidad.model.SortableModel._toRowIndex(SortableModel.java:341)
    at org.apache.myfaces.trinidad.model.SortableModel.setRowKey(SortableModel.java:137)
    at org.apache.myfaces.trinidad.model.ChildPropertyTreeModel._setRowKey(ChildPropertyTreeModel.java:376)
    at org.apache.myfaces.trinidad.model.ChildPropertyTreeModel.setRowKey(ChildPropertyTreeModel.java:178)
    at org.apache.myfaces.trinidad.component.UIXCollection.setRowKey(UIXCollection.java:425)
    at oracle.apps.aia.sr.common.JSFUtils.getTreeSelectedNode(JSFUtils.java:392)
    So, I thought that maybe this wasn't the best way to get the selected node. So, after some research I changed the logic to be:
    public static JUCtrlHierNodeBinding getTreeSelectedNode(RichTree tree) {
    JUCtrlHierNodeBinding node = null;
    if (tree != null) {
    CollectionModel treeModel = (CollectionModel)tree.getValue();
    if (treeModel != null ){
    JUCtrlHierBinding treeBinding = (JUCtrlHierBinding)treeModel.getWrappedData();
    if (treeBinding != null){
    RowKeySet rks = tree.getSelectedRowKeys();
    if (rks != null){
    if (!rks.isEmpty()){
    List firstSet = (List)rks.iterator().next();
    node = treeBinding.findNodeByKeyPath(firstSet);
    return node;
    However, at the time of the beforePhase (I even tried an afterPhase listener) the tree isn't null, but the CollectionModel is null for some reason. I'm not sure where to go from here, any ideas?

    Hi,
    if you use lazy loading (contentdelivery="lazy" then the data is queried after the tree renders. ou would need to set it to immediate to acess data suring the Preparerender phase).
    Frank

  • How onPageLoad() Method works ?

    I'm trying to put that method working but nothing...
    What steps I need to make to put it work ?
    (Yes, I have the OnPageLoadBackingBeanBase.java )

    Hi,
    I am sorry to say that your question is badly asked and doesn't provide enough information. (http://blogs.oracle.com/shay/2007/03/02 just in case you look for ways to improve this). For customizing the page lifecycle see
    http://download-uk.oracle.com/docs/html/B25947_01/bcdcpal005.htm#sthref828
    Frank

  • Pop-up text

    I have a question that should be simple to answer I think.
    I'm trying to edit the text in a pop-up. I can edit the
    popup by going to library and edit, however I can't get to the text
    to edit it. I know there is text because when i test the movie I
    see it when I click on the links.
    Also is there a way i can put up my page so it makes it
    easier to explain my problem on here?

    You need to make sure you have the fancy-zoom folder inside your website folder and that you edit the page's html file to make those changes that the tutorial describes. Any time you republish the page you have to reedit the page's html file to add those changes back. The changes are:
    1 -
    Find: </head>
    *+Replace with+*: <script src="fancy-zoom/FancyZoom.js" type="text/javascript"></script><script src="fancy-zoom/FancyZoomHTML.js" type="text/javascript"></script></head>
    2 -
    Find: onload="onPageLoad();"
    *+Replace with+*: onload="onPageLoad(); setupZoom();"
    If you use the free TextWrangler to edit the page the first Find and Replace (which can be saved for easy use next time) can be done with the Grep box checked.
    The second Find and Replace should be done with the Grep box unchecked.
    Click to view full size
    You can use Text Wrangler to edit the page on your iDisk. But it has to be the real iDisk and not the copy on your HD if you have that feature activated. Also if you publish the entire site for any reason you will have to add the fancy-zoom folder to the website's folder on the iDisk again. So keep a copy of that folder handy.

  • Is it possible to Forward to another adf page in ReturnListener method?

    There is button in the page. It is used to pop up a dialog. After the dialog is returned. The ReturnListener of the button is triggered. I want to forward to another adf page in the ReturnListener.
    I searched the forum and found the following page:
    Re: Forward to another adf page from inside onPageLoad event
    I tried all the methods mentioned above, but all of them failed.
    Is there any other solutions?
    Regards,
    Jason

    I had the same problem with a return listener on a commandmenuitem. The navigation doesn't work because there is no partial submit.
    The workaround is to construct a menu item from a commandlink and objectimage. It looks and works the same as the commandmenuitem but you can set partialsubmit=true.
    For example:
    <af:panelGroup layout="vertical">
    <af:panelHorizontal>
    <af:objectSpacer width="10" height="10"/>
    <af:commandLink id="linkButIcon" useWindow="true"
    action="dialog:GoLinkedMatters"
    windowHeight="#{backing_app_ea_LinkedMatters.windowHeight}"
    windowWidth="#{backing_app_ea_LinkedMatters.windowWidth}"
    returnListener="#{backing_app_summary_DPSummary.linkedMattersReturn}"
    partialSubmit="true">
    <af:objectImage source="/images/link.gif"/>
    </af:commandLink>
    </af:panelHorizontal>
    <af:commandLink id="linkButLink"
    useWindow="true"
    textAndAccessKey="#{res['esolve.toolbar.links']}"
    action="dialog:GoLinkedMatters"
    windowHeight="#{backing_app_ea_LinkedMatters.windowHeight}"
    windowWidth="#{backing_app_ea_LinkedMatters.windowWidth}"
    returnListener="#{backing_app_summary_DPSummary.linkedMattersReturn}"
    inlineStyle="font-size:8.0pt;"
    partialSubmit="true"/>
    </af:panelGroup>

  • How to get the URL of the window which is opened as a dialog

    Hi All,
    I am working on BPM Worklist and in BPM Worklist we have created a Custom ADF Application.
    What BPM Worklist does is :- it shows the task associated to the user and when user double click on the task , it opens the custom ADF Page created by us.And it opens the ADF Page in the modal dialog.Since i do not have any control on the parent page which is the BPM Worklist page.
    I need to check whether the url contains the _ADFvDlg , if it contains then i need to put some logic and then executes something.
    Is there any way to find out the Url of the dialog window of the BPM Worklist using ADF not using javascript ?
    Regards,
    Shah

    Hi Frank,
    I have used the method which u have said in phaseListener
    System.out.println("GOT URL"+((HttpServletRequest) facesContext.getCurrentInstance().getExternalContext().getRequest()).getRequestURL());
    System.out.println("GOT URI"+((HttpServletRequest) facesContext.getCurrentInstance().getExternalContext().getRequest()).getRequestURI());
    but no help, it gives me the same url of both the pages(parent and dialog one).
    Say if i use the javascript and anyhow get the windowId of the dialog and pass it to the server onPageLoad then it can be helpful.
    But how to do that as well.?
    I mean how will i call the javascript and return url to the server and do the validations on PageLoad.
    Please suggest!!
    Regards,
    Shah

  • [SOLVED] ADF: calling a method at runtime

    Hi all,
    I have a method that I need to call (once) when the page loads, the method contains setting a whereClause of a ViewObject and setting the render property of some items to true/false.
    I implemented the PagPhaseListener menthod's afterPhase() and beforePhase() but it did not work, I also tried "Using Custom ADF Page Lifecycle to Invoke an onPageLoad Backing Bean Method" way as explained in :
    http://download-uk.oracle.com/docs/html/B25947_01/bcdcpal005.htm#sthref828
    also did not work.
    any suggestions?
    Regards,
    Ahmad Esbita

    It seems that the PagPhaseListener's afterPhase() and beforePhase() way will not work unless you set the controller class of the page definition to the class implementing the PagPhaseListener.
    Sorry for the mistake,
    Ahmad Esbita

  • How do you restrict access to certain apps via the use of Time Restrictions?

    Is there anyway to limit the use of certain apps to a time period of the day? I know the time restrictions on this site ONLY pertain to texting and calls, but not email or any other app, such as Twitter or Facebook, etc.

    Well, there are a few different ways to go about it. You could add a preferences page with the admin functionality, and then an admin would just have to click the little pencil in the portlet titlebar. No admin/edit access, no little pencil.
    I have often set the visibility of an ASPX control directly from activity rights, in OnPageLoad, if it isn't postback time. The activity rights should be inherited by the user, through the user's group. Best practise is to create empty groups called Roles, add activity rights to the Roles, and then have the actual groups (that contain users) inherit from one or more Roles.
    You already knew that part, I added it for the others. My personal definition of a portlet is 'polymorphous instance of a web service'.
    So:
    Role: Store Manager (has Edit Shopping Cart activity right)
    ^
    Group: Store Managers (has Store Manager parent group)
    User: Vladimir (inherits Edit Shopping Cart activity right)

  • HTML text no longer displays in text editor

    Aloha folks -
    We've been using iweb for years now and have used Dreamweaver to edit the html files with no problems. However, it seems like anything we do now no longer opens completely.
    Example: Lots of text here. This is shown by viewing source in Safari.
    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
    <head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
    <meta name="Generator" content="iWeb 2.0.4" />
    <meta name="iWeb-Build" content="local-build-20081119" />
    <meta name="viewport" content="width=800" />
    <title>PencilBot</title>
    <link rel="stylesheet" type="text/css" media="screen,print" href="PencilBot_files/PencilBot.css" />
    <!--[if IE]><link rel='stylesheet' type='text/css' media='screen,print' href='PencilBot_files/PencilBotIE.css'/><![endif]-->
    <script type="text/javascript" src="Scripts/iWebSite.js"></script>
    <script type="text/javascript" src="Scripts/iWebImage.js"></script>
    <script type="text/javascript" src="PencilBot_files/PencilBot.js"></script>
    </head>
    <body style="background: #ffffff; margin: 0pt; " onload="onPageLoad();">
    </body>
    </html>
    Same index.html file opened in Dreamweaver:
    <?xml version="1.0" encoding="UTF-8"?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"><html xmlns="http://www.w3.org/1999/xhtml"><head><title></title><meta http-equiv="refresh" content="0;url= PencilBot/PencilBot.html" /></head><body></body></html>
    That's all I get. Same in Text Wrangler. Text Edit doesn't show ANYTHING.
    Seems to be like this for all our iweb sites. All that used to open perfectly fine in Dreamweaver.
    And all our Favicons no longer display.
    Running iweb 08 2.04.
    Any thoughts on this?
    Thanks,
    Denise

    That's all I get. Same in Text Wrangler. Text Edit doesn't show ANYTHING.
    You haven't understood what the index.html file created by iWeb does. It is very short and just redirects to the real page, in this case PencilBot.html. That's what you need to open. TextEdit is not showing anything is because you have it operating in Rich Text mode instead of the Plain Text mode required for html editing. Change the settings in TextEdit preferences to Plain Text and check the box for "ignore rich text commands in html files."

  • Issue to Add one new column in search Page..

    I have a JSP file of Service Form of Oracle Install Base . In this on select party Site page when search for any item it shows some result as a column. like address , name, country..
    we have to add a new column in that search. means when we search for any Item then with address, Name and country it shows a new column also with that. I have the jsp file of that page "csifLOV.jsp". This is the generic LOV page for any database columns.
    Can anybody please help where to add this new column definition.
    this is code of "csifLOV.jsp".
    <%--
    +==========================================================================+
    | Copyright (c) 2000 Oracle Corporation, Redwood Shores, CA, USA |
    | All rights reserved. |
    +==========================================================================+
    | FILENAME |
    | csifLOV.jsp |
    | DESCRIPTION |
    | This is the generic LOV page for any database columns |
    | NOTES |
    | |
    | DEPENDENCIES |
    | |
    | HISTORY |
    | 23-Aug-2000 X. Li Created. |
    | $Header: csifLOV.jsp 115.30 2004/06/14 21:05:05 anukal ship $
    +==========================================================================+
    --%>
    <%@ include file="jtfincl.jsp" %>
    <%@ include file="csifContextIncl.jsp" %>
    <%
    csiPageContext.setPermissionName("SupPer");
    csiPageContext.setJspName("csifLOV.jsp");
    csiPageContext.setFormName("LOVForm");
    String jspName = csiPageContext.getJspName();
    String csiFormName = csiPageContext.getFormName();
    String formName = csiFormName;
    appName = "CSI";
    if (CsifutDebug.LOCAL_DEV_ENV)
    Properties param = System.getProperties();
    String prop = param.getProperty("JTFDBCFILE",
    "E:\\myprojects\\dbcfiles\\crmdev04_SCCSIDV1.dbc");
    param.put("JTFDBCFILE", prop);
    prop = param.getProperty("service.Logging.common.filename",
    "E:\\myprojects\\jtflogs\\ebppFW_log");
    param.put("framework.Logging.system.filename", prop);
    prop = param.getProperty("service.Logging.common.filename",
    "E:\\myprojects\\ebppSys_log");
    param.put("framework.Logging.system.filename",prop);
    System.setProperties(param);
    // this may have to change for other people
    // ServletSessionManager.startStandAloneSession(appName,true,
    // "csiuser","welcome");
         ServletSessionManager.startRequest(request,response,
    appName,true,"csiuser","csiuser","Authenticator.system");
    /* Push the logFileName into the cookie for future use */
    oracle.apps.jtf.util.SystemCheck.setJTFCookie();
    // Set cookies for menu rendering
    MenuRenderer.setMenuCookies(request);
    //Added HTML tag with language code for accessibility.
    String CSI_HTML_LANG_CODE;
    CSI_HTML_LANG_CODE = oracle.apps.jtf.util.HtmlUtil.getHtmlLanguageCode();
    if (CSI_HTML_LANG_CODE == null)
    CSI_HTML_LANG_CODE = "en-US";//Added HTML tag with language code for accessibility.
    %>
    <HTML lang="<%=CSI_HTML_LANG_CODE%>">
    <%@ include file="csifStartReqIncl.jsp" %>
    <%@ include file="csifExceptionHandleBegin.jsp" %>
    <jsp:useBean id="lovBean" class="oracle.apps.csi.framework.pb.CsifpbLOVBean" scope="page" />
    <%
    lovBean.init(csiPageContext, request);
    lovBean.process();
    int pageMode = lovBean.getMode();
    if (pageMode == CsifpbBasePageBean.LOVRETURN_MODE) //forward to the caller of the LOV
         if (CsifutDebug.DEBUG)
    CsifutDebug.addMessage("forward URL=" + lovBean.getForwardToURL());
    csiPageContext.setForwardToJSP(lovBean.getForwardToURL());
    %>
    <%@include file="csifForwardIncl.jsp" %>
    <%
    else
    CsifcmException error = lovBean.getException();
    String callerName = lovBean.getJspCallerName();
    String labelSelect=null;
    String labelEnterPartial=null;
    String labelSearch=null;
    String labelTitle=null;
    int origAppID = csiPageContext.getPageAppId();
    String origAppName = csiPageContext.getPageAppName();
    csiPageContext.setPageAppId(542);
    csiPageContext.setPageAppName("CSI");
    Hashtable allLovPrompts = CsifutRegion.getPrompts(csiPageContext, "CSI_FRAMEWORK_LOV");
    csiPageContext.setPageAppId(origAppID);
    csiPageContext.setPageAppName(origAppName);
    if (allLovPrompts != null)
    labelSelect = (String)allLovPrompts.get("CSI_SELECT");
    labelEnterPartial = (String)allLovPrompts.get("CSI_ENTER_PARTIAL");
    labelSearch = (String)allLovPrompts.get("CSI_SEARCH");
    labelTitle = (String)allLovPrompts.get("CSI_LOV_TITLE");
    else
    allLovPrompts = new Hashtable();
    String cancelPrm = (String)allLovPrompts.get("CSIF_CANCEL");
    %>
    <head>
    <title><%=labelTitle%></title>
    <script language="JavaScript">
    function newSearch()
    document.<%=csiFormName%>.<%=CsifpbBasePageBean.PAGE_MODE_PARAM%>.value = '<%=CsifpbBasePageBean.QUERY_MODE%>';
    document.<%=csiFormName%>.submit();
    function returnToCaller()
    // alert("Return to " + "<%=callerName%>" )
    document.<%=formName%>.action = "<%=callerName%>";
    document.<%=formName%>.submit();
    function <%=lovBean.LOV_CANCEL_FUNC%>()
    var LOVForm = document.forms['<%=csiFormName%>'];
    var LOVFieldName = '<%=lovBean.getLOVFieldName()%>';
    var LOVOrigValFieldName = LOVFieldName + '<%=lovBean.LOV_ORIG_VAL_FIELD%>';
    LOVForm.elements[LOVFieldName].value = LOVForm.elements[LOVOrigValFieldName].value;
    LOVForm.elements['<%=CsifpbBasePageBean.PAGE_MODE_PARAM%>'].value = '<%=CsifpbBasePageBean.LOVRETURN_MODE%>';
    LOVForm.elements['<%=CsifpbBasePageBean.MODE_ACTION_PARAM%>'].value = '<%=CsifpbBasePageBean.ACTION_CANCELLED%>';
    LOVForm.action = '<%=lovBean.getJspCallerName()%>';
    LOVForm.submit();
    function onPageLoad()
    document.<%=csiFormName%>.<%=lovBean.getLOVFieldName()%>.focus();
    </script>
    <%=lovBean.renderLovReturnJS()%>
    <%@ include file="jtfscss.jsp" %>
    </head>
    <%@ include file="csifBodyBeginIncl.jsp" %>
    <%
    //if (!CsifutDebug.LOCAL_DEV_ENV)
    if (CsifutTimer.TIME)
    CsifutTimer.start(CsifutTimer.JTF_MENU);
    %>
    <%@ include file="jtfdnbartop.jsp" %>
    <table summary="" width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td>
    <%
    if (CsifutTimer.TIME)
    CsifutTimer.stop(CsifutTimer.JTF_MENU);
    } // end local_dev_env
    %>
    </td>
    </tr>
    <tr>
    <td>
    <form name="<%=csiPageContext.getFormName()%>" method="post" action="<%=jspName%>">
    <table summary="" width="100%" border="0" cellspacing="0" cellpadding="0">
    <tr>
    <td valign="top">
    <table summary="" width="100%">
    <tr>
    <td> </td>
    <td class="pageTitle" colspan="4"><%=labelSelect%> <%=lovBean.getLOVPageTitle()%>
    </td>
    <td> </td>
    </tr>
    <%@ include file="csifDisplayException.jsp" %>
    <tr>
    <td width="5%"> </td>
    <td width="22.5%"> </td>
    <td width="22.5%"> </td>
    <td width="22.5%"> </td>
    <td width="22.5%"> </td>
    <td width="5%"> </td>
    </tr>
    <tr>
    <td> </td>
    <td>
    <div nowrap align="right" class="promptReadOnly"><%=labelEnterPartial%></div>
    </td>
    <td colspan="3">
    <input type="text" name="<%=lovBean.getLOVFieldName()%>" id="<%=lovBean.getLOVFieldName()%>"
    value="<%=HtmlWriter.preformat(lovBean.getLOVSearchPattern())%>" size="15">
    <input type="button" name="SearchButton" id="SearchButton"
    value="<%=labelSearch%>" onClick="javascript:newSearch()">
    <input type="button" name="CancelButton" id="CancelButton"
    value="<%=cancelPrm%>" onClick="javascript:<%=lovBean.LOV_CANCEL_FUNC%>()">
    </td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td colspan="4">
    <hr>
    </td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td class="prompt" colspan="4">
    <!-- Search Result goes here -->
    <%
    if (lovBean.getMode() != CsifpbBasePageBean.LOVRETURN_MODE)
    out.print(lovBean.renderLOVValuesTable(labelSelect));
    %>
    <!-- End of Search Result -->
    </td>
    <td> </td>
    </tr>
    <tr>
    <td> </td>
    <td colspan="4">
    <input type="button" name="CancelButton" value="<%=cancelPrm%>"
    onClick="javascript:<%=lovBean.LOV_CANCEL_FUNC%>()">
    </td>
    <td> </td>
    </tr>
    </table>
    <!-- Content ends here -->
              </td>
         </tr>
         </table>
    <!--Hidden Fields Go Here-->
    <input type="hidden" name="<%=CsifpbLOVBean.LOV_VALUE_SEL_PARAM%>" >
    <%
    if(csiPageContext.isAccessible())
    %>
    <label for="<%=lovBean.getLOVFieldName()%>" class='hidelabel'><%=labelEnterPartial%></label>
    <!-- Kamal for ADA v2 03-Mar-04
    <label for="SearchButton" class='hidelabel'><%=labelSearch%></label>
    <label for="CancelButton" class='hidelabel'><%=cancelPrm%></label>
    -->
    <%
    %>
    <%@ include file="csifHiddenFieldsIncl.jsp" %>
    </form>
    <%@ include file="csifBodyEndIncl.jsp" %>
    </HTML>
    <%
    } // end of if (pageMode == CsifpbBasePageBean.LOVRETURN_MODE ) .. else {
    %>
    <%@ include file="csifExceptionHandleEnd.jsp" %>
    <%@ include file="csifEndReqIncl.jsp" %> <!-- send an end request -->
    Thanks,

    If you are copying the 12KST1C to Z12KST1C and executing the s_alr_8701333 report, you will not see the new column added to Z12KST1C
    With the new Form Z12KST1C, create a new Report Z12KST1C and assign a new TCODE. Also you have to select all rows and column of form Z12KST1C
    TCODE CJE5
    Select the form Z12KST1C
    Extras--Drildown display --Select Rows and columns
    Select the all colhmns by F9
    Hope this helps.
    Edited by: psconsultant on May 20, 2011 8:42 AM

  • ADF JSF, refresh collection using a DAO without a database - Best Practice?

    I have previously developed a comprehensive application using ADF 10.12. This application did not use a database, instead I was manually populating collections of objects that data controls were generated for to talk to the ADF components.
    This applciation was based upon the old (10.12) version of ADF and utilised the following structure;
    DataPage (start.jsp) --> DataAction (getRecords) --> DataPage (display.jsp)
    In this instance, by overriding methods on the getRecords DataAction I could populate the collection that was to be displayed on the display.jsp DataPage.
    I am now designing a new application that will hopefully use the latest version of ADF (10.13). This application will also use collections of objects from an external source.
    The structure of ADF 10.13 (faces-config.xml) is different to 10.12 (struts-config.xml) e.g.
    JSFPage (start.jsp) --> getResults (navigation case) --> JSFPage (display.jsp)
    Having read the ADF Developer Guide, and looked through example #60 (onPageLoad) that was developed by Steve Muench, I am aware that there are at least three options that I could use to get populate the collection of objects that are displayed on the display.jsp page when a button is pressed on the start.jsp page;
    1. use a backing bean that extends PageController
    2. use a backing bean that extends PagePhaseListener
    3. use a backing bean that has a specific action that is assigned to the button
    Q1a. which one is the most appropriate/efficient to use?
    When the button is pressed on the start.jsp page, it will be set to call getResults navigation case on faces-config.xml.
    Q1b. Is it possible to detect when this action is triggered, populate the collection of data which is bound the display.jsp JSFPage, and then allow the getResults navigation case to continue execution?
    The application that I am developing will have the following structure;
    recordObject - Object to hold a record
    recordCollection - Collection of recordObjects
    recordDao - DAO use to populate the recordCollection
    When using 10.12 I did not have a separate recordDao (as it was query only) I had a refresh method within the recordCollection.
    Q2. what is the most efficient way of achieving this? there will be one DAO per Collection and approx 30 Collections
    Q3. does anyone have/can point me in the direction of any other examples where actions that trigger call navigation cases are overriden, custom actions are called and then the original ones allowed to continue?
    Thanks in advance for your help/advice
    David

    Thanks for the pointers Steve, they have been very useful.
    This is what I have done;
    set up the following pages and navigation cases (show in bold) on faces-config.
    start.jsp >> getSystems >> systems.jsp >> display >> display.jsp
    systems.jsp >> new >> new.jsp
    systems.jsp << back << new.jsp
    added refreshCollection() as a button to start.jsp
    set the button to call getSystems
    added the collection as a read only table to systems.jsp
    - this works correctly
    added the collection as an input form to the new.jsp page
    added the addNewRecord(systemObject so) function as a button to new.jsp
    set the button to call back
    - this is where I encounter a problem.
    The addNewRecord(systemObject so) function takes a new record as a parameter and adds it to the collection. It is doing this but it is not populating the new record. I know that this is the case because when I return to the systems.jsp page there is a new record within the table but it is empty.
    Q. How do I capture the values from the input form that is on the new.jsp page, set them to a new instance of an object and then pass this object to the addNewRecord(systemObject so) function?
    Thanks
    David

  • Command Link in the af:table Component can not Work in the Request Scope

    Actually, the problem is that when we click on the command link, the action method #{overview.goToLinkAction} is not triggered.
    Here is the codes of action method "goToLinkAction" on the backing bean:
    public String goToLinkAction() {
    String linkString = (String) AdfFacesContext.getCurrentInstance()
    .getProcessScope().get("linkString");
    System.out.println("Link String is: " + linkString);
    return "";
    The data object list "listOfTransefer" for af:table is composed first time when the page is initialized.
    public void onPageLoad() {
    this.listOfTransfers = composeListOfTransfers();
    But when the commandlink or commandbutton is clicked to pose the form, this onPageLoad method is ignored by using PagePhaseListener:
    public void beforePhase(PagePhaseEvent event) {
    FacesPageLifecycleContext ctx =
    (FacesPageLifecycleContext)event.getLifecycleContext();
    if (event.getPhaseId() == Lifecycle.PREPARE_MODEL_ID && needReload()) {
    bc = ctx.getBindingContainer();
    onPageLoad();
    bc = null;
    public final boolean needReload() {
    if (!isPostback())
    return Boolean.TRUE;
    else
    return alwaysReload();
    protected boolean isPostback() {
    return Boolean.TRUE.equals(resolveExpression("#{adfFacesContext.postback}"));
    That means the method "onPageLoad()" may not be invoked when the commandlink is clicked.
    Is there any way to resolve this problem without changing the scope of the backing bean to "session"?
    Your response will be very helpful for us.
    Thanks

    Hi,
    if you implicitly say that this works if the managed bean is in session scope then the problems seems to me that one of your evaluation criterias is reset in the request scope, which I think most likely is the needReload() method. Did you add debug statements to the methods to see where exactly it gets stuck?
    Frank

Maybe you are looking for

  • Installation date... Stupidity & Lies

    So we were moving house... Please choose an available date... Saturday 8th February 2014. All going swimmingly. Text message... Your installation has been moved to Monday 10th February. Go on BT, take a wild guess as to why I chose Saturday morning,

  • How can i edit a .html file with jdeveloper?

    hi when i use ibm websphere, i can edit a .html file visually. but when i use 9ideveloper, i can not do the same thing. i do not want to learn writing html code with notepad. who can help me? tell me how to deal with this problem.

  • I found iphone ... it works, there is no personal info ...

    Story is long ... friend gave me iphone 4, and he got it from other friend who says he have bought it for 30 EUR from guy who says it was found in airport ... It looks iphone have been updated and hactivated or jailbroken or how its called .. i dunno

  • ITunes not connecting with Apple TV 2nd Generation using Windows 7

    Anyone have a suggestion for a fix with this? I have a new Apple TV (gen 2) that is showing movings, youtube(etc), everything but homesharing of iTunes and Pictures. I have been on with Apple help desk every few days opening ports on the wireless rou

  • I pass code locked my ipad and forgot the code.

    can i reset it on my own without taking it to an apple dealer?