Strange behaviors between TextInputSkin and StageTextInputSkin

Hi All,
I met a very strange behaviors, and need help with, any idea will be truly appreicated.
I have a phone field and date field both from TextInput field, I aslo have textfieldskin which is original from TextInputSkin.
When I apply the TextInputSkin to the TextInput field, the softKeyboard Type can not be modified. I found out that as TextDisplay is not StyleableStageText, the autocorrect, type, etc can not be modified while StageTextInputSkin will work just fine.
However, when I applied the StageTextInputSkin to my fields, the mouse click event can not be rececived any more...
My question: How can I change the softkeyboardType and be able to receive mouse click event at same time if my control is from TextInput?
Kind Regards,

6 months, and a new cs6 with no improvements on this issue.
My biggest problem is with an android ICS unit the softkeyboarddeactivated gets called when the keyboard switches and shows the mic speak input keyboard but softkeyboardactivating or activated does not get called when the mic input keyboard is shown.
Also the scrolling bug is horrible and needs to be fixed.
and keypresses are needed.
and being able to layer the native components would be great.
im sad.

Similar Messages

  • Strange behavior with Zoom and Image control

    HELP - I have a strange behavior (bug?) with using Zoom
    effect on an Image that has been placed on a Canvas. I am using
    dynamically instantiated images which are placed on a canvas inside
    a panel. I then assign a Zoom IN and Zoom Out behavior to the
    image, triggered by ROLL_OVER and ROLL_OUT effect triggers. THE BUG
    is that the image jumps around on the Zoom OUT and lands on a
    random place on the canvas instead of coming back to the original
    spot. This is especially true if the mouse goes in and out of the
    image very quickly. HELP -- what am I doing wrong? Computer = Mac
    OS X 10.4.9 Flex 2.0.1
    Here's a simple demo of the bug -- be sure to move the mouse
    in and out rapidly:
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="
    http://www.adobe.com/2006/mxml"
    layout="absolute" creationComplete="setUp();">
    <mx:Script><![CDATA[
    import mx.events.EffectEvent;
    import mx.effects.Fade;
    import mx.effects.Zoom;
    import mx.rpc.events.ResultEvent;
    import flash.display.Sprite;
    import mx.core.UIComponent;
    import mx.controls.Image;
    private var zoomIn:Zoom;
    private var zoomOut:Zoom;
    private function setUp():void {
    var image:Image = new Image();
    image.id = "album_1_1";
    image.x = 200;
    image.y = 200;
    image.width = 64;
    image.height = 64;
    image.source = "
    http://s3.amazonaws.com/davidmccallie/album-128.jpg";
    image.addEventListener(MouseEvent.ROLL_OVER, doZoom);
    image.addEventListener(MouseEvent.ROLL_OUT, doZoom);
    myCanvas.addChild(image);
    zoomIn = new Zoom();
    zoomIn.zoomHeightTo = 2.0;
    zoomIn.zoomWidthTo = 2.0;
    zoomIn.captureRollEvents = true;
    zoomIn.suspendBackgroundProcessing = true;
    zoomOut = new Zoom();
    zoomOut.zoomHeightTo = 1.0;
    zoomOut.zoomWidthTo = 1.0;
    zoomOut.captureRollEvents = true;
    zoomOut.suspendBackgroundProcessing = true;
    private function doZoom(event:MouseEvent):void {
    var image:Image = Image(event.currentTarget);
    if (event.type == MouseEvent.ROLL_OVER) {
    zoomIn.target = event.currentTarget;
    zoomIn.play();
    } else if (event.type == MouseEvent.ROLL_OUT) {
    zoomOut.target = event.currentTarget;
    zoomOut.play();
    ]]>
    </mx:Script>
    <mx:Panel width="100%" height="100%"
    layout="absolute">
    <mx:Canvas id="myCanvas" width="100%" height="100%">
    </mx:Canvas>
    </mx:Panel>
    </mx:Application>

    There must be bugs in the Zoom effect code -- I changed the
    Zoom to Resize in the above code, and it works perfectly. Of
    course, Resize is not as nice as Zoom because you can't set the
    resize to be around the center of the image, but at least it works.
    Does anyone know about bugs in the Zoom effect?

  • Strange behavior in updating and standbying

    Hi,
    In the last 4 weeks I've been facing some strange behavior from my iPhone 4. First, sometimes when I pick it up its screen is already on (dimmed) and showing the lock screen (with some elements missing though). Secondly, and more annoying yet, when I try to update the apps via app store the initial process occurs normally but after loading the first app it begins installing it and keeps in it forever. I have to soft reset the phone. After that, the app (that kept installing) seems ok. So, I repeat the process of update from the beginning (app after app).
    I've already tried to hard reset the device without any luck with any of the problems. Any suggestions about what is going on?
    Thanks
    Adriano

    Hi,
    I'm not clear on the distinction you're making for type of access.
    Well, to be honest, now that I've re-read that this morning I'm not completely sure what I had in mind either. I think I was thinking about using the collection in what I believe the documentation calls "slices". However, given the other information you've posted it doesn't seem like that would be a feasible alternative in any case.
    I understand what you mean about varray and nested-table with the upper-bound limit for the varray's... I've not actually compared the two for performance so my idea that there may be a difference could be completely incorrect. Beyond that, creating code that only works in batches (or slices) may be less performant than what you currently have.
    I hope I've not detracted from the thread and maybe someone else with more experience will have an "ah ha!" sort of observation.
    Regards,
    Mark

  • Printing Behavior Between Versions And Platforms

    We have received some feedback regarding printing behavior between MAC OS and Windows. The application in question is Adobe line of products, mainly PhotoShop CS 4 and CS 5.
    The scenario is as follows: Customer has mixed platform environment with Adobe Suites installed i.e. Photoshop, Illustrator and so on. Our MFP has entering of credentials before printing enabled for auditing and controlling purposes. On the computer side (Printer Driver), we have configured toprompt the user for their User Credentials at all times. The reason for doing so is because the computers are in a public environment hence we would like to know who is printing and how much.
    The first problem is this: In Adobe Illustrator on Microsoft Windows, when the user selects to print, they are immediately presented with the printer dialouge box to enter their respective credentials to continue printing, but in MAC OS, this is not the case. On the MAC OS, the user has to select an additional button, "Printer...", then select "Print" again before being prompted to enter their credentials.
    Customer is puzzled as to why in Windows Adobe Illustrator, the number of steps required to print is lesser then in MAC OS Adobe Illustrator. Customer feels that there is inconsistancy in terms of behavior between the Mac and Windows platform.
    Secondly, in Photoshop CS 4, the same symptoms occurs as above, however, in CS 5, it is worse. In PS CS 5, after the user enters their credentials, the next time they reopen and create a new docucment, they no longer need to enter their credentials again as it is already "Saved" for them. This defeats the purpose of setting the printer to always prompt for user credentials when they print.
    I have taken this case up to the respective vendor thinking that it is a printer driver issue. However their reply came back stating that this is a specification of Adobe and Mac.
    Does anyone has any ideas about this?

    >> On the MAC OS, the user has to select an additional button, "Printer...", then select "Print" again before being prompted to enter their credentials.
    That sounds like your printer drivers are inconsistent on different code paths (carbon and cocoa), and saving the credentials in the print ticket instead of using them as one time authentication.  Yes, it could be that they are implementing the driver according to Apple guidelines (which just don't match what you want), or it could be a bug in the way they implement authentication in the driver.  This has little or nothing to do with the applications, which just query the driver for it's capabilities, then send data to the driver for printing.  Using different applications just exercises slightly different code paths in the driver.

  • Colour- strange difference between Lightroom and all other programs/windows

    Hello everyone,
    I have a strange problem with the colours in Lr. In the program everything looks good, the colours are the ones that i want to achieve, but when i export the pictures as jpeg (srgb), the tumbnails of these pictures seem to be fine (same colours as in Lr). However, when i open the jpeg (eg in picture viewer or in photoshop) all of the colours are different than the ones in Lr or the tumbnails. On a different computer, the jpegs have the same problem.
    Any idea how to resolve this problem? Can I change the colour management of Lr itself (not the external editors)?
    Thanx@

    OK.
    From LR in Develop module I press cmd e to create a TIFF to edit in PS CS3. Edit with LR adjustments is selected. After a while the TIFF appears beside the CR2 Canon 5d raw file.
    Still in LR flick between the two and the difference is readily apparent. I notice that all the tiff presets are at 0 i.e. in the develop module as I would expect them to be. But the TIFF image looks sharper and in areas of detail less saturated. I think the decrease in saturation is more a side effect of sharpening.
    The new TIFF opened in PS looks exactly the same as the TIFF in LR. But both are different from the raw file they were created from as seen from the LR develop module.
    In LR I have applied some masking and a moderate amount of sharpening to the CR2 raw file. I do note that applying sharpening in LR does not seem to change anything except the 1:1 and higher mags unless the sharpening is extreme. In other words I think the imnage as displayed at lower magnifications e.g. Fit to screen is not a realistic representation of the overall effect of sharpening, even when rendered on a large monitor (30") wide gamut monitor. If I am right this is a significant problem. I note that BibblePro perviews reflect the effect of sharpening on the overall image more accurately. (So it is possible.)
    (FWIW: My preview settings in LR are quality high, 2048 pixels.)
    EDIT: Yes I am correct, the images look the same at 1:1 but not at lower magnification. So guess the LR preview rendering machine does not quite match the preview rendered from the newly created TIFF.
    Still knowing this does not help, it just means what I see on the screen in LR at lower magnification than 1:1 is not accurate.

  • VPN -- different behavior between Mac and Windows XP clients.

    Hi,
    Background:
    I have a Mini server serving L2TP IPSEC vpn with both Mac and Windows (all XP, so far) clients.
    The mini sits behind a Netopia router/firewall/NAT box that port forwards L2TP traffic to the mini.
    The mini has a public but unrouted address (unrouted in the public Internet, that is.) The same Netopia serves as the router for outgoing public connections. DNS is served by other servers.
    The VPN clients are distributed addresses from the unrouted public address space.
    Client <-> NAT <-> Public Cloud <-> NAT <-> Private (with public addresses) <-> Mini (VPN)
    Mac clients work happily, accessing internal and external hosts.
    The XP clients have a registry value set to allow NAT traversal:
    under HKEYLOCALMACHINE\SYSTEM\CurrentControlSet\Services\IPSec, AssumeUDPEncapsulationContextOnSendRule is set to 2 to allow dual Nat traversal.
    The XP clients happily access internal hosts, but hang accessing some, but not all external hosts.
    For example, most Google services are quickly displayed, whereas www.comcast.net or www.llbean.net hang. It appears to be more frequent accessing third-party hosts while processing the initial page. Some Google web services, e.g. some Google Map plugins do eventually hang.
    An XP host internal to the network configured with the above registry key set to 0 (No NAT traversal)
    exhibits the same behavior when using a VPN connection
    Public Cloud <-> NAT <-> Private (with public addresses) <-> Mini (VPN) <-> Pvt. <-> Client
    Same host without VPN works fine.
    Clearing the XP checkbox that routes all traffic to the remote (VPN) router makes external hosts work
    as you would expect.
    So my questions are:
    a) What's XP doing?
    b) Can it be fixed? (besides routing public traffic away from the VPN.)
    Thanks Jonathan
    p.s. MrHoffman, I almost asked this in the HP Forum as well, till I noticed you were here. (Assuming you are Hoff.)

    Hi soccerdude21490-
    +Is this possible?+
    Theoretically yes. However, it would be up to the school to allow you access through their network.
    The first step would be to contact the school's IT department and ask them if they will allow such a connection, and if so, could they please provide you with the settings (ip address etc.).
    Luck-
    -DP

  • Strange behavior of kMoveStoryRangeCmdBoss and kCopyStoryRangeCmdBoss

    Hi All,
    I use ITextUtils::QueryMoveStoryCommand with ignoreAttributes = kFalse to move text between text frames, while preserving text formating.
    But there were some cases when  text formatting was not preserved. I have tryed ITextUtils::QueryCopyStoryCommand on these frames and everything worked ok.
    Any help will be of great value!
    Regards,
    Oleg

    I looked up the reviews for your drive on newegg.com and found the following comments that might be relevant:
    +Pros: This drive replaced an 80gb drive in my mac mini. I've had no problems over the last year, it's been reliable and quiet. Good price for the capacity. The drive is optimized for streaming, so dumping movies and music to it is a good fit.+
    +Cons: The drive was optimized for streaming, so any type of random reads or writes results in very low performance. It would work good as a media center hard drive, but this drive is actually slower on random read/write benchmarks than the 4200 rpm drive it replaced.+
    and
    +Pros: Drive worked, it was cheap, seems to be decent quality. Built for streaming+
    +Cons: Built for streaming, not random access. Random accesses are painfully slow.+
    +Other Thoughts: I used this to replace my Mac Mini's factory hard drive. It gave me much more space, and I also figured the improved 5400rpm spindle speed couldn't hurt. I definitely have more space, but the drive is pretty slow.+

  • Strange behavior from battery and/or charger on my Playbook

    I have a Playbook 16gb, about a year old which was working well until about 2 months ago when the micro usb port stopped working.  Turns out a pin was damaged, and I had to have a whole new port installed (cost $75.00) with a 30-day warranty.
    Two months later, when the warranty had run out the same problem started happening.  I went to another repair shop this time and was told again, a pin was damaged.  I don't know if the first place gave me a damaged port or never removed the old one. I thought this was really strange, but could not dispute it and again had a new usb port installed ($45.00 this time, and a 90-day warranty).
    So this time the usb port is working, and the charge comes across the battery icon to show that the battery is charging, except that it never charges up the battery.  Overnight charging later, the battery indicates the charge is still where it was when I originally started charging - but - I seem to be able to work on the tablet for many hours with the charger attached.  So, the charger does not charge the battery but it seems to work like an electrical cord and keep electricity going into the tablet for as long as I need to use it. Trouble is I can't take the tablet anywhere if I can't guarantee I will find a wall plug to plug into.
    So I thought maybe the battery is the problem. I installed Battery Guru, but it says the battery health is 90%.  When I remove the charger the battery level starts to drop, but when I plug it back in, it does not increase, but doesn't decrease either.
    Can anyone tell me what is going on?  I don't want to go back to the shop and have to spend more money without a guarantee anything will be fixed.

    I think thats fine.  This is a gray area since 2 companies have worked on it.  I don't think you should have to keep paying over and over to get the same thing fixed if it is breaking for no reason.  Is it possible for the last company that repaired it to contact RIM for a possible RMA or other repair options?
    Please click the Thumbs Up icon if this comment has helped you!
    If your issue is resolved, please click the solution button on the resolution!
    Every BlackBerry should have BlackBerry Protect, get it now! | Follow me on Twitter | Bring Back BBM Music!

  • Strange behavior with getCommonCharacterFormat and links

    I am working on a texteditor using TLF and Flash CS5. The problem I have is that when I use getCommonCharacterFormat on a single point selection the behavior is different if I have a link-tag adjacent to the selection compared to not having it.
    Think of a text like this: "Hello beautiful world!"
    - When I place the cursor at the end of the text in bold the format says bold and when i continue to write the text will be in bold.
    - When I place the cursor just before the text in bold the format says not bold and when i continue to write the text will not be in bold.
    This makes perfectly sence to me and is exactly what I would expect to happen.
    But if I make the word "beautiful" into a link the behavior is very different.
    - When I place the cursor at the end of the text in bold the format says not bold but when i continue to write the text will be in bold.
    - When I place the cursor just before the text in bold the format says bold but when i continue to write the text will not be in bold.
    Is this a bug or is there a good explanation to this behaviour? Should I do want I want to do in a different way?
    I you want me to I can paste some example code that illustrates my problem.
    /Peter

    Sounds like a bug. The issue, for what it's worth, is that typing after a link is different than typing after a span, because new text that you type isn't added to the link. We'll investigate.
    - robin

  • Strange Difference between runtime and development mode.

    Hello everyone,
    I have created an add-on that adds three items to the menu which launch three different forms. When SBO is loaded and I run the code from the development environment (VB6) it works perfectly, i.e. click on one of the three new menu items and the appropriate form loads.
    When I compile and register it as an add on SBO loads it correctly and it customizes the menu. However, when I click on any of the three new menu items it now gives an error message:
    Run Time Error (91)
    Object variable or With Block variable not set.
    And then blows away the add on.
    I tried trapping the error in the "Menu_Event" and got nothing. The error occurred as before with no evidence that it had been caught by my trap.
    This same behavior occurs on both my development system and on the customer's production system! Both systems are 6.5 sp1 Ef 07.
    Has anyone else had this problem? Any help appreciated.
    Mel

    Hi Mel,
    I heard of a similar problem - just that the menu event did not get fired.
    Do you use event filters?
    Did you add the menu event to the filters collection?
    Set oFilter = oFilters.Add(et_MENU_CLICK)
    Though apparently this should have been mandatory, in case you use filters, from the beginning of 6.5, what I heard from another partner does not match to this information.
    HTH,
    Frank

  • Very strange behavior with to_date and format 'yddd' after 31/12/2009

    Hi, I have the following PL/SQL code which retrieve a date from a production batch code as fallow:
    DECLARE
    dtmDateFabric DATE;
    BEGIN
    -- on teste si l'on peut reconstituer la date fabric à partir du code lot
    dtmDateFabric := TO_DATE ('9348', 'yddd');
    DBMS_OUTPUT.put_line ('dtmdatefabric ' || dtmDateFabric);
    END;
    batch code is constitued like this: YDDD year of production and day number in year.
    This code was perfectly working before 2010 and it used to return December 14, 2009.
    And now the same code returns December 14, 2019.
    And I can't use 'rddd' as format.
    Any idea to resolve this issue ?
    Thank's for help.
    Olivier

    It's not strange at all, we are in 2010 now, so if don't specify the decade, century and millennium it takes the current: 2 (millennium) 0(century) 1(decade) and your year becomes 2019...
    You have to add a byte to your year format to specify the decade:
    SQL> DECLARE
      2  dtmDateFabric DATE;
      3  BEGIN
      4  -- on teste si l'on peut reconstituer la date fabric à partir du code lot
      5  dtmDateFabric := TO_DATE ('09348', 'yyddd');
      6  DBMS_OUTPUT.put_line ('dtmdatefabric ' || dtmDateFabric);
      7  END;
      8  /
    dtmdatefabric 14-12-2009 00:00:00
    Procedura PL/SQL completata correttamente.And you'll be ok untill 2099...
    Max
    [My Italian Oracle blog|http://oracleitalia.wordpress.com/2010/01/07/creare-documenti-office-da-plsql/]
    Edited by: Massimo Ruocchio on Jan 8, 2010 4:40 PM
    Added explaination

  • Strange behavior with Premiere and effects in CS6

    Hello
    I created a PS file with several layers of a subject for a TV show idea i am preparing for a presintation but every time a render my effects are not as i see them., speciffialy the 8-16 point Garbage mattes and keying.
    The PS files where dragged and dropped into Premiere and as Sequences to maintin them in folders and in a Nested Sequence.,
    Then i sort of sequences masked PS layers, using Ultra key to punch out the greene screen,  8/16 point Gabrage mattes to take out any other noise or background images un wanted, MOJO to warm up the subject i then placed the sequence as a NESTED sequence in my time line, but when i would render the Garbage Mattes, keying and all would be partially showing a previous tweek, but when i open the nested Sequence i would not see these errors or older tweeks, yet in the main Sequence aka composition i would see them yet when i would place the mouse over the time line to select an area for the position to play they would go away again,
    sounds like a bug?
    OSX10.7.4 
    imac i7 12GB
    8TB RAID
    CS6 Suite
    Message was edited by: Andrew Yoole
    This message was relocated from the After Effects Forum.

    There must be bugs in the Zoom effect code -- I changed the
    Zoom to Resize in the above code, and it works perfectly. Of
    course, Resize is not as nice as Zoom because you can't set the
    resize to be around the center of the image, but at least it works.
    Does anyone know about bugs in the Zoom effect?

  • Is different tabbing order behavior between Custom and Automatic order a known issue?

    Good morning,
    I'm trying to debug a tabbing order issue where tabbing jumps over the instances of a repeating subform added at runtime only to return to them at the end of the tabbing sequence.
    Is this a know issue? If so, has it been fixed in newer version of Reader or Designer? I'm 98% sure this used to work before we installed service pack 1 for LC Designer ES. Here are the product versions currently used:
    LiveCycle Designer ES 8.2.1.4029.1.523496
    Adobe Reader 9.4.0
    Additional Information
    The hierarchy view looks like so (omitting fields for simplicity purposes):
    form1
         Subform1 (repeats)
         AddButton (button adding instances of Subform1)
         Subform3
    tabbing result after adding instances of Subform1:
    1. Subform1[0]
    2. AddButton[0]
    3. Subform3[0]
    4. Subform1[1]
    5. Subform1[2]
    expected results:
    1. Subform1[0]
    2. Subform1[1]
    3. Subform1[2]
    4. AddButton[0]
    5. Subform3[0]
    I built a simplified version of the form to isolate the source of the problem and noticed that I can reproduce the problem only when tabbing order is set to 'Custom'. The 'Automatic' order works fine. However most of the forms we're working on uses Custom order.
    I've tried removing the 'operation' tag in the XML Source as it sometimes fixes issues however it didn't this time. Using script to set focus on the exit event is currently considered but not ideal. It does not handle backward tabbing and will need to be manually removed later when forms are migrated to a newer version of ES/Reader.

    Yes, that behaviour is as expected. Out of order logging affords some performance improvements, particularly on machines with many CPUs.
    In iWS 6.0, you can set buffers-per-file="1" on the Init fn="flex-init" line to force iWS to log accesses in order.

  • Strange behaviour between standalone and enterprise

    Hi
    I'v been running my app on 9.0.3 standalone for weeks now. Very stable and happy.
    Now I'm trying to get this going on 9.0.3 with WebCache and HTTP server install. Also 9.0.3 on Windows 2000 Server.
    The application part that I'm testing is two servlets receiving a HTTP post from within an Oracle 8.1.7 database.
    The one servlet (no 1) does a lookup of EJB's depending on data received and send a XML document back.
    The other servlet (no 2) submits a JMS queue entry with a MDB doing its own database action after calling EJB's.
    What happens is that when servlet no 1 runs on its own, no problem.
    Starting servlet 2 causes no problem until after approximately 10 minutes.
    Each handles approx 2 requests/second.
    The problem condition is as follows:
    Having a look at the oc4j.out file I can see the EJB Create and EJB setContext methods being called creating more and more EJB's (stateless session beans). Under normal conditions one can see the create/context and then later the remove and so on - quite normal. Under the error condition the number of EJB's just keep increasing without being removed AND without returning data! The whole server responds to the server:1810 admin interface but no user can use the system. JSP's, etc all are hanging.
    The JMS bit is not using Oracle AQ but is a very primitive implementation.
    This all works fine on OC4J standalone!
    I had to change the JMS.xml port value from 9127 to 3201 to get it going.
    Looking at the OC4J instance (I created a new one to deploy my ear files with only one VM) the number of active sessions and active requests idle at 1 to 2 but once the "error condition" starts keeps climbing as none gets processed. The number of open JDBC connections also keeps climbing. Memory usage was approx 184 Meg with Heap size at 154 Meg before.
    The oc4j.err file didn't record any abnormal activity.
    Any help/ideas appreciated!!
    Here is the Servlet no 2 code:
    import javax.servlet.ServletContext;
    import javax.servlet.ServletInputStream;
    import javax.servlet.ServletConfig;
    import javax.servlet.ServletException;
    import javax.servlet.http.HttpServletResponse;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServlet;
    import javax.servlet.http.HttpSession;
    import javax.servlet.SingleThreadModel;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.jms.QueueSession;
    import javax.jms.QueueConnection;
    import javax.jms.Session;
    import javax.jms.QueueConnectionFactory;
    import javax.jms.Queue;
    import javax.jms.TextMessage;
    import javax.jms.QueueSender;
    import java.io.IOException;
    import java.io.PrintWriter;
    import java.util.Date;
    import org.xml.sax.SAXException;
    import oracle.xml.parser.v2.XMLDocument;
    import org.xml.sax.SAXParseException;
    import Util_XML.XMLHelper;
    public class WizMesServlet extends HttpServlet implements SingleThreadModel
    ServletContext context;
    XMLDocument outXMLDoc;
    private Queue queue;
    private QueueConnectionFactory queueConnectionFactory;
    private String qName;
    private String qConnFactory;
    private QueueConnection queueConnection;
    private PrintWriter out;
    private int reqCounter = 0;
    private Date startDate;
    public void init(ServletConfig config) throws ServletException
    super.init(config);
    startDate = new Date();
    try
    Context ctx = new InitialContext();
    catch (Exception ex)
    System.out.println("Error in servlet init method =>"+ex.toString());
    public void doPost (HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException
    out = response.getWriter();
    response.setContentType("text/xml");
    HttpSession session = request.getSession();
    session.setMaxInactiveInterval(120); //(value in seconds)
    try
    incCounter();
    IncomingRequestParams inReqParams;
    XMLDocument inXMLDoc = new XMLDocument();
    ServletInputStream inStream = request.getInputStream();
    boolean hasRecords = true;
    inXMLDoc = XMLHelper.parse(inStream, null);
    inStream.close();
    //((XMLDocument)inXMLDoc).print(System.out);
    IncomingMesRequest inRequest = new IncomingMesRequest();
    BuildMesRequest br = new BuildMesRequest(inRequest, inXMLDoc);
    XMLDocument xmlDocToPost = SubmitJMS(inRequest);
    //System.out.println("Returnvalue for jms is ");
    //((XMLDocument)xmlDocToPost).print(System.out);
    xmlDocToPost.print(out);
    catch (SAXException saxe)
    System.err.println("SAX exception occurred =>"+saxe.toString());
    catch (WizIntException wie)
    System.err.println("Wizard exception extracting XML data =>"+wie.toString());
    try
    String xmlOut="<xmlreturn>"+
    "<retmessage>Error extracting XML Data</retmessage>"+
    "<retcode>2</retcode>"+
    "</xmlreturn>";
    XMLDocument xmlDocToPost = new XMLDocument();
    xmlDocToPost = XMLHelper.parse(xmlOut, null);
    xmlDocToPost.print(out);
    catch (SAXParseException spe)
    spe.printStackTrace();
    catch (SAXException saxe)
    saxe.printStackTrace();
    out.close();
    session.invalidate();
    private XMLDocument SubmitJMS(IncomingMesRequest inreq)
    try
    qName = inreq.queueName;
    qConnFactory = inreq.queueConnFactory;
    Context jndiContext = new InitialContext();
    queueConnectionFactory = (QueueConnectionFactory)jndiContext.lookup(qConnFactory);
    queue = (Queue)jndiContext.lookup(qName);
    // Now determine how many parameters and of what data type we have to pass
    //System.out.println("Calling Message Bean on queue "+qName+" with connFactory "+queueConnectionFactory);
    queueConnection = queueConnectionFactory.createQueueConnection();
    queueConnection.start();
    QueueSession queueSession = queueConnection.createQueueSession(false, Session.AUTO_ACKNOWLEDGE);
    QueueSender queueSender = queueSession.createSender(queue);
    TextMessage message = queueSession.createTextMessage();
    //System.out.println("Name is >"+qName+"<");
    if (qName.equals("jms/EscalationsQueue"))
    message.setText("Escalation Data From Wizard");
    message.setStringProperty("username",inreq.username);
    message.setStringProperty("password",inreq.password);
    message.setStringProperty("escalationRefNo",inreq.escalationRefNo);
    message.setStringProperty("escalationActNo",inreq.escalationActNo);
    message.setStringProperty("escalationDest",inreq.escalationDest);
    message.setStringProperty("escalationAction",inreq.escalationAction);
    message.setStringProperty("dataBase",inreq.dataBase);
    message.setStringProperty("msisdnNo",inreq.msisdn);
    message.setStringProperty("machineURL",inreq.machineURL);
    else if (qName.equals("jms/IMEIUpdateQueue"))
    message.setText("IMEI Update Data From Wizard");
    message.setStringProperty("eventRefNo",inreq.eventRefNo);
    message.setStringProperty("msisdn",inreq.msisdn);
    message.setStringProperty("dataBase",inreq.dataBase);
    queueSender.send(message);
    queueSender.close();
    outXMLDoc = new XMLDocument();
    String xmlOut="<xmlreturn>"+
    "<retmessage>success</retmessage>"+
    "<retcode>1</retcode>"+
    "</xmlreturn>";
    XMLDocument xmlDocToPost = new XMLDocument();
    xmlDocToPost = XMLHelper.parse(xmlOut, null);
    //System.out.println("At returning xml doc pos for msisdn "+inreq.msisdn);
    //((XMLDocument)xmlDocToPost).print(System.out);
    return xmlDocToPost;
    catch (Exception ex)
    System.out.println("Originator=> WizMesServlet = Error in call queue =>"+qName+" Error =>"+ex.toString());
    return null;
    private synchronized void incCounter()
    reqCounter++;

    Thanks all for your help. I'm looking into the code you sent me but at the moment I get a compile error:
    "DecimalFormat cannot be resolved into a type"
    for information, my header reads:
    //Caravan loading program
    //Written by CPGL
    //August/September 2007
    //Applet will calculate nose weight, mass and inertia of a caravan and use this to
    //determine damping ratio (crudely speaking)
    import java.applet.*;
    import java.awt.*;
    import java.awt.event.*;
    import java.lang.Math;
    public class caravansnake6 extends Applet
    implements MouseListener, MouseMotionListener, ActionListener, Runnable
    Do I need to import some other class to be able to use the DecimalFormat code?
    thanks again - this is my first real use of a forum by the way and I'm totally sold!
    cheers
    Chris

  • Observed different behavior between Firefox and Nightly ( on Facebook)

    I like to troll on Facebook like all with too much time on their hands. I've discovered something funny happening.
    I have 2 laptops. One an XP dinosaur running Firefox (x86 newest 33.0?), the other running Nightly. I'm using Nightly now.
    When I'm on Facebook on ol' trusty, I like to copy/paste emoticons (smileys) from other sites. This has always worked smoothly.
    On my x64 Nightly, Facebook appears to run smoothly but the the "symbols" website won't allow me to copy. Just a small black square appears when I try to select an icon.
    Here's the rub. Does the "broken" website behave so because I'm running Nightly - W8.1 and WTP, both x64. or is nightly unable to interpret the site correctly??
    http://www.piliapp.com/facebook-symbols/

    Those black boxes are showing if the Flash plugin is blocked (not activated), so check that via the Lego block icon on the location/address bar.
    You can inspect and manage permissions for the domain in the currently selected tab via these steps:
    *Click the "[[Site Identity Button|Site Identity Button]]" (globe/padlock) on the location/address bar
    *Click "More Information" to open "Tools > Page Info" with the Security tab selected
    *Go to the Permissions tab (Tools > Page Info > Permissions) to check the permissions for the domain in the currently selected tab

Maybe you are looking for