Requesting for your kind help...(want to preserve Leading & trailing spaces)

Hello Team,<br /><br />Can you please help in the following issue:<br />I am trying to preserve white space(leading and trailing  L&T) as is on the User Interface.  We have built our UI using Flex 3.0 SDK. <br /><br />From Java side, I am able to carry the value with L&T spaces till the call goes to Flex .mxml and here response object assigning as  <br /><br /> var metaConfig:XML = event.result as XML;<br />But here L&T spaces are not visible along with value of ID.<br />I used to see it by using Alert.show(event.result.toString());<br /> <br />Flex Output is as:<br /><br />       <allScalarMetadataFields><br />      <id>TEST</id><br />      <name>test name</name> <br />.<br /><br />But from java[in Servlet/in service] side I can see the output as:<br /><br />   <allScalarMetadataFields><br />       <id>   TEST  </id><br />       <name>   test name    </name><br />.<br /><br />Java(Servlet) code is as follows:<br />      OutputStream writer = response.getOutputStream();<br />      OutputStreamWriter outputStreamWriter = new OutputStreamWriter(writer,"UTF-8");<br />JAXBContext context = JAXBContext.newInstance(object.getClass(), object.getClass());<br />         Marshaller m = context.createMarshaller();<br />         m.marshal(object, writer);<br />.Here marshal follow a standard structure for XML to map  it into writer same as what Flex XML follows.....<br /><br />Note, there is no any other issue/fault  with Flex and java except this white spaces.<br /> <br />Flex .mxml code is as:<br /><br />protected var _fieldXml:XML;<br />      public function MetadataFieldWrapper(xml:XML = null)<br />            {<br />                  if (xml == null)<br />                  {<br />       xml = <allScalarMetadataFields xml:space="preserve"><br />               <id /><br />                <name /><br /><br />...<br /><br /> Servlet is getting called as :<br /><br />            _webService = new HTTPService();<br />                  _webService.url = serviceUrl;<br />                  _webService.method = "POST";<br />                  _webService.resultFormat = "e4x";<br />                  _webService.contentType = "application/xml";<br /><br />.<br />_webService.headers = { "serviceName":serviceName, "serviceMethod":serviceMethod };<br />                  _webService.send(param);<br /><br />I want to preserve the L&T spaces along with ID/name .<br />Please help me how to allow these L& T spaces in Flex XML object?<br /><br /> <br />Thanks in Advance.<br />Regards,<br />Venu.

In the future this type of question should be asked on flexcoders as<br />it doesn't relate to the development of the Flex SDK.<br /><br />To preserve whitespace look at the documentation for XML.ignoreWhitespace.<br /><br />-- Daniel R. <[email protected]> [http://danielr.neophi.com/]<br /><br />On Wed, Nov 12, 2008 at 8:19 AM, venubwal <[email protected]> wrote:<br />> A new discussion was started by venubwal in<br />><br />> Developers --<br />>   Requesting for your kind help...(want to preserve Leading & trailing<br />> spaces)<br />><br />> Hello Team,<br />><br />> Can you please help in the following issue:<br />> I am trying to preserve white space(leading and trailing  L&T) as is on the<br />> User Interface. We have built our UI using Flex 3.0 SDK.<br />><br />> From Java side, I am able to carry the value with L&T spaces till the call<br />> goes to Flex .mxml and here response object assigning as

Similar Messages

  • Strange. I can play all my clips in FCP 7, but can not export them via share, nor submit them via Compressor. What happened? Thank yiou for your kind help, I can not continue my work! FCP 7!

    Strange. I can play all my clips in FCP 7, but can not export them via share, nor submit them via Compressor. What happened? Thank yiou for your kind help, I can not continue my work! FCP 7!

    When FCP/FCS begins to act unexpectedly, the usual first step is to trash your preferences:
    https://discussions.apple.com/docs/DOC-2491
    MtD

  • I have MacBook Air MD232 2012. I am working for a company that needs me to install all OS X from 10.7 to 10.10. How can I do this on my MBA? Thank you for your kind help.

    I have MacBook Air MD232 2012. I am working for a company that needs me to install all OS X from 10.7 to 10.10. How can I do this on my MBA? Thank you for your kind help.

    Choose Utilities from the Finder’s Go menu, open the Disk Utility, create two or three additional partitions(see below), and install or clone a different Mac OS X version to each.
    Unless you previously downloaded Mavericks 10.9, it’s no longer available.
    (120302)

  • Hi, I have added on Musique finder my old CD and want now to add them on my iTunes, please, could you explain to me step by step how to do this? Mant tks in advances for your kind help

    Hi, I have added on Musique finder my old CD and want now to add them on my iTunes, please, could you explain to me step by step how to do this? Mant tks in advances for your kind help

    Correct, it will only be one-level, the Photos app doesn't support sub-albums - the sub-folders photos will be included in the parent's album.
    If you select My Pictures at the top of the Photos tab when syncing, then you should get an album for each folder that is directly under it - so if I understand correctly what you described then that would mean an album for 2013, one for 2012 etc. And each of those should include all the photos in the subfolders under it - so 2013 would include the photos from the events and months subfolders under it.
    You can't sync them separately, only the contents of the last sync remains on the iPad, by not including a folder in the next photo sync you are effectively telling iTunes that you no longer want that folder/album on the iPad so it will be removed and be replaced by the contents of the new sync (you can't delete synced photos directly on the iPad, instead they are deleted by not including them in the next sync).
    The app that I use, Photo Manager Pro, allows you to select and copy a folder (via FTP), but you would need to select each subfolder individually, which if you have a lot would be time-consuming (I think that if you select '2013' it would ignore the folders beneath it).

  • Why I can't update my ios to ios6? It always display that..Error in updating..I am using ipad3. Please help me update my ios. Looking forward for your kind support and cooperation. Thank you.

    Why I can't update my ios to ios6? It always display that..Error in updating..I am using ipad3. Please help me update my ios. Looking forward for your kind support and cooperation. Thank you.

    Why I can't update my ios to ios6? It always display that..Error in updating..I am using ipad3. Please help me update my ios. Looking forward for your kind support and cooperation. Thank you.

  • I have OS 10.8.2 and connected the scanner Canoscan Lide110. I downloaded the drivers, looked installed, the scanner appears in the system preferencies, but it doesn't open!!! what i have to do? thanks in advance for your kind advice!

    I have OS 10.8.2 and connected the scanner Canoscan Lide110. I downloaded the drivers, looked installed, the scanner appears in the system preferencies, but it doesn't open!!! what i have to do? thanks in advance for your kind advice!

    Thanks for your help Karen Serena. Obviously, it appears in the list of printers and scaners on the left, into the "Print and Scan" with system preferencies. Then i click it , it appears on the right, then i click "open scanner" below the name and opens a window writing "open device failed". When i connect the scanner, it makes a sound but that's all...the scanner is dead, even if I push any button...Also there isn't any window opened to prove the function of the scanner, only is shown in the scanner list, that's all.

  • I have just updated my MBP to Maverick OS. I am unable to shutdown or log off. When i press the shutdown button, a black screen appears which goes off on pressing any key. The shutdown or log off dialog does not appear. Your kind help is much appreciated.

    I have just updated my MBP 17 / retina display to Maverick OS. I am unable to shutdown or log off. When i press the shutdown button, a black screen appears which goes off on pressing any key. The shutdown or log off dialog does not appear. Your kind help is much appreciated.

    The button response has changed. 
    Short press : sleep
    Medium press (2-3 sec) : restart, shutdown, sleep dialog
    Long press : force shutdown. (Same as before)

  • Thanks for for your kind support

    Thanks for for your kind support and answering my questions.:) Jen

    this is what a support community is all about

  • HT204347 I just buy a Mac Pro from one Company in Cambodia and I really want to check where is the spare part of such mac pro come from? so please help me to check my mac pro, the serial number is SC02H250ADV14 . thanks for your kind assistance

    Dear Sir,
    I don't know how to search the source product of my Mac Pro which I just buy from one company in Cambodia, the company said that it is made in China and it's part of such Mac Pro is from USA. I'm not sure it is truth or not. So I would like you to double check it for me. The Serial of such Mac Pro is SC02****ADV14 , thanks for your assistance.
    Regards,
    S
    <Edited by Host>

    You can type in your machines serial number here to find out a little more about it, however, it won't tell you what components came from what countries to be assembled into the unit you have. 

  • An install request for a new helper app appeared, I entered my system password to download the app.  Since then safari will not open.  It just comes up with a safari quit unexpectedly report.  I have tried logging on as a Guest but it does the same.

    I have a MacBook Pro with OS X Yosemit.  MY safari will not open, it only comes up with a safari quit unexpectedly report.  A new helper app appeared requesting my system password to download the helper.  Stupidly I input the password, when I log off I can see the download icon for a split second still running asking to abort or continue.  How do I sort this?
    cheers

    Genieo Adware is installed.  Removing it will help.
    If you have another browser installed, use it.
    If not, launch App store and get another  browser for temporary use.
    Remove it afterwards.
    1. Use  free  AdwareMedic by clicking “Download ” from here
        http://www.adwaremedic.com/index.php
        Install , open,  and run it by clicking “Scan for Adware” button   to remove adware.
        Once done, quit AdwareMedic by clicking AdwareMedic in the menu bar and selecting
        “Quit AdwareMedic”.
                   or
        Remove the adware  manually  by following the “HowTo” from Apple.
        http://support.apple.com/en-us/HT203987
    2. Safari > Preferences > Extensions
         Turn those off and relaunch Safari to test .
         Turn those on one by one and test.
    3. Safari > Preferences >  Search > Search Engine :
        Select your preferred   search engine.
    4. Safari > Preferences > General > Homepage:
         Set your Homepage.

  • Unable to list firewire devices.thank you now for your future help.

    all right so my firewire decided it cant recognize my sony handycam...so i decided hey it is probably the firewire...so i buy a new firewire and it still doesnt work...so then i was like all right look it up online...i reset my smu nvram pram deleted the caches files turned off and unplugged the computer for 5 minutes ten minutes then a whole night...i get back to it and it doesnt work...so then i decided maybe my camera so i buy a new canon hd camera...i wanted a new camera anyways so what the heck you know? it doest recognize it...i have run techtool deluxe and disk utility repaired what i could repair...and nothing has worked...i then i take it to the mac store and have them look at it and he plugs in an external hard drive it works...my new canon works...and my sony does not work at the store...so then i am like all right it was a bad camera...get back home hook up the canon...it doesnt work...so if anyone has any ideas tell me please...i am in the middle of a project and this problem is really setting me back...i have some console messages and my mac info here... the guy at the mac store could have cared less that the bus was resetting and just thought i was crazy...would a hub solve this problem...i also tried plugging the comp in different outlets maybe it was being underpowered....so someone help me out the first console message i posted is from when i was in the apple store
    Jun 30 19:24:10 localhost kernel[0]: 4.170.46.7.3FireWire (OHCI) Lucent ID 5901 built-in now active, GUID 001f5bfffe0f33ee; max speed s800.
    Jun 30 19:32:53 localhost kernel[0]: FireWire (OHCI) Lucent ID 5901 built-in now active, GUID 001f5bfffe0f33ee; max speed s800.
    Jun 30 21:54:40 localhost kernel[0]: FireWire (OHCI) Lucent ID 5901 built-in now active, GUID 001f5bfffe0f33ee; max speed s800.
    Jun 30 22:02:26 josh-johnsons-imac kernel[0]: FireWire (OHCI) Lucent ID 5901 built-in: 238 bus resets in last 3 minute.
    Jun 30 22:05:02 localhost kernel[0]: FireWire (OHCI) Lucent ID 5901 built-in now active, GUID 001f5bfffe0f33ee; max speed s800.
    Jun 30 22:09:07 josh-johnsons-imac kernel[0]: FireWire (OHCI) Lucent ID 5901 built-in: 263 bus resets in last 3 minute.
    Jun 30 22:12:25 localhost kernel[0]: FireWire (OHCI) Lucent ID 5901 built-in now active, GUID 001f5bfffe0f33ee; max speed s800.
    Jun 30 22:17:08 josh-johnsons-imac kernel[0]: FireWire (OHCI) Lucent ID 5901 built-in: 290 bus resets in last 3 minute.
    Jun 30 22:20:24 josh-johnsons-imac kernel[0]: FireWire (OHCI) Lucent ID 5901 built-in: 260 bus resets in last 3 minute.
    Jun 30 22:23:40 josh-johnsons-imac kernel[0]: FireWire (OHCI) Lucent ID 5901 built-in: 269 bus resets in last 3 minute.
    Jun 30 22:26:56 josh-johnsons-imac kernel[0]: FireWire (OHCI) Lucent ID 5901 built-in: 296 bus resets in last 3 minute.
    Jun 30 22:30:13 josh-johnsons-imac kernel[0]: FireWire (OHCI) Lucent ID 5901 built-in: 287 bus resets in last 3 minute.
    Jun 30 22:33:30 josh-johnsons-imac kernel[0]: FireWire (OHCI) Lucent ID 5901 built-in: 300 bus resets in last 3 minute.
    Jun 30 22:36:46 josh-johnsons-imac kernel[0]: FireWire (OHCI) Lucent ID 5901 built-in: 304 bus resets in last 3 minute.
    Jun 30 22:40:03 josh-johnsons-imac kernel[0]: FireWire (OHCI) Lucent ID 5901 built-in: 300 bus resets in last 3 minute.
    Jun 30 22:43:59 localhost kernel[0]: FireWire (OHCI) Lucent ID 5901 built-in now active, GUID 001f5bfffe0f33ee; max speed s800.
    Jun 30 22:46:45 localhost kernel[0]: 4.170.46.7.3FireWire (OHCI) Lucent ID 5901 built-in now active, GUID 001f5bfffe0f33ee; max speed s800.
    Jun 30 22:53:12 localhost kernel[0]: 4.170.46.7.3FireWire (OHCI) Lucent ID 5901 built-in now active, GUID 001f5bfffe0f33ee; max speed s800.
    Jun 30 22:57:42 josh-johnsons-imac kernel[0]: FireWire (OHCI) Lucent ID 5901 built-in: 279 bus resets in last 3 minute.
    Jun 30 23:00:55 josh-johnsons-imac kernel[0]: FireWire (OHCI) Lucent ID 5901 built-in: 116 bus resets in last 3 minute.
    Jun 30 23:04:12 josh-johnsons-imac kernel[0]: FireWire (OHCI) Lucent ID 5901 built-in: 275 bus resets in last 3 minute.
    Jun 30 23:07:26 josh-johnsons-imac kernel[0]: FireWire (OHCI) Lucent ID 5901 built-in: 179 bus resets in last 3 minute.
    Model Name: iMac
    Model Identifier: iMac7,1
    Processor Name: Intel Core 2 Duo
    Processor Speed: 2.4 GHz
    Number Of Processors: 1
    Total Number Of Cores: 2
    L2 Cache: 4 MB
    Memory: 1 GB
    Bus Speed: 800 MHz
    Boot ROM Version: IM71.007A.B03
    SMC Version: 1.21f4
    Serial Number: W-----------
    FireWire Bus:
    Warning: Unable to list FireWire devices.
    Maximum Speed: Up to 800 Mb/sec

    Hi -=Jawsh=-
    Greetings and welcome to the Apple boards
    Try the steps in this document: What to do if your computer won't recognize a FireWire or USB device
    Most likely you will require a reset of the bus as described in the last 5 steps on that page.
    Luck-
    -DP

  • Request for your expert suggestions....

    Hello Business Intelligence  gurus,
    I am  a graduate  having two years of hands on experience in SAP BW,   currently pursuing  my final Semester in  Business Administration ,learned a lot of stuff about SAP, I will be doing   thesis in SAP BI  as a part of my Masters Program.
    I am in search of  a new research areas in SAP Netweaver  BI ,
    Recently I have approached a consulting firm , for writing  my master thesis and I was suggested to provide my own topic.
    Now I am  looking for a research topic in BI to write my masters thesis  that could also be  useful for a consulting  firm.
    I especially urge all those people who are experts in this area to suggest me some research topics,
    What  issues will be in focus in the near future?  what  areas to be focused  in Business Intelligence????
    Thank you,
    Niklas

    Hi
    I posted this earlier  but it is still applicable. 
    In terms of topics, one of the biggest issues facing companies is the transition to the new BOBJ reporting tools. Companies are unsure of their reporting roadmap as Bex is being phased out. So research related to how companies are approaching the transition would be very relevant. Also related to this is the decision processes related to reporting tool selection. SAP customers are being presented with a plethora of reporting tools. What are the factors used to decide which tools should be implemented?
    Another trend which is emerging is the establishment of BI Centres of Excellence or BI Competency Centres. Drivers, barriers, purpose etc would be relevant research.  Related to this is BI Maturity models.
    I hope this helps
    Paul Hawking
    SAP Academic Program Driector
    Victoria University
    Australia

  • When I enter the mac address of my HT Rec'r in the address field I get the following error: This address uses a network port which is normally used for purposes other than Web browsing. Firefox has canceled the request for your protection.

    Need to access the receiver to set up internet radio. Followed instruction in receiver owner's manual

    See:
    * http://www.mozilla.org/projects/netlib/PortBanning.html
    * http://kb.mozillazine.org/network.security.ports.banned.override

  • I am getting this message "This address uses a network port which is normally used for purposes other than Web browsing. Firefox has canceled the request for your protection." I know the site it's mine so I need to access it.

    Note I also need to be able to install an active x feature.

    See http://www.mozilla.org/projects/netlib/PortBanning.html
    * http://kb.mozillazine.org/network.security.ports.banned.override

  • What can I do in order to view websites which have been bloked by government such as YouTube and FaceBook. Thank you so very much for your help.

    The government has blocked numerous websites in Iran making it almost impossible to surf without proxies. But I have heard that FireFox can be adjusted to avert such problems. Thank you in advance for your kind attention.

    It probably won't help - but try Resetting the System Management Controller (SMC)
    Also run the Apple Hardware Test
    Removing dust etc is a good idea, so long as you're careful... but get the correct screwdriver first & read about the process at iFixit or similar sites.

Maybe you are looking for

  • Data not loading in Development system( Urgent)

    Dear SDNs,                    Am loading data in development system... The message in status tab is Error message from the source system Diagnosis An error occurred in the source system. System response Caller 09 contains an error message. Further an

  • Problem while running forms in the application server

    Hai, My forms were developed using oracle 10g in Windows platform.I have to deploy it in the LINUX application server 10g.I compiled all the forms at AS.One of my form calls another form and it passes parameters to other form.During development I gav

  • Power button doesn't work after new update...and that's the least of it

    Ever since I updated my 4S with the new software my phone has had so many problems: Power button no longer works. I have to hold both the home button down and the power button to "reset" my phone to turn it off. I am having to do this CONSTANTLY b/c

  • Environment Language does not change

    Hello guys,can you help me with this problem? When i am running my report in other language, for example in dutch, my environment language does not change to dutch, remains in english and as a consequence,all date formats and descriptions from fnd_lo

  • Wont Play a File!!??

    I recorded a message on my old MP3 player and saved it to my CPU and then put it on iTunes, then i synced it to my iPod and it wont play at all. It is on their and everything it just wont play. But the wierd thing is, when i hook it up to my CPU it p