How to override component default events

How to override the scroll panel default click event to custom event.

Events bubble by default... It sounds like you want to look at the Event class' stopImmediatePropagation method.

Similar Messages

  • How to override the default height of tree component...

    Hi,
    Can anyone please tell me how to override the default height of <af:tree> component.
    Actual Problem:
    I have a PanelBox in which I have a ShowDetail component. ShowDetail contains Tree component. When I click on ShowDetail item the Tree component have to be displayed. But, PanelBox is expanding to TREE default height(27.27 ems) instead of expanding to exact height of Tree.
    How to manage this issue?
    Thanks
    -Sukumar

    Did you already try
               <af:treeTable value="#{bindings.DashProjectPhasesDev.treeModel}"
                                  var="node"
                                  selectionListener="#{bindings.DashProjectPhasesDev.treeModel.makeCurrent}"
                                  rowSelection="none" rowBandingInterval="0"
                             inlineStyle="width:810px; height:1100px;"> Check the last line with inlineStyle...
    Julian

  • HOW TO override/modify default PTG homepage?

    Hi:
    I want to know how to override default portal to go homepage. I've create my wireless app that is already well deployed in a container and already working in PTG. I want to know how to modify the default ptg home. I've removed all apps from ptg to the guests users and just give access to guest to my application. I need a simple default homepage and i need to remove the SETUP link that is always displayed in /PTG/RM page. Also, can anyone tell me how to create a simple url to access my wireless portal?
    for instance i have to write : portal.myorg.pt/ptg/rm and i would like to just hae to write : wire.morg.pt
    How can i achieve this?
    Thanks
    Joao

    I'm using a beta of 10G at the moment. What I did is change the oracle logo (logo.gif) with our own company's logo (http://host:port/ptg/images/logo.gif) (also the wbmp and png file) .
    If you can get access to the webtool http://host:port/webtool/login.uix you can click on the system tab and look for
    System > Wireless Server: Administration > Device (look at component configuration).
    From here you can enable/disable standard interface options
    Multi-Channel Server Setup Menu Configuration
    Enable Login
    Enable Logout
    Enable User Info
    Enable Application Customization
    Enable Global Preset
    Enable User Profile
    Enable Self Registration
    Enable User's Home Page
    Enable Help
    Help URL
    You can change the logon page and other pages on <oracle_home>\wireless\j2ee\applications\ptg\ptg-web\modules\login
    and
    <oracle_home>\wireless\j2ee\applications\ptg\ptg-web\modules\iaswfr
    I'm also curious if there is a more easy way to customize things.
    Thomas

  • How to override the default delete operation

    Hi,
    I am new to Jheadstart, java coding for that matter.
    Here's my situation,
    I have a view which is based on a function (function returns a collection).
    I have created instead of triggers on this view to perform insert/update/delete operations.
    All these DML operations work as expected in Oracle database.
    Now, I created an Entity object and a view object on this view in my jheadstart project.
    When I run this Jheadstart application my insert and search operations run fine but update and delete operations fail with JBO-26080 error.
    The underlying oracle error is "ORA-02014: cannot select FOR UPDATE from view with DISTINCT, GROUP BY, etc."
    I know that delete and update operations work fine in Oracle and hence I would like to override the default Jheadstart operations. Can any body tell me how can I do it or point me in right direction?

    Hi,
    From the JHeadstart Developer's Guide, chapter TroubleShooting - Problem Assessment:
    If you are getting a JBO error (Business Components for Java error), try to perform the same data retrieval or data manipulation action using the BC4J Tester. You can
    invoke the tester through a right-mouse-click on the BC4J application module. If you get the same error using the BC4J tester, the problem is in the BC4J object definitions. If you added business rules, or other custom code to your BC4J objects that executes during your data retrieval or data manipulation action, you can debug this code line-by-line by running the tester in debug mode. You can also look up the JBO error in the JDeveloper online help, for each error possible causes and how to solve them are described.
    It sounds to me like you will also get this error in the BC4J Tester. This means that the problem is not related to JHeadstart. You can go to the JDeveloper discussion forum http://otn.oracle.com/discussionforums/jdev.html and ask your question there without mentioning JHeadstart. Maybe there is some switch you can set in the BC4J object to let BC4J not use SELECT FOR UPDATE.
    Hope this helps,
    Sandra Muller
    JHeadstart Team

  • How to override the 'default' partition in composite.xml - urgent

    All,
    Version: 11.1.1.4
    I have created a simple BPEL A which invokes another BPEL B which is deployed to 'default' partition. In the composite.xml of BPEL A I can see the WSDL location of BPEL B as *"http://localhost:7001/soa-infra/services/default/BPELB/BPELB.wsdl"*. I noticed that the name of the partition (i.e in our case its 'default') is hardcoded in the wsdl location. During deployment I want to override to other partition, how I can achieve this?
    thanks
    sen

    If you want to change the partion name at run time then used Token ,value concept and define it in build.xml
    For Example
    <target name="replaceAllValues">
    <input
    message="Please enter full path of the file directory:"
    addproperty="dirPath"/>
    <replace dir="${dirPath}">
    <replacefilter
    token="OldValue."
    value="Newvalue"/>
    </replace>
    </target>
    Call the above target from ant build.xml before you deploying the service.
    Regards,
    Tarak.

  • How to override the default order UOM when using BAPI_PO_CREATE1...

    Hello Experts,
    How do I force BAPI BAPI_PO_CREATE1 to use my declared purchase order unit of measurement instead
    of getting it in the material master data? For example, material A has a default purchase UOM of CV, but
    when I create a PO using material A I want the purchase UOM to be EA instead of the default CV.
    How do I do that?

    Sorry settings in inforecord problem.

  • How to override the default "required" attribute for the UIComponent?

    Hi, consider the following markup: <h:inputText id="txt_firstName" value="#{myBean.firstName}" required="true"/>
    if I leave this field empty and hit the submit button, the required validator will fire an error msg. If however, I leave an empty space in the text box and hit submit button, it will go through no problem.
    I'd like to override the required attribute, so it will trim the spaces first before decide if it really is empty:
    //whatever the name of the method i'm overriding....
    String value = (String)value;
    if(value==null)throw new ValidatorException(whateverDefinedInTheBundle);
    value = value.trim();
    if(value.length==0)throw new ValidatorException(whateverDefinedInTheBundle);
    How can I go about doing that?
    Thank you.

    Did you already try
               <af:treeTable value="#{bindings.DashProjectPhasesDev.treeModel}"
                                  var="node"
                                  selectionListener="#{bindings.DashProjectPhasesDev.treeModel.makeCurrent}"
                                  rowSelection="none" rowBandingInterval="0"
                             inlineStyle="width:810px; height:1100px;"> Check the last line with inlineStyle...
    Julian

  • JRE 1.4.2: how to override the default xml parser?

    Hi all,
    I have JRE 1.4.2_03 and I need to replace the default xml "crimson" parser with xerces because the former one doesn't properly handle utf-8 BOM.
    Does anyone have an idea where I should look at for this kind of configuration?
    I skimmed thorugh the oracle docs but couldn't find anything.
    I found a link describing how to change the xml parser in OC4J, but my understanding is that this has little to do with what I am looking for.
    I need to force Saxon 8.6.1, that is invoked by means of java.exe from the command line, to pick up the right xml parser.
    Has anyone else tried this out already?
    Alternatively, is it safe to install JRE 1.5 in place of JRE 1.4.2 on a Oracle 10.1.0.4 database?
    I am told that JRE 1.5 uses a different xml parser that should fix my problem.
    Bye,
    Flavio

    I sorted this out myself.
    Downloaded the latest stable xerces binary (2.5.0) from http://xml.apache.org/dist/xerces-j/
    Then I extracted xercesImpl.jar and put it under:
    %ORACLE_HOME%\LIB\endorsed
    I had to create the endorsed folder as it didn't exist.
    Then, when invoking Saxon using java.exe, I added the following switch:
    -Djava.endorsed.dirs=%ORACLE_HOME%\LIB\endorsed
    That's it.
    You can find some background info on:
    https://jaxp.dev.java.net/Updating.html
    Bye,
    Flavio

  • How to override the default SOAP envelope prefix?

    I have a Web service as an external reference. In run-time WebLogic generates SOAP messages with a default prefix <env:Envelope xmlns:env=http://schemas.xmlsoap.org/soap/envelope/”…>. Normally this is fine. However the Web service required a prefix as <soapenv:…>. How can I have WebLogic generate soap envelope prefix as soapenv instead env?

    hello!
    It's possible. You must implement handler and change envelope and body prefix. Here is example:
    public class WsHandler implements SOAPHandler<SOAPMessageContext> {
    public boolean handleMessage(SOAPMessageContext context) {
    Boolean outboundProperty =
    (Boolean) context.get(MessageContext.MESSAGE_OUTBOUND_PROPERTY);
    if (outboundProperty.booleanValue()) {
    try {
    SOAPEnvelope envelope = context.getMessage().getSOAPPart().getEnvelope();
    envelope.setPrefix("soapenv");
    envelope.removeNamespaceDeclaration("env"); //remove old prefix
    envelope.getBody().setPrefix("soapenv");
    context.getMessage().saveChanges();
    } catch (Exception e) {
         throw new ProtocolException(e);
    }

  • How to realize component's event notify?

    Now, I created a component form JPane call MyPane, in addition a write a method for it. At last, MyPane implement MouseEvent to call it.
    e.g: public void MyFun() { ... }
    MyPane be used in an application(MyApp), now I want to realize when user click on MyPane, how can notify MyApp MyPane carry out a method MyFun()?
    It's like to message map.

    in your mouse listener for the pane, have it call MyFun(), that assumes you can make MyFun() visible to the mouse handler.

  • How to override base class events

    I Have faced one event problam. That is i have called one AA class in to stage. AA class is extends from BB class. BB class extends from CC class.CC class extends MovieClip.  In CC class i have given CLICK event trace("this is CC class"). i am also given for AA class CLICK event ("this is AA class ").When I Click the AA in out put panel "this is CC class" ,"this is AA class ") i want to stop CC Class mouseEvents.

    Events bubble by default... It sounds like you want to look at the Event class' stopImmediatePropagation method.

  • HT201448 How to override the default order of Websites, Wiki, and Xcode services?

    Greetings,
    On my Mac server, I have the Websites, Wiki, and Xcode services all enabled but, as detailed by the Apple support article, Xcode takes precedence over all, or Wiki if Xcode is disabled.
    What I would like to see is a virtual host (e.g. wiki.myhost.com) and/or directory alias (www.mydomain.com/xcode) that opens the home page for the respective service while the default (e.g. www.mydomain.com) goes to the home page for mydomain.com.
    I'm no httpd configuration expert but I expect some manual httpd configuration will be required.  Any help appreciated.

    At the end, I decided to adopt Firefox add-on "Classic Theme Restore"—amazing output. I guess it is impossible to get such a space saving but full furnished solution somehow else.

  • How can I remove default alarm for events in iCal on devices ios?

    Whenever I add an event to my iCal calendar in Mounain Lion it will automatically add one default alert only on my iphone and ipad. These default alarms are not displayed on my macbook or icloud.com
    Default alarms are disabled in macbook, icloud.com, and my ios devices.
    How can I remove default alarm for events in iCal on devices ios?
    Thanks and sorry for my english.
    MacBook Pro, Mac OS X 10.8

    OK, so I have had this issue for the past several months. I think it all started when I upgraded to ML from SL and migrated my calendars and contacts to iCloud. That was a couple months ago. But now I am running 10.8.2, and about two weeks ago I upgraded my iOS devices to 6.0.1.
    I don't seem to be having any issues with events that I create now, but all those old events that were migrated to iCloud a couple months ago, many of those sound alerts on the iOS devices even though there was no alert defined when the event was originally created. I have always had alerts off by default both in iCal and on the iOS devices.
    So here's the question: is there a way to go through and disable all these spurious event alerts? I've been disabling them as the event reminders come up, but it's irritating. It would be nice if there was a way to turn them off all in one shot somehow.

  • How to Set A Default Start Time For New Events In Calendar?

    How to Set A Default Start Time For New Events In Calendar?

    John,
    Thanks for that suggestion - could not get it to work. However, I did manage a different approach. I finally determined the sequence of events in terms of how the various events and listeners fire (I think).
    Basically, the CalendarActivityListener fires, followed by the listener associated with the Calendar object's Create facet, followed finally by the CalendarEventListener - the final is where the TriggerEvent is available and then finally, control is passed to the popup/dialog in the Create facet. So, my approach of trying to set/get the TriggerDate in the user's HTTP session was doomed to failure because it was being get before it had been set :(
    Anyway, I ended up adding a bit of code to the CalendarEvent listener - it grabs the current BindingContext, navigates through the DCBindingContainer to derive an Iterator for the ViewObject which drives the calendar and then grabs the currently active row. I then do a few tests to make sure we're working with a "new" row because I don't want to alter start & end dates associated with an existing calendar entry and then I define the Start and End dates to be the Trigger Date.
    Works just fine. Snippet from the listener follows
    BindingContext bindingContext = BindingContext.getCurrent();+
    *if ( bindingContext != null )    {*+
    DCBindingContainer dcBindings = (DCBindingContainer) bindingContext.getCurrentBindingsEntry();+
    DCIteratorBinding iterator = dcBindings.findIteratorBinding("EventsView1Iterator");+
    Row currentRow = iterator.getCurrentRow();+
    if ( currentRow.getAttribute("StartDate") == null)+
    currentRow.setAttribute("StartDate", calendarEvent.getTriggerDate());+
    if (currentRow.getAttribute("EndDate")==null)+
    currentRow.setAttribute("EndDate", calendarEvent.getTriggerDate());+
    *}*

  • How to set "All day event " as default in Calendar in 9630

    In BB 9630 how do I set "All day event " as the default in Calendar?

    Hello,
    You asked the same question twice, albeit the first time in the wrong place:
    http://supportforums.blackberry.com/t5/BlackBerry-Curve-BlackBerry-8300/How-to-check-as-default-quot...
    Cheers!
    Occam's Razor nearly always applies when troubleshooting technology issues!
    If anyone has been helpful to you, please show your appreciation by clicking the button inside of their post. Please click here and read, along with the threads to which it links, for helpful information to guide you as you proceed. I always recommend that you treat your BlackBerry like any other computing device, including using a regular backup schedule...click here for an article with instructions.
    Join our BBM Channels
    BSCF General Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

Maybe you are looking for

  • Reading a unicode file and displaying it on jsp !!!!!

    I've one file that consists of unicode character. I've to read it and display it on the jsp page. I'm able to display it other contents but for unicode i'm unable to display it properly. Could anyone help me how to achieve this problem..... in advanc

  • ARE-1 Excise Base Value and LOU

    Hi Friends, This problem is in Exports(LOU) 1) In ARE-1, Excise base value is zero. BED,Ed Cess and Sec Higher Ed Cess are flowing. I want to know whether this should have some value or it should be Zero. 2) For LOU, Whether we need to Create Bond? P

  • Apple Remote causes 21.5" iMac to check for a disc in the superdrive

    Whenever I press a button on the Apple Remote (new, aluminum one), I get the same noise from my superdrive as when the iMac boots -- like it's realigning the heads looking for a disc. Is anyone else seeing this behavior?

  • Kanban- issue

    Hi All,       Actually My scenario is I configured a setting for some bulk material as kanban material and created a replenishment strategy with control type Direct transfer and issue the cost to the cost center with 201 movement type. I am moving th

  • TechTracks order fails 4 times with Page Not Found

    I have been unsuccessfully trying to order the Java Developer for Windows CD subscription through TechTracks (www.oracle.com/webapps/techtracks. The first 2 times, I got as far as the Personal Information page, but when I pressed Continue, after abou