I want to initialize  objects in action before showing a page.

which method I should override when I want to display a page in adf 10.1.2?
I am working with adf 10.1.2 including struts and UIX.
the execute method can not be override,which method should I override?
I want to change the where clause of a view object before display a page.
for example : a customer can only see the infomation of himself.so I want to set the where clause to customer_name = 'abc' in the action of the page.

I really was hoping that was not the answer, but it is what it is.
This update is really a step backwards for productivity. I love doing most of my work with hot keys, and this pane is disrupting my flow. I can see how it would be useful for some people, but I do hope they allow for customization in the future.
Thanks.

Similar Messages

  • How should I do when I want initial some object before show a page?

    which method I should override when I want to display a page in adf 10.1.2?
    I am working with adf 10.1.2 including struts and UIX.
    the execute method can not be override,which method should I override?
    I want to change the where clause of a view object before display a page.
    for example : a customer can only see the infomation of himself.so I want to set the where clause to customer_name = 'abc' in the action of the page.

    I came across this issue on my iPad and iPhone today. I did some research and it was suggested that you need to change your region to wherever in the world you originally purchased the app.
    This worked for me.
    I had tried signing in and out, deleting apps and resetting my devices; because I had never used any Apple ID except for my own personal one, I thought that those options would sort it. I changed my region to the uk (where the apps were purchased) and now they have updated with no other issues.
    I hope this helps

  • How to initialize an adf component before a page loads

    Hi all
    I use JDeveloper 11.1.2.2.0
    I have two pages:
    first page has a link to a second page
    <af:document title="first.jspx" id="d1">
      <af:form id="f1">
        <af:commandLink text="Page 2" id="cl1" action="goToSecondPage" actionListener="#{Bean.handleLinkActionEvent}"/>
      </af:form>
    </af:document>and the second page has an inputText component:
    <af:document title="second.jspx" id="d1">
      <af:form id="f1">
        <af:inputText label="Text" id="it1" binding="#{Bean.inputText}" readOnly="true"/>
      </af:form>
    </af:document>First I load first.jspx and than I click the link. This event is handled in handleLinkActionEvent() method, in which I want to set a value to the inputText component of the second page. But I can't do it, because as expected I get NullPointerException.
    So the question is how to initialize an adf component before a page loads?
    Evgeny Michuk
    Edited by: Evgeny Michuk on Oct 4, 2012 11:30 PM

    Thanks a lot for your replies and links, it gives me some new knowledges.
    I got your approach and achieved the aim for the described situation with tag <f:setPropertyActionListener>:
    <af:commandLink text="Page 2" id="cl1" action="goToSecondPage"
                           actionListener="#{Bean.handleLinkActionEvent}" binding="#{Bean.firstPageLink}">
      <f:setPropertyActionListener target="#{pageFlowScope.text}" value="Hello, World!"/>
    </af:commandLink>and for the inputText component I set the value:
    <af:inputText label="Text" id="it1"  binding="#{Bean.inputText}"
                                  readOnly="true" value="#{pageFlowScope.text}"/>I used request scoped managed bean and it is shared for both pages.
    I understand that I can set a value of some attribute for managed bean
    and use it to set a value for inputText component of the second page,
    but as I understand it is almost the same way as usage of tag <f:setPropertyActionListener>.
    In my real situation on the second page I have a dynamic table, and it's field is read only.
    Structure of this table depends on a link clicked on the first page.
    So I define components for table columns in runtime, it may be outputText, inputDate, goLink and some others.
    And I have to get table through the UIComponent binding to set columns.
    Certainly I can define all needed components for all columns
    and render it according to the column types
    <af:table value="#{Bean.collectionModel}" var="row" id="t1" binding="#{Bean.mainTable}">
       <af:forEach items="#{Bean.columnDescriptionList}" var="column">
          <af:column headerText="#{column.caption}" id="c1">
             <af:outputText value="#{row[column.fieldName]}" id="ot1" rendered="#{column.type == '1'}"/>
             <af:inputDate value="#{row[column.fieldName]}" id="ot2" rendered="#{column.type == '2'}"/>
             <af:selectBooleanCheckbox id="sbc1" selected="#{row[column.fieldName] == '1'}" rendered="#{column.type == 'n'}"/>
          </af:column>
       </af:forEach>
    </af:table>but I think it is not very good.
    Have you any idea?
    P.S. I hope I clearly explained my situation =)
    Evgeny Michuk

  • Yes, I want to create object-relational schema from DTD.

    Thank you for reply~~
    I want to create object-relational schema from DTD using object type or collections as mentioned.
    In reply, it is impossible.
    But, I read Oracle supports storing an XML document with object-relation. I executed storing sample, but I had to create schema manually.
    Is it really impossible to create OR schema from DTD automatically?

    Yes. You need to create your database schema before insert XML data to it.

  • I want to initialize my MBpro end reinstall lino, but I purchased it from apple store and cancelled the installation file. If i try to download again it from appstore I couldn't...How I can do ? Please help me

    I want to initialize my MBpro end reinstall lino, but I purchased it from apple store and cancelled the installation file. If i try to download again it from appstore I couldn't...How I can do ? Please help me

    Thanks for the feedback. Now, before installing in, put a copy some place safe and you won't have to download it again, wasting bandwidth, time, and electricity. Why? Because the installer blows itself away during the installation—IMO, a braindead delivery system, copied from their iOS world, but totally unsuitable for computers.

  • Struts Actions before hitting index.jsp

    Hi Guys,
    In my struts project i specify in my web.xml that index.jsp is the first page.
    This is fine but i want to load some data up before index.jsp is rendered i.e i want an action to be called that will forward to this index.jsp page.
    How can i set this up?

    The first thing you will need to do is create an Action class which extends org.apache.struts.action.Action, which does whatever you need it to do. You probably already have this. Let's assume it's called MyAction and is part of the MyPackage package. The return value should be
    return actionMapping.findForward(forward);
    where forward in this example is either the String "success" or "error".
    Assume our new start up page will be called 'init.jsp'. Modify the welcome-file-list attribute of the web.xml file like so:
    <welcome-file-list>
    <welcome-file>init.jsp</welcome-file>
    </welcome-file-list>
    Now crack open struts-config.xml. Create a new global forward
    <global-forwards>
    <forward
    name="init"
    path="/init.do"/>
    </global-forwards>
    Now create a new action mapping
    <action-mappings>
    <action
    path="/init"
    type="MyPackage.MyAction">
    <forward name="success"
    path="/index.jsp"/>
    <forward name="error"
    path="/pages/Error.jsp"/>
    </action>
    </action-mappings>
    Now finally create the init.jsp file. It will consist of these two lines:
    <%@ taglib uri="/tags/struts-logic" prefix="logic" %>
    <logic:redirect forward="init"/>
    I think that should do it for you.
    Mike

  • I have an ipod touch and i just bought a new laptop, because i lost mine. i try to sync the music in the itouch to my new laptop but it asks me if i want to delete all my music before syncing  what should i do?

    i have an ipod touch and i just bought a new laptop, because i lost mine which has all the data of my itouch. i try to sync the music in the itouch to my new laptop but it asks me if i want to delete all my music before syncing  what should i do?

    You should use your backup copy of your computer to put everything on the new computer.
    The sync is one way - computer to ipod.
    The ipod will sync with one computer at a time. Syncing to another will erase teh content from the ipod.

  • Flex iPad Application : Run code before application enters background  Application Type: Flex Mobile Application Target Platform: iPad AIR Version: 4.0 Development Environment: Flash builder 4.6  I want to run some code just before iphone application goes

    Application Type: Flex Mobile Application
    Target Platform: iPad
    AIR Version: 4.0
    Development Environment: Flash builder 4.6
    I want to run some code just before iphone application goes into background. I need function similar to didEnterBackground
    of native xcode app
    (https://developer.apple.com/library/ios/documentation/UIKit/Reference/UIApplicationDelegat e_Protocol/Reference/Reference.h
    tml#//apple_ref/occ/intfm/UIApplicationDelegate/applicationDidEnterBackground:)
    I tried using devactivated function of flash.display.STAGE.
    I used following addEventListener:
    STAGE = this.parent.stage;
    STAGE.addEventListener(Event.DEACTIVATE, onAppDeactivated);
    It worked for me but only when device is connected to development environment in debug mode. When I create my release build
    it is not working.
    So how can I make sure that my code runs before application goes into background.

    Even I am facing almost same issue
    Problem installing Adhoc version to iPhone and iPad - Development Environment Is - Adobe Flash CS6

  • *Want to close the present window before going to the url page.

    *Want to close the present window before going to the url page.
    Hi,
    I'm using the script below to go to url function in actionscript 3, and it works fine:
    btn.addEventListener(MouseEvent.CLICK,e);
    function e(e:MouseEvent):void{
    navigateToURL(new URLRequest("http://www.angelfire.com/in/HisTruth/copyofindex.html"));
    It's fine but I want the first window to close and then open up into the one its pointing to.
    How should I add the correct script to this?
    Tseyigai

    I am not sure what you want between the title and your description, but try adding _self as the window argument...
    function e(e:MouseEvent):void{
    navigateToURL(new URLRequest(http://www.angelfire.com/in/HisTruth/copyofindex.html), "_self");

  • How to pass arraylist of object from action class to jsp and display in jsp

    I need to do the following using struts
    I have input jsp, action class and action form associated to that. In the action class I will generate the sql based on the input from jsp page/action form, create a result set. The result set is stored as java objects in a ArrayList object.
    Now I need to pass the arraylist object to another jsp to display. Can I put the ArrayList object in the request object and pass to the success page defined for the action? If this approach is not apprpriate, please let me know correct approach.
    if this method is okay, how can I access the objects from arraylist in jsp and display their property in jsp. This java object is a java bean ( getter and setter methods on it).
    ( need jsp code)
    Can I do like this:
    <% ArrayList objList = (ArrayList)request.getattribute("lookupdata"): %> in jsp
    (***I have done request.setattribute("lookupdata", arraylistobj); in action class. ***)
    Assuming the java object has two properties, can I do the following
    <% for (iint i=0. i<objList.size;I++){ %>
    <td> what should i do here to get the first property of the object </td>
    <td> what should i do here to get the first property of the object </td>
    <% }
    %>
    if this approach is not proper, how can I pass the list of objects and parse in jsp?
    I am not sure what will be the name of the object. I can find out how many are there but i am not sure I can find out the name
    thanks a lot

    Double post:
    http://forum.java.sun.com/thread.jspa?threadID=5233144&tstart=0

  • Hi I am an iPod app developer and I desperately want to get my app launched before Christmas. Can anyone help me?, Hi I am an iPod app developer and I desperately want to get my app launched before Christmas. Can anyone help me?

    Hi I am an iPod app developer and I desperately want to get my app launched before Christmas. Can anyone help me?

    You're unaware of the iTune Connect shutdown for Christmas?
    Huh?

  • TS3276 I have snow leopard: my mail changed so I now have to double click to read a message.Want it back so can preview before open.

    I want to get mail back like before: I could single click to read before fully opening inbox message. Now have to doubel click. Also the message appears before who it is from. How do I switch columns back whre want them in order of From/message/date received. Also  "color" markings changed. It stays bold black until I double click not just single.

    Hopefully this helps. And hopefully I haven't misunderstood your question. For the issue of the location of the various headings (From, Subject, Date, etc...) you can simply grab the particular title bar and move them to the location of your choosing.

  • Unexpected & Unnecessary Popup "do you want to save changes to 'x' before closing ?"

    Hi Im running a code that is opening a pdf doc and reading some stuff from it (not editing it).
    avDoc = CreateObject("AcroExch.AVDoc")
    avDoc.Open(FileBox.FileName, "x")
    accroApp = CreateObject("AcroExch.App")
    accroApp.Show()
    accroApp.Hide()
    accroApp.Exit()
    avDoc.Close(0) 'accroApp = Nothing
    But when I close it gives this question "ONLY SOMETIMES"
    "do you want to save changes to 'x' before closing ?
    Previously, i just forced it to save at all times before closing.
    I guess there is a way to avoid this, by setting some dirtyflag=false/true?
    Pls help
    JS

    Check out this post - http://forums.adobe.com/message/3871646#3871646
    My issue was similar and I finally got it to work.

  • Export: ". exporting post-schema procedural objects and actions"

    Hi all,
    I am trying to do a full database export from the server and an import to another PC.
    I tried exporting recieved the following warnings:
    . exporting synonyms
    . exporting views
    . exporting referential integrity constraints
    . exporting stored porcedures
    . exporting operators
    . exporting indextypes
    . exporting bitmap, functional and extensible indexes
    . exporting posttables actions
    . exporting triers
    . exporting matrializes views
    . exporting snapshot logs
    . exporting job queues
    . exporting refresh grups and children
    . exporting dimensions
    . exporting post-schema procedural objects and actions
    EXP-00008: ORACLE error 903 encountered
    ORA-00903: invalid table name
    ORA-06512: at "SYS.DBMS_RULE_EXP_RL_INTERNAL", line 311
    ORA-06512: at "SYS.DBMS_RULE_EXP_RULES", line 142
    ORA-06512: at line 1
    EXP-00083: The previous problem occurred when callig SYS.DBMS_RULES.schema_info_exp
    . exporting user history table
    . exporting defualt and system auditing options
    . exporting statistics
    Export terminated successfully with warnings.
    I been through the forum and was advised to run the catalog.sql, then rerun the exp command.
    I did as suggested but the export hangs at the last line:
    Export donw in WE8MSWIN1252 character set and AL16UTF16 NCHAR character set
    About to export the entire database ...
    . exporting tablespace definitions
    . exporting profiles
    . exporting user definitions
    . exporting roles
    . exporting resource costs
    . exporting rollback segment definitions
    . exporting database links
    . exporting sequence numbers
    . exporting directory aliases
    . exporting context namespaces
    . exporting foreign function library names
    . exporting PUBLIC type synonyms
    . exporting private type synonyms
    . exporting object type definitions <- hangs here
    Is there a way to resolve this? Or should I approach another method?
    Any of your help is greatly appreciated. Thank you.
    Thanks and Regards
    San

    I am also trying to figure all the stuffs out. I try to answer as much as I know. Thanks.
    What is the export utility version?
    Using exp, "Export: Release 9.2.0.1.0"
    What is the import utility version?
    Using imp, "Import: Release 9.2.0.1.0"
    What version of Oracle database are you trying to export?
    9.2.0.1.0
    Into what version of Oracle database are you trying to import?
    9.2.0.1.0
    What are the database character sets and values of environment variable 'NLS_LANG' for each case?
    Not sure about this but I didnt change any parameters of the character set, should be
    WE8MSWIN1252
    Using WinXP OS, <- quite problematic, having a hard time trying to configure. :(

  • No authorization for object K_VRGNG, action 16, fi,Message no. DB000

    Hi,
    User got error message while doing GR .
    Error message :
    Cost allocation Document was NOT Posted due to  No authorization for object K_VRGNG, action 16, fi
    Message no. DB000
    Regards....

    Hello,
      this is an authorization problem: user must run transaction SU53 after getting the error message in order to see in detail the authorization object and values missing. Then you must ask the person who manages authorization profiles to maintain properly the user's profile.
    Tipically some roles are assigned to the user: you must identify the role to be maitained, then go to transaction PFCG and in the authorization tab, add the missing authorization object and/or the missing authorization value for the activity. An alternative way is identifying an existing role with the expected values and assign it to the user.
    Hope to be useful.
    Best regards,
    Andrea

Maybe you are looking for

  • Multiple iPods on one XP

    I have two iPods on one PC running XP. To keep them totally separate, do I need to load the OS for each iPod into directories within the users account? The default when loading tries to load the OS into system shared c:\Program Files.

  • Sending  mail data in tabular format using UTL_SMTP.

    I am using UTL_SMTP package for sending the mails after the job is running . Now there is requirement to send the same mail in Tabular Format . Is it possible to do the same . I am sending the mails using the secure server of my company.

  • Tiny Black lines in SWF

    When I publish a SWF, there are 2 tiny black lines that appear that aren't visible in the FLA file. Do you know why this could occur? I can't figure why they would be there... View my SWF here... TrailerPartz Site The SWF is in the upper left and the

  • Not giving paid for next business day service

    Hi Has anybody got a number I can phone in the uk for customer complaints? My nine month old thinkpad screen went. Company paid for extra next business day service for repairs. At first they said they didn't have a replacement and it would take an un

  • Timeout Error When Trying to View a History

    In Source Control 3, my entire department gets a timeout expired error whenever we try to view a file's history. Below is the stack trace: Exception rethrown at [0]: at System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IM