Hello.
I'm working with felx, flamingo, and seam, but I need to know how to access a property within a property.
For example:
@Name("myObject")
@Scope(ScopeType.CONVERSATION)
public class MyObject{
private List<String> lista;
@Create
public void init(){
lista=new List<String>();
for(int i=0;i<10;i++){
lista.add("Element "+i);
}
}
public List<String> getLista(){
return lista;
}
public void setLista(List<String> lista){
return this.lista=lista;
}
}
mxml:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml" xmlns:flamingo="com.exadel.flamingo.flex.components.flamingo.*" >
<mx:Script>
public function listado():void{
serviceMyObject.getLista();
}
</mx:Script>
<flamingo:SeamRemoteObject id="serviceMyObject" destination="myObject" >
<flamingo:SeamOperation name="getLista"/>
</flamingo:SeamRemoteObject >
.........................
</mx:Application >
How I can access the getLista().remove(2) ?

You could create a method on
You could create a method on MyObject:
public void removeFromList (int index) {
getLista().remove(index);
}
RE: You could create a method on
Sorry but there is no other way, because that was my last option. Is that many features to be doing that at all
I don't think I understand
I don't think I understand your answer.
RE: I don't think I understand
There is no other option? Because there are many methods, that I need.
For example:
myObject.getMyChildrenObject().getName()
SPANISH:
No hay otra opcion? Es que necesito muchos metodos y me parece innecesario generar tantos.
Por ejemplo:
myObject.getMyChildrenObject().getName()
Thanks
* I'm sorry, my English is not good