Re: [flexcoders] problem with sample flex application with LCDS

2008-12-10 Thread Brendan Meutzner
The snippet of code you provde for data-management-config.xml... is that
complete?  I work with CF destinations rather than Java, and there is more
information required for CF than I see in your example (ie. adaptor,
channel, etc...).









true


com.company.cfc.lcds.rba.well.rba_well_operationalconditionsAssembler

request

true

false

remote



false

false

false








com.company.model.lcds.rba.well.rba_well_operationalconditionsVO









false

true

false









It sounds like your mapping to hit your Assembler class is incorrect, and
this would be the most likely place where something is in error causing
that.


HTH,


Brendna


On Wed, Dec 10, 2008 at 1:34 AM, shruti shety <[EMAIL PROTECTED]>wrote:

>   Hi
>
> I have a print statement in the "fill" method of the class which extends
> AbstractAssembler.Thats not getting printed on the console.
> I dont get any errors also. When i click on the button the screen just
> refreshes.
>
> Thanks,
> Radhika
>
> --- On *Wed, 12/10/08, Brendan Meutzner <[EMAIL PROTECTED]>* wrote:
>
> From: Brendan Meutzner <[EMAIL PROTECTED]>
> Subject: Re: [flexcoders] problem with sample flex application with LCDS
> To: flexcoders@yahoogroups.com
> Date: Wednesday, December 10, 2008, 12:40 PM
>
>   Can you elaborate a bit on what you mean by "not getting called"?  Where
> is the failure occurring?
>
>
> Brendan
>
>
> On Wed, Dec 10, 2008 at 12:58 AM, shruti shety  yahoo.com<[EMAIL PROTECTED]>
> > wrote:
>
>>   Hi,
>>
>> I am working on a sample application with flex (and LCDS data services)
>> and have been experimenting with directly calling the fill method (extending
>> AbstractAssembler) as a way of poking data into a server-side DB. Every time
>> I try to run my test case fill is not getting called . I'd appreciate any
>> pointers as to where I'm going wrong...
>>
>> I am directly using the lcds-sample. war, in that testdrive-dataservi ce
>> code
>> Sorry for the lengthy code attach.
>>
>> my mxml:
>> 
>> http://www.adobe. com/2006/ 
>> mxml<http://www.adobe.com/2006/mxml>"
>> xmlns="*" backgroundColor="#FF">
>>
>> 
>> 
>> 
>>
>> > height="100%">
>> 
>> 
>> > headerText="Category"/>
>> 
>> 
>> > headerText="Description"/>
>> 
>> 
>>
>> 
>>
>> 
>>
>> ProductAssembler. java extends AbstractAssembler
>>  * *
>>  * *
>>
>> package flex.samples. product;
>>
>> import java.util.List;
>> import java.util.Collectio n;
>> import java.util.Map;
>>
>>
>> import flex.data.assembler s.AbstractAssemb ler;
>>
>> public class ProductAssembler extends AbstractAssembler {
>>
>> public Collection fill(List fillArgs)  {
>>
>> List list = new ArrayList();
>> System.out.println(" in service");
>> return list;
>>
>> }
>>
>>
>>
>> public void createItem(Object item)  {
>>
>> }
>>
>>
>>
>> }
>>
>>  * * * * * *
>> **
>> Product.as
>>
>> package
>> {
>> [Managed]
>> [RemoteClass( alias="flex.samples. product.Product")]
>> public class Product
>> {
>> public function Product()
>> {
>> }
>>
>> public var productId:int;
>>
>> public var name:String;
>>
>> public var description: String;
>>
>> public var image:String;
>>
>> public var category:String;
>>
>> public var price:Number;
>>
>> public var qtyInStock:int;
>>
>> }
>> }
>>  * * * * *
>>
>> package flex.samples. product;
>> import java.io.Serializabl e;
>>
>> public class Product implements Serializable {
>>
>> static final long serialVersionUID = 1038445

Re: [flexcoders] problem with sample flex application with LCDS

2008-12-09 Thread shruti shety
Hi

I have a print statement in the "fill" method of the class which extends 
AbstractAssembler.Thats not getting printed on the console.
I dont get any errors also. When i click on the button the screen just 
refreshes. 

Thanks,
Radhika

--- On Wed, 12/10/08, Brendan Meutzner <[EMAIL PROTECTED]> wrote:
From: Brendan Meutzner <[EMAIL PROTECTED]>
Subject: Re: [flexcoders] problem with sample flex application with LCDS
To: flexcoders@yahoogroups.com
Date: Wednesday, December 10, 2008, 12:40 PM











 Can you elaborate a bit on what you mean by "not getting called"?  
Where is the failure occurring?  

Brendan

On Wed, Dec 10, 2008 at 12:58 AM, shruti shety  wrote:


















Hi,

I am working on a sample application with flex (and LCDS
data services) and have
been experimenting with directly calling the fill method
(extending AbstractAssembler) as a way of poking data into a
server-side DB. Every time I try to run my test case fill is not
getting called . I'd appreciate any pointers as to where I'm going
wrong...

I am directly using the lcds-sample. war, in that testdrive-dataservi ce code 
Sorry for the lengthy code attach.

my mxml:

http://www.adobe. com/2006/ mxml" xmlns="*" 
backgroundColor="#FF">


    
     
    
    
    
    


        
            
            


            
            
            


        
    
    
     
    


ProductAssembler. java extends AbstractAssembler


 * * * *

package flex.samples. product;

import java.util.List;
import java.util.Collectio n;
import java.util.Map;


import flex.data.assembler s.AbstractAssemb ler;



public class ProductAssembler extends AbstractAssembler {

    public Collection fill(List fillArgs)  {

        List list = new ArrayList();    
        System.out.println(" in service");


        return list;
        
    }

    

    public void createItem(Object item)  {
    
    }

    
    
}

 * * * * * * **


Product.as

package
{
    [Managed]
    [RemoteClass( alias="flex.samples. product.Product")]
    public class Product
    {
        public function Product()
        {
        }



        public var productId:int; 

        public var name:String;

        public var description: String;

        public var image:String;

        public var category:String;

        public var price:Number;



        public var qtyInStock:int;

    }
}
 * * * * *

package flex.samples. product;
import java.io.Serializabl e;

public class Product implements Serializable {



    static final long serialVersionUID = 103844514947365244L ;
    
    private int productId;
    private String name;
    private String description;
    private String image;
    private String category;


    private double price;
    private int qtyInStock;
    
    public Product() {
        
    }
    
   
public Product(int productId, String name, String description, String
image, String category, double price, int qtyInStock) {

        this.productId = productId;
        this.name = name;
        this.description = description;
        this.image = image;
        this.category = category;

        this.price = price;

        this.qtyInStock = qtyInStock;
    }

    public String getCategory( ) {
        return category;
    }
    public void setCategory( String category) {
        this.category = category;
    }


    public String getDescription( ) {
        return description;
    }
    public void setDescription( String description) {
        this.description = description;
    }
    public String getImage() {


        return image;
    }
    public void setImage(String image) {
        this.image = image;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {


        this.name = name;
    }
    public double getPrice() {
        return price;
    }
    public void setPrice(double price) {
        this.price = price;

    }

    public int getProductId( ) {
        return productId;
    }
    public void setProductId( int productId) {
        this.productId = productId;
    }
    public int getQtyInStock( ) {
        return qtyInStock;


    }
    public void setQtyInStock( int qtyInStock) {
        this.qtyInStock = qtyInStock;
    }

}
 * * * * * * ***
data-management- config.xml 



 

    
    flex.samples. product.ProductA ssembler
    application



    
    
    

    
    


    
            flex.samples. product.Product
    
    


  
  





















-- 
Brendan Meutzner
http://www.meutzner .com/blog/



  




 

















  

Re: [flexcoders] problem with sample flex application with LCDS

2008-12-09 Thread Brendan Meutzner
 Can you elaborate a bit on what you mean by "not getting called"?  Where is
the failure occurring?

Brendan


On Wed, Dec 10, 2008 at 12:58 AM, shruti shety <[EMAIL PROTECTED]>wrote:

>   Hi,
>
> I am working on a sample application with flex (and LCDS data services) and
> have been experimenting with directly calling the fill method (extending
> AbstractAssembler) as a way of poking data into a server-side DB. Every time
> I try to run my test case fill is not getting called . I'd appreciate any
> pointers as to where I'm going wrong...
>
> I am directly using the lcds-sample.war, in that testdrive-dataservice code
>
> Sorry for the lengthy code attach.
>
> my mxml:
> 
> http://www.adobe.com/2006/mxml"; xmlns="*"
> backgroundColor="#FF">
>
> 
> 
> 
>
>  height="100%">
> 
> 
> 
> 
> 
>  headerText="Description"/>
> 
> 
>
> 
>
> 
>
> ProductAssembler.java extends AbstractAssembler
> 
>
> package flex.samples.product;
>
> import java.util.List;
> import java.util.Collection;
> import java.util.Map;
>
>
> import flex.data.assemblers.AbstractAssembler;
>
> public class ProductAssembler extends AbstractAssembler {
>
> public Collection fill(List fillArgs)  {
>
> List list = new ArrayList();
> System.out.println(" in service");
> return list;
>
> }
>
>
>
> public void createItem(Object item)  {
>
> }
>
>
>
> }
>
> 
> Product.as
>
> package
> {
> [Managed]
> [RemoteClass(alias="flex.samples.product.Product")]
> public class Product
> {
> public function Product()
> {
> }
>
> public var productId:int;
>
> public var name:String;
>
> public var description:String;
>
> public var image:String;
>
> public var category:String;
>
> public var price:Number;
>
> public var qtyInStock:int;
>
> }
> }
> *
>
> package flex.samples.product;
> import java.io.Serializable;
>
> public class Product implements Serializable {
>
> static final long serialVersionUID = 103844514947365244L;
>
> private int productId;
> private String name;
> private String description;
> private String image;
> private String category;
> private double price;
> private int qtyInStock;
>
> public Product() {
>
> }
>
> public Product(int productId, String name, String description, String
> image, String category, double price, int qtyInStock) {
> this.productId = productId;
> this.name = name;
> this.description = description;
> this.image = image;
> this.category = category;
> this.price = price;
> this.qtyInStock = qtyInStock;
> }
>
> public String getCategory() {
> return category;
> }
> public void setCategory(String category) {
> this.category = category;
> }
> public String getDescription() {
> return description;
> }
> public void setDescription(String description) {
> this.description = description;
> }
> public String getImage() {
> return image;
> }
> public void setImage(String image) {
> this.image = image;
> }
> public String getName() {
> return name;
> }
> public void setName(String name) {
> this.name = name;
> }
> public double getPrice() {
> return price;
> }
> public void setPrice(double price) {
> this.price = price;
> }
> public int getProductId() {
> return productId;
> }
> public void setProductId(int productId) {
> this.productId = productId;
> }
> public int getQtyInStock() {
> return qtyInStock;
> }
> public void setQtyInStock(int qtyInStock) {
> this.qtyInStock = qtyInStock;
> }
>
> }
> *
> data-management-config.xml
>
>  
>
> 
> flex.samples.product.ProductAssembler
> application
>
> 
> 
> 
>
> 
> 
> 
> flex.samples.product.Product
> 
> 
>
>  
>



-- 
Brendan Meutzner
http://www.meutzner.com/blog/


[flexcoders] problem with sample flex application with LCDS

2008-12-09 Thread shruti shety
Hi,

I am working on a sample application with flex (and LCDS
data services) and have
been experimenting with directly calling the fill method
(extending AbstractAssembler) as a way of poking data into a
server-side DB. Every time I try to run my test case fill is not
getting called . I'd appreciate any pointers as to where I'm going
wrong...

I am directly using the lcds-sample.war, in that testdrive-dataservice code 
Sorry for the lengthy code attach.

my mxml:

http://www.adobe.com/2006/mxml"; xmlns="*" 
backgroundColor="#FF">

    
     
    
    
    
    

        
            
            

            
            
            

        
    
    
     
    


ProductAssembler.java extends AbstractAssembler



package flex.samples.product;

import java.util.List;
import java.util.Collection;
import java.util.Map;


import flex.data.assemblers.AbstractAssembler;


public class ProductAssembler extends AbstractAssembler {

    public Collection fill(List fillArgs)  {

        List list = new ArrayList();    
        System.out.println(" in service");

        return list;
        
    }

    

    public void createItem(Object item)  {
    
    }

    
    
}



Product.as

package
{
    [Managed]
    [RemoteClass(alias="flex.samples.product.Product")]
    public class Product
    {
        public function Product()
        {
        }


        public var productId:int; 

        public var name:String;

        public var description:String;

        public var image:String;

        public var category:String;

        public var price:Number;


        public var qtyInStock:int;

    }
}
*

package flex.samples.product;
import java.io.Serializable;

public class Product implements Serializable {


    static final long serialVersionUID = 103844514947365244L;
    
    private int productId;
    private String name;
    private String description;
    private String image;
    private String category;

    private double price;
    private int qtyInStock;
    
    public Product() {
        
    }
    
   
public Product(int productId, String name, String description, String
image, String category, double price, int qtyInStock) {

        this.productId = productId;
        this.name = name;
        this.description = description;
        this.image = image;
        this.category = category;
        this.price = price;

        this.qtyInStock = qtyInStock;
    }

    public String getCategory() {
        return category;
    }
    public void setCategory(String category) {
        this.category = category;
    }

    public String getDescription() {
        return description;
    }
    public void setDescription(String description) {
        this.description = description;
    }
    public String getImage() {

        return image;
    }
    public void setImage(String image) {
        this.image = image;
    }
    public String getName() {
        return name;
    }
    public void setName(String name) {

        this.name = name;
    }
    public double getPrice() {
        return price;
    }
    public void setPrice(double price) {
        this.price = price;
    }

    public int getProductId() {
        return productId;
    }
    public void setProductId(int productId) {
        this.productId = productId;
    }
    public int getQtyInStock() {
        return qtyInStock;

    }
    public void setQtyInStock(int qtyInStock) {
        this.qtyInStock = qtyInStock;
    }

}
*
data-management-config.xml 


 

    
    flex.samples.product.ProductAssembler
    application


    
    
    

    
    

    
            flex.samples.product.Product