HasEventListener and willTrigger always return true

Hi  everybody.
I'm trying to achieve the following result.
I'm listing all items in a form.
When I encounter a button I check if it has already an event listener applied to it. If not , I apply the event Listener with addEventListener.
In this way, the next time I'll list the whole form I won't apply the event listener another time (if for example I apply the same event listener twice to a button which insert a new record in a database as result I'll have 2 records added also if the user clicked once...no good at all!!!)
To accomplish this task I'm using the Actionscript function hasEventListener(EventType) and here comes the weird thing.
Eveytime I invoke hasEventListener on the form's button it always returns true event if is the first time a list the form (so no event listener applied yet) , even if before to invoke hasEventListener I run removeEventListener.
I've got the same behavior when i use willTrigger() function, it always returns true no matter when i call it.
One possible solution could be set a global boolean property to store if Ialready listed the form and applied the event listener to it, but it would be better using hasEventListener, because I've got a class that perform this form listing , and this class is used on wide project, so if I get to fix this problem inside the class I would fix the problem in the entire project in on shot (I love oop programming!!!!)
Has anybody already addressed this problem?
Any advisement would be really appreciated.
Thanks in advance for the attention.
Best regards!!
Luke

Hi, flex harUI.
Thanks very much for your reply.
I knew that if I apply an event listener twice it should fire up only once, but this isn't what happen.
Here's my scenario:
-  I've got a component with the form inside it
- Through a menu a go to the state the component is in and I call an "init" function inside the component
- In the init function I call the Class which activate the form by applying eventlistener on the button
- The user can navigate away from the component by click another menu item and then return to the component invoking again the form activation (and so let my application apply once again the addEventListener)
- Here's what happen: the second,third,... time the user return to the component, when he try - for example - to add a record, the record is added two,three... times according to how many times the users "reinitialized" the component. The same things happen when the user tries to delete a record, he is prompted two,three,.... times if he's sure to delete it.....
It's a really strange behaviour.
I've found i worked around, by setting a global bool var "initialized" and before call the form activation i check the value of this var, but It's not a very beautiful solution, 'cause I would prefer to fix this problem inside the class, so the fix the problem in the whole project just in one shot!!! (that's why I would like to use hasEventListener() to check if the button has already an eventListener)
Thaks anyway for the reply!
If I've some news I'll update ya.
Bye!

Similar Messages

  • Boolean User Properties always returns TRUE

    Hi, I am trying to get some propeties from the user on the AD and I found out with the following issue, all the boolean attributes always return TRUE as value. The Code that I am using to extract them is the following
    foreach ($objUser in $objUsers)
     $bolPasswordNeverExpires = [boolean] $objUser.Properties['PasswordNeverExpires'];
     $bolEnabled = [boolean] $objUser.Properties['Enabled'];
     $bolAccountExpired = [boolean] $objUser.Properties['AccountExpired'];
    Could you please guide me into the proper direction to solve it. I looked up in most of powershell related topic and did not find a way to solve it. I even attempt using UserAccountControl Attribute to check Enabled status do not matter agains which value
    I check it, it always returns TRUE.

    Thank´s for the tip. Unluckily when I attempt it, if I left only
    $objUsers.PasswordNeverExpires or $objUsers.Enabled, it only return whites spaces and no comparison from True or False is feasible.
    If I change it to [boolean] $objUsers.PasswordNeverExpires or $objUsers.Enabled instead of using the Properties option, it returns False for all values.
    I attempt to use the UserAccountControl field for look up the property Ex: (objUser.UserAccountControl AND 2) for Enabled and it also returns True for all situation
    I look up for the properties on the ISE interface and the only ones displayed are the following ones:
    distinguishedname
    displayname
    whencreated
    samaccountname
    sn
    accountexpires
    pwdlastset
    samaccounttype
    adspath
    useraccountcontrol
    whenchanged
    cn
    userprincipalname
    lastlogontimestamp
    msds-user-account-control-computed
    May it be an issue with the filter that does not load the specified properties?

  • CI - Powershell Boolean Rule Always Returns True

    I'm trying to create a configuration baseline / item for a particular piece of software using a powershell script of data type Boolean. However, I'm having the issue that the evaluation is always returning compliant whether the workstation is or not. The
    script is as follows:
    $ErrorActionPreference = "SilentlyContinue"
    $Condition1 = (Test-Path -LiteralPath 'HKLM:\SOFTWARE\Adobe\Premiere Pro')
    $Condition2 = (Test-Path -LiteralPath 'C:\Program Files\Adobe\Adobe Premiere Pro CS6\Presets\Textures\720_govt1_bar.png')
    if ($Condition1) {
    if ($Condition2) {echo $true}
    else {echo $false}
    else {echo $true}
    This script works perfectly fine when run locally and always returns $true or $false as expected. However it only ever returns Compliant when used in a CI. It doesn't matter what the state of the 2 conditions are, it always evaluates Compliant.
    Any ideas?

    I'm beginning to wonder if there is variation between how well this feature works on Windows 7 and Windows 8.1. I'm beginning to notice that it usually works well on 7 but I have constant hell with it on 8. The last thing I tried which seemed to work (assuming
    it was not just randomness) was accepting the default "Platform" settings of the CI/CB. Before I had chosen Windows 7 and 8.1 only and was never able to return any value except Compliant on 8. Accepting the all platforms default Finally
    allowed me to show a state of Non-Compliant on 8. This was using a powershell script of string data type as discussed previously.
    My latest torment is discovering how to force a true re-evaluation of an updated CI/CB. In my non-compliant Win8 example, I have added a remediation script to an existing Monitor-Only CI and configured it to remediate. In my Win 7 members of the collection,
    everything works successfully, the condition is remediated and the state reports Compliant but on the Win8, although the local Control Panel applet shows both the CB and CI to have new revisions and the evaluation shows it has run with a new date/time,
    the remediation script never runs and changes to Compliant.
    Any suggestions how I can force an updated CI/CB to really re-evaluate, not just report it has?

  • HST65_DUTCH: Not_On_Stack_Yes always returns True

    Hello,
    It seems that the Not_On_Stack_Yet always returns true.
    I used some trace commands to show the uk1 value in the Debug Monitor and everything seems right, allthough I get always a true... And prior to my trace output I see that funtion to validate if the BR is needed and I see the BR is added.
    Could you confirm the Not_On_Stack_Yet is working properly.
    I went through through the Headstart code myself, this are my remarks:
    - See nothing strange !!
    - The add_rule checks if the rule is allready on the stack. If not, the br will be added. The add_rule doens't uses the Not_On_Stack_Yet function !!!!!
    Thanks for your help,
    Marcel Overdijk

    Marc,
    I made the following example. It's NOT working.
    * 2 BusinessRules:
    BR_JNT001_MOD (insert, update, delete)
    BR_JNT002_TPL (insert, update)
    Trigger When Condition
    qms_transaction_mgt.not_on_stack_yet
    ( p_br_name => 'BR_JNT001_MOD'
    , p_uk_comp1 => to_char(:new.bdt_id)
    , p_uk_comp2 => to_char(:new.volgnummer)
    * Debug Output:
    19:17:41 - QMS_TRANSACTION_MGT.ADD_BUSINESS_RULE BR_JNT002_TPL
    19:17:41 - MAS_DEV.MAS_JNT_CAPI.need_br_jnt002_tpl (f)
    19:17:41 - QMS_TRANSACTION_MGT.ADD_BUSINESS_RULE BR_JNT001_MOD
    19:17:41 - MAS_DEV.MAS_JNT_CAPI.need_br_jnt001_mod (f)
    * PK components of table.
    PROMPT Creating Primary Key on 'MAS_JOURNAALPOSTEN'
    ALTER TABLE MAS_JOURNAALPOSTEN
    ADD (CONSTRAINT MAS_JNT_PK PRIMARY KEY
    (BDT_ID
    ,VOLGNUMMER))
    * Need function in capi
    function need_br_jnt002_tpl
    return boolean
    is
    l_when_condition boolean;
    l_updating boolean;
    l_dml_operations boolean;
    begin
    trace('need_br_jnt002_tpl (f)');
    l_when_condition := qms_transaction_mgt.not_on_stack_yet
    ( p_br_name => 'BR_JNT001_MOD'
    , p_uk_comp1 => to_char(g_current_row.bdt_id)
    , p_uk_comp2 => to_char(g_current_row.volgnummer)
    g_current_ind.brutobedrag
    := g_current_ind.brutobedrag
    and
    (g_current_row.brutobedrag
    <> g_current_old_row.brutobedrag
    or
    (g_current_row.brutobedrag is null
    and
    g_current_old_row.brutobedrag is not null
    or
    (g_current_row.brutobedrag is not null
    and
    g_current_old_row.brutobedrag is null
    g_current_ind.btw_bedrag
    := g_current_ind.btw_bedrag
    and
    (g_current_row.btw_bedrag
    <> g_current_old_row.btw_bedrag
    or
    (g_current_row.btw_bedrag is null
    and
    g_current_old_row.btw_bedrag is not null
    or
    (g_current_row.btw_bedrag is not null
    and
    g_current_old_row.btw_bedrag is null
    g_current_ind.nettobedrag
    := g_current_ind.nettobedrag
    and
    (g_current_row.nettobedrag
    <> g_current_old_row.nettobedrag
    or
    (g_current_row.nettobedrag is null
    and
    g_current_old_row.nettobedrag is not null
    or
    (g_current_row.nettobedrag is not null
    and
    g_current_old_row.nettobedrag is null
    l_updating := g_updating
    and (g_current_ind.brutobedrag
    or
    g_current_ind.btw_bedrag
    or
    g_current_ind.nettobedrag
    l_dml_operations := g_inserting
    or l_updating
    if br_enabled('BR_JNT002_TPL')
    then
    return l_when_condition
    and
    (g_validate_all_static
    or
    l_dml_operations
    else
    return false;
    end if; -- br_enabled
    end need_br_jnt002_tpl;

  • RowAtPoint and columnAtPoint always return 0

    //in NormalGUI
         ptsinfo.addActionListener(new NTListener());
         delete.addActionListener(new NTListener());
         nTable.addMouseListener(new NTListener());
    //in NormalGUI
    public class NTListener extends MouseAdapter implements ActionListener{
         int selectRow,selectColumn;
         public void mousePressed(MouseEvent e){
              if (e.isPopupTrigger()) {
                   showPopup(e);
         public void mouseReleased(MouseEvent e){
              if (e.isPopupTrigger()) {
                   showPopup(e);
         public void showPopup(MouseEvent e){
              NormalGUI.nPop.show(e.getComponent(), e.getX(), e.getY());
              selectRow = NormalGUI.nTable.rowAtPoint(new Point(e.getX(),e.getY()));
              selectColumn = NormalGUI.nTable.columnAtPoint(new Point(e.getX(),e.getY()));
              System.out.println(new Point(e.getX(),e.getY()));     
    }the point printed has not problem but rowAtPoint and columnAtPoint.
    The popup menu shows at the right point
    I try to use e.getSource and find that it really from nTable.
    they are always return 0 instead of -1?
    Why it happens? Thanks.

    Darryl.Burke wrote:
    Doesn't happen to me. To get better help sooner, post a SSCCE that clearly demonstrates your problem.
    db
    import javax.swing.table.*;
    import javax.swing.*;
    import java.util.*;
    class NTable extends AbstractTableModel{
         static Object[] cells = {"",".mpg","&#22823;&#22618;&#24859;","&#12518;&#12513;&#12463;&#12452;",Boolean.FALSE,"2006-08-04","","M&#12473;&#12486;","00:02:34","1440x1080","323014660","","","[HDTV] &#22823;&#22618;&#24859; - [2006.08.04] - &#12518;&#12513;&#12463;&#12452; ( M&#12473;&#12486; - 17Mbps 2m34s 1440x1080).mpg","&#22823;&#22618;&#24859; - &#12518;&#12513;&#12463;&#12452; (2006.08.04 M&#12473;&#12486;) .ts",new Integer(0)};
         static Object[] cells2 = {"",".m2t","&#22823;&#22618;&#24859;","&#37329;&#39770;&#33457;&#28779;",Boolean.FALSE,"2004-08-29","BShi","BEAT MOTION","00:02:32","1440x1080","397588604","","","[HDTV-TS] &#22823;&#22618;&#24859; - [2004.08.29] - &#37329;&#39770;&#33457;&#28779; (BShi BEAT MOTION - 20Mbps 2m32s 1440x1080).m2t","&#22823;&#22618;&#24859;-&#37329;&#39770;&#33457;&#28779;[BEAT.MOTION.2004.08.29].ts",new Integer(0)};
         int noOfFile;
         static String[] col = {"no.","Suffix","Artist","Songs","Talk","Date","TV station","Program","Duration","Resolution","Filesize","ptsinfo","Date added","new name","old name","rare"};
         static ArrayList<Object[]> datas = new ArrayList<Object[]>();
         public NTable(){
                   datas.add(cells);
                   datas.add(cells2);
         public int getRowCount(){
              return datas.size();
         public int getColumnCount(){
              return col.length;
        public Object getValueAt(int r, int c){
             if(c==0){
                  return String.format("%04d", r+1);
            return getDataList(r)[c];      
         public Class getColumnClass(int c){
              if(c==11){
                   try{
                        return JButton.class;
                   }catch(Exception e){}
              return getDataList(0)[c].getClass();
         public String getColumnName(int c){
              return col[c];
         public void setValueAt(Object obj, int r, int c){
              Object[] tempArray = getDataList(r);
              tempArray[c] = obj;
              datas.set(r, tempArray);
              if(c==15){
                   NormalGUI.nTable.changeSelection(r+1, c, false, false);
         public boolean isCellEditable(int r, int c){
              if(c>0&&c<=10||c==15){
                   return true;
              }else{
                   return false;
         public static int getdatas(){
              try{
                   return datas.size();
              }catch(Exception e){
                   return 0;
         public static Object[] getDataList(int r){
              return datas.get(r);
    import java.awt.Point;
    import java.awt.event.*;
    public class NTListener extends MouseAdapter implements ActionListener{
         int selectRow,selectColumn;
         public void mousePressed(MouseEvent e){
            if (e.isPopupTrigger()) {
                 showPopup(e);
         public void mouseReleased(MouseEvent e){
            if (e.isPopupTrigger()) {
                 showPopup(e);
         public void mouseClicked(MouseEvent e){}     
         public void mouseExited(MouseEvent e){}
         public void mouseEntered(MouseEvent e){}
         public void showPopup(MouseEvent e){
              NormalGUI.nPop.show(e.getComponent(), e.getX(), e.getY());
             selectRow = NormalGUI.nTable.rowAtPoint(new Point(e.getX(),e.getY()));
             selectColumn = NormalGUI.nTable.columnAtPoint(new Point(e.getX(),e.getY()));
             System.out.println(new Point(e.getX(),e.getY()));     
         public void actionPerformed(ActionEvent e){
              if(e.getSource().equals(NormalGUI.ptsinfo)){
                    try {
                         Runtime rt = Runtime.getRuntime();               
                         Process prcs = rt.exec("C:\\WINDOWS.0\\AppPatch\\AppLoc.exe \"E:\\(A)&#31243;&#24335; (F)\\&#30475;&#22294;&#25991;&#38899;&#27138;&#39006;\\ptsInfo050\\ptsinfo.exe\" \"/L0411\"");
                         } catch(Exception ioe) { System.out.println(ioe); }
              }else if(e.getSource().equals(NormalGUI.delete)){
                   System.out.println(selectRow+"+"+selectColumn);
                   NTable.datas.remove(selectRow);
                   NormalGUI.nTable.updateUI();
    import java.awt.Font;
    import javax.swing.*;
    import javax.swing.table.TableColumn;
    import javax.swing.table.TableModel;
    public class NormalGUI extends JFrame{
         static TableModel nModel;
         static JTable nTable;
         static JScrollPane nPanel;
         static JPopupMenu nPop = new JPopupMenu();
         static JMenuItem ptsinfo = new JMenuItem("Open ptsinfo");
         static JMenuItem delete = new JMenuItem("Delete this file");
         public NormalGUI(){
              setBounds(0,0,500,500);
              nModel = new NTable();
              nTable = new JTable(nModel);   
              nPanel = new JScrollPane(nTable);
              nTable.setRowHeight(20);
              int[] columnWidth={45,145,100,150,45,105,95,200,85,105,115,65,100,900,400,40};
              nTable.setFont(new Font("&#24494;&#36575;&#27491;&#40657;&#39636;", Font.BOLD, 16));
              nTable.setAutoResizeMode(JTable.AUTO_RESIZE_OFF);
              nTable.addMouseListener(new NTListener());
              ptsinfo.addActionListener(new NTListener());
              delete.addActionListener(new NTListener());
              nPop.add(ptsinfo);
              nPop.add(delete);
              TableColumn column;
              for (int i = 0; i<nTable.getColumnCount(); i++) {               
                   column = nTable.getColumnModel().getColumn(i);
                   column.setPreferredWidth(columnWidth);
              add(nPanel);
              setVisible(true);
         public static void main(String[] args){
              new NormalGUI();

  • Exchange 2007 SP2: HasActiveSyncDevicePartnership Always Returns True

    I am currently work with a customer in an Exchange Server 2007 SP2 environment. A Powershell script that is used for gathering mobile device information begins with at the mailbox level and filters with
    HasActiveSyncDevicePartnership equal to true, as in -
    Get-casmailbox -Filter {HasActivesyncDevicePartnership -eq $true }
    We have discovered that it appears as though this flag is set to true for every mailbox account, despite the fact that only a few mailboxes have actual EAS partnerships with devices.
    My understanding was that this flag should only ever return true if there is an actual ActiveSync partnership. Is there something I am missing here? Can the flag be true even if there is no (or has never been) a partnership?
    Don Sorcinelli - Microsoft MVP, Mobile Devices

    Hi,
    Yes, the value of the " HasActiveSyncDevicePartnership " will be set to true if there is an actual ActiveSync partnership. Also you can use the following command to
    check the detail sync information such as device name,  last sync time:
    Get-ActivesyncDeviceStatistics -Mailbox [email protected]
    If no statistics information returns, The most probable cause 
    should be that someone set the HasActiveSyncDevicePartnership to true for all mailbox users accidently. Please run the following command to change them back:
    get-casmailbox |set-casmailbox -HasActivesyncDevicePartnership $false
    Then set the
    HasActiveSyncDevicePartnership to true for the users who have an actual ActiveSync partnership:
    Set-casmailbox –identity
    [email protected] -HasActivesyncDevicePartnership $true
    Gen Lin
    TechNet Subscriber Support
    in forum
    If you have any feedback on our support, please contact
    [email protected]
    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. Thanks
    Gen Lin-MSFT

  • List E .add always returns true (or throws)?

    http://download.java.net/jdk6/docs/api/java/util/List.html#add(E)
    "Returns:
    true (as specified by Collection.add(E))"
    but http://download.java.net/jdk6/docs/api/java/util/Collection.html#add(E)
    "Returns:
    true if this collection changed as a result of the call"
    and also says, "(Returns false if this collection does not permit duplicates and already contains the specified element.)"
    I am implementing a list that doesn't allow duplicate elements -- which the List<E> doc says "is not inconceivable ... but we expect this usage to be rare." My rarity notwithstanding, I don't understand the parenthetical remark in the Returns doc for List, and I don't know whether to return false or throw if an attempt is made to add a duplicate to my list.

    Err... stupid me! I totally forgot about LinkedHashSet which looks like it will solve your problem directly, with no code!
    Meanwhile, a question arose on my reading of the
    javadoc on LinkedHashMap. It says, "It can be used
    to produce a copy of a set that has the same order as
    the original, regardless of the original set's
    implementation:void foo(Set m) {
    Set copy = new LinkedHashSet(m);
    }I don't understand how the LinkedHashSet copy
    constructor can produce a copy that "has the same
    order" unless the implementation of the original set
    -- in particular, I guess, its iterator -- guarantees
    some ordering. But then that would contradict
    "regardless of the original set's implementation."Looking at the implementation, I would suggest that the JavaDoc is poorly worded. What it means is that this copy constructor will copy everything out of the first set into the new set and the order of the new set will be consistent with the order of the elements returned by the first set's iterator. (Which, of course, is likely to be undefined for the majority of Set implementations.)

  • KAudioSessionProperty_OtherAudioIsPlaying Always Returns True

    I have followed as many different examples as I can, most of them in the Apple documentation, but I cannot find out the reason why kAudioSessionProperty_OtherAudioIsPlaying always returns a positive on my devices.
    I have initialized and activated the session, yet it still returns positives when my music is paused.
    Here is my code:
    - (void)viewDidLoad
        [super viewDidLoad];
        AVAudioSession* session = [AVAudioSession sharedInstance];
        NSError *activationError = nil;
        BOOL success = [session setActive: YES error: &activationError];
        if (!success) { NSLog(@"%@", activationError); }
        UInt32 otherAudioIsPlaying;
        UInt32 propertySize = sizeof (otherAudioIsPlaying);
        AudioSessionGetProperty (
                                 kAudioSessionProperty_OtherAudioIsPlaying,
                                 &propertySize,
                                 &otherAudioIsPlaying
        if (otherAudioIsPlaying) {
            [session setCategory: AVAudioSessionCategoryAmbient error: nil];
        } else {
            [session setCategory: AVAudioSessionCategorySoloAmbient error: nil];
    What am I doing wrong?

    I have followed as many different examples as I can, most of them in the Apple documentation, but I cannot find out the reason why kAudioSessionProperty_OtherAudioIsPlaying always returns a positive on my devices.
    I have initialized and activated the session, yet it still returns positives when my music is paused.
    Here is my code:
    - (void)viewDidLoad
        [super viewDidLoad];
        AVAudioSession* session = [AVAudioSession sharedInstance];
        NSError *activationError = nil;
        BOOL success = [session setActive: YES error: &activationError];
        if (!success) { NSLog(@"%@", activationError); }
        UInt32 otherAudioIsPlaying;
        UInt32 propertySize = sizeof (otherAudioIsPlaying);
        AudioSessionGetProperty (
                                 kAudioSessionProperty_OtherAudioIsPlaying,
                                 &propertySize,
                                 &otherAudioIsPlaying
        if (otherAudioIsPlaying) {
            [session setCategory: AVAudioSessionCategoryAmbient error: nil];
        } else {
            [session setCategory: AVAudioSessionCategorySoloAmbient error: nil];
    What am I doing wrong?

  • Shadowing API Issues on 2012R2 (SM_REMOTECONTROL GetSystemMetrics and WTSStopRemoteControlSession) Always Returns Zero

    According to the MSDN article on the GetSystemsMetric API, SM_REMOTECONTROL returns zero if the user is not currently being shadowed but will return non-zero if the user is currently being shadowed.  It lists no restirction on OS support from what I
    can see.
    WTSStopRemoteControlSession also lists no restrictions on OS support in MSDN.
    I have a simple VB.NET application that calls these APIs.  It basically reads:
    <DllImport("user32.dll", CharSet:=CharSet.Auto, ExactSpelling:=True)> Public Shared Function GetSystemMetrics(ByVal nIndex as Integer) As Integer
    End Function
    Private Const SM_REMOTECONTROL as Integer = &H2001
    <DllImport("wtsapi32.dll", SetLastError:=True)> Public Shared Function WTSStopRemoteControlSession(ByVal iLoginId as Int32) as Int32
    End Function
    Private Declare Function ProcessIdToSessionId Lib "Kernel32.dll" Alias "ProcessIdToSessionId" (ByVal processID as Int32, ByRef sessionID as Int32) as Boolean
    retVal = GetSystemMetrics(SM_REMOTECONTROL)
    On 2008R2, retVal = 1 when the user is being shadowed, retVal = 0 when the user is not being shadowed.
    On 2012R2, retval = 0 no matter if the user is being shadowed or not shadowed.
    Dim sessionIDCurrent as Int32
    ProcessIdToSessionId(Process.GetCurrentProcess, sessionIDCurrent)
    WTSStopRemoteControlSession(sessionIDCurrent)
    On 2008R2, the shadow session will be stopped and WTSStopRemoteControlSession returns non-zero (indicating success)
    On 2012R2, the sahdow session will NOT be stopped and WTSStopRemoteControlSession returns zero (indicating failure).  LastDLLError returns zero as well.
    Has anyone else run into this?  Is this a known issue?

    Known issue,similar to this question: http://stackoverflow.com/questions/14725781/getsystemmetrics-returns-different-results-for-net-4-5-net-4-0
    http://connect.microsoft.com/VisualStudio/feedback/details/763767/the-systemparameters-windowresizeborderthickness-seems-to-return-incorrect-value
    https://connect.microsoft.com/VisualStudio/feedback/details/753224/regression-getsystemmetrics-delivers-different-values
    Best Regards,
    Please remember to mark the replies as answers if they help

  • What cause Macbook Air A1237 time and date always return from an older date when it restarts? I have tried to reset its PRAM and still it has the same issue.

    So here is the story,
    1. First, this Macbook Air A1237 always display the wrong date and time every time I open it after shutdown.
    2. The Battery always in zero percent and not charging at all.and the magsafe always in color orange.
         *also the battery displays the colored black plug that states it was plug in using the power cord.
    I need help on how to fix this issues.I'm hoping for your kind assistance.
    Grazie Mille!
    Ciao Ciao!
    Regards,
    Freddierick Llarina

    Hi,
    Had similar issue with the same model. It works with power adapter plugged in, but not with battery alone.
    You need to get the battery replaced.
    Cheers,
    Clarence

  • HT201210 I've updated to the latest IOS version. I am now asked to accept the conditions. I click on accept and am always returned to the accept window. What am I missing

    I've updated to the last IOS version and am now asked to accept the conditions. I click on I accept and am constantly referred back to the acceptance window. What am I missing? TIA

    Hi Vulcan37!
    I have some troubleshooting steps for you that can help you resolve this issue. First, you will want to try just performing a reset on your phone by following the instructions in this article:
    iOS: Turning off and on (restarting) and resetting
    http://support.apple.com/kb/ht1430
    You may also need to make sure your Safari settings are set for accepting cookies. More information on this can be found here:
    Privacy and security - iPhone User Guide
    http://help.apple.com/iphone/7/#/iphb01fc3c85
    Thanks for coming to the Apple Support Communities!
    Regards,
    Braden

  • Custom Login Module - Commit Method return TRUE always?

    Hi,
    I am creating a custom login module for my portal authentication.
    For the login module, should the commit() method always return TRUE?
    The example code on help.sap.com indicates yes to this question.
    However, the JAVA Sun standard indicates that commit should return FALSE if the preceding login method returned FALSE.
    Does the SAP example stray from the SUN standard?  How should I code the commit() method such that it works (Always TRUE, or follow lead of login() method)?
    Regards,
    Kevin

    Hi Kevin,
    I'm actually working with this document: <a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/events/webinars/jaas%20login%20module%20development%20on%20webas%20java%20640.pdf#search=%22classloader%20sda%20jar%20reference%22">JAAS Login Modules</a>.
    There is also example code. If it should be ignored they return false, otherwise true (page 32).
    Regards,
    Marcus
    Message was edited by: Marcus Freiheit

  • HasEventListener and click event problem

    Hi!
    Is it possible that hasEventListener() method has a bug? Whenever I remove event listener(using removeEventListener method) from a click event (which's been added using AS), hasEventListener always returns true. However event listener method gets removed. I've also tried some other events and I got mixed results, some have worked, some haven't.
    Thanks, regards

    Thanks for replying.
    I go to DO_HANDLE_EVENT as you said. There is already written something as below by wizard.
    class  : ZL_BT115QH__DETAILS_IMPL
    method: DO_HANDLE_EVENT
    code: 
    CASE htmlb_event_ex->event_server_name.
    *     Added by wizard
        WHEN 'PAYM'.                                            "#EC NOTEXT
          EH_ONPAYM( htmlb_event    = htmlb_event
                      htmlb_event_ex = htmlb_event_ex ).
    I added button in ZL_BT115QH__MAINWINDOW_IMPL but I try to handle in ZL_BT115QH__DETAILS_IMPL
    I thought this might cause the problem.
    Which DO_HANDLE_EVENT method you mentioned?
    method in  ZL_BT115QH__MAINWINDOW_IMPL or ZL_BT115QH__DETAILS_IMPL ??

  • ExternalInterface.available returns true in standalone

    Incredibly frustrating - no matter what I try, in standalone test environment it always returns true - it should return false - any thoughts on this anyone.
    Its just ridiculous that Bugs like this occur.......
    Cheers,

    To add to this - I also have incubator "Molehill" build.
    I can simply create a new document - place the following on the root timeline
    trace(ExternalInterface.available);
    and it will return true.
    Anyone help with this ? Adobe needs to be aware of this as it may be an incubator issue, and therefore serious.

  • Java always returns 15 minutes greater than the current time.

    Hi,
    I am using Microsoft Windows Server 2003R2,Standard X64 edition with Service Pack 2 and jdk1.6.0-03.
    Java always returns time 15 minutes greater than the current system time.
    eg:
    SimpleDateFormat simpleDateFormat=new SimpleDateFormat("yyyy-MM-dd HH:mm:ss");
    System.out.println("Now time: "+simpleDateFormat.format(new Date()));
    System.out.println("Now time: "+new Date());The output of the program is :
    Now time: 2008-12-22 18:47:04
    Now time: Mon Dec 22 18:47:04 NPT 2008
    When my actual system time is 6:32 PM or (18:32)
    I have checked the current time with other programming languages like python and it always returns the actual date and time.
    Note: To my observation java is always utilizing a time which is 15 minutes greater than the current time even for its log.
    Thanks,
    Rajeswari (Msys)

    I think a more practical time machine would be one that actually travels back in time rather than forward (by 15 minutes). Sounds like it needs some more work.
    Anyway, I suggest changing the system time on your computer to some other value (say, 2 hours ahead), then running the program again. If its off by 2 hours and 15 minutes, its getting the time from your computer. However, if its still off by only 15 minutes (from your wristwatch's time), then its getting the time form somehere other than the computer clock.

Maybe you are looking for