Requesting for your kind help...(want to preserve Leading & trailing spaces)
hello team,<br /><br />can please in following issue:<br />i trying preserve white space(leading , trailing l&t) on user interface. have built our ui using flex 3.0 sdk. <br /><br />from java side, able carry value l&t spaces till call goes flex .mxml , here response object assigning as <br /><br /> var metaconfig:xml = event.result xml;<br />but here l&t spaces not visible along value of id.<br />i used see using alert.show(event.result.tostring());<br /> <br />flex output as:<br /><br /> <allscalarmetadatafields><br /> <id>test</id><br /> <name>test name</name> <br />.<br /><br />but java[in servlet/in service] side can see output as:<br /><br /> <allscalarmetadatafields><br /> <id> test </id><br /> <name> test name </name><br />.<br /><br />java(servlet) code 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 standard structure xml map writer same flex xml follows.....<br /><br />note, there no other issue/fault flex , java except white spaces.<br /> <br />flex .mxml code 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 getting called :<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 preserve l&t spaces along id/name .<br />please me how allow these l& t spaces in flex xml object?<br /><br /> <br />thanks in advance.<br />regards,<br />venu.
in future type of question should asked on flexcoders as<br />it doesn't relate development of flex sdk.<br /><br />to preserve whitespace @ documentation xml.ignorewhitespace.<br /><br />-- daniel r. <danielr@neophi.com> [http://danielr.neophi.com/]<br /><br />on wed, nov 12, 2008 @ 8:19 am, venubwal <member@adobeforums.com> wrote:<br />> new discussion started venubwal in<br />><br />> developers --<br />> requesting kind help...(want preserve leading & trailing<br />> spaces)<br />><br />> hello team,<br />><br />> can please in following issue:<br />> trying preserve white space(leading , trailing l&t) on the<br />> user interface. have built our ui using flex 3.0 sdk.<br />><br />> java side, able carry value l&t spaces till call<br />> goes flex .mxml , here response object assigning as
More discussions in Developers
adobe
Comments
Post a Comment