[flexcoders] Re: Casual Channel.Call.Failed while using remoteObject

2008-06-18 Thread gene_belor
My problem was caused by the compression filter used in web.xml. As
the result, IE6 could not properly uncompress data to pass it to Flash
Player.


--- In flexcoders@yahoogroups.com, "gene_belor" <[EMAIL PROTECTED]> wrote:
>
> Hi,
> 
> Did you figure out the Channel.Call.Failed problem?
> 
> I get it consistently for only one remote call to Java backend if my
> swf is loaded from IE6. And the same call works fine in IE7 or Firefox.
> 
> Any suggestions on how to troubleshoot this problem in Flex or Java?
> 
> Thanks!
> 
> --- In flexcoders@yahoogroups.com, "saifeng.ji"  wrote:
> >
> > While using remoteObject to interact with java side, casual 
> > fault "Channel.Call.Failed" occurs. If you invoke the remoteObject 
> > again, it does work usually. 
> > 
> > According to my own analysis, flex usually takes milliseconds to
setup 
> > a secure TCP connection, but is probably sufficient for Flash Player 
> > to think that there's no connection and hence throw a FaultEvent.
> > 
> > 
> > One possible solution is recall the method in the faultHandler.
> > But obviously, it's not a good way for complicated application.
> > 
> > 
> > Anybody ever faced to this wild problem?
> > What's possible reason causes this error?
> > And are there any smooth and perfect solution for it?
> > 
> > thanks a lot.
> >
>




[flexcoders] Re: Casual Channel.Call.Failed while using remoteObject

2008-06-12 Thread gene_belor
Hi,

Did you figure out the Channel.Call.Failed problem?

I get it consistently for only one remote call to Java backend if my
swf is loaded from IE6. And the same call works fine in IE7 or Firefox.

Any suggestions on how to troubleshoot this problem in Flex or Java?

Thanks!

--- In flexcoders@yahoogroups.com, "saifeng.ji" <[EMAIL PROTECTED]> wrote:
>
> While using remoteObject to interact with java side, casual 
> fault "Channel.Call.Failed" occurs. If you invoke the remoteObject 
> again, it does work usually. 
> 
> According to my own analysis, flex usually takes milliseconds to setup 
> a secure TCP connection, but is probably sufficient for Flash Player 
> to think that there's no connection and hence throw a FaultEvent.
> 
> 
> One possible solution is recall the method in the faultHandler.
> But obviously, it's not a good way for complicated application.
> 
> 
> Anybody ever faced to this wild problem?
> What's possible reason causes this error?
> And are there any smooth and perfect solution for it?
> 
> thanks a lot.
>




[flexcoders] Re: AdvancedDataGrid ItemRenderer

2008-06-10 Thread gene_belor
override updateDisplayList(..) function and set visibility there as
opposed to in set data(...).



--- In flexcoders@yahoogroups.com, "securenetfreedom" <[EMAIL PROTECTED]> wrote:
>
> I am using an ADG with HierarchicalData to group my data. I am using a
> checkbox item renderer that the user can check to archive the row.
> However, the checkbox is diplaying on every row and I need it to
> display only on the sub-set like below:
> 
> Group | Archive | Title  |
> Group1
> --|-- chk --| Trains |
> --|-- chk --| Planes |
> Group2
> --|-- chk --| Autos  |
> 
> I have tried setting the visibility of the Canvas (the base of the 
> checkbox itemrenderer component) in the creationComplete handler and
> in the 'set data' method of the component which works on the first
> pass, but when scrolling the grid or expanding the nodes, results are
> inconsistent. 
> 
> private var _vis:Boolean;
> // called by creationComplete event
> public function init():void{
>   var nodeName:String = _listData["item"].name();
>   _vis = (nodeName == "item");
>   this.visible = _vis;
> }
> override public function set data(value:Object):void {
> super.data = value;
> chkbox.selected = (value[_dataField] == "true");
> this.visible = _vis;
> }
> 
> Thanks for your input. 
> 
> Jeff
>




[flexcoders] AdvancedDataGrid (DataGrid) Change cell editability at run time

2008-06-09 Thread gene_belor
Hi,

I think the way AdvancedDataGrid (DataGrid) allows cells to be
editable through AdvancedDataGridColumn (DataGridColumn)'s editable
property is restrictive because the property works on the whole column

I was wondering what is the best approach for dynamically changing
whether a cell is editable or not based on a selection in another cell
of the same row. 

For example the following grid:
1) "TYPE" column is a drop down
2) "VALUE" column is editable column
3) "TYPE" column options are "Keep" and "Change"
4) "Keep" option makes associated cell of "VALUE" column non editable
5) "Change" option makes associated cell of "VALUE" column editable
6) As user changes selected option in "TYPE" column, editability of
"VALUE" cells change

TYPE  VALUE
  --
KEEP  1 (non editable)
CHANGE2 (editable)  

Thanks!