Re: IndieGogo campaign: a month of Apache Tapestry 5

2013-11-25 Thread Alexander Sommer
great.


2013/11/25 Andreas Fink 

> Hi Thiago.
> What an interesting idea about filling "the gap".
> I hope you can raise enough and that you get a gig in exactly 6 weeks :-)
>
> Thanks for the relentless battle against/with the ML!
>
> On Nov 25, 2013, at 22:08 , Thiago H de Paula Figueiredo wrote:
>
> > Hi!
> >
> > I've just went live with an IndieGogo campaign so I can work a whole
> month in Tapestry itself and nothing else fixing bugs, implementing new
> stuff and working on the documentation.
> >
> > Here's the link:
> http://www.indiegogo.com/projects/a-month-of-apache-tapestry-5.
> >
> > Any questions, just ask. :) But I'll answer another one right now:
> regardless of the campaign succeeding or not, I'll continue posting stuff
> in the mailing list and doing my occasional code contributions the same way
> and I've been doing until now. In other words, nothing changes.
> >
> > Here's the campaign text, just in case, with all the details:
> >
> > Introduction
> >
> > Disclaimers: This campaign is done by me, Thiago, as an independent
> individual, not by the Apache Software Foundation or the Apache Tapestry
> project. I'm not representing the Foundation in any way in this campaign
> nor Apache endorses it. The Foundation has a policy of not paying for
> development work. All its members are voluntary, me included. Any code I'll
> write or change will pass the usual Tapestry team approval process. If this
> campaign isn't funded, I'll continue participating in the Tapestry project
> in the same way as always.
> >
> > I'm Thiago H. de Paula Figueiredo, an Apache Tapestry 5 committer and
> PMC (Project Management Committee) member. I've posted more than 5700 times
> in the user mailing lists. Apache Tapestry is an open-source, Java Web
> framework built and supported by a team of voluntary members who work on it
> for free and by love.
> >
> > I dream about the idea of being able to work on Apache Tapestry itself,
> on its codebase and documentation, not just in my free time. I'm very
> passionate about this framework. I envy the people who are paid to work on
> open source projects, so they can spend lots of time in the projects they
> love. I wish I could do the same, even if it was for a short period of
> time. I love open source, I love Apache Tapestry, I love to help people to
> solve their problems, know the framework better and code happier. That's
> what this campaign is about.
> >
> > Right now, I'm in a period between gigs, so I have a free schedule to
> work on it, and then I have an opportunity. But this free time cannot be
> free, because I, as you and everyone else, have bills to pay. So I thought
> it would be a perfect time to run a fixed-funding IndieGogo campaign to
> have me working exclusively on the Apache Tapestry codebase for a whole
> month, 160 hours on the clock, fixing some stuff, build other stuff and
> hopefully speeding up the 5.4 release. I'd work on the documentation too.
> >
> > Notice that, in terms of dollar per worked hour, it is signicantly lower
> than at my last gig. This campaign isn't about money, is about being able
> to work in what I love.
> > What will be done?
> >
> > The actual issues to be worked will be discussed among the backers, but
> I've took a long look at the Apache Tapestry issue tracker (JIRA), starting
> for the most voted issues, checked which ones I could successfully fix or
> implement, then I came up with the following initial (not final) list. The
> order in which the issues will be tackled will also be discussed among the
> backers.
> >
> > Issue
> > Description
> >
> > TAP5-2029
> > Copy annotations from service implementation to proxy
> >
> > TAP5-2235
> > Implement JCache (JSR 107) support in Tapestry-IoC
> >
> > TAP5-938
> > Expose ability to render a portion of a page (a Block, Component, etc.)
> without using internal services
> >
> > TAP5-244
> > Let Grid show column headings when no data
> >
> > TAP5-1515
> > Support for external assets
> >
> > TAP5-1470
> > Group CSS together to avoid IE's restriction of 31 external css files
> >
> > TAP5-245
> > Better documentation on development environment.
> >
> > TAP5-627
> > Allow injection of named spring beans
> >
> > TAP5-1403
> > Add support for Arrays in request parameters
> >
> > TAP5-1863
> > Rendering components in Alerts
> >
> > TAP5-1659
> > PageLink: page parameter should accept page-classes and page-instances
> >
> > TAP5-1941
> > Alerts component should check for XHR request in "dismiss" event handler
> >
> > TAP5-1718
> > Tapestry-beanvalidator isn't validating nested DTO objects / Doesn't
> mark the invalid fields in the UI
> >
> > TAP5-2130
> > Services interfaces that inherit from "Runnable" cause @Startup methods
> being called twice
> >
> > TAP5-2192
> > Add support for distributed documentation
> >
> > TAP5-2187
> > CSS relative URL rewriting isn't lenient enough
> >
> > TAP5-2185
> > Problem with the asset checksums and relative paths based on them
> >
> > TAP5-1998
>

Re: domain change with path added

2013-11-23 Thread Alexander Sommer
thank you very much for the detailed answer.


2013/11/23 Magnus Kvalheim 

> Hi Alex.
>
> Typically you don't set the context path. And if you do, then it's often in
> the app server(container) config.
>
> The value of context path is normally the same as the warfile name, and
> then you use the (httpservlet)request-interface to access it.
>
> I can see that 5.4 have deprected Request#getContextPath and added a
> symbolconstant for it. Not sure why, but probably for some good reason. -
> perhaps abstraction as Request interface if different from
> httpservletrequest
>
> I've only used ROOT tap apps myself, but you can still inject use
> httpservletrequest or tapestry request to access context path.
>
> If you need to set it then you can:
> 1. change war file name
> 2. configure appsever/container config appropriately for your app
> 3. configure tapestry SymbolConstants#CONTEXT_PATH
>
> -magnus
>
> On Sat, Nov 23, 2013 at 5:43 PM, Alexander Sommer <
> alexander.som...@gmail.com> wrote:
>
> > Hi!
> >
> > I would like to set the context path but as it seems the setting is just
> > part of tapestry 5.4 but i am using 5.3.7.
> >
> > I just want to know what i need to set because my web app now runs under
> > root/production (before it was running under root)
> >
> > thx!!!
> >
> > tapestry.context-path
> > *Added in 5.4*
> >
> > Identifies the context path of the application, as determined from
> > ServletContext.getContextPath() method. This is either a blank string or
> a
> > string that starts with a slash but does not end with one.
> >
> >
> > 2013/11/23 Alexander Sommer 
> >
> > > no, my app is wired since changing to root/production. i think i need
> to
> > > set the context path somewhere.
> > >
> > >
> > > 2013/11/23 Alexander Sommer 
> > >
> > >> thx for the answers. how can i set the context path in tapestry? by
> the
> > >> way it seems that my app is normally running ( i did not set anything
> > >> despite the new contxt root/production)
> > >>
> > >>
> > >> 2013/11/15 Thiago H de Paula Figueiredo 
> > >>
> > >>> On Fri, 15 Nov 2013 17:39:32 -0200, Alexander Sommer <
> > >>> alexander.som...@gmail.com> wrote:
> > >>>
> > >>>   Hi!
> > >>>>
> > >>>
> > >>> Hi!
> > >>>
> > >>>   I was moving my tapestry application on another server from domain
> to
> > >>>> domain/production, and now, my custom made sitemap viewer does not
> > >>>> generate appropriate urls anymore. (the normal tapestry page links
> are
> > >>>> working well - so the application in general is working well)
> > >>>>
> > >>>>  but not my custom sitemapViewer page. The links which are generated
> > >>>> with writer.element("a", "href", "/" + item.getPage()); only
> generate
> > >>>> domain/url but not domain/production/url
> > >>>>
> > >>>
> > >>> If the URLs you're generating are Tapestry pages, use
> > >>> PageRenderLinkSource and Link.toAbsoluteURL() and they'll take care
> of
> > it
> > >>> for you. See also the BaseURLSource service for an alternative.
> > >>>
> > >>> --
> > >>> 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: domain change with path added

2013-11-23 Thread Alexander Sommer
Hi!

I would like to set the context path but as it seems the setting is just
part of tapestry 5.4 but i am using 5.3.7.

I just want to know what i need to set because my web app now runs under
root/production (before it was running under root)

thx!!!

tapestry.context-path
*Added in 5.4*

Identifies the context path of the application, as determined from
ServletContext.getContextPath() method. This is either a blank string or a
string that starts with a slash but does not end with one.


2013/11/23 Alexander Sommer 

> no, my app is wired since changing to root/production. i think i need to
> set the context path somewhere.
>
>
> 2013/11/23 Alexander Sommer 
>
>> thx for the answers. how can i set the context path in tapestry? by the
>> way it seems that my app is normally running ( i did not set anything
>> despite the new contxt root/production)
>>
>>
>> 2013/11/15 Thiago H de Paula Figueiredo 
>>
>>> On Fri, 15 Nov 2013 17:39:32 -0200, Alexander Sommer <
>>> alexander.som...@gmail.com> wrote:
>>>
>>>   Hi!
>>>>
>>>
>>> Hi!
>>>
>>>   I was moving my tapestry application on another server from domain to
>>>> domain/production, and now, my custom made sitemap viewer does not
>>>> generate appropriate urls anymore. (the normal tapestry page links are
>>>> working well - so the application in general is working well)
>>>>
>>>>  but not my custom sitemapViewer page. The links which are generated
>>>> with writer.element("a", "href", "/" + item.getPage()); only generate
>>>> domain/url but not domain/production/url
>>>>
>>>
>>> If the URLs you're generating are Tapestry pages, use
>>> PageRenderLinkSource and Link.toAbsoluteURL() and they'll take care of it
>>> for you. See also the BaseURLSource service for an alternative.
>>>
>>> --
>>> 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: domain change with path added

2013-11-23 Thread Alexander Sommer
no, my app is wired since changing to root/production. i think i need to
set the context path somewhere.


2013/11/23 Alexander Sommer 

> thx for the answers. how can i set the context path in tapestry? by the
> way it seems that my app is normally running ( i did not set anything
> despite the new contxt root/production)
>
>
> 2013/11/15 Thiago H de Paula Figueiredo 
>
>> On Fri, 15 Nov 2013 17:39:32 -0200, Alexander Sommer <
>> alexander.som...@gmail.com> wrote:
>>
>>   Hi!
>>>
>>
>> Hi!
>>
>>   I was moving my tapestry application on another server from domain to
>>> domain/production, and now, my custom made sitemap viewer does not
>>> generate appropriate urls anymore. (the normal tapestry page links are
>>> working well - so the application in general is working well)
>>>
>>>  but not my custom sitemapViewer page. The links which are generated
>>> with writer.element("a", "href", "/" + item.getPage()); only generate
>>> domain/url but not domain/production/url
>>>
>>
>> If the URLs you're generating are Tapestry pages, use
>> PageRenderLinkSource and Link.toAbsoluteURL() and they'll take care of it
>> for you. See also the BaseURLSource service for an alternative.
>>
>> --
>> 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: domain change with path added

2013-11-23 Thread Alexander Sommer
thx for the answers. how can i set the context path in tapestry? by the way
it seems that my app is normally running ( i did not set anything despite
the new contxt root/production)


2013/11/15 Thiago H de Paula Figueiredo 

> On Fri, 15 Nov 2013 17:39:32 -0200, Alexander Sommer <
> alexander.som...@gmail.com> wrote:
>
>   Hi!
>>
>
> Hi!
>
>   I was moving my tapestry application on another server from domain to
>> domain/production, and now, my custom made sitemap viewer does not
>> generate appropriate urls anymore. (the normal tapestry page links are
>> working well - so the application in general is working well)
>>
>>  but not my custom sitemapViewer page. The links which are generated
>> with writer.element("a", "href", "/" + item.getPage()); only generate
>> domain/url but not domain/production/url
>>
>
> If the URLs you're generating are Tapestry pages, use PageRenderLinkSource
> and Link.toAbsoluteURL() and they'll take care of it for you. See also the
> BaseURLSource service for an alternative.
>
> --
> 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: Web frameworks

2013-11-20 Thread Alexander Sommer
no, i am just eager on updates! ;-)




2013/11/20 Thiago H de Paula Figueiredo 

> On Wed, 20 Nov 2013 18:15:04 -0200, Alexander Sommer <
> alexander.som...@gmail.com> wrote:
>
>  tapestry would and will easily revive
>>
>
> Are you saying it is dead?
>
>
>  if 5.4. would come out with full jQuery (and jQuery mobile) support ;-)
>>
>
> Tapestry 5.4, which is in alpha right now but already quite stable,
> already comes with jQuery support out of the box. Previous versions can use
> tapestry5-jquery for that. I'm not sure what you mean by jQuery mobile
> support.
>
>
>  I am just waiting for 5.4 and think that others are doing the same.
>>
>
> You can try it right now.
>
>
>  I also would love mobile web templates with 5.4 based on jQuery mobile.
>>
>
> You can already do that. 5.4 ships with Bootstrap 3 out-of-the-box and it
> (Bootstrap 3) is mobile-first. To use jQuery mobile, just use 5.4 with
> jQuery support and add the jQuery mobile file(s) using @Import.
>
>
> --
> 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: Web frameworks

2013-11-20 Thread Alexander Sommer
i also need to add that my (it) knowledge is based on the help on tapestry.
I dont *love* server-side programming but if i need to do it, i love to do
it with tapestry.

the only thing i am waiting for are better & easier documentations and
better mobile support.


2013/11/20 Thiago H de Paula Figueiredo 

> On Wed, 20 Nov 2013 17:52:09 -0200, Emmanuel Sowah 
> wrote:
>
>  You Tapestry aficionados are just some radicals who are blind to see the
>> reality.
>>
>
> Says the guys who loved to post about Wicket in a Tapestry mailing list .
> . . :D
>
>
>  Even Mr. Ship doesn't use Tapestry anymore in his projects.
>>
>
> [citation needed]
>
>
>  Stop being stupid and look around for a better alternative. Your
>> knowledge and experience about Tapestry won't land you a job anywhere.
>>
>
> Well, my current job I got exactly because of my Tapestry experience. And
> I got some offers from other places.
>
>
>  Tapestry is now only used on hobby projects at home.
>>
>
> [citation needed]
>
> Just for example, most respected English dictionary, Oxford English
> Dictionary, have its online versions written in Tapestry:
> http://oed.com. Just open the home page, see the sources and search for
> Tapestry.
>
> Right now I'm working on a Tapestry project.
>
>
>  As we're speaking now, Howard is happily coding Wicket on a client's
>> project.
>>
>
> [citation needed]
>
> Hey, another Wicket mention! There's got to be a drinking game about it. :)
>
>
>  Leave this cult and
>> do something better with serious frameworks. Tapestry is dying an
>> inevitable death.
>>
>
> A library or framework dies when nobody is using it anymore. The traffic
> in this mailing list alone is proof that are people using it, not to
> mention the larger pool of people that use it but doesn't post in the
> mailing lists.
>
> --
> 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: Web frameworks

2013-11-20 Thread Alexander Sommer
tapestry would and will easily revive if 5.4. would come out with full
jQuery (and jQuery mobile) support ;-)

I am just waiting for 5.4 and think that others are doing the same.

I also would love mobile web templates with 5.4 based on jQuery mobile.


2013/11/20 Lenny Primak 

> What a troll!!
>
> On Nov 20, 2013, at 2:52 PM, Emmanuel Sowah wrote:
>
> > Guys,
> >
> > You Tapestry aficionados are just some radicals who are blind to see the
> > reality. The fact of the matter is Tapestry is no more relevant in the
> > developers community. Even Mr. Ship doesn't use Tapestry anymore in his
> > projects. Stop being stupid and look around for a better alternative.
> Your
> > knowledge and experience about Tapestry won't land you a job anywhere.
> > Tapestry is now only used on hobby projects at home. As we're speaking
> now,
> > Howard is happily coding Wicket on a client's project.Leave this cult and
> > do something better with serious frameworks. Tapestry is dying an
> > inevitable death.
> >
> > Cheers
> >
> >
> > On Tue, Nov 19, 2013 at 11:17 PM, Norman Franke 
> wrote:
> >
> >> That's funny, I was thinking the same thing. Someone who doesn't know
> any
> >> better about how to write a modern web application and insists that JSP
> >> code is "closer to the bare metal" and thus better.
> >>
> >> Norman Franke
> >> Answering Service for Directors, Inc.
> >> www.myasd.com
> >>
> >>
> >>
> >> On Nov 18, 2013, at 7:09 PM, John  wrote:
> >>
> >>> Haha. Maybe it's someone who's maintaining thousands of lines of evil
> >> old incomprehensible JSP, has seen the promised land (Tapestry) and
> feels
> >> bad about it. (Like the guy who never gets invited to parties).
> >>> - Original Message -
> >>> From: Lance Java
> >>> To: Tapestry users
> >>> Sent: Monday, November 18, 2013 9:38 PM
> >>> Subject: Re: Web frameworks
> >>>
> >>>
> >>> I'm not sure why... but for some reason a random user comes on this
> >>> tapestry list about once a year spreading FUD with a message similar to
> >>> this one. I've never really understood why... Please ignore this
> thread.
> >>>
> >>>
> >>> On 18 November 2013 19:12, Emmanuel Sowah  wrote:
> >>>
>  Hi guys,
> 
>  There is a great report that compares web frameworks and can be found
> >> here:
> 
> 
> >>
> http://zeroturnaround.com/rebellabs/the-2014-decision-makers-guide-to-java-web-frameworks/
> 
>  To my surprise, Tapestry didn't make it to the list. This makes me
> very
>  nervous to even consider Tapestry for our upcoming project. I'm scared
>  Tapestry may be abandoned one day and leave us in the cold. It may be
> a
>  nice framework, but Tapestry's popularity is extremely low within the
>  developers' community. Why is that? Is it because of it's track record
> >> on
>  releases and backward compatibility issues, which I read a lot about
> on
>  google search? Or is it because it's a one man project?
> 
>  What do you think?
> 
>  Regards,
>  Emmanuel
> 
> >>
> >>
>
>
> -
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


domain change with path added

2013-11-15 Thread Alexander Sommer
 Hi!

 I was moving my tapestry application on another server from domain to
domain/production, and now, my custom made sitemap viewer does not
generate appropriate urls anymore. (the normal tapestry page links are
working well - so the application in general is working well)

 but not my custom sitemapViewer page. The links which are generated
with writer.element("a", "href", "/" + item.getPage()); only generate
domain/url but not domain/production/url

 for sure, i could write now just "production" as prefix, but i have
also a test instance on tomcat on domain/test

 so maybe, the easiest approach would be to get the absolut url of
tapestry but the only thing i got so far was getting the url of
tapestry via request.getServerName but this also only is giving me the
servername (domain) but not domain/production/

 writer.element("td");

 writer.element("span", "style", "white-space:nowrap;");

 writer.write(prefix);

 writer.element("a", "href", "/" + item.getPage());

 writer.write( messages.get(item.getPage()) );

 writer.end();

 writer.end();


 thx
 alex

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



Query Mobile & Tapestry

2013-03-30 Thread Alexander Sommer
Hi!

I am trying to build a mobile web app based on jquery mobile. For that
reason, I need to reuse my services built with tapestry - which turned out
not being as trivial as expected.

I was reading in the forum (eg
http://mail-archives.apache.org/mod_mbox/tapestry-users/201201.mbox/%3ccd6ed1fa-1e5c-4cbb-a6e9-67eeb842e...@mail-nic-00.intern.albourne.com%3E),
that jquery is complicating (correct me if this is not true!!) things due
to prototype used in tapestry. For that reason, I would like to try a 100%
clean approach - my web app client should not be depended on tapestry
(GUI!) at all, I just want to use my tapestry services.

one service for example is:

http://www.airwriting.com/mobile/public:getLocalGroups?lat=48.15&lng=16.3

which is returning valid json. (check for non believers http://jsonlint.com/
)

BUT

if I want to use this service, I run into the crossDomain problem with
javascript, because my mobile webapp for example is (for testing purposes)
hosted here: http://www.learnclip.com/airwritingweb/ (so not on
airwriting.com)

Now, I see two options to solve this crossDomain issue;

*A.*
Run the web app build with jquery on the same domain. -> how can I do this?
Is it possible to copy the whole web app project just to some tapestry
folder and tell tapestry that it should "ignore" that folder - but still
making it accessable from the outside? eg. via
www.airwriting.com/mobile/jquery ?

*B.*
if i got it right (http://api.jquery.com/jQuery.getJSON/), the function

$.getJSON in

jquery mobile needs  a ?jsoncallback=? parameter, in my case

http://www.airwriting.com/mobile/public:getLocalGroups?lat=48.15&lng=16.3?jsoncallback=
?

but I really have no idea how I have to handle the jsoncallback in my
service method:

private final String CONTENT_TYPE = "application/javascript";

public StreamResponse onGetLocalGroups(){
Double latitude = Double.parseDouble(request.getParameter("lat"));
Double longitude = Double.parseDouble(request.getParameter("lng"));

List groups = groupService.getGroupsOnLocation(new
GeoPoint(latitude, longitude).toPoint(), limit, offset);

JSONArray jsGroups = new JSONArray();
for( Group group : groups ){
jsGroups.put(group.toJSON());
}
return new TextStreamResponse(CONTENT_TYPE, jsGroups.toString());
}


just calling (from a not airwriting.com domain)


(function() {
  var url = "
http://www.airwriting.com/mobile/public:getLocalGroups?lat=48.15&lng=16.3";;
  $.getJSON( url, {
format: "json"
  })
  .done(function( data ) {
$.each( data.items, function( i, item ) {

   alert (item);

});
  });
})();




DOES NOT WORK - so i guess it has something to do with the callback.
Reading me deeper into the jsonP theory, my understanding focuses on the
need for writing somekind of filter in the filterrequestchain for handling
this kind of crossDomain request. puh.. (
http://code.google.com/p/jsonp-java/)


any help is highly appreciated.. thx,
alex


further, good links:
http://json-p.org/
http://alotaiba.github.com/FlyJSONP/#!/demo