[flexcoders] TextInput to allow compact text content

2008-10-29 Thread Chua Chee Seng
Hi all,

With reference to 

https://bugs.adobe.com/jira/browse/SDK-17426

Any idea to have a workaround to make TextInput to allow compact text
content?

Best Regards,
Chee Seng




[flexcoders] Re: FW: FileReference.upload()

2007-10-24 Thread Chua Chee Seng
Hi all,

Can anyone from Adobe gives us a guide on where this is going?  This
seems to me a bug in Firefox Flash Player plugin, not Flex.

Thanks.

Best Regards,
Chee Seng

--- In flexcoders@yahoogroups.com, Seth Caldwell [EMAIL PROTECTED] wrote:

 Correct. Got an egg in my face as well, as I was touting flex as the
end all
 solution for cross browser woes =0
 
 I have tried every possible solution – crossdomain files, and so forth.
 
 However, I coded a workaround that was accepted using a javascript popup
 window. The difference is pretty negligible, and only appears for
firefox
 users.
 
 If anyone would like this code, please email me off list.
 
  
 
 Cheers,
 
  
 
 Seth
 
  
 
   _  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
 Behalf Of Richard Rodseth
 Sent: Tuesday, October 23, 2007 10:42 PM
 To: flexcoders@yahoogroups.com
 Subject: Re: [flexcoders] FW: FileReference.upload()
 
  
 
 Hi Matt
 
 If the problem can be solved with a crossdomain.xml file (specific
 ports etc.), please tell us what it should look like or publish a
 working example. After advocating Flex as the solution to
 cross-browser woes, I have egg on my face until this is resolved, and
 it seems I am not alone.
 
 Here's an excerpt of a message I sent to Ryan Stewart, describing my
 setup. I'm using Flex 2.0.1 Hot Fix 3.
 
 Thanks!
 
 - Richard
 
 
 
 Specifically, we are are using FileReference.upload() to an HTTPS URL
 on a Tomcat/Struts server. The upload fails (Error #2038: File I/O
 Error) in Firefox when the upload URL is HTTPS. It succeeds over
 regular HTTP. It succeeds in other browsers.
 
 We have a crossdomain.xml that looks like this currently:
 
 ?xml version=1.0?
 !DOCTYPE cross-domain-policy SYSTEM 
 http://www.macromed
 http://www.macromedia.com/xml/dtds/cross-domain-policy.dtd
 ia.com/xml/dtds/cross-domain-policy.dtd
 cross-domain-policy
 allow-access-from domain=*/
 /cross-domain-policy
 
 We are loading it explicitly as described here:
 
 http://www.onflex.

http://www.onflex.org/ted/2005/11/using-flash-player-under-https-with.php
 org/ted/2005/11/using-flash-player-under-https-with.php
 
 That is an old post from Ted, and you'll notice in the comments that
 others are struggling with this. Also the link to the Cynergy
 crossdomain.xml is broken.
 
 We are also passing the jsessionid to Tomcat, as described here:
 
 http://thanksmister http://thanksmister.com/?p=59 .com/?p=59
 
 The Struts actions on the backend do this to keep IE happy:
 response.setHeader(Cache-Control, max-age=0, must-revalidate);
 
 But so far, no joy. Any pointers would be much appreciated.
 
 On 7/23/07, Matt Chotin [EMAIL PROTECTED] mailto:mchotin%40adobe.com
com
 wrote:
 
 
 
 
 
 
 
 
 
  How is your crossdomain file set up? I see one bug for HTTPS
upload that
  was not reproducible and another that we fixed recently when a default
  crossdomain file didn't seem to work (fix should be available in a
nightly
  build of the SDK).
 
 
 
  Matt
 
 
 
 
 
  From: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
ups.com
 [mailto:[EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
ups.com]
 On
  Behalf Of Dimitrios Gianninas
  Sent: Monday, July 23, 2007 10:10 AM
  To: [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com ups.com
  Subject: [flexcoders] FW: FileReference.upload()
 
 
 
 
 
 
 
 
  Forwarding...
 
  -Original Message-
  From: flexcoders-owner@ mailto:flexcoders-owner%40yahoogroups.com
 yahoogroups.com
  [mailto:flexcoders-owner@ mailto:flexcoders-owner%40yahoogroups.com
 yahoogroups.com] On Behalf Of Jus
  Sent: Monday, July 23, 2007 12:07 PM
  To: flexcoders-owner@ mailto:flexcoders-owner%40yahoogroups.com
 yahoogroups.com
  Subject: Re: FileReference.upload()
 
  We really need action on this issue. There are posts on various forums
  about this issue from 2005 / Flash Player 8.
 
  Not sure if it's an Adobe Flash or Mozilla Firefox issue, but from
what I
  can tell it hasn't been acknowledged as an official bug by either
  organisation.
 
  That is alarming for someone like me that is looking at using Flex for
  developing a CMS app that needs to be accessible via HTTPS (and a core
  function of the app is uploading content).
 
  If anyone has an update on this issue, or if someone from Adobe reads
 this,
  can you please post an update on the status of this bug.
 
  Thanks
 
  --- In [EMAIL PROTECTED] mailto:flexcoders%40yahoogroups.com
ups.com,
 Sastry sastrykvp@ wrote:
  
   Hi Coders,
  
   1.Did anone got the FileReference.upload() work on Mozilla and
HTTPS?
  
   I need to upload an Image to the server(Tomcat). On the server
side I
   am using Apache Commons FileUpload to save it ti the DB. We open
only
   HTTPS port on the server.
  
   I coded using FileReference and also removed the servlet on the
server
   side from Authentication. It works fine on IE. But somehow breaks on
   Mozilla. Somehow the request itself doesn't go to the server. Please
   help me.
  
   2.Is 

[flexcoders] Re: FW: FileReference.upload()

2007-10-23 Thread Chua Chee Seng
Hi Matt,

I am developing application with Flex 2 and I am having problem with
FileReference.upload() using Mozilla Firefox too.  I use form
authentication which unauthenticated users will be redirect to a login
HTML page.  After login to the application, IE user can upload file
successfully, but not when using Mozilla Firefox.

I tried to investigate by alerting the data event text for the upload
completed handler:-

private function uploadCompleteHandler(event:DataEvent):void
{
  Alert.show(Upload completed, text :  + event.text);
}

The login page is alerted, which means the login page is returned in
the event.text asking for authentication.  It seems that the session
info is not sent in the upload HTTP request.  However, 
FileReference.download() has no authentication problem at both IE and
Mozilla Firefox.

Is this a bug in Mozilla Firefox Flash Player plugin?  The flash
player version I am using is 9.0.47.0.  Is there any fixed or
workaround for this?

Thanks in advance,

Best Regards,
Chee Seng


--- In flexcoders@yahoogroups.com, Matt Chotin [EMAIL PROTECTED] wrote:

 How is your crossdomain file set up?  I see one bug for HTTPS upload
that was not reproducible and another that we fixed recently when a
default crossdomain file didn't seem to work (fix should be available
in a nightly build of the SDK).
 
  
 
 Matt
 
  
 
 From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED]
On Behalf Of Dimitrios Gianninas
 Sent: Monday, July 23, 2007 10:10 AM
 To: flexcoders@yahoogroups.com
 Subject: [flexcoders] FW: FileReference.upload()
 
  
 
 
 Forwarding...
 
 -Original Message-
 From: [EMAIL PROTECTED]
mailto:flexcoders-owner%40yahoogroups.com 
[mailto:[EMAIL PROTECTED]
mailto:flexcoders-owner%40yahoogroups.com ] On Behalf Of Jus
 Sent: Monday, July 23, 2007 12:07 PM
 To: [EMAIL PROTECTED]
mailto:flexcoders-owner%40yahoogroups.com 
 Subject: Re: FileReference.upload()
 
 We really need action on this issue. There are posts on various
forums about this issue from 2005 / Flash Player 8.
 
 Not sure if it's an Adobe Flash or Mozilla Firefox issue, but from
what I can tell it hasn't been acknowledged as an official bug by
either organisation.
 
 That is alarming for someone like me that is looking at using Flex
for developing a CMS app that needs to be accessible via HTTPS (and a
core function of the app is uploading content).
 
 If anyone has an update on this issue, or if someone from Adobe
reads this, can you please post an update on the status of this bug.
 
 Thanks
 
 --- In flexcoders@yahoogroups.com
mailto:flexcoders%40yahoogroups.com , Sastry sastrykvp@ wrote:
 
  Hi Coders,
  
  1.Did anone got the FileReference.upload() work on Mozilla and HTTPS?
  
  I need to upload an Image to the server(Tomcat). On the server side I 
  am using Apache Commons FileUpload to save it ti the DB. We open only 
  HTTPS port on the server.
  
  I coded using FileReference and also removed the servlet on the
server 
  side from Authentication. It works fine on IE. But somehow breaks on 
  Mozilla. Somehow the request itself doesn't go to the server. Please 
  help me.
  
  2.Is there any alternative to FileReference?
  
  Thanks in Advance,
  Sastry
 
 
 -- 
 WARNING
 ---
 This electronic message and its attachments may contain
confidential, proprietary or legally privileged information, which is
solely for the use of the intended recipient. No privilege or other
rights are waived by any unintended transmission or unauthorized
retransmission of this message. If you are not the intended recipient
of this message, or if you have received it in error, you should
immediately stop reading this message and delete it and all
attachments from your system. The reading, distribution, copying or
other use of this message or its attachments by unintended recipients
is unauthorized and may be unlawful. If you have received this e-mail
in error, please notify the sender.
 
 AVIS IMPORTANT
 --
 Ce message électronique et ses pièces jointes peuvent contenir des
renseignements confidentiels, exclusifs ou légalement privilégiés
destinés au seul usage du destinataire visé. L'expéditeur original ne
renonce à aucun privilège ou à aucun autre droit si le présent message
a été transmis involontairement ou s'il est retransmis sans son
autorisation. Si vous n'êtes pas le destinataire visé du présent
message ou si vous l'avez reçu par erreur, veuillez cesser
immédiatement de le lire et le supprimer, ainsi que toutes ses pièces
jointes, de votre système. La lecture, la distribution, la copie ou
tout autre usage du présent message ou de ses pièces jointes par des
personnes autres que le destinataire visé ne sont pas autorisés et
pourraient être illégaux. Si vous avez reçu ce courrier électronique
par erreur, veuillez en aviser l'expéditeur.





[flexcoders] Web Service Error Handling Problem

2007-03-04 Thread Chua Chee Seng
Hi all,

I am building a data adapter using web service.  The
mx.rpc.soap.WebService class works fine for me except in handling the
exception thrown from server side.  The problem cause that I found out
from the docs is that Flash Player doesn't read the SOAP Fault details
when the Response status code is 500.

The following URL suggest a solution:

http://stackoverflowexception.blogspot.com/2007/02/handing-web-service-exception-in-flex.html

However, after I set the status code to 200 by using response wrapper,
I got the result handler get called and not the fault handler as
explained by the URL.

Does anyone have better idea to achieve exception handling of web service?

Thanks.

Best Regards,
Chua Chee Seng



[flexcoders] Leading spaces for text data trimmed?

2007-02-28 Thread Chua Chee Seng
Hi all,

I have a web service call which return text data from the server side.  
I use e4x for the resultFormat, but to my surprise when read the data 
from actionscript I get leading spaces trimmed.  For example ' Hello' 
will be read as 'Hello'.  I checked the soap message the leading space
(s) is there.  Is there anyway I can preserve the leading space(s) when 
I read the data in actionscript?

Thanks in advance for help.

Best Regards,
Chee Seng



[flexcoders] Re: Propogating exception info from Web Service to Flex

2007-02-14 Thread Chua Chee Seng
How about Axis?  Is it possible for me to get the custom application 
exception info thrown?  I check the wsdl it is well describe 
by 'fault', any idea how flex web service handle the custom 'fault' 
complex type describe in wsdl?

Thanks
Chee Seng

--- In flexcoders@yahoogroups.com, lepusmars [EMAIL PROTECTED] wrote:

 throw new XFireFault(Fault String, XFireFault.SENDER);
 
 This is how we do it. There are also methods for adding more details
 to the Exception that get passed on the response.  Check out the
 javadoc for more details.
 
http://envoisolutions.com/xfire/api/org/codehaus/xfire/fault/XFireFaul
t.html
 
 pd
 
 --- In flexcoders@yahoogroups.com, roman_dolgov roman_dolgov@
 wrote:
 
  Does anybody has an example (using XFire WS implementation but 
really
  any similar env would be helpful too) how to properly pass 
exception
  information from web services to flex and make sure that fault
  handler receives faultDetail/faultString populated with meaningful
  data (some application specific error code/messages)?
  
  Thanks
  rd
 





[flexcoders] Custom Component Render Problem

2007-01-23 Thread Chua Chee Seng
Hi,

I am trying to go through the Button source code to examine how it is
written, I have copied the original Button.as into a new package, and
I rename the package. I copy the styles folder, Version.as and
Button.png into my relative folder too. It compiles, and exist in the
Component panel of the builder. However, when I drag it into the UI
area and drog, nothing is render except a small rectangle. I can click
on it and specified the width and height in the properties panel.
After specifying the width and height, it is showing a empty
transparent rectangle in the design view, clicking on it can see the
border, but can see the button image. It works fine when I run the
application. May I know how does the Flex builder render the custom
component when I drag and drop from the component window?  Am I
missing something there?

Thanks in advance for any help.

Regards,
Chee Seng