Question in Overriding

Hi,
In the following example code snippets
class Base
     private static Common com = new Common();
     public static void write(String data)
          com.print("Base "+data);
class Common
    public void print(String data)
         System.out.println(data);
class Sub extends Common
     public void print(String data)
          System.out.println("sub "+data);
public class SomeOther
      public static void main(String args[])
           Base.write("hello world");
}In my project Base's write method is called from 50 different files a lot of times. I can only change Sub class, so that when ever Base's write method is called, the control should go to Sub's print method. Reason is, I have to do some validation when ever a line is wriiten. Since I can not change the base class by any means, is there any way to include the validation code in Sub class and be called whenever Base's method is called?
Thank you.
Raj.

Thanks guys, for your replies.
Well, The Base�s method actullay uses PrintWriter�s println method to redirect all the log data to a file. This Base class is only available to us in a jar file. We are not allowed to change it.
The task I am trying to do is, when ever a line is written to the log file, I have to check the current timestamp against the timestamp written in the first line of the file. And have to do some tasks accroding to that.
I tried a FileListener interface to listen to the file . But this took most of the CPU since my application has already 30 threads running concurrently. I am almost stuck in this for past two days.Can you suggest any other way of doing this?
Thanks
Raj

Similar Messages

  • Question about overriding and overload

    Below is a super class named Animal and subclass named Horse
    public class Animal {
    public void eat() {
    System.out.println("Generic Animal Eating Generically");
    public class Horse extends Animal {
    public void eat() {
    System.out.println("Horse eating hay ");
    public void eat(String s) {
    System.out.println("Horse eating " + s);
    public class Test {
    public static void main ( strin []agrs) {
    Animal ah2 = new Horse();
    ah2.eat("Carrots");
    At the bold line, why can not polymorphism work here.
    Can anyone explain it to me pls.
    Thanks

    800239 wrote:
    Below is a super class named Animal and subclass named Horse
    public class Animal {
    public void eat() {
    System.out.println("Generic Animal Eating Generically");
    public class Horse extends Animal {
    public void eat() {
    System.out.println("Horse eating hay ");
    public void eat(String s) {
    System.out.println("Horse eating " + s);
    public class Test {
    public static void main ( strin []agrs) {
    Animal ah2 = new Horse();
    *ah2.eat("Carrots");*
    }At the bold line, why can not polymorphism work here.
    Can anyone explain it to me pls.
    ThanksThe variable ah2 is declared as a reference of type Animal. That means we can only call methods that exist and are accessible in Animal. The compiler doesn't know or care that at runtime the Animal reference variable points to a Horse object. All that it sees is that ah2 is of type Animal.
    The kind of polymorphism where that does matter is when a child class overrides (not overloads) a non-static, non-final, non-private parent method with the exact same signature.

  • Need help on overridding

    I have listed couple of my questions on overridding here.
    class ParentClass{
         void method1(Object b){
         System.err.println("in object");     
         void method1(Double d){
              System.err.println("in double");
    public class ChildClass extends ParentClass{
         public static void main(String args[]){
              ChildClass c = new ChildClass();
              c.method1(null);  // *Question 1*      
                           c.method1(3);    // *Question 2*     
    Question 1 - Will print "in Double" ? Why not it prints "in Object" ?
    Question 2 - Will print "in Object" its an int value how it prints object?

    Questions 2 and 3 are due to auto-boxing. When you try to assign a primitive to a reference type (which is what is happening when you include it as an argument to a method that takes an Object, etc), the primitive is "auto-boxed" to its primitive wrapper class, in this case, int to Integer. Since Integer is not a double, Question 2 links to method1(Object) as that is the only candidate. Likewise, in Question 3, method1(Integer) is the most specific matching signature, so it is chosen.
    Question 1 actually surprised me. I thought it would be ambiguous, but I guess because there is a clear hierarchy to Double and Object (Double indirectly extends Object), there is no ambiguity. The most specific method is chosen.
    Note that if you had method1(String) and method1(Double), Question 1 would be a compile error since it would be ambiguous (String is not an ancestor of Double, and vice versa, so there is no way to tell which you mean.) Whenever you pass null as an argument, you can cast it to be explicit:
    c.method1((Object)null);And yes, in the future, please be more careful with which forum you choose to post in.

  • Why override custom event-and when to override it?

    Hi guys..
       I always have a question about override custom event. I am not sure why or what do to inside override function. I searched google but didn't get too many feedbacks.
    Also, my projects seem work fine even though I use my custom event without override. Anyone could explain it? I appreciate if someone can light me up.

    Yes, it's a good practice to override the clone function of the superclass but you're not really overriding your custom event. Guess I didn't say it well before. Just google something like "Flex override clone function" and you'll be taken to the livedocs, most likely, where you'll find this paragraph
    You are required to override the Event.clone() method in your subclass. The clone() method returns a cloned copy of the event object by setting the type property and any new properties in the clone. Typically, you define the clone() method to return an event instance created with the new
    operator.
    I've not really thought about it before but I assume that's in case you want to extend your class. Anyway, you can pretty blindly just include that override of the clone function and not get into trouble. It's just saying, hey, if something is dealing with this custom event, don't return a copy of the superclass - the Event class - return a copy of this custom event that I've created to extend the Event class to add special functionality.

  • SCOM Two Overrides Applied, who wins?

    I have a question regarding overrides with SCOM 2012.  Let's say there is a Logical Disk Space monitor in place that has a threshold of 10%.   I have a group created which contains a certain subset of logical disks.   Lets say I
    override my Logical Disk Space monitor and set the threshold to 5% for only that group.   Now, six months later, someone comes along and says, just for this one specific server, override the threshold to be 2%.   This one server is in the
    group above, that we previously set to 5%.  So which override wins for that one server?  Does it go based on the date, or order,  the override was applied?   Because both sets of overrides are still in place.  I just don't know
    how SCOM decides which to listen to.
    Hopefully that made sense.  Let me know if you need any more information, otherwise thanks in advance for your help!

    There are some rules that go along with how they get applied.
    Now, how do all these overrides actually get applied? To take the most complicated case, we'll work with an instance. We want to know what overrides apply to a particular instance of IIS for a particular rule targeted toward IIS. The first thing the algorithm
    does, conceptually, is gather all the types and instances that are in this instances hierarchy. So, this instance would include the IIS class and any classes that it derives from all the way to System.Entity and the computer instance that hosts this IIS
    instance and the computer class of this computer as well as all it's base classes. Next, the algorithm collects any overrides that may apply to this particular rule and overlays them on the hierarchy. So, if you have an enabled override disabling this rule
    with a context of System.Entity, it will exist in this objects hierarchy. With this conceptual hierarchy in mind, the algorithm starts at the top and traverses down applying the following criteria, in priority order:
    Non-Category enabled overrides always win over category overrides
    An enforced override always wins over a non-enforced override
    Instance targeted overrides always win over class targeted overrides
    Overrides in non-sealed management packs always win over sealed overrides
    A child in the hierarchy of overrides always wins over a direct parent override of the same type (instance vs class)
    Class overrides from contained instances always win over class overrides of the instance.
    Instance overrides with the higher relative depth win over those with a lower depth. Depth is calculated from the root node(s) of the containment hierarchy of which the instance in question is a part
    Randomly chosen
    Taken From http://blogs.msdn.com/b/jakuboleksy/archive/2006/12/06/overrides-in-scom-2007.aspx
    and I found it to hold water

  • HT1711 It wont let me download my music for 90 days. why?

    Hi,
    Just recently my Iphone 4S music library had cleared itself. I then turned my phone off then back on thinking it may have been aa glitch. I then turned it back on and went to my Itunes store a and went to my purchases. Afterwards I had chose the option to " Download All" and a message appears saying "You can download past purchases on this device with just one apple ID every 90 days. You cannot associate this device with a different Apple ID for 78 days." I have waited a total count of 12 days without music and I really want it back. Is there a way to override it or fix this problem I am having?Is there a chance that someone may have hacked into my account?
    sincerely,
    Robertdifferent.

    Hello there, RobertDifferent.
    The following Knowledge Base article should clarify and respond to your questions about overriding:
    iTunes Store: Associating a device or computer to your Apple ID
    http://support.apple.com/kb/ht4627
    Specifically:
    Note: Removing a device from your Apple ID does not override the 90 day timer. The timer must complete 90 days from the day the device was associated before it can be associated to another Apple ID.
    Thanks for reaching out to Apple Support Communities.
    Cheers,
    Pedro D.

  • Can I use stylesheets to create multiple button styles?

    I am trying to create a custom look-and-feel within UIX to get it as close as possible to
    our existing application's look-and-feel.
    As part of this, I customized the UIX button by overriding the following named style:
    ButtonServerText
    and also by providing my own icons for:
    buttonStart
    buttonEnd
    buttonTopBackground
    buttonBottomBackground
    The good news is that I was able to get the button component to look exactly like our existing
    application buttons.
    The bad news is that we have different types of buttons in our application
    for different purposes. (i.e. the image used for the button can be completely different based on the context e.g.
    yellow button for important actions and light-blue buttons for secondary actions)
    It seems like there is no way in which I can use this stylesheet mechanism to create different types of buttons
    and use them within my application. (sometimes different types of buttons can appear on the same page)
    Please let me know if there is a way.
    This is in fact a general question regarding overriding a stylesheet for customizing look-and-feel.
    Lets say I customize the "contentContainer" component using the stylesheet. This change would then be global.
    But I do want to have different types of contentContainers in the application. I would be forced to create my own custom
    UIX elements similar to contentContainer and write my own renderers.
    (I know contentContainer does have the light, medium and dark styles. I used this just as an example.)
    Please let me know what my options are.
    Thanks,
    Jayesh Kapoor

    Hi Jayesh -
    The good news is that I was able to get the button
    component to look exactly like our existing
    application buttons.Cool - I'm glad to hear you were able to get this working!
    The bad news is that we have different types of
    buttons in our applicationRight. This is a fundamental limitation of our look and feel customization functionality - we only support global customizations, not instance-specific customizations. I agree that there are many cases where instance-level customization would be useful, but this just instance supported yet.
    The only solution that I can think of for your button dilemma would be to use static images. It's pretty easy to wire up an image to behave like a button - just embed the image in a link and use <fireAction> as the link's primaryClientAction.
    Obviously, the downside of this approach is that you need to create the button images manually - which also isn't ideal if you are planning to translate your applications. One possible solution here might be to use UIX to pre-generate your button images. The idea would be to create custom LAFs for each style of button, then create a UIX page for each button style, including <button> instances for each translated value. Then, you could configure UIX to run in the desired look and feel, hit the corresponding page, and UIX will generate the required buttons into your image cache. Again, not ideal, but this might be easier than creating the buttons by hand.
    This is in fact a general question regarding
    overriding a stylesheet for customizing
    look-and-feel.
    Lets say I customize the "contentContainer" component
    using the stylesheet. This change would then be
    global.
    But I do want to have different types of
    contentContainers in the application. I would be
    forced to create my own custom
    UIX elements similar to contentContainer and write my
    own renderers.Right - this is a generic problem. But for some components, like content containers, an easier solution might be to leverage UIX's templating mechanism. Remember, you can embed arbitrary HTML contents in a UIX page/template by setting the namespace to "http://www.w3.org/TR/REC-html40". You can then reference these templates from your other UIX contents as if they were in fact UIX components. I'd recommend that you explore UIX's template support to see if this will meet your needs.
    Andy

  • Sunrise/Sunset and White Balance

    I have a question about overriding Automatic White Balance when photographing sunrises and sunsets. A few days ago, I got my first DSLR, an EOS 5D Mk III. I know the ISO triangle after shooting film on my Canon A-1 that I bought 34 years ago, which still works). However, this white balance thing is a fourth dimension. Films are balanced for daylight and the ISO is also dictated. For photographing a sunrise or sunset, to me, it makes sense to set the white balance to 5200 Kelvin (daylight). I got one response from a camera club member who said his photos were all in the 5000 range. Others have said "Shoot in RAW and fix it in post processing". The second response of "Fix it later" just doesn't ring my bell. What about getting it right the first time? Should I set white balance to daylight or some other setting? I can always experiment with changing white balance; after all, I'm not wasting film. Below are a series of sunrises that I took using Kodak Portra 400, -2/3 stop, on my Canon A-1. http://www.flickr.com/photos/ralphhightower/sets/72157633079358301/ Thanks, Ralph
    Solved!
    Go to Solution.

    It might be helpful to just think of the digital camera's white balance capabilities as a built-in and very complete set of color conversion and color correction filters, such as we used to use with film. Now, for your convenience, all those filters are right there, inside the camera.... much easier to carry around and use!
    If shooting during Golden Hours, the camera's Automatic White Balance (AWB) can tend to overcorrect and remove some of the lovely golden nature of the light. One solution is as others have recommended, to shoot RAW and make your adjustments later. This is no different from making the adjustments in-camera, at the time of exposure, and can make for much greater control and precision. It's not really a "fix it later" thing... It is more a matter of doing fine-tuning and optimizing the image (more on this below). RAW simply retains all the data from the original capture and is a good thing to use, anyway. 
    All digital cameras essentially capture a TIFF image file with a lot of proprietary data attached and an embedded "preview/review" JPEG... that's what the RAW file is. If you make JPEGs in-camera, a lot of data is thrown away, following the directions laid out by the settings in the camera. If, instead, you save the entire RAW file, you can change those directions later in post-processing... or just make a JPEG from the image "as shot", using the exact same set of instructions as were set in the camera at the time of exposure. One of the beauties of RAW is that so long as you store the original image file, you can always go back and re-process it another way, if you wish. This is particularly helpful when new to digital and uncertain about your settings. Something you might want to do is shoot RAW+JPEG initially. That way you have both the full data stored, along with the potential to make changes if you wish, plus the JPEG produced according to your camera settings. The JPEG can serve as a post-processing learning tool, using it as a point of comparison with your own RAW file conversions.... and as feedback about your camera settings. (Don't trust the image display on the camera's LCD screen... it's not calibrated and is too subject to ambient light variations. The histogram display is generally more informative, but even that is subject to the camera's settings, since it's done from the embedded JPEG and not directly from the full RAW file.) 
    But, I agree, it's also good to "get it right the first time". Or at least come as close as possible.
    The most ideal way to do that would be to set a Custom White Balance for every shot. Use a standardized target, bathed in the same light as your subject/scene, and take a shot of it... then tell the camera to use that as reference. However, it's just not practical to do that.
    Nor is it a good idea to set one particular color temp and use it for everything (i know photogs who do that and have had to work with their images.... it makes for a lot of extra work!)
    Thus there are all the "presets" you can choose among, looking for one that's most appropriate for your particular situation... And there is AWB, which allows the camera to try to choose for you. Outdoors in daylight I've found Canon AWB to be pretty darned good. Shots in the shade can be a little overly cool. And indoor shots with tungsten or other artifical light are when a Custom WB is most likely to be needed.... especially with weird, uncalibrated lighting such as sodium vapor and mercury vapor lamps.
    To set an accurate Custom WB, get yourself a gray card or similar (I use Lastolite EZ Balance targets, which are sort of like a foldable/flexible gray card). This also can be helpful arriving at an accurately metered exposures. Something else I use in certain circumstances are Warm Cards... these have slight tints that "fool" the camera into slightly tinting the image.... a light blue/cyan target will cause the camera to render a slightly warm color balance. Warm Cards would be particularly helpful shooting during the Golden Hours, if wanting to retain some of the warmth of the light at those times of day.  It's more accurate doing this than simply manually setting a particular color temp, although that's possible too. 
    And, yes, you should spend some time getting to know how your camera handles color. Each model can be a bit different. You'd do well to shoot a bunch of test shots with AWB, Custom WB and, if you wish, the various presets... to see how they perform.
    Of course, you don't always have time to think about or make settings... sometimes to catch fleeting light you have to run to catch an image quickly, shoot RAW and "fix it later" in post-processing!
    If you haven't already done so, you might want to calibrate your computer monitor. As concerned as you are about rendering accurate color or manipulating it the way you want it, in case you are unaware of it... your computer monitor is lying to you. All computer monitors are different, none are really very accurate and virtually all are way too bright. If you make prints using an uncalibrated monitor, you will usually find them coming out too dark. This is because an overly bright monitor causes you to adjust the image too dark. If you don't already have them, you might want to get computer calibration software and hardware and use them regularly (about once every month or two, usually... monitors change over time and with use). 
    The way the calibration device works is by first running a test on your particular monitor, and then providing a profile that the computer will use when rendering images on the display. Some of the more sophisticated calibration suites can also be used to develop printing profiles (unique for each ink/paper/printer combination), projectors and other viewing devices. (I use a Datacolor Spyder, one of several different calibration devices/softwares available).
    Hope this helps!
    Alan Myers
    San Jose, Calif., USA
    "Walk softly and carry a big lens."
    GEAR: 5DII, 7D(x2), 50D(x3), some other cameras, various lenses & accessories
    FLICKR & PRINTROOM 

  • The argument does not represent an annotation type

    Hello, i stated getting this exception today:
    java.lang.IllegalArgumentException: The argument does not represent an annotation type: <MyAnnotationType>
    even if <MyAnnotationType> is an annotation and the processor used to work unmodified.
    Is there a way to check if the TypeElement before calling roundEnv.getElementsAnnotatedWith(annotation) ?
    The code in question is:
         @Override
         public boolean process(Set<? extends TypeElement> annotations,
                   RoundEnvironment roundEnv) {
              for (TypeElement annotation : annotations) {
                   for (Element el : roundEnv.getElementsAnnotatedWith(annotation)) {
              return true;

    Julio.Faerman wrote:
    Hello, i stated getting this exception today:
    java.lang.IllegalArgumentException: The argument does not represent an annotation type: <MyAnnotationType>
    even if <MyAnnotationType> is an annotation and the processor used to work unmodified.So is there something else that changed today in your environment?

  • Question on Quide resolution with SD override set

    I have a question concerning SD override and Quide resolution.
    I gather that the Quide resolution is whatever is set with "SD Override?"  
    I have SD Override set to 480 as that gives the best overall SD experience.   I don't mind the ocassional hiccups as the STB and TV resynch between 480 and 1080 and back.   I was just curious to know if I could keep the guide in 1080 and reserve 480 only for SD channels.  I can't find anything in the menus.
    I have the Cisco STB with 1.9.7 build 19.46 software.
    Thanks!

    Hello!
    Thanks for the reply!
    Yes, you are correct -- the Cisco STB is a HD box.   I have it connected to my 40" RCA HD TV with a HDMI cable.  I watch a mix of SD and HD channels -- and since Verizon and Weather Channel have yet to work out a deal to give local weather on HD, I have to go to the SD Weather channel or SD Weatherscan to see local weather reports.
    My curiosity is that SD PQ looks best when setting "SD Override" in the STB's video settings to 480i or 480p as opposed to "off" or "stretch."   Doing this however, puts the guide in permanent SD mode even though I have the STB guide settings set to display the guide in HD as opposed to SD.  HD channels appear as HD regardless of how I set "SD Override".   The guide doesn't look all that hot in SD mode with my TV.
    So, I have "SD Override" set to "stretch" and improved things a bit on viewing SD on my HD box by reducing the video sharpness settings, that is, moving to soft settings, on both the STB and the TV.  High sharpness settings actually makes the SD PQ worse.
    The other strange thing is that I get text flicker with some SD channels -- like text on Weatherscan, sports scores, etc. -- but I can correct that simply by turning the STB off and then on again while keeping the TV on.  Viola!  The STB and the TV synch up right and the annoying flicker goes away.  It will stay that way so long as I keep watching SD channels.   I stray to a HD channel, go back to SD, and the flicker is there again.  I simply power-cycle the STB and it clears up.   By power cycle I don't mean a reset, simply turn the STB off and back on again while the TV is still on.  That I can't figure out.
    Just curiosities.  I figure Verzon and co. doesn't have the chance to improve things unless we give good feedback.

  • Override Question

    this is my code.
    import java.io.*;
    import java.security.*;
    import javax.crypto.*;
    import javax.crypto.spec.*;
    public class TextEncryptor implements Encryption, Cloneable, Serializable {
         String encryptedFileName;
         String userText;
         boolean successfulEncryptionPerformed = false;
         KeyGenerator kg;
         SecretKey skey;
         SecretKeyFactory skf;
         DESKeySpec dks;
         Cipher c;
         CipherOutputStream cos;
         PrintWriter pw;
         public TextEncryptor(String encryptedFileName, String userText) {
              this.encryptedFileName = encryptedFileName;
              this.userText = userText;
         public void generateSecretKey() {
            try {
              kg = KeyGenerator.getInstance("DES");
              kg.init(new SecureRandom());
              skey = kg.generateKey();
              skf = SecretKeyFactory.getInstance("DES");
            }catch(Exception e) {
              e.printStackTrace();
         public void initialiseCipher() {
            try {
              Class spec = Class.forName("javax.crypto.spec.DESKeySpec");
              dks = (DESKeySpec)skf.getKeySpec(skey, spec);
              c = Cipher.getInstance("DES/CFB8/NoPadding");
              c.init(Cipher.ENCRYPT_MODE, skey);          
            }catch(Exception e) {
              e.printStackTrace();
         public boolean performEncryption() {
            try {
              cos = new CipherOutputStream(new FileOutputStream(encryptedFileName), c);
              pw = new PrintWriter(new OutputStreamWriter(cos));
              pw.println(userText);
              pw.close();
              successfulEncryptionPerformed = true;
            }catch(Exception e) {
              e.printStackTrace();
              return successfulEncryptionPerformed;
         public DESKeySpec getDESKeySpec() {     
              return dks;     
         public Cipher getIV() {
              return c;
         public boolean equals(Object o) {
              if(o == null) {
                   return false;
              TextEncryptor te;
              try {
                   te = (TextEncryptor) o;
              }catch(ClassCastException cce) {
                   return false;
              return (encryptedFileName.equals(te.encryptedFileName)) && (userText.equals(te.userText));
    }My question is since the only two variables that can be set (in th constructor) are encryptedFileName and userText, do i need to override the clone() method, as these two variables are immutable(strings), but what about the other variables, these are always set to the same values in the methods listed above.please help,
    thanks

    My question is since the only two variables that can be set (in th constructor) are encryptedFileName and
    userText, do i need to override the clone() method, as these two variables are immutable(strings), but
    what about the other variables, these are always set to the same values in the methods listed above.please
    help,
    thanksWell, if you implement Cloneable, then you really should implement clone(), otherwise it doesn't make much sense. Even if you do implement it just as
    public Object clone() {
        return super.clone();
    }

  • QoS Override Per-SSID Bandwith question

    Hi all,
    on a WLAN there is the possibility to override the QoS Bandwidth settings.
    I try to get some more information about these settings, I want to understand this. As well a customer wants to limit user data.
    My question is: This override Per-SSID, are these settings on a AP basis or on the global controller basis?
    The next question resulting out this will then be what if the AP is set to flex-connect with local VLAN traffic, what then?
    Is there a good documentation on this?
    Thanks.

    This section describes BDRL of the 7.3 release. In releases 7.2 and earlier, there is only the ability to limit the downstream throughput across an SSID and per user on the Global interface. With this new feature in the 7.3 release, rate limits can be defined on both upstream and downstream traffic, as well as on a per WLAN basis. These rate limits are individually configured. The rate limits can be configured on WLAN directly instead of QoS profiles, which will override profile values.
    This new feature adds the ability to define throughput limits for users on their wireless networks with a higher granularity. This ability allows setting a priority service to a particular set of clients. A potential use case for this is in hotspot situations (coffee shops, airports, etc) where a company can offer a free low-throughput service to everyone, and charge users for a high-throughput service.
    Note: The enforcement of the rate limits are done on both the controller and AP.
    Rate limiting is supported for APs in Local and FlexConnect mode (both Central and Local switching).
    When the controller is connected and central switching is used the controller will handle the downstream enforcement of per-client rate limit only.
    The AP will always handle the enforcement of the upstream traffic and per-SSID rate limit for downstream traffic.
    For the locally switched environment, both upstream and downstream rate limits will be enforced on the AP. The enforcement on the AP will take place in the dot11 driver. This is where the current classification exists.
    In both directions, per-client rate limit is applied/checked first and per-SSID rate limit is applied/checked second.
    The WLAN rate limiting will always supercede the Global QoS setting for WLAN and user.
    Rate limiting only works for TCP and UDP traffic. Other types of traffic (IPSec, GRE, ICMP, CAPWAP, etc) cannot be limited.
    Only policing is implemented in the 7.3 releases.
    http://www.cisco.com/c/en/us/support/docs/wireless/5500-series-wireless-controllers/113682-bdr-limit-guide-00.html

  • FORMCALC (or JS) Default date today with user override questions

    I have a date field where if null, I want today to be inserted. If the user overrides the today date and saves the form, I want the user entered date to stay.
    What I have in FORMCALC is:
    if ($.isNull)
    then
    $.rawValue = num2date(date(), DateFmt(2))
    endif
    The first part works, it populates with today, and I can overrided the date. When I save and then reopen the form, the date is "0".
    Any ideas here?

    I'm having the same problem as described above but I am using JavaScript to reflect the current date:
    var msNow = (new Date()).getTime();
    var d1 = new Date(msNow);
    this.rawValue = util.printd("mm/dd/yyyy", d1);
    The user can override the current date and save the form, BUT when the form is reopened it will run again and insert the current date over the user entered date.
    (I've tried several variations of "if (this.isNull)" to the above code which results in "01/00/0000" when opening the saved form --so it still doesn't retain the date entered by the user.)
    Does anyone know what code I need to add to to keep the user entered date that was saved with the form? Or if there is a better way to make the date calendar default to today, allow user override and save that user entered date on the form?

  • Overriding user defined functions? (LD_PRELOAD question)

    Hi,
    Am new to solaris and am using solaris 9.
    Is there a way on solaris to overload my own written function (a user definted function ) .
    On Hp-Ux using LD_PRELOAD I could dynamically load my shared library and override functions is the same possible here?
    I am having a little problem with overriding functions .
    PS:
    Could you please explain in detail how to use them step by step :)
    Thank you very much
    Kind regards :)

    Hi,
    You can use the LD_PRELOAD as on HP-UX, but if you have a 32bits LD, then better use LD_PRELOAD_32, and if it a 64bits then use LD_PRELOAD_64.
    Otherwise YOU MUST TRUST the new LD, by the way, Solaris ONLY trust the /lib, /usr/lib/secure/{32|64}
    Here you can read more information
    http://developers.sun.com/solaris/articles/linker.html
    Thanks,
    Urko
    http://sparcki.blogspot.com

  • Ask your question.I'm trying to upgrade my OS in my iPhone. In iTunes, I backed everything up, then hit upgrade. All I get is This version of iTunes is the current version. How do I override that and download OS 5.0?

    I'm trying to upgrade my OS in my iPhone. In iTunes, I backed everything up, then hit upgrade. All I get is This version of iTunes is the current version. How do I override that and download OS 5.0?

    You cannot override it.
    What version of itunes do you have?
    You need itunes 10.1 or higher to get ios 4.2.1 which is the latest available for the iphone 3G.

Maybe you are looking for

  • Will this VGA to DVI adapter work on Mac Mini 2006

    This is a simple question which ssomeone should be able to answet will this DVI to VGA adapter work on a Mac Mini 2006 http://www.amazon.com/gp/aw/d/B000067SOH/ref=mp_s_a_1_3?qid=1419898227&sr=8-3&dp Pl=1&dpID=41daTmtKEEL&ref=plSrch&pi=AC_SY200_QL40

  • Upgrading with phone line internet access

    I haven't been able to upgrade my computer because it takes so long with the phone line. We have cable available here but it is extremely expensive and I don't want to give my money to a corrupt corporation (Cablevision!). Other services ATT/Verizon

  • Standard headers and footers in webhelp

    What is the best way to create standard headers and footers in webhelp? I want my company logo to appear to the right of the breadcrumbs at the top of the page and basic address and telephone number information at the bottom right. Would snippets be

  • Firewall blocking internet

    Sometimes I can't view web pages when the firewall is on, even though I can ping from the computer and everything seems fine with the modem. It happens a few times every week. When this happens the firewall log has entries like this: Feb 16 00:01:29

  • Using Smbup and Mavericks Server Questions

    Hello everyone and Happy New Year! My company has been using Mavericks Server for about three months now and we've had some major hiccups along the way, most of them relating to using Apple's iteration of SMB in a mixed environment. After weeks of re