RE: T4 to T5 component usage

2012-09-27 Thread Ken in Nashua

Ivan,

Preeviette !!!

Thanks for the generous contribution and good faith. I am excited.
I will give that a shot over the weekend.

Your tech support for tapestry 5 looks good. 

I will be as generous to post my widget when I get it QA'd... going to be some 
weeks though... each month I think i have time and keep getting clobbered with 
interference.

I meant to get this gallery going months ago but been pre-empted.

I will be sure to share when done.

have a great week

KEN
  

Re: BufferedImage in Tapestry

2012-09-27 Thread gonzalomp87
I post the problem on another forum and an user told me that I need put the
contentType for the browser know that is an image.
 

I add this line but doesn`t work yet

public void prepareResponse(Response response) {

response.setHeader("Content-type","image/jpeg");
response.setHeader("Content-Disposition", "inline;filename=" + filename+
((extension == null) ? "" : ("." +extension)));
}



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/BufferedImage-in-Tapestry-tp5714465p5716533.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: BufferedImage in Tapestry

2012-09-27 Thread Lance Java
Some disadvantages worth considering when using data URLs for images:
http://en.wikipedia.org/wiki/Data_URI_scheme#Disadvantages



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/BufferedImage-in-Tapestry-tp5714465p5716529.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: T4 javascript code snippet upgrade to T5 ?

2012-09-27 Thread Thiago H de Paula Figueiredo
On Thu, 27 Sep 2012 10:57:40 -0300, Ken in Nashua   
wrote:



Folks,


Hi!



i have a T4 snippet

HOME.TML


Can this all be remodeled in the TML file ?

or do I have to remodel it in the JAVA ?


Check http://tapestry.apache.org/javascript.html.

--
Thiago H. de Paula Figueiredo

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



Re: Again with the tapestry, hibernate and switching the database

2012-09-27 Thread Thiago H de Paula Figueiredo

On Thu, 27 Sep 2012 09:48:41 -0300, esper  wrote:


You don't have to be sorry, I understand.
Can you please point me in the right direction on where to start reading
about this stuff?


You're already in the right path.


How do I disable hibernate-tapestry module?


Just don't add it to your classpath.


How do I set up hibernate and
tapestry to run independently from one another?


Just use Hibernate just like you weren't using Tapestry. They're  
completely separate and independent from each other.


--

Thiago

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



Re: Again with the tapestry, hibernate and switching the database

2012-09-27 Thread esper
You don't have to be sorry, I understand.
Can you please point me in the right direction on where to start reading
about this stuff?
How do I disable hibernate-tapestry module? How do I set up hibernate and
tapestry to run independently from one another?



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Again-with-the-tapestry-hibernate-and-switching-the-database-tp5716477p5716523.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: Again with the tapestry, hibernate and switching the database

2012-09-27 Thread Thiago H de Paula Figueiredo

On Wed, 26 Sep 2012 03:57:09 -0300, esper  wrote:


Thanks for the reply Taha! It is indeed very useful.
I still find it hard to believe that you can't load/rebuild the entire
different hibernate session with Tapestry. No matter the time it takes.


I'm sorry, but you're completely wrong here. As Taha said,  
tapestry-hibernate doesn't support multiple databases. But you can use  
Tapestry and Hibernate together without using tapestry-hibernate. Tapestry  
itself doesn't mandate how you should use Hibernate (or any other   
framework.



said, I only need those databases to work one at the time.

Somehow I imagined it like this:
- create different hibernate configuration for each database
- create a session helper to execute something like this
sessionFactory = new Configuration().configure().buildSessionFactory();
- load the session object back to tapestry

But, can it be done?


Yes.

--
Thiago

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



Re: BufferedImage in Tapestry

2012-09-27 Thread Giulio Micali
for such kind of jobs, i use the following method:




Returning the entire tag, so I can include it even in ajax responses.

I hope it can be helpful,
Giulio


Re: BufferedImage in Tapestry

2012-09-27 Thread Lance Java
Using firebug or similar, can you inspect the response from the image
request? What headers are included?

Perhaps setting the "Content-Length" header on the image response will help.
This should be the byte count (inputStream.available() or file.length()
etc).



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/BufferedImage-in-Tapestry-tp5714465p5716515.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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



Re: Tapestry & Spring localization

2012-09-27 Thread Lance Java
> why not decorate the org.apache.tapestry5.ioc.Messages interface and why
decorate ComponentMessagesSource
Only services defined in tapestry's IOC registry can be decorated.
ComponentMessagesSource is a service, Messages is not (it's the result of
calling a method on a service).

> is there a good example for me to follow for decorating the interface.
I provided this link in my original response but here it is again
http://tapestry.apache.org/tapestry-ioc-decorators.html



--
View this message in context: 
http://tapestry.1045711.n5.nabble.com/Using-Persist-with-entities-tp5716411p5716514.html
Sent from the Tapestry - User mailing list archive at Nabble.com.

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