[flexcoders] Re: mxml-mode for Emacs

2007-05-26 Thread Andriy Panas
http://www.mail-archive.com/search?l=flexcoders%40yahoogroups.comq=MXML+DTD+Schemasourceid=Mozilla-search

--
With flex regards,
JabbyPanda



Re: [flexcoders] Mostrar todas las filas de un DataGrid sin necesidad de scroll

2007-05-26 Thread Alberto Albericio
Alex, you understood it very well hehe Let me answer him in Spanish...

Como dice Alex, puedes utilizar la propiedad rowCount para conseguir esto:

mx:DataGrid
id=myDG
dataProvider={ myAC }
rowCount={ myAC.length + 1 }
/

Observa que utilizamos rowCount vinculado a la longitud de nuestro 
dataProvider + 1, suponiendo que tienes visibles las cabeceras del 
datagrid. Puedes omitir este +1 si tienes las cabeceras ocultas.
   

Alex Harui escribió:

 Not sure I understood this, but try setting rowCount to the length of 
 the dataProvider.  You may also need to set verticalScrollPolicy=off.

  

 

 *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
 *On Behalf Of [EMAIL PROTECTED]
 *Sent:* Friday, May 25, 2007 12:59 PM
 *To:* flexcoders@yahoogroups.com
 *Subject:* [flexcoders] Mostrar todas las filas de un DataGrid sin 
 necesidad de scroll

  

 Como puedo hacer para mostrar todas las filas de un DataGrid sin
 necesidad de hacer scroll, ni de ninguna barra de desplazamiento.
 Actualmente, y creo que por defecto, mi DataGrid muestra 6 filas, tenga
 mas o menos información, sigue mostrando 6 filas, en caso de ser mas,
 obviamente me agrega la barra de desplazamiento.

 Lo que Yo quiero es que si hay 2 filas, muestre solo 2 filas y la altura
 del DataGrid sea solo para mostrar las 2 filas, y si el DataGrid tiene
 30 filas, muestre las 30 filas , por lo tanto el DataGrid tendra una
 altura de 30 filas.

 o sea
 Altura del DataGrid = Cantidad Total de Filas

 Muchas Gracias por todo

 -- 
 Pablo Dario Ingelhorn
 Ingelhorn Sistemas
 (6303) Toay - La Pampa - Argentina





 __
 Preguntá. Respondé. Descubrí.
 Todo lo que querías saber, y lo que ni imaginabas,
 está en Yahoo! Respuestas (Beta).
 ¡Probalo ya!
 http://www.yahoo.com.ar/respuestas http://www.yahoo.com.ar/respuestas

  


[flexcoders] Jetty with JOTM causes ClassCastException in FDS

2007-05-26 Thread Shailesh Mangal
Hi All, 

   After struggling for a quite a while, I was able to configure Jetty
with JOTM (to a point where it starts cleanly).

Now I am getting a ClassCast Exception in JNDILookup. Wondering if
anyone has come across following error (FDS output in Debug mode).
Same issue is discussed on in decent depth,
http://tech.groups.yahoo.com/group/flexcoders/message/51486 but no
concrete solution suggested.  


[Flex] Error handling rtmp message: flex.data.DataServiceException:
Unable to access UserTransaction in DataService.
incomingMessage: Flex Message (flex.data.messages.DataMessage) 
operation = transacted
id = null
clientId = D9CE4977-870F-8C20-2C39-C6D4DA7BB599
correlationId = 
destination = loginService
messageId = 466A87F6-D404-76D9-361C-C7CE219FDB80
timestamp = 1180173215095
timeToLive = 0
body = 
[
  Flex Message (flex.data.messages.DataMessage) 
  operation = create_and_sequence
  id = ASObject(10255870){id=1234}
  clientId = 03D24138-E112-748E-2BED-C7CE1F822C65
  correlationId = 466A87F6-D404-76D9-361C-C7CE219FDB80
  destination = loginService
  messageId = 6C4AEB83-B4A2-73F6-5541-C7CE219CF4BB
  timestamp = 0
  timeToLive = 0
  body = [EMAIL PROTECTED]
]
hdr(DSEndpoint) = my-rtmp
errorReply: Flex Message (flex.messaging.messages.ErrorMessage) 
clientId = null
correlationId = 466A87F6-D404-76D9-361C-C7CE219FDB80
destination = loginService
messageId = D9CE49A3-790B-1933-0AD6-36F523BDEB89
timestamp = 1180173215113
timeToLive = 0
body = null
code =  Server.Processing
message =  Unable to access UserTransaction in DataService.
details =  null
rootCause =  java.lang.ClassCastException: org.objectweb.jotm.Current
body =  null
extendedData =  null
[Flex] cause=java.lang.ClassCastException: org.objectweb.jotm.Current
type=class java.lang.ClassCastException
java.lang.ClassCastException: org.objectweb.jotm.Current
at
flex.data.DataServiceTransaction.doBegin(DataServiceTransaction.java:653)
at
flex.data.DataServiceTransaction.begin(DataServiceTransaction.java:624)
at
flex.data.DataService.serviceTransactedMessage(DataService.java:474)
at flex.data.DataService.serviceMessage(DataService.java:241)
at
flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:548)
at
flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:302)
at
flex.messaging.endpoints.rtmp.AbstractRTMPServer.dispatchMessage(AbstractRTMPServer.java:682)
at
flex.messaging.endpoints.rtmp.NIORTMPConnection$RTMPReader.run(NIORTMPConnection.java:665)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:643)
at
edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:668)
at java.lang.Thread.run(Thread.java:613)



Re: {Disarmed} RE: [flexcoders] Flickr - Issue with LoaderContext

2007-05-26 Thread Jurgen Beck
I had this working for most part, retrieving and displaying the images 
from Flickr, but BitmapData.draw was always throwing a security sandbox 
violation when I needed to hide the canvas the Flickr images were 
displayed in. Karl Johnson has written more about it here:


http://www.cynergysystems.com/blogs/page/karljohnson?entry=working_around_security_sandbox_errors

The problem is that the crossdomain.xml is at 
http://api.flickr.com/crossdomain.xml, but the actual images are pulled 
from http://farm1.static.flickr.com/... So running the app, I am seeing 
an error:


Failed to load policy file from 
http://farm1.static.flickr.com/crossdomain.xml


We're obviously not loading the crossdomain.xml from the right place, as 
there is no crossdomain.xml at that location.


Next, I looked closer at James Ward's example of using Ely's 
DisplayShelf component to retrieve images from Flickr:


http://www.jamesward.org/wordpress/2006/11/06/flex-widgets-from-widgetslive/

The AppDom and SecDom approach is taken from Ely's DisplayShelf 
component, where he uses it with the SWFLoader. May not be needed for 
images, I simply just left it in there.


I've taken a second look at Jame's write-up and he's posted a follow-up 
in the comment section on April 20, 2007 where he's showing a proxy 
setup to get around the issues at hand. His example wouldn't work either 
until the proxy setup was in place.


This may be what I have to do as well. It's just amazing to me that 
there is no unified approach to this. I agree with you, either you have 
access permission to the images, or you don't.


Jurgen

Alex Harui wrote:


I'm not clear that AppDom and SecDom affect loading images (JPG, GIF, 
etc).  You either have permission from the crossdomain.xml at 
flickr.com or you don't.


 


You can almost always load it, you just can't always access its pixels.

 




*From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] 
*On Behalf Of *Jurgen Beck

*Sent:* Friday, May 25, 2007 3:34 PM
*To:* flexcoders@yahoogroups.com
*Subject:* [flexcoders] Flickr - Issue with LoaderContext

 


I'm running into security sandbox violation issues trying to load images
from a Flickr account.

Since the Image component derives from SWFLoader I am setting the
LoaderContext before the image source is assigned. The image component
is used inside my custom component, which in turn is used as an
itemRenderer in a TileList.

Here is the image component code fragment:

mx:Image id=imgThumbnail
source={data.url}
initialize=imageInit()
width=75 height=75/

Here is my imageInit() method:

private function imageInit():void {
loaderContext = new LoaderContext();
loaderContext.applicationDomain =
ApplicationDomain.currentDomain;
loaderContext.securityDomain =
SecurityDomain.currentDomain;
loaderContext.checkPolicyFile = true;
imgThumbnail.loaderContext = loaderContext;
}

I've traced through the processes and the LoaderContext is definitely in
place before the image source gets assigned, so I should be good.
However, the application is still returning a security sandbox violation
error stating that the connection to 
http://farm1.static.flickr.com/... http://farm1.static.flickr.com/...

was halted - not permitted from [my server].

This obviously should be working fine. Looking through Ely's
DisplayShelf component, there are no such issues. So the question is
what else is missing.

Anyone with some thoughts?

Thanks,

Jurgen

 


[flexcoders] TreeItemRenderer quick question

2007-05-26 Thread barry.beattie
I've just started looking into TreeItemRenderer as a way of solving a
problem.

with my lowest level leaf nodes, the label (should) come from the
first 20 chars of the @text attribute. for the parents and
grandparents of it (as folders), the label comes from the @name of
those nodes.

I take it that this *is* possible with TreeItemRenderer, change what
attribute is bound to label, and then modify the value?

thanx
b



[flexcoders] Re: Fluid layout? Refresh container / component size?

2007-05-26 Thread grantdotcox
 Question, why do you have a Panel inside a canvas inside a popup?

No reason, just the MXML component defaulted to Canvas, and I put a
Panel in there for aesthetic reasons.  I have changed the root node of
the component to a Panel now :)

Anyway, it appears the issue is because the popup actually contains a
HDividedBox, and the component is in there.  And it's the HDividedBox
that does not resize automatically (without it theres no resize problem).

I'll look into what controls this container type has, but in case
anyone has any suggestions the pseudocode is:

GroupsComponent.mxml
Panel
  HBox id=controls ...input fields, buttons etc ... /HBox
  Button click=showHide()/
/Panel
where the controls HBox is shown/hidden with addChild/removeChild
based on the button click.


PopupWindow.mxml
Panel
  HDividedBox
GroupsComponent /
AnotherComponent /
  /HDividedBox
/Panel


And the problem is that changes to the size of GroupsComponent does
not automatically update the size of the HDividedBox.  Having code to
addChild/removeChild to the HDividedBox does then cause the size to be
read correctly.

Regards,
Grant Cox





[flexcoders] Re: TreeItemRenderer quick question

2007-05-26 Thread barry.beattie
no matter, I lucked onto the correct answer.

it wasn't what I thought, labelFunction to the rescue instead:

private function treeLabel( item:Object ) : String
{
 var node:XML = XML(item);
 if( node.localName() == question)
 return String([EMAIL PROTECTED]).substr(0,20);
 else 
 return [EMAIL PROTECTED];
}

just have to think of a more generic term to 
  if( node.localName() == question)

it's more like 
  if(!node.hasChildren())



[flexcoders]An error has occured. See error log for more details.

2007-05-26 Thread dorkie dork from dorktown

An error has occured. See error log for more details.

[image: An error has occurred]

[image: An error has occurred]

I don't know what is causing this error or how to fix it but Flex Builder
won't start up.

I found this online but I still get the same error.
http://flexworld.wordpress.com/2007/02/03/flex-builder-crash-due-to-multiple-logins/

Anyone have any suggestions?


Re: [flexcoders] Re: Problem with RichTextEditor and states

2007-05-26 Thread Daniel Freiman

This is a feature.  When a UIComponent is added flex executes the styles to
make sure it look correct.  The specific code is validateNow() in the
UITextField.

You could fix this using subclassing but this is probably a pain and more
trouble than it's worth in your situation.

I think you want to create a variable in your app and then set the
RTE.htmlText property to it before the RTE is removed, and then when the RTE
is added set the RTE.htmlText property to that variable.  I'm not an expert
on States, but my guess is it looks something like this:

mx:states
  mx:State name=state1 
 mx:RemoveChild target={button1}/
 mx:SetProperty target={richTextEditorExample} name=htmlText
value={htmlCache} /
  /mx:State
  mx:State name=state2
 mx:SetProperty name=htmlCache value={
richTextEditorExample.htmlText} /
 mx:RemoveChild target={richTextEditorExample}/
 mx:RemoveChild target={button2}/
  /mx:State
/mx:states
mx:Script
  ![CDATA[
 public var htmlCache:String = exampleModel.exampleText;
  ]]
/mx:Script

Dan Freiman
nondocs http://nondocs.blogspot.com

On 5/25/07, Javier de la Torre [EMAIL PROTECTED] wrote:


  You are right, if I set it to fontWeight bold then the formatting starts
getting change to bold...
Is this a bug or a feature? Is there any way to avoid this behaviour?

Thanks.

Javier.

--- In flexcoders@yahoogroups.com flexcoders%40yahoogroups.com, Daniel
Freiman [EMAIL PROTECTED]
wrote:

 My guess is that when you add RTE as a child it is reseting the text
based
 on the styles. As a quick check, set the fontWeight of the RTE equal
to
 bold and see if the formating starts getting changed to bold instead
of the
 default font style.

 Daniel Freiman
 nondocs http://nondocs.blogspot.com


 On 5/24/07, Javier de la Torre [EMAIL PROTECTED] wrote:
 
  Hi all,
 
  I am facing a problem when using the RichTextEditor in an
application with
  several states. I have a richTextEditor bound to a model in a state
and when
  I change to another state and get back all the changes in the
formatting
  inside the richtexteditor are gone, it just suddenly changes the
formatting
  back. It just change back the formatting, the text remains intact.
  Maybe it is easier just to show a simple code:
 
  
  ?xml version=1.0 encoding=utf-8?
  mx:Application xmlns:mx=http://www.adobe.com/2006/mxml;
layout=absolute
  currentState=state1
  mx:Model id=exampleModel exampleModel
  ExampleText{richTextEditorExample.htmlText}/ExampleText
  /exampleModel
  /mx:Model
  mx:states
  mx:State name=state1 
  mx:RemoveChild target={button1}/
  /mx:State
  mx:State name=state2
  mx:RemoveChild target={richTextEditorExample}/
  mx:RemoveChild target={button2}/
  /mx:State
  /mx:states
 
  mx:RichTextEditor id=richTextEditorExample htmlText={
  exampleModel.ExampleText} x=10 y=38
  /mx:RichTextEditor
  mx:Button x=10 y=10 label=Go to State 2 click={currentState=
  'state2'} id=button2/
  mx:Button x=120 y=10 label=Go to State 1
click={currentState=
  'state1'} id=button1/
  /mx:Application
  
  When you enter the app go and add some text on the RichTextEditor,
make a
  word bold, go to state 2 and the get back to state 1. The text in
the editor
  is fine but the bold is gone.
 
  I have place this little code on a server for you to try:
 
http://www.imastedev.com/RichTextEditorExample/testRichTextEditor.html
 
  Any idea of what could be going wrong?
 
  Thanks in advance.
 
  Javier.
 
 
 
 


 



[flexcoders] custom tooltip for datagrid itemrenderer

2007-05-26 Thread Ary
Hi,

i want to generate custom tooltips(with container
inside?), from datagrid itemrenderer, i have manage to
put dummy column for datagrid to trigger datatips, but
the functions i found  only limited to string, i want
to put some image element and item data ...any hint?

thanks in advance!

ary


 

Now that's room service!  Choose from over 150,000 hotels
in 45,000 destinations on Yahoo! Travel to find your fit.
http://farechase.yahoo.com/promo-generic-14795097


[flexcoders] Is there any way around the crossdomain.xml

2007-05-26 Thread pioplacz
Hi! 

I'm trying to create an application that loads data from a wsdl webservice the 
problem is that 
I don't have access to the hosting server and I'm not possible to upload 
crossdomain file on 
it. That's why I'm asking you all, is there any way around it? Can i do 
something to make it 
work? It's really important and I really would like to make that app in flex. 



Re: [flexcoders] Is there any way around the crossdomain.xml

2007-05-26 Thread John Robinson
First, ask the folks who provide the webservice to install a  
crossdomain.xml file for you. If that isn't an option, you can make a  
php/etc proxy file to do the loading for you. Google php flash proxy.


John

John Robinson - Flash/Flex Developer at large
Blog: http://jrobinsonmedia.wordpress.com


On May 26, 2007, at 5:34 PM, pioplacz wrote:

 Hi!

 I'm trying to create an application that loads data from a wsdl  
 webservice the problem is that
 I don't have access to the hosting server and I'm not possible to  
 upload crossdomain file on
 it. That's why I'm asking you all, is there any way around it? Can  
 i do something to make it
 work? It's really important and I really would like to make that  
 app in flex.






[flexcoders] Re: Is there any way around the crossdomain.xml

2007-05-26 Thread pioplacz
Ok, well tryed to talk to them but didn't get any response. But I will instead 
use the php 
proxy way, but now i've run into another problem so maybe you could help me 
out. 
In their API reference they wrote that I have to include this line in my 
application:

System.setProperty(javax.net.ssl.trustStore,Path To istcacert);

But that line is only for java apps. Is there any way to make it work with php 
or flex?


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

 First, ask the folks who provide the webservice to install a  
 crossdomain.xml file for you. If that isn't an option, you can make a  
 php/etc proxy file to do the loading for you. Google php flash proxy.
 
 
 John
 
 John Robinson - Flash/Flex Developer at large
 Blog: http://jrobinsonmedia.wordpress.com
 
 
 On May 26, 2007, at 5:34 PM, pioplacz wrote:
 
  Hi!
 
  I'm trying to create an application that loads data from a wsdl  
  webservice the problem is that
  I don't have access to the hosting server and I'm not possible to  
  upload crossdomain file on
  it. That's why I'm asking you all, is there any way around it? Can  
  i do something to make it
  work? It's really important and I really would like to make that  
  app in flex.
 





RE: {Disarmed} RE: [flexcoders] Flickr - Issue with LoaderContext

2007-05-26 Thread Alex Harui
Roughly speaking:

 

AppDom/SecDom are for ActionScript code/classes.

crossdomain.xml allows you to import code/classes into the same
SecDom/AppDom so you can use the classes, otherwise you end up in a
separate sandbox

All instances of things in a separate sandbox are off-limits, and cannot
access you either.

crossdomain.xml also allows you to access the display area of
displayobjects and image data because it effectively imports that thing
into your sandbox

AllowDomain permits code in another sandbox to touch things in your
sandbox

 

There is a security white paper on adobe.com that tries to explain all
of this.  The idea is that you cannot use Flash as a screenscraper of
other flash content or image data w/o permission of the server owner for
both spoofing and server load reasons.  And, of course, you don't want
to accidentally load bad code and have it steal stuff from you.

 

Flickr used to have crossdomain.xml files in the correct places, but
pulled them for some reason.  I think if you google around you'll find
out why.  So suddenly, they've made flash apps harder and proxy servers
are needed.

 

HTH,

-Alex

 

 

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of Jurgen Beck
Sent: Saturday, May 26, 2007 5:14 AM
To: flexcoders@yahoogroups.com
Subject: Re: {Disarmed} RE: [flexcoders] Flickr - Issue with
LoaderContext

 

I had this working for most part, retrieving and displaying the images
from Flickr, but BitmapData.draw was always throwing a security sandbox
violation when I needed to hide the canvas the Flickr images were
displayed in. Karl Johnson has written more about it here:

http://www.cynergysystems.com/blogs/page/karljohnson?entry=working_aroun
d_security_sandbox_errors
http://www.cynergysystems.com/blogs/page/karljohnson?entry=working_arou
nd_security_sandbox_errors 

The problem is that the crossdomain.xml is at
http://api.flickr.com/crossdomain.xml
http://api.flickr.com/crossdomain.xml , but the actual images are
pulled from http://farm1.static.flickr.com/
http://farm1.static.flickr.com/ ... So running the app, I am seeing an
error: 

Failed to load policy file from
http://farm1.static.flickr.com/crossdomain.xml
http://farm1.static.flickr.com/crossdomain.xml  

We're obviously not loading the crossdomain.xml from the right place, as
there is no crossdomain.xml at that location.

Next, I looked closer at James Ward's example of using Ely's
DisplayShelf component to retrieve images from Flickr:

http://www.jamesward.org/wordpress/2006/11/06/flex-widgets-from-widgetsl
ive/
http://www.jamesward.org/wordpress/2006/11/06/flex-widgets-from-widgets
live/ 

The AppDom and SecDom approach is taken from Ely's DisplayShelf
component, where he uses it with the SWFLoader. May not be needed for
images, I simply just left it in there.

I've taken a second look at Jame's write-up and he's posted a follow-up
in the comment section on April 20, 2007 where he's showing a proxy
setup to get around the issues at hand. His example wouldn't work either
until the proxy setup was in place.

This may be what I have to do as well. It's just amazing to me that
there is no unified approach to this. I agree with you, either you have
access permission to the images, or you don't. 

Jurgen

Alex Harui wrote: 

I'm not clear that AppDom and SecDom affect loading images (JPG,
GIF, etc).  You either have permission from the crossdomain.xml at
flickr.com or you don't.

 

You can almost always load it, you just can't always access its
pixels.

 





From: flexcoders@yahoogroups.com
[mailto:[EMAIL PROTECTED] On Behalf Of Jurgen Beck
Sent: Friday, May 25, 2007 3:34 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Flickr - Issue with LoaderContext

 

I'm running into security sandbox violation issues trying to
load images 
from a Flickr account.

Since the Image component derives from SWFLoader I am setting
the 
LoaderContext before the image source is assigned. The image
component 
is used inside my custom component, which in turn is used as an 
itemRenderer in a TileList.

Here is the image component code fragment:

mx:Image id=imgThumbnail
source={data.url}
initialize=imageInit() 
width=75 height=75/

Here is my imageInit() method:

private function imageInit():void {
loaderContext = new LoaderContext();
loaderContext.applicationDomain = 
ApplicationDomain.currentDomain;
loaderContext.securityDomain = 
SecurityDomain.currentDomain; 
loaderContext.checkPolicyFile = true;
imgThumbnail.loaderContext = loaderContext;
} 

I've traced through the processes and the LoaderContext is
definitely in 
place before the 

[flexcoders] Re: Jetty with JOTM causes ClassCastException in FDS

2007-05-26 Thread Shailesh Mangal
Adding to this, I found that I can read the data (using Fill()) but as
soon I use createItem(), FDS blows up (giving ClassCastException)

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

 Hi All, 
 
After struggling for a quite a while, I was able to configure Jetty
 with JOTM (to a point where it starts cleanly).
 
 Now I am getting a ClassCast Exception in JNDILookup. Wondering if
 anyone has come across following error (FDS output in Debug mode).
 Same issue is discussed on in decent depth,
 http://tech.groups.yahoo.com/group/flexcoders/message/51486 but no
 concrete solution suggested.  
 
 
 [Flex] Error handling rtmp message: flex.data.DataServiceException:
 Unable to access UserTransaction in DataService.
 incomingMessage: Flex Message (flex.data.messages.DataMessage) 
 operation = transacted
 id = null
 clientId = D9CE4977-870F-8C20-2C39-C6D4DA7BB599
 correlationId = 
 destination = loginService
 messageId = 466A87F6-D404-76D9-361C-C7CE219FDB80
 timestamp = 1180173215095
 timeToLive = 0
 body = 
 [
   Flex Message (flex.data.messages.DataMessage) 
   operation = create_and_sequence
   id = ASObject(10255870){id=1234}
   clientId = 03D24138-E112-748E-2BED-C7CE1F822C65
   correlationId = 466A87F6-D404-76D9-361C-C7CE219FDB80
   destination = loginService
   messageId = 6C4AEB83-B4A2-73F6-5541-C7CE219CF4BB
   timestamp = 0
   timeToLive = 0
   body = [EMAIL PROTECTED]
 ]
 hdr(DSEndpoint) = my-rtmp
 errorReply: Flex Message (flex.messaging.messages.ErrorMessage) 
 clientId = null
 correlationId = 466A87F6-D404-76D9-361C-C7CE219FDB80
 destination = loginService
 messageId = D9CE49A3-790B-1933-0AD6-36F523BDEB89
 timestamp = 1180173215113
 timeToLive = 0
 body = null
 code =  Server.Processing
 message =  Unable to access UserTransaction in DataService.
 details =  null
 rootCause =  java.lang.ClassCastException:
org.objectweb.jotm.Current
 body =  null
 extendedData =  null
 [Flex] cause=java.lang.ClassCastException: org.objectweb.jotm.Current
 type=class java.lang.ClassCastException
 java.lang.ClassCastException: org.objectweb.jotm.Current
 at

flex.data.DataServiceTransaction.doBegin(DataServiceTransaction.java:653)
 at
 flex.data.DataServiceTransaction.begin(DataServiceTransaction.java:624)
 at
 flex.data.DataService.serviceTransactedMessage(DataService.java:474)
 at flex.data.DataService.serviceMessage(DataService.java:241)
 at

flex.messaging.MessageBroker.routeMessageToService(MessageBroker.java:548)
 at

flex.messaging.endpoints.AbstractEndpoint.serviceMessage(AbstractEndpoint.java:302)
 at

flex.messaging.endpoints.rtmp.AbstractRTMPServer.dispatchMessage(AbstractRTMPServer.java:682)
 at

flex.messaging.endpoints.rtmp.NIORTMPConnection$RTMPReader.run(NIORTMPConnection.java:665)
 at

edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:643)
 at

edu.emory.mathcs.backport.java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:668)
 at java.lang.Thread.run(Thread.java:613)





RE: [flexcoders] Re: Include CA certificate in flex for a SSL connection?

2007-05-26 Thread Sterling, Brian
One solution is to proxy the call through your own server.

 

-Brian

 



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of pioplacz
Sent: Friday, May 25, 2007 10:37 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: Include CA certificate in flex for a SSL
connection?

 

So I'm out of luck :( I cannot get the company to upload a
crossdomain.xml on their 
server. Isn't there any way around? 

When I tryed to access the webservice with a missing value I got
response that I miss a 
value but as soon I corrected the problem I get HTTP Error :(

--- In flexcoders@yahoogroups.com mailto:flexcoders%40yahoogroups.com
, Igor Costa [EMAIL PROTECTED] wrote:

 Yes, you need first instance crossdomain.
 
 Throw out your http protocol and set an https server for tunneling the
 webservices.
 for ceritifcation propouses just pass the https url and flex rpc
collection
 understand that is a certification .
 
 Nothing needs more.
 
 ;)
 best
 
 On 5/25/07, pioplacz [EMAIL PROTECTED] wrote:
 
  Hi!
 
  I'm trying to get my flex app to connect with a wsdl service but
that
  service requires that I
  include a CA certificate for validation off connection. My problem
is that
  I don't really know
  how. I've got an example line for a Java Application from the API
  reference:
 
  System.setProperty(javax.net.ssl.trustStore,Path To
istcacert);
 
  Does anyone here know how I can make it all possible?
 
  One more question when trying to connect to a webservice do I really
need
  the
  crossdomain.xml on the data hosting server? Cause that just isn't
  possible.
 
  
 
 
 
 
 -- 
 
 Igor Costa
 www.igorcosta.org
 www.igorcosta.com
 skype: igorpcosta


 



RE: [flexcoders] Re: [cairngorm-devel] Flex HotFix 2 and Cairngorm 2.2

2007-05-26 Thread Matt Chotin
We're going to be adding better update support into Flex Builder 3.
 
Sorry that the hotfix installation is a pain, but not building out more
installers allows us to release them faster and continue on things like
Flex 3.
 
We're not updating the main installs with the hotfixes for now, too much
documentation required :-)
 
Matt



From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of kyle.vanvranken
Sent: Friday, May 25, 2007 11:53 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: [cairngorm-devel] Flex HotFix 2 and Cairngorm
2.2



I feel you on the hotfix installation. It would be nice if you could
just run the update from within eclipse/fb. On a more positive note
whoohoo for fixing some GC issues!

- Kyle



 


[flexcoders] RemoteObject security

2007-05-26 Thread André Rodrigues Pena
hi all,
I'd be glad with any tips on how to secure a RemoteObject in a Tomcat
server. Thanks

-- 
André Rodrigues Pena

LOCUS
www.locus.com.br


[flexcoders] Re: Conditional formatting of tree node labels

2007-05-26 Thread barry.beattie
Ivo, did you find a solution?

the tree controls' labelFunction (instead of labelField) could be
an easy way out to conditionally modify the label's condition0

just a quick suggestion

best'o'luck
barry.b


mx:Tree  width=100% height=100%
dataProvider={questionaire.section}
labelFunction=treeLabel  
change=onTreeNodeSelected(event)
  /


private function treeLabel( item:Object ) : String
{
 var node:XML = XML(item);
 var labelText:String;
 // choose what to use for label
 // TODO: replace hard-coded node name with [if not hasChildren]
 if( node.localName() == question)
 {
labelText = String([EMAIL PROTECTED]);
 }
 else 
 {
labelText = String([EMAIL PROTECTED]);
 }
 if (labelText.length  30) // too long
 {
labelText = labelText.substr(0,30) + ...;
 } 
 return labelText;
}   




[flexcoders] Re: Flex 2 - Using removeChild/addChild to move children with removeEffect/addEf

2007-05-26 Thread jandersen1978
I think I'm having a very similar problem...  I'm visually moving the
child of one component to be placed over another with a Move effect
and then changing the parent from the source component to destination
component in the EffectEvent.EFFECT_END handler.  I'm getting very
similar errors intermittently...  Anyone have ideas?

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

 Hi guys,
 
 I'm trying to add an effect when changing the positioning (order) of
 some GridItems in a GridRow. In my move function, I remove the child,
 and add it back at a different index. This works fine with no effect,
 however if I have a removeEffect and addEffect, I get an error. 
 
 If I comment out the line that adds the child back in, it works (to
 remove the child with the effect).
 
 When it trips the debugger on the error (see stack trace below), it
 thinks that there's one more child than there really is! (one more
 than the total number, not the number after one is removed) I even
 tried calling the addChild in a callLater(), but that didn't work
either.
 
 Any ideas anyone?
 thanks,
 Thunder
 
 RangeError: Error #2006: The supplied index is out of bounds.
 at flash.display::DisplayObjectContainer/getChildAt()
 at

mx.core::Container/getChildAt()[C:\dev\GMC\sdk\frameworks\mx\core\Container.as:2384]
 at

mx.containers.utilityClasses::BoxLayout/measure()[C:\dev\GMC\sdk\frameworks\mx\containers\utilityClasses\BoxLayout.as:88]
 at

mx.containers::Box/mx.containers:Box::measure()[C:\dev\GMC\sdk\frameworks\mx\containers\Box.as:250]
 at

mx.core::UIComponent/mx.core:UIComponent::measureSizes()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:5360]
 at

mx.core::UIComponent/validateSize()[C:\dev\GMC\sdk\frameworks\mx\core\UIComponent.as:5306]





[flexcoders] How to structure states for a number of subtle changes?

2007-05-26 Thread grantdotcox
I am looking for some guidance on how to structure states, for forms
that can have a number of subtle overlapping changes.  For example, a
form to add/edit a simple data type:

mx:Panel title=Edit
  mx:Form
mx:FormItem label=Title:
  mx:TextInput id=titleField/
  mx:Label text=Title error goes here id=titleError/
/mx:FormItem
mx:FormItem label=Type:
  mx:ComboBox id=typeCombo/mx:ComboBox
/mx:FormItem
mx:FormItem label=New Type:
  mx:TextInput id=newTypeField/
/mx:FormItem
mx:FormItem
  mx:Button label=Update id=saveButton/
/mx:FormItem
  /mx:Form
/mx:Panel


This form can either be used to create a new object (panel title
Create New, button title Save), or edit an existing object (panel
title Edit, button title Update).
The newTypeField should only show if create_new was selected in
the typeCombo.
When the saveButton is clicked, the button should be disabled and
its title should change to Processing
If the save succeeds, the form should be replaced with a success message.
If the save fails, then an appropriate error message should appear
next to the invalid fields (ie the title error could be Please
provide a title, Title should be alphanumeric characters only, 
Title already taken, please choose another etc).  All fields may
have an error message, and I only want the error text to show (and
take up any space) if there is an error.


Can this be done with states?  Most of these options are not exclusive
- they could happen regardless of any of the other state changes.
If not with states, how would you recommend it be done?