Re: [ANNOUNCE] Apache Tapestry 5.4

2016-02-12 Thread Emmanuel Sowah
Basile,

You must be foolish to call me a troll. You folks here at Tapestry fail to
look beyond your small and narrow-minded community. You behave like a sect.
Even your sect leader, Howard Lewis Ship, has recently been enlightened and
have left Tapestry. You guys are now struggling with the pieces he left
behind. You are just fools. It is really insane people are putting Tapestry
into production. Just can't believe that. Because Tapestry is a dead
framework walking.
Guys, how do you justify that the founder of Tapestry, Howard Lewis Ship,
is no more using it but using mainly Wicket in all his recent projects? You
don't need an IQ of Einstein to understand why you also should stop using
Tapestry. Be wise for once and do the right thing. Simply quit Tapestry!

On Thu, Feb 11, 2016 at 9:39 PM, Basile Chandesris  wrote:

> https://wiki.apache.org/tapestry/Tapestry5Trolls
>
>
> Le 11/02/2016 21:25, JT a écrit :
>
>> No wonder itv sucks.
>> On Dec 25, 2015 5:40 PM, "Kalle Korhonen" 
>> wrote:
>>
>> No, T5.4 was still firmly headed by Howard. He created the first T5.4
>>> branch over three years (see for example
>>> http://tapestryjava.blogspot.com/2012/10/zeroing-in-on-tapestry-54.html)
>>> and you can see the results of his mastermind everywhere in the T5.4
>>> code.
>>> I guess you could say it was the first release not finished by Howard.
>>>
>>> Kalle
>>>
>>>
>>> On Thu, Dec 24, 2015 at 10:23 AM, Alex Kotchnev 
>>> wrote:
>>>
>>> Pretty epic, congrats to all who contributed and participated ! Most
 notably, this seems like the first Tapestry release that was not headed

>>> by
>>>
 Howard (of course, I don't have any stats to back that up).

 Cheers - Alex K

 On Tue, Dec 22, 2015 at 8:48 PM, Bob Harner 
 wrote:

 The Apache Tapestry developers are proud to announce that Tapestry 5.4,
> a long-awaited major release, is now available for immediate download:
>
>  http://tapestry.apache.org/download
>
> Tapestry 5.4 represents a tremendous effort by a large number of
> people, and includes almost 200 enhancements and over 300 bug fixes.
> Full details are in the release notes, but here are a few highlights:
>
> * A JavaScript abstraction layer that removes Tapestry's dependence
> on Prototype and lets you swap in jQuery (or potentially other
> JavaScript framewords) instead.
>
> * JavaScript modules based on RequireJS
>
> * A new module, tapestry-webresources, which provides support for
> automatically compiling CoffeeScript into JavaScript and Less into
> CSS, and for minimizing CSS and JavaScript. And, best of all, this
> processing takes place at runtime.
>
> * Greatly improved asset caching based on the checksums of file
> contents, to intelligently cache assets like images and CSS only
> until their content changes.
>
> * The adoption of Bootstrap 3 CSS styling by default, with built-in
> glyphicon support.
>
> ... and many dozens of other significant changes.
>
> Despite all the changes, Tapestry 5.4 is still mostly a drop-in
>
 replacement

> for
> 5.3 users, with the caveat that the adoption of Bootstrap 3 CSS may
>
 require

> some
> CSS tweaks if you're not already using Bootstrap 3.
>
> Please see https://tapestry.apache.org/release-notes-54.html for a
>
 full
>>>
 list of
> changes and upgrade instructions.
>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: [ANNOUNCE] Apache Tapestry 5.4

2016-02-12 Thread Emmanuel Sowah
Thiago,

What do you mean by "non-Howard committers"? Why are you dividing? I
thought there were only 2 groups, committers and non-committers. Stop that
childish act and be brave enough to accept the blame. This release indeed
sucks. Tapestry sucks as a whole. Why waste other people's time to ask them
to contribute to a framework that is dying?


On Mon, Jan 4, 2016 at 2:29 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Tue, 29 Dec 2015 12:28:21 -0200, Barry Books  wrote:
>
> Finished is important.
>>
>
> Indeed. In addition, I think we could say this was the release in which
> non-Howard committers have done the most work so far.
>
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: [ANNOUNCE] Apache Tapestry 5.4

2016-02-12 Thread Carlos Montero Canabal
I have many apps into production with more than 50.000 users and 200.000
page-views at month and Tapestry works very good. I use Tapestry from
5.1.0.5 and it always run fast and I develop projects very easy and
productive.

I haven´t any problem with 5.4.0 version and I think my webapps (flight
search-engine, e-commerce, booking webapp...) have some complex, not only
"hello world".

2016-02-12 10:53 GMT+01:00 Emmanuel Sowah :

> Basile,
>
> You must be foolish to call me a troll. You folks here at Tapestry fail to
> look beyond your small and narrow-minded community. You behave like a sect.
> Even your sect leader, Howard Lewis Ship, has recently been enlightened and
> have left Tapestry. You guys are now struggling with the pieces he left
> behind. You are just fools. It is really insane people are putting Tapestry
> into production. Just can't believe that. Because Tapestry is a dead
> framework walking.
> Guys, how do you justify that the founder of Tapestry, Howard Lewis Ship,
> is no more using it but using mainly Wicket in all his recent projects? You
> don't need an IQ of Einstein to understand why you also should stop using
> Tapestry. Be wise for once and do the right thing. Simply quit Tapestry!
>
> On Thu, Feb 11, 2016 at 9:39 PM, Basile Chandesris  wrote:
>
> > https://wiki.apache.org/tapestry/Tapestry5Trolls
> >
> >
> > Le 11/02/2016 21:25, JT a écrit :
> >
> >> No wonder itv sucks.
> >> On Dec 25, 2015 5:40 PM, "Kalle Korhonen" 
> >> wrote:
> >>
> >> No, T5.4 was still firmly headed by Howard. He created the first T5.4
> >>> branch over three years (see for example
> >>>
> http://tapestryjava.blogspot.com/2012/10/zeroing-in-on-tapestry-54.html)
> >>> and you can see the results of his mastermind everywhere in the T5.4
> >>> code.
> >>> I guess you could say it was the first release not finished by Howard.
> >>>
> >>> Kalle
> >>>
> >>>
> >>> On Thu, Dec 24, 2015 at 10:23 AM, Alex Kotchnev 
> >>> wrote:
> >>>
> >>> Pretty epic, congrats to all who contributed and participated ! Most
>  notably, this seems like the first Tapestry release that was not
> headed
> 
> >>> by
> >>>
>  Howard (of course, I don't have any stats to back that up).
> 
>  Cheers - Alex K
> 
>  On Tue, Dec 22, 2015 at 8:48 PM, Bob Harner 
>  wrote:
> 
>  The Apache Tapestry developers are proud to announce that Tapestry
> 5.4,
> > a long-awaited major release, is now available for immediate
> download:
> >
> >  http://tapestry.apache.org/download
> >
> > Tapestry 5.4 represents a tremendous effort by a large number of
> > people, and includes almost 200 enhancements and over 300 bug fixes.
> > Full details are in the release notes, but here are a few highlights:
> >
> > * A JavaScript abstraction layer that removes Tapestry's dependence
> > on Prototype and lets you swap in jQuery (or potentially other
> > JavaScript framewords) instead.
> >
> > * JavaScript modules based on RequireJS
> >
> > * A new module, tapestry-webresources, which provides support for
> > automatically compiling CoffeeScript into JavaScript and Less into
> > CSS, and for minimizing CSS and JavaScript. And, best of all, this
> > processing takes place at runtime.
> >
> > * Greatly improved asset caching based on the checksums of file
> > contents, to intelligently cache assets like images and CSS only
> > until their content changes.
> >
> > * The adoption of Bootstrap 3 CSS styling by default, with built-in
> > glyphicon support.
> >
> > ... and many dozens of other significant changes.
> >
> > Despite all the changes, Tapestry 5.4 is still mostly a drop-in
> >
>  replacement
> 
> > for
> > 5.3 users, with the caveat that the adoption of Bootstrap 3 CSS may
> >
>  require
> 
> > some
> > CSS tweaks if you're not already using Bootstrap 3.
> >
> > Please see https://tapestry.apache.org/release-notes-54.html for a
> >
>  full
> >>>
>  list of
> > changes and upgrade instructions.
> >
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>


Re: [ANNOUNCE] Apache Tapestry 5.4

2016-02-12 Thread Dimitris Zenios
I have been using tapestry 5 in more than 10 complex web applications with
with no problem at all.Never had problems upgrading from one version to
another except some minor changes.

Its one of the best Java web frameworks I have ever used.

On Fri, Feb 12, 2016 at 12:51 PM, Carlos Montero Canabal <
carlosmonterocana...@gmail.com> wrote:

> I have many apps into production with more than 50.000 users and 200.000
> page-views at month and Tapestry works very good. I use Tapestry from
> 5.1.0.5 and it always run fast and I develop projects very easy and
> productive.
>
> I haven´t any problem with 5.4.0 version and I think my webapps (flight
> search-engine, e-commerce, booking webapp...) have some complex, not only
> "hello world".
>
> 2016-02-12 10:53 GMT+01:00 Emmanuel Sowah :
>
> > Basile,
> >
> > You must be foolish to call me a troll. You folks here at Tapestry fail
> to
> > look beyond your small and narrow-minded community. You behave like a
> sect.
> > Even your sect leader, Howard Lewis Ship, has recently been enlightened
> and
> > have left Tapestry. You guys are now struggling with the pieces he left
> > behind. You are just fools. It is really insane people are putting
> Tapestry
> > into production. Just can't believe that. Because Tapestry is a dead
> > framework walking.
> > Guys, how do you justify that the founder of Tapestry, Howard Lewis Ship,
> > is no more using it but using mainly Wicket in all his recent projects?
> You
> > don't need an IQ of Einstein to understand why you also should stop using
> > Tapestry. Be wise for once and do the right thing. Simply quit Tapestry!
> >
> > On Thu, Feb 11, 2016 at 9:39 PM, Basile Chandesris 
> wrote:
> >
> > > https://wiki.apache.org/tapestry/Tapestry5Trolls
> > >
> > >
> > > Le 11/02/2016 21:25, JT a écrit :
> > >
> > >> No wonder itv sucks.
> > >> On Dec 25, 2015 5:40 PM, "Kalle Korhonen"  >
> > >> wrote:
> > >>
> > >> No, T5.4 was still firmly headed by Howard. He created the first T5.4
> > >>> branch over three years (see for example
> > >>>
> > http://tapestryjava.blogspot.com/2012/10/zeroing-in-on-tapestry-54.html)
> > >>> and you can see the results of his mastermind everywhere in the T5.4
> > >>> code.
> > >>> I guess you could say it was the first release not finished by
> Howard.
> > >>>
> > >>> Kalle
> > >>>
> > >>>
> > >>> On Thu, Dec 24, 2015 at 10:23 AM, Alex Kotchnev 
> > >>> wrote:
> > >>>
> > >>> Pretty epic, congrats to all who contributed and participated ! Most
> >  notably, this seems like the first Tapestry release that was not
> > headed
> > 
> > >>> by
> > >>>
> >  Howard (of course, I don't have any stats to back that up).
> > 
> >  Cheers - Alex K
> > 
> >  On Tue, Dec 22, 2015 at 8:48 PM, Bob Harner 
> >  wrote:
> > 
> >  The Apache Tapestry developers are proud to announce that Tapestry
> > 5.4,
> > > a long-awaited major release, is now available for immediate
> > download:
> > >
> > >  http://tapestry.apache.org/download
> > >
> > > Tapestry 5.4 represents a tremendous effort by a large number of
> > > people, and includes almost 200 enhancements and over 300 bug
> fixes.
> > > Full details are in the release notes, but here are a few
> highlights:
> > >
> > > * A JavaScript abstraction layer that removes Tapestry's dependence
> > > on Prototype and lets you swap in jQuery (or potentially other
> > > JavaScript framewords) instead.
> > >
> > > * JavaScript modules based on RequireJS
> > >
> > > * A new module, tapestry-webresources, which provides support for
> > > automatically compiling CoffeeScript into JavaScript and Less into
> > > CSS, and for minimizing CSS and JavaScript. And, best of all, this
> > > processing takes place at runtime.
> > >
> > > * Greatly improved asset caching based on the checksums of file
> > > contents, to intelligently cache assets like images and CSS only
> > > until their content changes.
> > >
> > > * The adoption of Bootstrap 3 CSS styling by default, with built-in
> > > glyphicon support.
> > >
> > > ... and many dozens of other significant changes.
> > >
> > > Despite all the changes, Tapestry 5.4 is still mostly a drop-in
> > >
> >  replacement
> > 
> > > for
> > > 5.3 users, with the caveat that the adoption of Bootstrap 3 CSS may
> > >
> >  require
> > 
> > > some
> > > CSS tweaks if you're not already using Bootstrap 3.
> > >
> > > Please see https://tapestry.apache.org/release-notes-54.html for a
> > >
> >  full
> > >>>
> >  list of
> > > changes and upgrade instructions.
> > >
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > > For 

Re: [ANNOUNCE] Apache Tapestry 5.4

2016-02-12 Thread Thiago H de Paula Figueiredo
On Fri, 12 Feb 2016 07:53:04 -0200, Emmanuel Sowah   
wrote:



Guys, how do you justify that the founder of Tapestry, Howard Lewis Ship,
is no more using it but using mainly Wicket in all his recent projects?


I wish we had some high-quality trolls (the ones who make hard, insightful  
questions) instead of this very low-quality one who keeps saying something  
which is very easily proven wrong:  
http://tapestryjava.blogspot.com.br/2015/08/seeking-new-clojure-engagment.html.


--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

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



Re: [ANNOUNCE] Apache Tapestry 5.4

2016-02-12 Thread Thiago H de Paula Figueiredo
On Fri, 12 Feb 2016 08:00:36 -0200, Emmanuel Sowah   
wrote:



Thiago,


Hello, low-quality troll!


What do you mean by "non-Howard committers"? Why are you dividing? I
thought there were only 2 groups, committers and non-committers.


Tapestry is sometimes accused of being a one-man show, and this release  
once more proves this is false.



Stop that childish act and be brave enough to accept the blame.


Trolling is childish. Writing open-source software isn't.


This release indeed
sucks. Tapestry sucks as a whole. Why waste other people's time to ask  
them to contribute to a framework that is dying?


Why do you waste time trolling here and spreading lies, such as Howard  
using Wicket? If you took a look at his blog or LinkedIn profile and  
wasn't a stupid troll, you'd notice he's not using Java anymore, and guess  
what language Wicket is written . . .


--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

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



Re: [ANNOUNCE] Apache Tapestry 5.4

2016-02-12 Thread Bob Harner
You have to give our troll some credit... Low quality, sure, but at least
he's consistent! He's been spewing the same nonsense on this mailing list
for about 10 years now. https://wiki.apache.org/tapestry/Tapestry5Trolls
On Feb 12, 2016 7:18 AM, "Thiago H de Paula Figueiredo" 
wrote:

> On Fri, 12 Feb 2016 07:53:04 -0200, Emmanuel Sowah 
> wrote:
>
> Guys, how do you justify that the founder of Tapestry, Howard Lewis Ship,
>> is no more using it but using mainly Wicket in all his recent projects?
>>
>
> I wish we had some high-quality trolls (the ones who make hard, insightful
> questions) instead of this very low-quality one who keeps saying something
> which is very easily proven wrong:
> http://tapestryjava.blogspot.com.br/2015/08/seeking-new-clojure-engagment.html
> .
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: [ANNOUNCE] Apache Tapestry 5.4

2016-02-12 Thread JT
Consistent my ass.
On Feb 12, 2016 4:53 AM, "Emmanuel Sowah"  wrote:

> Basile,
>
> You must be foolish to call me a troll. You folks here at Tapestry fail to
> look beyond your small and narrow-minded community. You behave like a sect.
> Even your sect leader, Howard Lewis Ship, has recently been enlightened and
> have left Tapestry. You guys are now struggling with the pieces he left
> behind. You are just fools. It is really insane people are putting Tapestry
> into production. Just can't believe that. Because Tapestry is a dead
> framework walking.
> Guys, how do you justify that the founder of Tapestry, Howard Lewis Ship,
> is no more using it but using mainly Wicket in all his recent projects? You
> don't need an IQ of Einstein to understand why you also should stop using
> Tapestry. Be wise for once and do the right thing. Simply quit Tapestry!
>
> On Thu, Feb 11, 2016 at 9:39 PM, Basile Chandesris  wrote:
>
> > https://wiki.apache.org/tapestry/Tapestry5Trolls
> >
> >
> > Le 11/02/2016 21:25, JT a écrit :
> >
> >> No wonder itv sucks.
> >> On Dec 25, 2015 5:40 PM, "Kalle Korhonen" 
> >> wrote:
> >>
> >> No, T5.4 was still firmly headed by Howard. He created the first T5.4
> >>> branch over three years (see for example
> >>>
> http://tapestryjava.blogspot.com/2012/10/zeroing-in-on-tapestry-54.html)
> >>> and you can see the results of his mastermind everywhere in the T5.4
> >>> code.
> >>> I guess you could say it was the first release not finished by Howard.
> >>>
> >>> Kalle
> >>>
> >>>
> >>> On Thu, Dec 24, 2015 at 10:23 AM, Alex Kotchnev 
> >>> wrote:
> >>>
> >>> Pretty epic, congrats to all who contributed and participated ! Most
>  notably, this seems like the first Tapestry release that was not
> headed
> 
> >>> by
> >>>
>  Howard (of course, I don't have any stats to back that up).
> 
>  Cheers - Alex K
> 
>  On Tue, Dec 22, 2015 at 8:48 PM, Bob Harner 
>  wrote:
> 
>  The Apache Tapestry developers are proud to announce that Tapestry
> 5.4,
> > a long-awaited major release, is now available for immediate
> download:
> >
> >  http://tapestry.apache.org/download
> >
> > Tapestry 5.4 represents a tremendous effort by a large number of
> > people, and includes almost 200 enhancements and over 300 bug fixes.
> > Full details are in the release notes, but here are a few highlights:
> >
> > * A JavaScript abstraction layer that removes Tapestry's dependence
> > on Prototype and lets you swap in jQuery (or potentially other
> > JavaScript framewords) instead.
> >
> > * JavaScript modules based on RequireJS
> >
> > * A new module, tapestry-webresources, which provides support for
> > automatically compiling CoffeeScript into JavaScript and Less into
> > CSS, and for minimizing CSS and JavaScript. And, best of all, this
> > processing takes place at runtime.
> >
> > * Greatly improved asset caching based on the checksums of file
> > contents, to intelligently cache assets like images and CSS only
> > until their content changes.
> >
> > * The adoption of Bootstrap 3 CSS styling by default, with built-in
> > glyphicon support.
> >
> > ... and many dozens of other significant changes.
> >
> > Despite all the changes, Tapestry 5.4 is still mostly a drop-in
> >
>  replacement
> 
> > for
> > 5.3 users, with the caveat that the adoption of Bootstrap 3 CSS may
> >
>  require
> 
> > some
> > CSS tweaks if you're not already using Bootstrap 3.
> >
> > Please see https://tapestry.apache.org/release-notes-54.html for a
> >
>  full
> >>>
>  list of
> > changes and upgrade instructions.
> >
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>


Re: Save File Dialog after response building

2016-02-12 Thread h3ph3st0s

Hi,
The thing is that I see the tree of directories and files. That's awesome.
But to download file really, I need to right click and choose the "save 
target as". Then file dialog  pops up and I can download really the 
file to my client disk.
If I don't, the response is getting some how lost in the communication 
since I have error like this:
*Communication with the server failed: TypeError: Unable to get property 
'redirectURL' of undefined or null *


It seems for me that, the StreamResponse expects something as output, 
which in the Jumpstart tutorial is there but I can not see it myself.
On the other hand I need to trigger somehow this file dialog in order to 
allow user choose the folder to leave the file.


Dimitris

On 2016-02-12 16:32, Nathan Quirynen wrote:

You mean the file gets downloaded immediately to some download folder?
I think this is a setting of the used browser where a default location 
has been set opposed to the setting where the browser will always ask 
for the location.

So I'm afraid you don't really have control over this if I am correct.

Nathan

On 12/02/16 15:15, h3ph3st0s wrote:

Hi,

I am new to  Tapestry version 5. where I built a treemodel, which 
presents the files inside the catalog,


/t:value="classificationNode">



t:event="leafSelected" t:context="classificationNode.name" 
t:zone="selectedZone" class="prop:leafClass"

href="#">
${treeNode.label}



${treeNode.label}


/

and by clicking one of the files I build a StreamResponse ( I used 
the snippet from the jumpstart code ( page: 
http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/returntypes1 
)


The function is :

/public Object onLeafSelected(final String classificationId) {
System.out.println(classificationId);
System.out.println(regFile.get(classificationId));
final File file = new File( regFile.get(classificationId) );
return new StreamResponse() {
InputStream inputStream;

@Override
public void prepareResponse(Response response) {
ClassLoader classLoader = 
Thread.currentThread().getContextClassLoader();

try {
inputStream = new FileInputStream(file);
try {
response.setHeader("Content-Length", "" + 
inputStream.available());

}
catch (IOException e) {
// Ignore the exception in this simple example.
}
} catch (FileNotFoundException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}//classLoader.getResourceAsStream(regFile.get(classificationId));

// Set content length to prevent chunking - see
// 
http://tapestry-users.832.n2.nabble.com/Disable-Transfer-Encoding-chunked-from-StreamResponse-td5269662.html#a5269662


}

@Override
public String getContentType() {
return "text/plain";
}

@Override
public InputStream getStream() throws IOException {
return inputStream;
}
};
}/

My problem and my question is how do I present a save-file-dialog 
that will help the user to point the download folder. In order to 
really download the file I must make right-click and then choose 
"save file as..." ?


Thanks in advance





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






Re: Save File Dialog after response building

2016-02-12 Thread Nathan Quirynen

You mean the file gets downloaded immediately to some download folder?
I think this is a setting of the used browser where a default location 
has been set opposed to the setting where the browser will always ask 
for the location.

So I'm afraid you don't really have control over this if I am correct.

Nathan

On 12/02/16 15:15, h3ph3st0s wrote:

Hi,

I am new to  Tapestry version 5. where I built a treemodel, which 
presents the files inside the catalog,


/t:value="classificationNode">



t:event="leafSelected" t:context="classificationNode.name" 
t:zone="selectedZone" class="prop:leafClass"

href="#">
${treeNode.label}



${treeNode.label}


/

and by clicking one of the files I build a StreamResponse ( I used the 
snippet from the jumpstart code ( page: 
http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/returntypes1 
)


The function is :

/public Object onLeafSelected(final String classificationId) {
System.out.println(classificationId);
System.out.println(regFile.get(classificationId));
final File file = new File( regFile.get(classificationId) );
return new StreamResponse() {
InputStream inputStream;

@Override
public void prepareResponse(Response response) {
ClassLoader classLoader = 
Thread.currentThread().getContextClassLoader();

try {
inputStream = new FileInputStream(file);
try {
response.setHeader("Content-Length", "" + 
inputStream.available());

}
catch (IOException e) {
// Ignore the exception in this simple example.
}
} catch (FileNotFoundException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}//classLoader.getResourceAsStream(regFile.get(classificationId));

// Set content length to prevent chunking - see
// 
http://tapestry-users.832.n2.nabble.com/Disable-Transfer-Encoding-chunked-from-StreamResponse-td5269662.html#a5269662


}

@Override
public String getContentType() {
return "text/plain";
}

@Override
public InputStream getStream() throws IOException {
return inputStream;
}
};
}/

My problem and my question is how do I present a save-file-dialog that 
will help the user to point the download folder. In order to really 
download the file I must make right-click and then choose "save file 
as..." ?


Thanks in advance





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



Save File Dialog after response building

2016-02-12 Thread h3ph3st0s

Hi,

I am new to  Tapestry version 5. where I built a treemodel, which 
presents the files inside the catalog,


/t:value="classificationNode">



t:event="leafSelected" t:context="classificationNode.name" 
t:zone="selectedZone" class="prop:leafClass"

href="#">
${treeNode.label}



${treeNode.label}


/

and by clicking one of the files I build a StreamResponse ( I used the 
snippet from the jumpstart code ( page: 
http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/returntypes1 
)


The function is :

/public Object onLeafSelected(final String classificationId) {
System.out.println(classificationId);
System.out.println(regFile.get(classificationId));
final File file = new File( regFile.get(classificationId) );
return new StreamResponse() {
InputStream inputStream;

@Override
public void prepareResponse(Response response) {
ClassLoader classLoader = 
Thread.currentThread().getContextClassLoader();

try {
inputStream = new FileInputStream(file);
try {
response.setHeader("Content-Length", "" + 
inputStream.available());

}
catch (IOException e) {
// Ignore the exception in this simple example.
}
} catch (FileNotFoundException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}//classLoader.getResourceAsStream(regFile.get(classificationId));

// Set content length to prevent chunking - see
// 
http://tapestry-users.832.n2.nabble.com/Disable-Transfer-Encoding-chunked-from-StreamResponse-td5269662.html#a5269662


}

@Override
public String getContentType() {
return "text/plain";
}

@Override
public InputStream getStream() throws IOException {
return inputStream;
}
};
}/

My problem and my question is how do I present a save-file-dialog that 
will help the user to point the download folder. In order to really 
download the file I must make right-click and then choose "save file 
as..." ?


Thanks in advance



Re: [ANNOUNCE] Apache Tapestry 5.4

2016-02-12 Thread Ivano Luberti
So you are on this list to help us seeing the light? Aren't you?
Like Jesus came down to earth to enlighten people in Israel and all over
the world.
Thank you !
I hope you don't have to suffer like him on a cross.


Il 12/02/2016 10:53, Emmanuel Sowah ha scritto:
> Basile,
>
> You must be foolish to call me a troll. You folks here at Tapestry fail to
> look beyond your small and narrow-minded community. You behave like a sect.
> Even your sect leader, Howard Lewis Ship, has recently been enlightened and
> have left Tapestry. You guys are now struggling with the pieces he left
> behind. You are just fools. It is really insane people are putting Tapestry
> into production. Just can't believe that. Because Tapestry is a dead
> framework walking.
> Guys, how do you justify that the founder of Tapestry, Howard Lewis Ship,
> is no more using it but using mainly Wicket in all his recent projects? You
> don't need an IQ of Einstein to understand why you also should stop using
> Tapestry. Be wise for once and do the right thing. Simply quit Tapestry!
>
> On Thu, Feb 11, 2016 at 9:39 PM, Basile Chandesris  wrote:
>
>> https://wiki.apache.org/tapestry/Tapestry5Trolls
>>
>>
>> Le 11/02/2016 21:25, JT a écrit :
>>
>>> No wonder itv sucks.
>>> On Dec 25, 2015 5:40 PM, "Kalle Korhonen" 
>>> wrote:
>>>
>>> No, T5.4 was still firmly headed by Howard. He created the first T5.4
 branch over three years (see for example
 http://tapestryjava.blogspot.com/2012/10/zeroing-in-on-tapestry-54.html)
 and you can see the results of his mastermind everywhere in the T5.4
 code.
 I guess you could say it was the first release not finished by Howard.

 Kalle


 On Thu, Dec 24, 2015 at 10:23 AM, Alex Kotchnev 
 wrote:

 Pretty epic, congrats to all who contributed and participated ! Most
> notably, this seems like the first Tapestry release that was not headed
>
 by

> Howard (of course, I don't have any stats to back that up).
>
> Cheers - Alex K
>
> On Tue, Dec 22, 2015 at 8:48 PM, Bob Harner 
> wrote:
>
> The Apache Tapestry developers are proud to announce that Tapestry 5.4,
>> a long-awaited major release, is now available for immediate download:
>>
>>  http://tapestry.apache.org/download
>>
>> Tapestry 5.4 represents a tremendous effort by a large number of
>> people, and includes almost 200 enhancements and over 300 bug fixes.
>> Full details are in the release notes, but here are a few highlights:
>>
>> * A JavaScript abstraction layer that removes Tapestry's dependence
>> on Prototype and lets you swap in jQuery (or potentially other
>> JavaScript framewords) instead.
>>
>> * JavaScript modules based on RequireJS
>>
>> * A new module, tapestry-webresources, which provides support for
>> automatically compiling CoffeeScript into JavaScript and Less into
>> CSS, and for minimizing CSS and JavaScript. And, best of all, this
>> processing takes place at runtime.
>>
>> * Greatly improved asset caching based on the checksums of file
>> contents, to intelligently cache assets like images and CSS only
>> until their content changes.
>>
>> * The adoption of Bootstrap 3 CSS styling by default, with built-in
>> glyphicon support.
>>
>> ... and many dozens of other significant changes.
>>
>> Despite all the changes, Tapestry 5.4 is still mostly a drop-in
>>
> replacement
>
>> for
>> 5.3 users, with the caveat that the adoption of Bootstrap 3 CSS may
>>
> require
>
>> some
>> CSS tweaks if you're not already using Bootstrap 3.
>>
>> Please see https://tapestry.apache.org/release-notes-54.html for a
>>
> full
> list of
>> changes and upgrade instructions.
>>
>>
>> -
>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>
>>

-- 
==
dott. Ivano Mario Luberti
Archimede Informatica societa' cooperativa a r. l.
Sede Operativa
Via Gereschi 36 - 56126- Pisa
tel.: +39-050- 580959
tel/fax: +39-050-8932061
web: www.archicoop.it
==


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



Re: [ANNOUNCE] Apache Tapestry 5.4

2016-02-12 Thread Thiago H de Paula Figueiredo
On Fri, 12 Feb 2016 14:09:18 -0200, Emmanuel Sowah   
wrote:



Yes, Thiago, that link is an evidence that Mr. Ship has abandoned his own
Ship.


I have to admit this pun was mildly amusing, even if a little bit obvious.  
I love puns. :)



And as for you comment about Wicket, Thiago, Howard of course won't admit
it publicly that he is using Wicket. I know a client where Howard used
Wicket to implement their presentation layer. Contact me privately and I
would share with you that Howard's secret.


My e-mail address is already present in this thread. Just send me. If you  
don't, which of course is what will happen, then



Thiago, how many more weeks or  months left for you also to abandon
Tapestry?


My estimate is around at least 160 weeks, probably more. Tapestry is  
addictive! :D


By the way, answering too low-quality, repetitive, uninspired trolling  
already got old for me.


--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

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



Re: [ANNOUNCE] Apache Tapestry 5.4

2016-02-12 Thread Thiago H de Paula Figueiredo

On Fri, 12 Feb 2016 14:52:15 -0200, JT  wrote:


He does not even answer our questions. Of course he's gone! Shame on him.
Leaving us behind! Crappy release.


Talking about me, JT?

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

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




Re: [ANNOUNCE] Apache Tapestry 5.4

2016-02-12 Thread JT
Not. Not only you. But everyone who broke google app engine feature!
On Feb 12, 2016 11:50 AM, "Thiago H de Paula Figueiredo" 
wrote:

> On Fri, 12 Feb 2016 14:09:18 -0200, Emmanuel Sowah 
> wrote:
>
> Yes, Thiago, that link is an evidence that Mr. Ship has abandoned his own
>> Ship.
>>
>
> I have to admit this pun was mildly amusing, even if a little bit obvious.
> I love puns. :)
>
> And as for you comment about Wicket, Thiago, Howard of course won't admit
>> it publicly that he is using Wicket. I know a client where Howard used
>> Wicket to implement their presentation layer. Contact me privately and I
>> would share with you that Howard's secret.
>>
>
> My e-mail address is already present in this thread. Just send me. If you
> don't, which of course is what will happen, then
>
> Thiago, how many more weeks or  months left for you also to abandon
>> Tapestry?
>>
>
> My estimate is around at least 160 weeks, probably more. Tapestry is
> addictive! :D
>
> By the way, answering too low-quality, repetitive, uninspired trolling
> already got old for me.
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: [ANNOUNCE] Apache Tapestry 5.4

2016-02-12 Thread JT
He does not even answer our questions. Of course he's gone! Shame on him.
Leaving us behind! Crappy release.
On Feb 12, 2016 11:50 AM, "Thiago H de Paula Figueiredo" 
wrote:

> On Fri, 12 Feb 2016 14:09:18 -0200, Emmanuel Sowah 
> wrote:
>
> Yes, Thiago, that link is an evidence that Mr. Ship has abandoned his own
>> Ship.
>>
>
> I have to admit this pun was mildly amusing, even if a little bit obvious.
> I love puns. :)
>
> And as for you comment about Wicket, Thiago, Howard of course won't admit
>> it publicly that he is using Wicket. I know a client where Howard used
>> Wicket to implement their presentation layer. Contact me privately and I
>> would share with you that Howard's secret.
>>
>
> My e-mail address is already present in this thread. Just send me. If you
> don't, which of course is what will happen, then
>
> Thiago, how many more weeks or  months left for you also to abandon
>> Tapestry?
>>
>
> My estimate is around at least 160 weeks, probably more. Tapestry is
> addictive! :D
>
> By the way, answering too low-quality, repetitive, uninspired trolling
> already got old for me.
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: [ANNOUNCE] Apache Tapestry 5.4

2016-02-12 Thread JT
No we don't. If it works then it's good. Because no reply from anyone about
our issue.
On Feb 12, 2016 11:58 AM, "Thiago H de Paula Figueiredo" 
wrote:

> On Fri, 12 Feb 2016 14:54:21 -0200, JT  wrote:
>
> Not. Not only you. But everyone who broke google app engine feature!
>>
>
> Did you file a JIRA ticket about it? Did you notice your question had
> already been answered by Jon Williams, who said he has a working T65.4
> application running in Google App Engine?
>
> On Feb 12, 2016 11:50 AM, "Thiago H de Paula Figueiredo" <
>> thiag...@gmail.com>
>> wrote:
>>
>> On Fri, 12 Feb 2016 14:09:18 -0200, Emmanuel Sowah 
>>> wrote:
>>>
>>> Yes, Thiago, that link is an evidence that Mr. Ship has abandoned his own
>>>
 Ship.


>>> I have to admit this pun was mildly amusing, even if a little bit
>>> obvious.
>>> I love puns. :)
>>>
>>> And as for you comment about Wicket, Thiago, Howard of course won't admit
>>>
 it publicly that he is using Wicket. I know a client where Howard used
 Wicket to implement their presentation layer. Contact me privately and I
 would share with you that Howard's secret.


>>> My e-mail address is already present in this thread. Just send me. If you
>>> don't, which of course is what will happen, then
>>>
>>> Thiago, how many more weeks or  months left for you also to abandon
>>>
 Tapestry?


>>> My estimate is around at least 160 weeks, probably more. Tapestry is
>>> addictive! :D
>>>
>>> By the way, answering too low-quality, repetitive, uninspired trolling
>>> already got old for me.
>>>
>>> --
>>> Thiago H. de Paula Figueiredo
>>> Tapestry, Java and Hibernate consultant and developer
>>> http://machina.com.br
>>>
>>> -
>>> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
>>> For additional commands, e-mail: users-h...@tapestry.apache.org
>>>
>>>
>>>
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: [ANNOUNCE] Apache Tapestry 5.4

2016-02-12 Thread Emmanuel Sowah
Hey Bro,

Go spew those bullshit comments to you other Tapestry sect members, ok?

On Fri, Feb 12, 2016 at 4:15 PM, Ivano Luberti  wrote:

> So you are on this list to help us seeing the light? Aren't you?
> Like Jesus came down to earth to enlighten people in Israel and all over
> the world.
> Thank you !
> I hope you don't have to suffer like him on a cross.
>
>
> Il 12/02/2016 10:53, Emmanuel Sowah ha scritto:
> > Basile,
> >
> > You must be foolish to call me a troll. You folks here at Tapestry fail
> to
> > look beyond your small and narrow-minded community. You behave like a
> sect.
> > Even your sect leader, Howard Lewis Ship, has recently been enlightened
> and
> > have left Tapestry. You guys are now struggling with the pieces he left
> > behind. You are just fools. It is really insane people are putting
> Tapestry
> > into production. Just can't believe that. Because Tapestry is a dead
> > framework walking.
> > Guys, how do you justify that the founder of Tapestry, Howard Lewis Ship,
> > is no more using it but using mainly Wicket in all his recent projects?
> You
> > don't need an IQ of Einstein to understand why you also should stop using
> > Tapestry. Be wise for once and do the right thing. Simply quit Tapestry!
> >
> > On Thu, Feb 11, 2016 at 9:39 PM, Basile Chandesris 
> wrote:
> >
> >> https://wiki.apache.org/tapestry/Tapestry5Trolls
> >>
> >>
> >> Le 11/02/2016 21:25, JT a écrit :
> >>
> >>> No wonder itv sucks.
> >>> On Dec 25, 2015 5:40 PM, "Kalle Korhonen" 
> >>> wrote:
> >>>
> >>> No, T5.4 was still firmly headed by Howard. He created the first T5.4
>  branch over three years (see for example
> 
> http://tapestryjava.blogspot.com/2012/10/zeroing-in-on-tapestry-54.html)
>  and you can see the results of his mastermind everywhere in the T5.4
>  code.
>  I guess you could say it was the first release not finished by Howard.
> 
>  Kalle
> 
> 
>  On Thu, Dec 24, 2015 at 10:23 AM, Alex Kotchnev 
>  wrote:
> 
>  Pretty epic, congrats to all who contributed and participated ! Most
> > notably, this seems like the first Tapestry release that was not
> headed
> >
>  by
> 
> > Howard (of course, I don't have any stats to back that up).
> >
> > Cheers - Alex K
> >
> > On Tue, Dec 22, 2015 at 8:48 PM, Bob Harner 
> > wrote:
> >
> > The Apache Tapestry developers are proud to announce that Tapestry
> 5.4,
> >> a long-awaited major release, is now available for immediate
> download:
> >>
> >>  http://tapestry.apache.org/download
> >>
> >> Tapestry 5.4 represents a tremendous effort by a large number of
> >> people, and includes almost 200 enhancements and over 300 bug fixes.
> >> Full details are in the release notes, but here are a few
> highlights:
> >>
> >> * A JavaScript abstraction layer that removes Tapestry's dependence
> >> on Prototype and lets you swap in jQuery (or potentially other
> >> JavaScript framewords) instead.
> >>
> >> * JavaScript modules based on RequireJS
> >>
> >> * A new module, tapestry-webresources, which provides support for
> >> automatically compiling CoffeeScript into JavaScript and Less into
> >> CSS, and for minimizing CSS and JavaScript. And, best of all, this
> >> processing takes place at runtime.
> >>
> >> * Greatly improved asset caching based on the checksums of file
> >> contents, to intelligently cache assets like images and CSS only
> >> until their content changes.
> >>
> >> * The adoption of Bootstrap 3 CSS styling by default, with built-in
> >> glyphicon support.
> >>
> >> ... and many dozens of other significant changes.
> >>
> >> Despite all the changes, Tapestry 5.4 is still mostly a drop-in
> >>
> > replacement
> >
> >> for
> >> 5.3 users, with the caveat that the adoption of Bootstrap 3 CSS may
> >>
> > require
> >
> >> some
> >> CSS tweaks if you're not already using Bootstrap 3.
> >>
> >> Please see https://tapestry.apache.org/release-notes-54.html for a
> >>
> > full
> > list of
> >> changes and upgrade instructions.
> >>
> >>
> >> -
> >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> >> For additional commands, e-mail: users-h...@tapestry.apache.org
> >>
> >>
>
> --
> ==
> dott. Ivano Mario Luberti
> Archimede Informatica societa' cooperativa a r. l.
> Sede Operativa
> Via Gereschi 36 - 56126- Pisa
> tel.: +39-050- 580959
> tel/fax: +39-050-8932061
> web: www.archicoop.it
> ==
>
>
> -
> To unsubscribe, 

Re: [ANNOUNCE] Apache Tapestry 5.4

2016-02-12 Thread Emmanuel Sowah
Yes, Thiago, that link is an evidence that Mr. Ship has abandoned his own
Ship. He has let you all down. For those who are using Tapestry in
production, pull them down ASAP and rewrite them in another best of breed
framework like Wicket. That, Mr. Ship has left, is a clear evidence that
Tapestry would die very soon. It was already a dying framework. Let's get
the coffin ready to bury that losers framework.
And as for you comment about Wicket, Thiago, Howard of course won't admit
it publicly that he is using Wicket. I know a client where Howard used
Wicket to implement their presentation layer. Contact me privately and I
would share with you that Howard's secret.

Thiago, how many more weeks or  months left for you also to abandon
Tapestry?

On Fri, Feb 12, 2016 at 1:18 PM, Thiago H de Paula Figueiredo <
thiag...@gmail.com> wrote:

> On Fri, 12 Feb 2016 07:53:04 -0200, Emmanuel Sowah 
> wrote:
>
> Guys, how do you justify that the founder of Tapestry, Howard Lewis Ship,
>> is no more using it but using mainly Wicket in all his recent projects?
>>
>
> I wish we had some high-quality trolls (the ones who make hard, insightful
> questions) instead of this very low-quality one who keeps saying something
> which is very easily proven wrong:
> http://tapestryjava.blogspot.com.br/2015/08/seeking-new-clojure-engagment.html
> .
>
> --
> Thiago H. de Paula Figueiredo
> Tapestry, Java and Hibernate consultant and developer
> http://machina.com.br
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Tapestry is a sinking Ship

2016-02-12 Thread joe schacher
and if we don't what are you gonna do about it

On Fri, Feb 12, 2016 at 2:19 PM, Emmanuel Sowah  wrote:

> Hi Tapestry sect,
>
> The state of Tapestry now is very bad, as Howard and all the other
> commiters have abandoned it. Tapestry is now a sinking ship, and Mr Ship
> himself has abandoned this sinking ship.
> Over the years, I have been predicting the fall of Tapestry. Because I saw
> early on that the framework is seriously flawed, techically, and therefore
> would die.  Finally those days are now numbered. Some listened and left to
> better frameworks like Wicket. Even Howard used Wicket many times on his
> clients projects. Others didn't. And I really feel sorry for them.
> The ship is sinking fast. And the founder himself, the wildly bearded Mr.
> Ship, has ran off board. My advice to you all is quit now before the ship
> drowns. Migrate to Wicket or AngularJS. Even Thiago has secretly abandoned
> Tapestry. Quit this Tapestry sect NOW!
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Tapestry is a sinking Ship

2016-02-12 Thread JT
We did. To angularjs and react.
On Feb 12, 2016 2:19 PM, "Emmanuel Sowah"  wrote:

> Hi Tapestry sect,
>
> The state of Tapestry now is very bad, as Howard and all the other
> commiters have abandoned it. Tapestry is now a sinking ship, and Mr Ship
> himself has abandoned this sinking ship.
> Over the years, I have been predicting the fall of Tapestry. Because I saw
> early on that the framework is seriously flawed, techically, and therefore
> would die.  Finally those days are now numbered. Some listened and left to
> better frameworks like Wicket. Even Howard used Wicket many times on his
> clients projects. Others didn't. And I really feel sorry for them.
> The ship is sinking fast. And the founder himself, the wildly bearded Mr.
> Ship, has ran off board. My advice to you all is quit now before the ship
> drowns. Migrate to Wicket or AngularJS. Even Thiago has secretly abandoned
> Tapestry. Quit this Tapestry sect NOW!
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Tapestry is a sinking Ship

2016-02-12 Thread joe schacher
ok then.

On Fri, Feb 12, 2016 at 2:55 PM, JT  wrote:

> We did. To angularjs and react.
> On Feb 12, 2016 2:19 PM, "Emmanuel Sowah"  wrote:
>
> > Hi Tapestry sect,
> >
> > The state of Tapestry now is very bad, as Howard and all the other
> > commiters have abandoned it. Tapestry is now a sinking ship, and Mr Ship
> > himself has abandoned this sinking ship.
> > Over the years, I have been predicting the fall of Tapestry. Because I
> saw
> > early on that the framework is seriously flawed, techically, and
> therefore
> > would die.  Finally those days are now numbered. Some listened and left
> to
> > better frameworks like Wicket. Even Howard used Wicket many times on his
> > clients projects. Others didn't. And I really feel sorry for them.
> > The ship is sinking fast. And the founder himself, the wildly bearded Mr.
> > Ship, has ran off board. My advice to you all is quit now before the ship
> > drowns. Migrate to Wicket or AngularJS. Even Thiago has secretly
> abandoned
> > Tapestry. Quit this Tapestry sect NOW!
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>


Re: Tapestry is a sinking Ship

2016-02-12 Thread JT
Not dead, yet but soon.
On Feb 12, 2016 5:07 PM, "Stephen Nutbrown"  wrote:

> The only reason you email the Tapestry users group is because Tapestry
> Users has many subscribers.
>
> The only reason Tapestery Users has many subscribers is because Tapestry is
> not dead.
>
>
>
> On 12 February 2016 at 22:00, David Taylor 
> wrote:
>
> > If Tapestry is so terrible, why waste all the energy? Just to be
> obnoxious?
> >
> > We would abandon Tapestry tomorrow if it weren't so bloody fast and easy
> > to extend.
> >
> >
> > emailsig On 2/12/2016 3:53 PM, Thiago H de Paula Figueiredo wrote:
> >
> >> On Fri, 12 Feb 2016 17:19:28 -0200, Emmanuel Sowah 
> >> wrote:
> >>
> >> Hi Tapestry sect,
> >>>
> >>
> >>
> >> The state of Tapestry now is very bad, as Howard and all the other
> >>> commiters have abandoned it.
> >>>
> >>
> >> This is not true. Just check Jira and the Git logs.
> >>
> >> Even Thiago has secretly abandoned Tapestry.
> >>>
> >>
> >> I have not, and you're telling a lie.
> >>
> >> I'm just answering this troll because of the lies he keeps on spreading,
> >> which are bordering on defamation.
> >>
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>


Re: Tapestry is a sinking Ship

2016-02-12 Thread joe schacher
i still know what he/she is gonna do about it.

On Fri, Feb 12, 2016 at 5:07 PM, Stephen Nutbrown 
wrote:

> The only reason you email the Tapestry users group is because Tapestry
> Users has many subscribers.
>
> The only reason Tapestery Users has many subscribers is because Tapestry is
> not dead.
>
>
>
> On 12 February 2016 at 22:00, David Taylor 
> wrote:
>
> > If Tapestry is so terrible, why waste all the energy? Just to be
> obnoxious?
> >
> > We would abandon Tapestry tomorrow if it weren't so bloody fast and easy
> > to extend.
> >
> >
> > emailsig On 2/12/2016 3:53 PM, Thiago H de Paula Figueiredo wrote:
> >
> >> On Fri, 12 Feb 2016 17:19:28 -0200, Emmanuel Sowah 
> >> wrote:
> >>
> >> Hi Tapestry sect,
> >>>
> >>
> >>
> >> The state of Tapestry now is very bad, as Howard and all the other
> >>> commiters have abandoned it.
> >>>
> >>
> >> This is not true. Just check Jira and the Git logs.
> >>
> >> Even Thiago has secretly abandoned Tapestry.
> >>>
> >>
> >> I have not, and you're telling a lie.
> >>
> >> I'm just answering this troll because of the lies he keeps on spreading,
> >> which are bordering on defamation.
> >>
> >>
> >
> >
> > -
> > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > For additional commands, e-mail: users-h...@tapestry.apache.org
> >
> >
>


Re: Tapestry is a sinking Ship

2016-02-12 Thread Stephen Nutbrown
The only reason you email the Tapestry users group is because Tapestry
Users has many subscribers.

The only reason Tapestery Users has many subscribers is because Tapestry is
not dead.



On 12 February 2016 at 22:00, David Taylor 
wrote:

> If Tapestry is so terrible, why waste all the energy? Just to be obnoxious?
>
> We would abandon Tapestry tomorrow if it weren't so bloody fast and easy
> to extend.
>
>
> emailsig On 2/12/2016 3:53 PM, Thiago H de Paula Figueiredo wrote:
>
>> On Fri, 12 Feb 2016 17:19:28 -0200, Emmanuel Sowah 
>> wrote:
>>
>> Hi Tapestry sect,
>>>
>>
>>
>> The state of Tapestry now is very bad, as Howard and all the other
>>> commiters have abandoned it.
>>>
>>
>> This is not true. Just check Jira and the Git logs.
>>
>> Even Thiago has secretly abandoned Tapestry.
>>>
>>
>> I have not, and you're telling a lie.
>>
>> I'm just answering this troll because of the lies he keeps on spreading,
>> which are bordering on defamation.
>>
>>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


Re: Save File Dialog after response building

2016-02-12 Thread h3ph3st0s
In continuation of my research on the topic I placed one button that 
hardcoded downloads one file. The button is on the form.

So in the function
public boolean activatePage(ComponentResources pageResources, 
EventContext activationContext,
ComponentEventResultProcessor resultProcessor) throws 
IOException

the following line's resultProcessor :
TrackableComponentEventCallback callback = new 
ComponentResultProcessorWrapper(resultProcessor);

is of as eclipse reports:
ComponentEventResultProcessor(org.apache.tapestry5.services.ComponentEventResultProcessor)>


When I try to download a file from the TreeBrowser links the 
resultProcessor eclipse reports :

org.apache.tapestry5.internal.services.AjaxComponentEventRequestHandler$1@427301fe

So...it seems that when I click the link from the TreeBrowser the 
download response is not intercepted as expected. Though I didn't use 
mixin or zonesI don't understand the "ajax" part.


Is it possible someone to know more ?
Dimitris

On 2016-02-12 16:50, h3ph3st0s wrote:

Hi,
The thing is that I see the tree of directories and files. That's 
awesome.
But to download file really, I need to right click and choose the 
"save target as". Then file dialog  pops up and I can download 
really the file to my client disk.
If I don't, the response is getting some how lost in the communication 
since I have error like this:
*Communication with the server failed: TypeError: Unable to get 
property 'redirectURL' of undefined or null *


It seems for me that, the StreamResponse expects something as output, 
which in the Jumpstart tutorial is there but I can not see it myself.
On the other hand I need to trigger somehow this file dialog in order 
to allow user choose the folder to leave the file.


Dimitris

On 2016-02-12 16:32, Nathan Quirynen wrote:

You mean the file gets downloaded immediately to some download folder?
I think this is a setting of the used browser where a default 
location has been set opposed to the setting where the browser will 
always ask for the location.

So I'm afraid you don't really have control over this if I am correct.

Nathan

On 12/02/16 15:15, h3ph3st0s wrote:

Hi,

I am new to  Tapestry version 5. where I built a treemodel, which 
presents the files inside the catalog,


/t:value="classificationNode">



t:event="leafSelected" t:context="classificationNode.name" 
t:zone="selectedZone" class="prop:leafClass"

href="#">
${treeNode.label}



${treeNode.label}


/

and by clicking one of the files I build a StreamResponse ( I used 
the snippet from the jumpstart code ( page: 
http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/returntypes1 
)


The function is :

/public Object onLeafSelected(final String classificationId) {
System.out.println(classificationId);
System.out.println(regFile.get(classificationId));
final File file = new File( regFile.get(classificationId) );
return new StreamResponse() {
InputStream inputStream;

@Override
public void prepareResponse(Response response) {
ClassLoader classLoader = 
Thread.currentThread().getContextClassLoader();

try {
inputStream = new FileInputStream(file);
try {
response.setHeader("Content-Length", "" + 
inputStream.available());

}
catch (IOException e) {
// Ignore the exception in this simple example.
}
} catch (FileNotFoundException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}//classLoader.getResourceAsStream(regFile.get(classificationId));

// Set content length to prevent chunking - see
// 
http://tapestry-users.832.n2.nabble.com/Disable-Transfer-Encoding-chunked-from-StreamResponse-td5269662.html#a5269662


}

@Override
public String getContentType() {
return "text/plain";
}

@Override
public InputStream getStream() throws IOException {
return inputStream;
}
};
}/

My problem and my question is how do I present a save-file-dialog 
that will help the user to point the download folder. In order to 
really download the file I must make right-click and then choose 
"save file as..." ?


Thanks in advance





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

Re: Tapestry is a sinking Ship

2016-02-12 Thread David Taylor

If Tapestry is so terrible, why waste all the energy? Just to be obnoxious?

We would abandon Tapestry tomorrow if it weren't so bloody fast and easy 
to extend.



emailsig On 2/12/2016 3:53 PM, Thiago H de Paula Figueiredo wrote:
On Fri, 12 Feb 2016 17:19:28 -0200, Emmanuel Sowah  
wrote:



Hi Tapestry sect,



The state of Tapestry now is very bad, as Howard and all the other 
commiters have abandoned it.


This is not true. Just check Jira and the Git logs.


Even Thiago has secretly abandoned Tapestry.


I have not, and you're telling a lie.

I'm just answering this troll because of the lies he keeps on 
spreading, which are bordering on defamation.






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



Re: Save File Dialog after response building

2016-02-12 Thread Kalle Korhonen
Yes, so if you respond to an ajax request with a page response, T5 will
send you a json snippet {"redirectURL" : "your.redirect.url"} and handles
redirecting to it from the client. In this case you are responding with a
StreamResponse so T5 gets confused. If you wanted to do an ajax update,
it's totally possible. You just need to move your StreamResponse to a new
page and return (a link to) this page from your event handler. The possible
advantage is that you can have testable download urls for your files, like
/downloadfile/somefile.tmp.

The DownloadFile page would simply contain something like this:

public class DownloadFile {
StreamResponse onActivate(String fileId) throws IOException {
return new StreamResponse() {...}
}
}

Your event handler should return a page object or an URL, check
http://tapestry.apache.org/page-navigation.html for more info.

Kalle



On Fri, Feb 12, 2016 at 1:46 PM, h3ph3st0s  wrote:

> Found the solution. I did have the zone part. So it was really ajax call.
> ( But this is as defined from the tutorial ).
> I removed that and now this works smoothly.
>
> As a case is closed from me. But what if I put back the zone in order to
> update in ajax way the form ?
>
> Best regards, happy to test a very simple framework such as this
>
> On 2016-02-12 16:50, h3ph3st0s wrote:
>
>> Hi,
>> The thing is that I see the tree of directories and files. That's awesome.
>> But to download file really, I need to right click and choose the "save
>> target as". Then file dialog  pops up and I can download really the
>> file to my client disk.
>> If I don't, the response is getting some how lost in the communication
>> since I have error like this:
>> *Communication with the server failed: TypeError: Unable to get property
>> 'redirectURL' of undefined or null *
>>
>> It seems for me that, the StreamResponse expects something as output,
>> which in the Jumpstart tutorial is there but I can not see it myself.
>> On the other hand I need to trigger somehow this file dialog in order to
>> allow user choose the folder to leave the file.
>>
>> Dimitris
>>
>> On 2016-02-12 16:32, Nathan Quirynen wrote:
>>
>>> You mean the file gets downloaded immediately to some download folder?
>>> I think this is a setting of the used browser where a default location
>>> has been set opposed to the setting where the browser will always ask for
>>> the location.
>>> So I'm afraid you don't really have control over this if I am correct.
>>>
>>> Nathan
>>>
>>> On 12/02/16 15:15, h3ph3st0s wrote:
>>>
 Hi,

 I am new to  Tapestry version 5. where I built a treemodel, which
 presents the files inside the catalog,

 />>> t:value="classificationNode">
 
 
 >>> t:event="leafSelected" t:context="classificationNode.name"
 t:zone="selectedZone" class="prop:leafClass"
 href="#">
 ${treeNode.label}
 
 
 
 ${treeNode.label}
 
 
 /

 and by clicking one of the files I build a StreamResponse ( I used the
 snippet from the jumpstart code ( page:
 http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/returntypes1
 )

 The function is :

 /public Object onLeafSelected(final String classificationId) {
 System.out.println(classificationId);
 System.out.println(regFile.get(classificationId));
 final File file = new File( regFile.get(classificationId) );
 return new StreamResponse() {
 InputStream inputStream;

 @Override
 public void prepareResponse(Response response) {
 ClassLoader classLoader =
 Thread.currentThread().getContextClassLoader();
 try {
 inputStream = new FileInputStream(file);
 try {
 response.setHeader("Content-Length", "" +
 inputStream.available());
 }
 catch (IOException e) {
 // Ignore the exception in this simple example.
 }
 } catch (FileNotFoundException e1) {
 // TODO Auto-generated catch block
 e1.printStackTrace();
 }//classLoader.getResourceAsStream(regFile.get(classificationId));

 // Set content length to prevent chunking - see
 //
 http://tapestry-users.832.n2.nabble.com/Disable-Transfer-Encoding-chunked-from-StreamResponse-td5269662.html#a5269662

 }


Re: Tapestry is a sinking Ship

2016-02-12 Thread Thai Tran
still trolling ?!?!? :)))

> On 13 Feb 2016, at 6:19 AM, Emmanuel Sowah  wrote:
> 
> Hi Tapestry sect,
> 
> The state of Tapestry now is very bad, as Howard and all the other commiters 
> have abandoned it. Tapestry is now a sinking ship, and Mr Ship himself has 
> abandoned this sinking ship. 
> Over the years, I have been predicting the fall of Tapestry. Because I saw 
> early on that the framework is seriously flawed, techically, and therefore 
> would die.  Finally those days are now numbered. Some listened and left to 
> better frameworks like Wicket. Even Howard used Wicket many times on his 
> clients projects. Others didn't. And I really feel sorry for them.
> The ship is sinking fast. And the founder himself, the wildly bearded Mr. 
> Ship, has ran off board. My advice to you all is quit now before the ship 
> drowns. Migrate to Wicket or AngularJS. Even Thiago has secretly abandoned 
> Tapestry. Quit this Tapestry sect NOW!
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 

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



Re: Tapestry is a sinking Ship

2016-02-12 Thread Kalle Korhonen
For Eclipse, you want to install Dmitry Gusev's excellent Tapestry plugin
https://github.com/anjlab/eclipse-tapestry5-plugin.

By the way, I agree with your comments about javascript documentation. It's
great if you've been working with Javascript and AMD modules before, but
totally lost if you haven't.

Kalle

On Fri, Feb 12, 2016 at 2:28 PM, h3ph3st0s  wrote:

> Hi, I met your framework couple days ago. From Wednsday till this moment,
> I managed to compile a pet project in maven, loaded in eclipse, studied
> code, started to work in an agile but solo way and now I have:
> 4 screens under tabbed layout
> 1 page with grid and a form to submit a simple information
> 1 page with dynamic editable grid which has paging and IS NOT losing
> information during paging without using weird calls server-client
> 1 page that loads a whole directory as TreeBrowser. The user can access
> the nodes and can download each node when it is a file. AWESOME.
> 1 page that uploads files. Just that.
>
> And this is an application for a customer to present. I find the framework
> pretty good, fast if you have some proper solid guidance, such as jumpstart
> ( very nice ).
> And I believe that it has so tight connection to javascript is a must in
> comparison to proprietary adversaries with proprietary language tags.
>
> So all this I did it in 2 days. I have experience with other framework
> again in Java so some concepts are not new. Not even the model how to
> combine parts.
>
> I would like to share what I didn't like for reference.
>
>  * I didn't fully grasp how to handle Javascript. After all I want to
>incorporate a plain javascript so simple as alert hello in my page
>and I got lost with the explanations in various pages. Really that
>needs fix. To tell the truth I just wanted to make some
>event.stopPropagate commands over palette object!.sad story
>
>  * The eclipse does not have autocomplete for the tml files. But it is
>not so bad. ( I didn't look myself very hard to find it.probably
>didn't want it that much )
>
>  * Last I do not understand why someone built a palette object and not
>a simple Listbox for a start.
>
> I wish all the best for a very nice job you have done
> Cheers
> Dimitris
>
>
> On 2016-02-13 0:08, joe schacher wrote:
>
>> i still know what he/she is gonna do about it.
>>
>> On Fri, Feb 12, 2016 at 5:07 PM, Stephen Nutbrown 
>> wrote:
>>
>> The only reason you email the Tapestry users group is because Tapestry
>>> Users has many subscribers.
>>>
>>> The only reason Tapestery Users has many subscribers is because Tapestry
>>> is
>>> not dead.
>>>
>>>
>>>
>>> On 12 February 2016 at 22:00, David Taylor <
>>> david.tay...@extensiatech.com>
>>> wrote:
>>>
>>> If Tapestry is so terrible, why waste all the energy? Just to be

>>> obnoxious?
>>>
 We would abandon Tapestry tomorrow if it weren't so bloody fast and easy
 to extend.


 emailsig On 2/12/2016 3:53 PM, Thiago H de Paula Figueiredo wrote:

 On Fri, 12 Feb 2016 17:19:28 -0200, Emmanuel Sowah 
> wrote:
>
> Hi Tapestry sect,
>
> The state of Tapestry now is very bad, as Howard and all the other
>
>> commiters have abandoned it.
>>
>> This is not true. Just check Jira and the Git logs.
>
> Even Thiago has secretly abandoned Tapestry.
> I have not, and you're telling a lie.
>
> I'm just answering this troll because of the lies he keeps on
> spreading,
> which are bordering on defamation.
>
>
>
 -
 To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
 For additional commands, e-mail: users-h...@tapestry.apache.org



>


Re: Tapestry is a sinking Ship

2016-02-12 Thread h3ph3st0s
Hi, I met your framework couple days ago. From Wednsday till this 
moment, I managed to compile a pet project in maven, loaded in eclipse, 
studied code, started to work in an agile but solo way and now I have:

4 screens under tabbed layout
1 page with grid and a form to submit a simple information
1 page with dynamic editable grid which has paging and IS NOT losing 
information during paging without using weird calls server-client
1 page that loads a whole directory as TreeBrowser. The user can access 
the nodes and can download each node when it is a file. AWESOME.

1 page that uploads files. Just that.

And this is an application for a customer to present. I find the 
framework pretty good, fast if you have some proper solid guidance, such 
as jumpstart ( very nice ).
And I believe that it has so tight connection to javascript is a must in 
comparison to proprietary adversaries with proprietary language tags.


So all this I did it in 2 days. I have experience with other framework 
again in Java so some concepts are not new. Not even the model how to 
combine parts.


I would like to share what I didn't like for reference.

 * I didn't fully grasp how to handle Javascript. After all I want to
   incorporate a plain javascript so simple as alert hello in my page
   and I got lost with the explanations in various pages. Really that
   needs fix. To tell the truth I just wanted to make some
   event.stopPropagate commands over palette object!.sad story

 * The eclipse does not have autocomplete for the tml files. But it is
   not so bad. ( I didn't look myself very hard to find it.probably
   didn't want it that much )

 * Last I do not understand why someone built a palette object and not
   a simple Listbox for a start.

I wish all the best for a very nice job you have done
Cheers
Dimitris

On 2016-02-13 0:08, joe schacher wrote:

i still know what he/she is gonna do about it.

On Fri, Feb 12, 2016 at 5:07 PM, Stephen Nutbrown 
wrote:


The only reason you email the Tapestry users group is because Tapestry
Users has many subscribers.

The only reason Tapestery Users has many subscribers is because Tapestry is
not dead.



On 12 February 2016 at 22:00, David Taylor 
wrote:


If Tapestry is so terrible, why waste all the energy? Just to be

obnoxious?

We would abandon Tapestry tomorrow if it weren't so bloody fast and easy
to extend.


emailsig On 2/12/2016 3:53 PM, Thiago H de Paula Figueiredo wrote:


On Fri, 12 Feb 2016 17:19:28 -0200, Emmanuel Sowah 
wrote:

Hi Tapestry sect,

The state of Tapestry now is very bad, as Howard and all the other

commiters have abandoned it.


This is not true. Just check Jira and the Git logs.

Even Thiago has secretly abandoned Tapestry.
I have not, and you're telling a lie.

I'm just answering this troll because of the lies he keeps on spreading,
which are bordering on defamation.




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






Re: Tapestry is a sinking Ship

2016-02-12 Thread joe schacher
we'll all be dead, soon.

On Fri, Feb 12, 2016 at 5:18 PM, JT  wrote:

> Not dead, yet but soon.
> On Feb 12, 2016 5:07 PM, "Stephen Nutbrown"  wrote:
>
> > The only reason you email the Tapestry users group is because Tapestry
> > Users has many subscribers.
> >
> > The only reason Tapestery Users has many subscribers is because Tapestry
> is
> > not dead.
> >
> >
> >
> > On 12 February 2016 at 22:00, David Taylor <
> david.tay...@extensiatech.com>
> > wrote:
> >
> > > If Tapestry is so terrible, why waste all the energy? Just to be
> > obnoxious?
> > >
> > > We would abandon Tapestry tomorrow if it weren't so bloody fast and
> easy
> > > to extend.
> > >
> > >
> > > emailsig On 2/12/2016 3:53 PM, Thiago H de Paula Figueiredo wrote:
> > >
> > >> On Fri, 12 Feb 2016 17:19:28 -0200, Emmanuel Sowah 
> > >> wrote:
> > >>
> > >> Hi Tapestry sect,
> > >>>
> > >>
> > >>
> > >> The state of Tapestry now is very bad, as Howard and all the other
> > >>> commiters have abandoned it.
> > >>>
> > >>
> > >> This is not true. Just check Jira and the Git logs.
> > >>
> > >> Even Thiago has secretly abandoned Tapestry.
> > >>>
> > >>
> > >> I have not, and you're telling a lie.
> > >>
> > >> I'm just answering this troll because of the lies he keeps on
> spreading,
> > >> which are bordering on defamation.
> > >>
> > >>
> > >
> > >
> > > -
> > > To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> > > For additional commands, e-mail: users-h...@tapestry.apache.org
> > >
> > >
> >
>


Re: Tapestry is a sinking Ship

2016-02-12 Thread Thiago H de Paula Figueiredo
On Fri, 12 Feb 2016 17:19:28 -0200, Emmanuel Sowah   
wrote:



Hi Tapestry sect,


Hi, insistent, annoying, repetitive, low-quality troll!

The state of Tapestry now is very bad, as Howard and all the other  
commiters have abandoned it.


This is not true. Just check Jira and the Git logs.


Even Thiago has secretly abandoned Tapestry.


I have not, and you're telling a lie.

I'm just answering this troll because of the lies he keeps on spreading,  
which are bordering on defamation.


--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.com.br

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



Re: Save File Dialog after response building

2016-02-12 Thread h3ph3st0s
Found the solution. I did have the zone part. So it was really ajax 
call. ( But this is as defined from the tutorial ).

I removed that and now this works smoothly.

As a case is closed from me. But what if I put back the zone in order to 
update in ajax way the form ?


Best regards, happy to test a very simple framework such as this

On 2016-02-12 16:50, h3ph3st0s wrote:

Hi,
The thing is that I see the tree of directories and files. That's 
awesome.
But to download file really, I need to right click and choose the 
"save target as". Then file dialog  pops up and I can download 
really the file to my client disk.
If I don't, the response is getting some how lost in the communication 
since I have error like this:
*Communication with the server failed: TypeError: Unable to get 
property 'redirectURL' of undefined or null *


It seems for me that, the StreamResponse expects something as output, 
which in the Jumpstart tutorial is there but I can not see it myself.
On the other hand I need to trigger somehow this file dialog in order 
to allow user choose the folder to leave the file.


Dimitris

On 2016-02-12 16:32, Nathan Quirynen wrote:

You mean the file gets downloaded immediately to some download folder?
I think this is a setting of the used browser where a default 
location has been set opposed to the setting where the browser will 
always ask for the location.

So I'm afraid you don't really have control over this if I am correct.

Nathan

On 12/02/16 15:15, h3ph3st0s wrote:

Hi,

I am new to  Tapestry version 5. where I built a treemodel, which 
presents the files inside the catalog,


/t:value="classificationNode">



t:event="leafSelected" t:context="classificationNode.name" 
t:zone="selectedZone" class="prop:leafClass"

href="#">
${treeNode.label}



${treeNode.label}


/

and by clicking one of the files I build a StreamResponse ( I used 
the snippet from the jumpstart code ( page: 
http://jumpstart.doublenegative.com.au/jumpstart/examples/navigation/returntypes1 
)


The function is :

/public Object onLeafSelected(final String classificationId) {
System.out.println(classificationId);
System.out.println(regFile.get(classificationId));
final File file = new File( regFile.get(classificationId) );
return new StreamResponse() {
InputStream inputStream;

@Override
public void prepareResponse(Response response) {
ClassLoader classLoader = 
Thread.currentThread().getContextClassLoader();

try {
inputStream = new FileInputStream(file);
try {
response.setHeader("Content-Length", "" + 
inputStream.available());

}
catch (IOException e) {
// Ignore the exception in this simple example.
}
} catch (FileNotFoundException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}//classLoader.getResourceAsStream(regFile.get(classificationId));

// Set content length to prevent chunking - see
// 
http://tapestry-users.832.n2.nabble.com/Disable-Transfer-Encoding-chunked-from-StreamResponse-td5269662.html#a5269662


}

@Override
public String getContentType() {
return "text/plain";
}

@Override
public InputStream getStream() throws IOException {
return inputStream;
}
};
}/

My problem and my question is how do I present a save-file-dialog 
that will help the user to point the download folder. In order to 
really download the file I must make right-click and then choose 
"save file as..." ?


Thanks in advance





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








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