[flexcoders] Flex 3 - showing HTML content

2011-09-21 Thread Vineet Bhatia
We have a Flex app which needs to show HTML content entered by the users from 
another non-flex app. The users copy and paste content from Word/Excel, other 
webpages into the non-flex app. I know that htmlText property has support for 
certain html tags but we need to render proper HTML like the browser does.

Whats the recommended way to display html in Flex 3?

- vineet



Re: [flexcoders] Problem with code in Adobe Flex Training from the Source

2007-01-29 Thread Vineet Bhatia
What specifically does not work?

You can download the examples to compare with what you have.

http://safari.informit.com/media/032142316X

- vineet

On 1/25/07 11:45 AM, primemate10 [EMAIL PROTECTED] wrote:

  
  
  
 
 Could anyone assist me with a section of the Training from the Source
 book on Adobe Flex?
 
 Specifically, the section Working with View States (pages 52-56)
 just doesn't work as expected. I did the example over third times
 without any success.
 
 Any assistance that anyone can provide will be greatly appreciated.
 
  
 




Re: [flexcoders] [FDS2+Spring/Hibernate] VOs reaching the backend with id=0 (unsaved-value problem)

2007-01-19 Thread Vineet Bhatia
Hi Carlos,

I have never had any problems with saving new entities using Hibernate and
FDS. 
Are you using primitive int data-type by any chance? If so then change it to
Integer.
Which RDBMS are you using?

- vineet

On 1/19/07 1:03 PM, Douglas McCarroll
[EMAIL PROTECTED] wrote:

  
  
  
 
 Well, it doesn't seem as though there's a great deal of actual use of
 the FDMS/Hibernate option...
 
 I'm struggling with trying to learn it, but there seem to be some bugs...
 
 Hey flexcoders, is it possible that no one has attempted to create new
 entities using FDMS/Hibernate?
 
 Douglas
 
 Carlos Rovira wrote:
 
  Thanks Douglas,
 
  Thanks for the response.
 
  In that case, how people deal with the fact that hibernate expect IDs
  with null value instead of 0?
  Or maybe I'm missing something?
 
 
 
 
  On 1/19/07, *Douglas McCarroll*
  [EMAIL PROTECTED]
 mailto:org.yahoo_primary.001%40douglasmccarroll.com
  mailto:[EMAIL PROTECTED]
 mailto:org.yahoo_primary.001%40douglasmccarroll.com
 mailto:[EMAIL PROTECTED]wrote:
 
  Hi Carlos,
 
  I can't be of much help but I can tell you...
 
   Or maybe there's a way in FDS2 to configure default value to null?
 
  ... that you can probably forget this option. FDS converts null
  values
  to zero when it converts AS objects to Java objects, and the only
  workaround is to have code on the java side that converts zeros
  back to
  nulls. There are discussions about why this is the case in the
  archive
  if you want to do some searching...
 
  Douglas
 
  -
 
  Douglas McCarroll
 
  CairngormDocs.org Webmaster
  http://www.CairngormDocs.org http://www.CairngormDocs.org
 
  Flex Developer
  http://www.brightworks.com http://www.brightworks.com
  617.459.3840
 
  -
 
 
 
  Carlos Rovira wrote:
  
   Hi,
  
   I'm switching from Toplink to Hibernate using JPA/EJB3 and
  Annotations.
   I'm facing a problem with this change due to the fact that when I
  try
   to persist new entities Hibernate throws a
   PersistenceObjectException: Detached entity passed to persist.
   Hibernate expects new entities with ID = NULL and my new entities
   reach the hibernate layer with ID = 0.
  
   If I were using hibernate xml config files (hbm.xml) I could use
   unsaved-value = 0 (for each entity), but I'm using Annotations and
   there's no unsaved-value annotation to use.
  
   So, anyone reach this problem? How could I change the default
   configuration in Hibernate so new entities with ID = 0 will be
   considered as the default.
  
   Or maybe there's a way in FDS2 to configure default value to null?
  
   Thanks for any light on this :)
  
   C.
  
  
  
  
   --
   ::| Carlos Rovira
   ::| http://www.carlosrovira.com http://www.carlosrovira.com 
  http://www.carlosrovira.com http://www.carlosrovira.com
   ::| http://www.madeinflex.com http://www.madeinflex.com 
  http://www.madeinflex.com http://www.madeinflex.com
  
  
 
 
 
 
  -- 
  ::| Carlos Rovira
  ::| http://www.carlosrovira.com http://www.carlosrovira.com
  ::| http://www.madeinflex.com http://www.madeinflex.com