Re: BIRT integration

2013-04-11 Thread Peter Courcoux
Hi,

Birt is a substantial codebase and report generation is often very
resource hungry.

I did have Birt embedded in a tapestry application but many reports took
longer to generate than I wanted my users to wait, so have pushed it out
into a separate cluster, using web services, (CXF) to interface, with
the report stored as a byte array in the db.  The reporting application
is stateless and therefore easy to scale separately. I use a tapestry
StreamResponse to serve the report from the db. I am pleased with this
solution, it seems to work well.

When it was embedded, I followed the advice for embedding both the
report and design engines within an application, that resides in the
Birt documentation and made the services Tapestry services defined in
the AppModule class. It worked as advertised. I just wouldn't do it that
way now for the reason above. The other thing to remember is that being
an eclipse project, it didn't play well with maven, though that may have
improved recently.

Not quite what you were asking but hope it helps.

Regards,

Peter

On 11/04/13 07:51, Ken in Nashua wrote:
> Folks,
>
> Is there a doc or tech help on how to integrate BIRT into my tapestry app?
>
> Thanks in advance.
>
> I havent found anything.
>
> - cheers
>
> Ken
> 


-
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org



Re: Loop Component

2008-07-01 Thread Peter Courcoux

Hi Bill,

Thanks for your help. Yes all the public getters and setters are there. 
I just didn't show them to save space.


I've been assuming that beans that are simply being iterated over do  
not themselves need any annotations, that the annotations are confined 
to the component/page classes. Am I wrong here?


A simple cut and paste of all the properties and getters and setters 
from A to B means it all works again. I'm guessing that there is some 
reflection or cglib magic going on in the depths, but I'm fairly new to 
Tapestry and thought it best to ask... It looks like a bug, but might 
well be a feature. It would be nice to know.


Thanks again.

Would it be appropriate to cross post to the dev list, do you think?

Regards,

Peter


Bill Holloway wrote:

Peter, make sure that the properties in your superclass are either
annotated with @Property or have public getter and setter methods.

Bill

On Tue, Jul 1, 2008 at 11:43 AM, Peter Courcoux <[EMAIL PROTECTED]> wrote:
  

Many thanks for your reply Sven.

However, I think that I didn't explain the problem properly.

If my, much simplified, java class is like this :-


public class comp {

  //note getters/setters/annotations not shown

  private B valueItem;

  private List items = new ArrayList();

  public List getSourceList(){
B item1 = new B();
item1.setEmail("[EMAIL PROTECTED]");
item1.setName("Peter");
List sourceList = new ArrayList();
sourceList.add(item1);
return sourceList;
  }
}

and a comp.tml including :-

  
  
  
  
  

and use a setSelected(...) method  (not shown) to copy a ticked
valueItem to the items list,
then

  in the case of (1)

public class B {
  private String name;
  private String email;
  ...
}

All is fine.


However, if we have the case of (2)


public class A {
  private String name;
  ...
}

public class B extends A {
  private String email;
  ...
}


then the objects in the items list have email correctly set and name ==
null, where both should have been set.

I am using t5.0.13 and java6.

Any pointers/thoughts much appreciated.

Regards,

Peter



Sven Homburg wrote:


the OGNL binding should help you
http://code.google.com/p/tapestry5-components/
http://87.193.218.134:8080/t5components/t5c-commons/howto_ognlbinding.html

2008/6/30 Peter Courcoux <[EMAIL PROTECTED]>:


  

Hi all,

When the loop component sets the value from the iterator, it seems to
miss
properties inherited from a base class.

So if I'm iterating over a set of objects of class B which extends A, I'm
only seeing the properties of B set. All the properties which are
inherited
from A are null.

Am I missing something?

Any pointers much appreciated.

Thanks,

Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]







  



-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Loop Component

2008-07-01 Thread Peter Courcoux

Many thanks for your reply Sven.

However, I think that I didn't explain the problem properly.

If my, much simplified, java class is like this :-


public class comp {

   //note getters/setters/annotations not shown

   private B valueItem;

   private List items = new ArrayList();

   public List getSourceList(){
 B item1 = new B();
 item1.setEmail("[EMAIL PROTECTED]");
 item1.setName("Peter");
 List sourceList = new ArrayList();
 sourceList.add(item1);
 return sourceList;
   }
}

and a comp.tml including :-

   
   
   
   
   

and use a setSelected(...) method  (not shown) to copy a ticked
valueItem to the items list,
then

   in the case of (1)

public class B {
   private String name;
   private String email;
   ...
}

All is fine.


However, if we have the case of (2)


public class A {
   private String name;
   ...
}

public class B extends A {
   private String email;
   ...
}


then the objects in the items list have email correctly set and name ==
null, where both should have been set.

I am using t5.0.13 and java6.

Any pointers/thoughts much appreciated.

Regards,

Peter



Sven Homburg wrote:

the OGNL binding should help you
http://code.google.com/p/tapestry5-components/
http://87.193.218.134:8080/t5components/t5c-commons/howto_ognlbinding.html

2008/6/30 Peter Courcoux <[EMAIL PROTECTED]>:

  

Hi all,

When the loop component sets the value from the iterator, it seems to miss
properties inherited from a base class.

So if I'm iterating over a set of objects of class B which extends A, I'm
only seeing the properties of B set. All the properties which are inherited
from A are null.

Am I missing something?

Any pointers much appreciated.

Thanks,

Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]






  




-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Loop Component

2008-06-30 Thread Peter Courcoux

Hi all,

When the loop component sets the value from the iterator, it seems to 
miss properties inherited from a base class.


So if I'm iterating over a set of objects of class B which extends A, 
I'm only seeing the properties of B set. All the properties which are 
inherited from A are null.


Am I missing something?

Any pointers much appreciated.

Thanks,

Peter

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]