Is there a declarative way to include my own javascript 'on submit'?

I try to integrate a third party editor (CKEditor) into my ADF 11.1.1.2.0 application. This editor converts a normal inputText item through javascript into a full wysiwyg HTML editor. In need this because the default richTextEditor has limited functionality. The problem I encounter is that this editor needs a piece of javascript to be executed to sync the editor-content with the related inputText before the item is submitted. This is especially needed in case of partial submits. I don't want to include a call to the script in all items that can cause a partial submit.
So what I'm looking for is a hook into the clientside lifecycle when the form is (partially) submitted.
I have tried several ways to initiate the script before the form is (partially) submitted:
1: Added a clientlistener to the item of type 'blur' or type 'valueChange'. Both fail to work in some cases and some browsers, probably because the rich editor itself does a lot of eventhandling.
2: Added a custom clientside validator. This seems to work but the problem is that client side custom validators are only fired when the item is required and my items is not required. I don't know the reason why an item has to be required to fire the custom validators. I thought it was a bug, but chapter 4.2 of the FusionWebUIGuide describes this behavior.
Both declarative ways fail to work. I have found a solution that works but this solution is a 'dirty' one. What I did is overriding the javascript method that processes the validators:
AdfDhtmlPage.prototype._oldProcessValidators = AdfDhtmlPage.prototype._processValidators;
AdfDhtmlPage.prototype._processValidators = function (x275, x276, x277) {
// Do my javascript thing
var result = this._oldProcessValidators(x275, x276, x277);
return result;
Although this solution works in all situations and in all browsers, I don't realy like it. So my question is: Is there a declarative way to include my script-call before the form is partially submitted?

Hi,
For your information, we have integrated FCKEditor (CKEditor's ancestor) into an ADF 11g application.
I know it is very different from CKEditor, but we have been forced to create our own JSF component and made several hooks to the framework to make it behave like desired.
One of the problem we have faced is the lost of the input values when partial submit was performed on the editor isntance.
Just so you know it might be real hard to integrate the component without creating a JSF component.
Regards,
JP

Similar Messages

  • Is theRe a. Way to put my own dvd movies on my iPod youch

    Is there a way to put my own DVD movies on my iPod touch?

    Are these home-made movies or commercial? If commercial we cannot discuss here
    For your movies, you can use handbrake to create a file (there ia an iPod Touch preset) and then import into iTunes and sync over.

  • Is there any way to include all the info on a form as an attachment?

    Hi. I would like to find out if there is a way to include the same info that is entered in the fields of a standard html form as a data file attachment? I'm thinking along the lines of an xml file that would usually be sent to the recipient once a pdf form has been filled in and submitted.
    By default (in my case anyway) when an online form is submitted by somebody, whatever info was entered in the fields will simply display in the body of the email. That's fine if it's an occasional form that's submitted but if we plan to make this a standard method of submitting data, thus greatly increasing submissions, (as opposed to filling in pdf forms - which don't work for our employees on smartphones) AND I want to gather the data and put it in a sort of a simple database (excel spreadsheets is fine!) then obviously we'll want to make this easy on ourselves and avoid having to manually enter the information received into a spreadshhet every time data is received.
    I'm not looking into setting up a full online database (despite the fact that might seem a nice (long-term) solution), as that would be unncessary for this kind of 'minor' exercise at the moment - I'd just like to see if there's a cost free solution to force a submitted html form to also send a data attachment (e.g xml) to the recipient. Thanks in advance.

    There is nothing within DW that can do this for you. You also cannot go straight from HTML to an emailed XML file, which is likely why you couldn't find anything online about it.
    You will need to find out what server scripting language(s) your hosting company supports (php is a common one).
    Once you know that, you'll need to create/purchase/download a script in that language that you attach your html form to in order for it to be converted by your server and sent to your email as an XML file, again php is a very common choice for this.
    As Murray suggests, there are a lot of sources online once you know which language you can use.

  • Is there a way to include a native executable into extension package?

    Hello,
    I need to call some native code from the CS extension using the NativeProcess API.
    Is there any way to distribute a native executable file inside the extension package?
    It looks like there is a way to include an "ordinary" file into a hybrid extension, however the file has to be installed into one of pre-defined locations (such as "$applicationsupport").
    The problem is that in order to create a NativeProcess object in the extension code, I need to know the exact path of the executable, and I can't seem to find a way to find out where exactly the executable was placed by the extension installer.
    Is there a way to install an executable into the extension folder (which I can get using CSXSInterface.getInstance().getSystemPath(APPLICATION))?
    Thank you,
    Anatoly

    Is there a way to install an executable into the extension folder (which I can get using CSXSInterface.getInstance().getSystemPath(APPLICATION))?
    Yep, the answer depends on how you're packaging your extension.
    If you're using Extension Builder, you just need the executable to be automatically copied to the bin-debug folder during the build process. The simplest way to achieve this is to put the executable underneath the src/ folder. Another option is to make your own resources/ directory and add it to the project source path (see the section "Adding resource folders to the project source path" here: http://help.adobe.com/en_US/Flex/4.0/UsingFlashBuilder/WS6f97d7caa66ef6eb1e63e3d11b6c4ce74 9-7fd8.html). Once you've got it copying to the bin-debug folder you're set, you can launch or export as usual and your executable will end up in the extension folder.
    If you're using ucf.jar, just make sure that your executable is in the extension folder you're packaging.
    You shouldn't need to create a hybrid extension in order to have a CS extension that uses NativeProcess.

  • [solved] Clean way to include a "ln -s /usr/ /usr/..." in a PKGBUILD?

    Hello,
    in order to run a third party closed source software, I needed to
    ln -s /usr/lib32/libjpeg.so /usr/lib32/libjpeg.so.62
    In order not to do this by hand in the future, I'd like to make this by the PKGBUILD. But as far as I can see, the PKGBUILD script is only about files inside the package, not outside of them.
    So is there a clean way to include
    ln -s /usr/lib32/libjpeg.so /usr/lib32/libjpeg.so.62
    in a PKGBUILD?
    Thanks!
    Last edited by Carl Karl (2013-11-08 00:42:54)

    Sorry. I didn't mean to be so mysterious. Basically it hides a problem and it can cause further problems. So the application you do it for believes that it has a certain version of the library but it doesn't which could well cause weird failures, even if it does compile. Once that symbolic link is in your system, moreover, anything else you compile can potentially find it and try to compile against it. Suppose you were building something which did something conditionally e.g. "if we find version X of lib Y, assume A; if we find version Z of lib Y, assume B" or which just depended on a particular version of the library. Now you will have silent errors building up in the stuff you are compiling, even though it has nothing to do with the original application you installed the work around for.
    There may be other reasons it is bad, too, which I don't know about. That's the stuff I know about.
    Anyway, I'm certainly glad you found a better solution. As for finding packages, you could just search AUR using the web interface or you could use something like cower. In this case, you could try, for example:
    $ cower -s lib32-libjpeg
    aur/lib32-libjpeg6 6b1-1 (392)
    Legacy version of Library of JPEG support functions (32 bit)
    aur/lib32-libjpeg6-turbo 1.2.1-1 (12)
    libjpeg derivative with accelerated baseline JPEG compression and decompression
    aur/lib32-libjpeg7 7-3 (19)
    Library of JPEG support functions, version 7 (32 bit)
    32 bit libraries for 64 bit systems all start lib32- so that's why I searched on lib32-libjpeg rather than just libjpeg. cower is an extremely useful, minimal and lightweight AUR helper. Obviously, you could use another AUR helper if you liked - cower is just my favourite.
    Last edited by cfr (2013-11-07 22:57:34)

  • By default, Teststand will not include the test step result in subsequence, is there any way to include these step result in report?

    By default, Teststand will not include the test step result in subsequence, is there any way to include these step results in report?
    Thanks
    Jacky

    Hi,
    If your subsequence is in a separate sequencefile, then check the properties of the sequencefile to make sure that the record has not been disabled.
    Regards
    Ray Farmer
    Regards
    Ray Farmer

  • Is there a way to include html link with applet?

    I am thinking of writing an applet that would be useful to others, which I would provide for free. In return I would want a link from the pages that use the applet. It is important that the link is search engine friendly, a pure href html link that will provide google page rank to me.
    Is there a way to include such a link with an applet so that it can't be removed?

    No. You can't force other sites to change their content.

  • Is there a way to include the sys.aud$ table in a full database dp export?

    I am doing an export using the following parfile information:
    userid=/
    directory=datapump_nightly_export
    dumpfile=test_expdp.dmp
    logfile=test_expdp.log
    full=y
    content=all
    However when I run this I do not see the sys.aud$ in the log file. I know I can do a seperate export to specifically get the sys.aud$ table but is there any way to include it in with my full export?
    Thanks in advance for any suggestion.

    here's more background infomation... I have some audits setup on my database for one of my users. Every quarter I have an automated job that runs that creates a usage/statics report for this person using data in aud$. at the end of the job I export the aud$ table and truncate it. However last quarter I found that there was a mistake in my report and my export did not run properly thus my audit data was gone. i also have full datapump exports that run daily but found that aud$ was not there. so that is why I thought I'd like to include sys.aud$ in the full datapump exports.
    i understand why other sys tables would be left out of a full export but aud$ data cannot be reproduced so to me it makes sense to include it in a full export.
    don't worry, we run our true backups using rman which is eventually how I got the aud$ data back by creating a copy of my database up until the time of the truncate. however this was quite time consuming.

  • Is there a way to include material in a DVD that some CAN copy?

    Is there a way to include material in a DVD that some CAN copy?
    I have a 30min project that I am going to burn that is copyrighted. But I’d like to add some stills or maybe a screensaver that the purchaser could copy from the disk and use.
    Thanks!

    Copyright is not the same thing as copy protect. Your material may very well be copyrighted, but it won't be copy protected if you are burning the DVD in your Superdrive. You must use a replication house to get copy protection. If you do this, you can include copyable stuff on the disc. I've seen commercial disks with PDF files, etc that you can freely use. I have no experience on how to do it though.
    But, don't fool yourself. There really is no copy protection anymore on DVDs. Anyone with an internet connection can figure out how to defeat it using software available free on the internet. All you can do is make it a hassle to copy it.

  • Is there any way to include excluding one field

    hi all,
    is there any way to include a structure or type in another structure or type by excluding one field?
    regards
    hyma

    I think you are trying to include 2 structures but it is giving error that some fields are common
    you can overcome that like this , these are the 2 additions
    INCLUDE STRUCTURE ZTAB AS name1.
    INCLUDE STRUCTURE ZTAB AS name1 RENAMING WITH SUFFIX name2
    for more info check the help for INCLUDE STRUCTURE

  • Is there a way to include library items in a finder search?

    Is there a way to include library items in a finder search?

    Which Library? Spotlight has a search criteria option that allows you to add system files and folders, including invisible ones. Click on the Desktop, CMD+F. In the window that pops up, click on the Action button, and select Show Search Criteria. For more on those, see http://www.macworld.com/article/2016043/mac-101-smart-searching.html for starters.
    27" i7 iMac (Mid 2011) refurb, OS X Yo (10.10.1), Mavs, ML & SL, G4 450 MP w/10.5 & 9.2.2

  • I am setting up a new Time Capsule to replace another hard drive.  Is there any way to include the the Time Machine history from the old drive on the new Time Capsule?

    I am setting up a new Time Capsule to replace another hard drive.  Is there any way to include the the Time Machine history from the old drive on the new Time Capsule?

    Check item #18 of Time Machine FAQ, particularly the material in #3 of the "How to" section.
    By the way, you've been misled by poor field labeling on this forum into typing a large part of your message into the field intended for the subject.  In the future just type a short summary of your post into that field and type the whole message into the field below that.

  • Is there a way to include a confirmation message when a form is successfully submitted?

    I have a form that uses both a regular button with javascript, and e-mail submit buttons (depending on which action on the form the user is trying to complete)...
    I'm trying to find a way to confirm to the user that their form has been submitted. Since the form stays open after the e-mail is sent, I have several customers who submit the same form several times (15 in one severe case ) which is causing things to gum up a bit.
    Alternatively, if there's a way to get the form to close once the button is clicked and/or the e-mail is sent, that would work just as well.
    Thanks in advance for any advice you can give me

    Also no,
    the mailDoc function controls just 6 parameters (bUI, cTo, cCc, cBcc, cSubject, cMsg), nothing else.
    http://www.adobe.com/content/dam/Adobe/en/devnet/acrobat/pdfs/js_api_reference.pdf#page=32 3

  • Is there a way to include images in a feature request to apple?

    I often feel that that best way to convey my feature request is with an image showing an example of the request.
    Does anyone know of a way to include images along with your feature request?
    Thanks

    No, but I suppose you could always upload the images elsewhere and link to them.

  • Is there a way to include a photo strip with slideshow without seeing the photos to click on first to get to the strip?

    I ideally would like to have my photos broken down
    portraits (click)
    see a strip of portraits and the enlarged version of whatever I click on
    however to add the images for the strip, i see all the images before I even get to click and see the strip..
    Any advice?

    you mean skipping the grid view and go directly to detail view?
    if so, then there are couple ways to do it:
    https://discussions.apple.com/message/7686418#7686418
    https://discussions.apple.com/message/6272619?messageID=6272619#6272619

Maybe you are looking for

  • Error 503 when trying to access UTube

    Greetings, I am having a problem trying to access sites that have audio/video on my Verizon 8130, can someone point me in the right direction in correcting this problem. Thx Glenn

  • Output Processing. Dispatch Time: 3 ( Application own Transaction)

    Hi, I have created output records for an output type with the dispath time =3 (Application Own Transaction) and Transmission Medium = 8 (Special Function) and provided a processing routine to output type. The output records are populated in sales ord

  • Validating xml input against schema's registered in database

    Hi, We have an application that stores a massive XSD document (with cyclical references between schemas) in a VARCHAR2 column of a table. The XSD is loaded everytime an xml input needs to be parsed. The problem is that the XSD is very huge, and maint

  • Delaying execution until a specified time

    All, I am developing a web application using Java servlets (no JSPs). What I have been trying to accomplish is to pass a date in a specified format to a servlet, have the servlet parse the date, and then upon that specified date complete its actions.

  • Exception when instatniating a new instance

    java.lang.Integer java.lang.ClassCastException: java.lang.Integer      at fuego.server.persistence.jdbc.JdbcProcessInstancePersMgr.checkMaxAllowedSize(JdbcProcessInstancePersMgr.java:2711)      at fuego.server.persistence.jdbc.JdbcProcessInstancePers