Re: [OT] T5-IoC in Fantom

2013-08-07 Thread Thiago H de Paula Figueiredo
On Wed, 07 Aug 2013 14:24:25 -0300, Howard Lewis Ship wrote: I have some ideas for a next-generation IoC that I hope to put together someday (outside of Tapestry). I want to create something with a different level of granularity, were you are injecting functions, not services. You prob

Re: [OT] T5-IoC in Fantom

2013-08-07 Thread Howard Lewis Ship
I have some ideas for a next-generation IoC that I hope to put together someday (outside of Tapestry). I want to create something with a different level of granularity, were you are injecting functions, not services. There would be a whole lot of generics gymnastics to figure out how to map from a

Re: Proposal for a new book: Mastering Apache Tapestry

2013-08-07 Thread Thiago H de Paula Figueiredo
On Wed, 07 Aug 2013 12:51:22 -0300, Lenny Primak wrote: I look at it a different way. Tapestry is Tapestry. Most people who would buy the book won't be tapestry experts, and won't know which book to buy, which will add to the confusion. One would have the word Advanced on it, the other

Re: Securing page with Tapestry

2013-08-07 Thread D.R.
Hi, Of course it is null, if you don't provide it as a t5 service or pass it wrong to your RequiresLoginFilter. How does your code look after your changes? Provide full stack trace after your changes pls. This is also weird imho: @SuppressWarnings("unchecked") public static void contributeC

Re: Securing page with Tapestry

2013-08-07 Thread Will N.
I have changed that but the exception remains... seems like the the request the AuthenticatorImpl.java is null; public boolean isLoggedIn() { org.apache.tapestry5.services.Session session = request.getSession(true); // request is null if (session != null) { return sessi

Re: Proposal for a new book: Mastering Apache Tapestry

2013-08-07 Thread Lenny Primak
I look at it a different way. Tapestry is Tapestry. Most people who would buy the book won't be tapestry experts, and won't know which book to buy, which will add to the confusion. Most technical books go from simple to more advanced, and don't make you buy an 'advanced' book. IoC, etc. chapt

Re: Proposal for a new book: Mastering Apache Tapestry

2013-08-07 Thread Muhammad Gelbana
> > > Thiago: > I think this is out of the focus of the book. I don't plan to include > chapters or sections that demand knowing stuff which isn't Tapestry or > Tapestry-IoC. That alone makes me very excited for the book :) Tapestry is a marvelous framework. Made by developers for developers (N

Re: Securing page with Tapestry

2013-08-07 Thread D.R.
Hi, where is the registration of AuthenticatorImp implements AuthenticatorInterface? I can not see it in your binder.bind Your constructor looks weird: public void PageAccessFilter in class RequiresLoginFilter ??? You should pass the interface there, not the impl. Kind regards David Am 07.08.

Re: Securing page with Tapestry

2013-08-07 Thread Willy Browne
thanks for the help. I removed my Interface and now i get a NullPointerException * RequiresLoginFilter.dispatchedToLoginPage(RequiresLoginFilter.java:66) * services.RequiresLoginFilter.handlePageRender(RequiresLoginFilter.java:57) * org.apache.tapestry5.services.Initialize

Re: Proposal for a new book: Mastering Apache Tapestry

2013-08-07 Thread Thiago H de Paula Figueiredo
Hello, Norman! That's exactly the feedback I was looking for. Thank you very, very much! Yeah, you've convinced me of talking about security, even if it's just one security framework (Shiro) and explaining just the core concepts and how to make them work in Tapestry. It wouldn't make sense

Re: Proposal for a new book: Mastering Apache Tapestry

2013-08-07 Thread Thiago H de Paula Figueiredo
On Wed, 07 Aug 2013 01:34:30 -0300, Lenny Primak wrote: I was going to write a message, but most of what I wanted to say was already said. I am not sure that there is enough of an audience for two books. Even if the two books cover have different content and focuses? Igor's book level i

Re: Securing page with Tapestry

2013-08-07 Thread D.R.
Hi, i also want to suggest tynamo tapestry-security. As a quickstart is missing, i recommend this post: http://comments.gmane.org/gmane.comp.java.tynamo.user/287 With the instructions given there, you can quickly setup tapestry-security and use this as a starting point. With kind regards David

Re: Conditional wrapping html element

2013-08-07 Thread Thiago H de Paula Figueiredo
On Wed, 07 Aug 2013 06:33:14 -0300, Nathan Quirynen wrote: Hi, Hi! If this is a common case, I'd write a mixin for that. -- Thiago H. de Paula Figueiredo - To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org Fo

Re: Conditional wrapping html element

2013-08-07 Thread Lance Java
Nice! Much less hacky than my approach. I'm waiting for Thiago's imminent comment regarding :) On 7 Aug 2013 10:56, "Dmitry Gusev" wrote: > Or you can use blocks and delegate: > > > Your content > > > > > > > > > > > > On Wed, Aug 7, 2013 at 1:47 PM

Re: Conditional wrapping html element

2013-08-07 Thread Steve Eynon
You could create a simple component that optionally renders the div element. Something like: public class IfDiv { @Parameter private boolean test; void setupRender(MarkupWriter writer) { if (test) writer.element("div"); } void afterRender(MarkupWriter writer) { if (test) writer.end(

Re: [OT] T5-IoC in Fantom

2013-08-07 Thread Steve Eynon
> No distributed configuration? Of course there is! Any module from any pod (jar) can contribute to services defined in any other module from any other pod. That is distributed configuration, right? That was built in from the get go! > Well, I hope you had a chance to address some of the things t

Re: Conditional wrapping html element

2013-08-07 Thread Dmitry Gusev
Or you can use blocks and delegate: Your content On Wed, Aug 7, 2013 at 1:47 PM, Lance Java wrote: > You'll have to use the OutputRaw component or MarkupWriter.writeRaw(...) > > Note that when passing the value parameter to OutputRaw you will need t

Re: Conditional wrapping html element

2013-08-07 Thread Lance Java
You'll have to use the OutputRaw component or MarkupWriter.writeRaw(...) Note that when passing the value parameter to OutputRaw you will need to escape <, > and " On 7 Aug 2013 10:33, "Nathan Quirynen" wrote: > Hi, > > I want to add a div that wraps my content based on a condition: > > >

Conditional wrapping html element

2013-08-07 Thread Nathan Quirynen
Hi, I want to add a div that wraps my content based on a condition: ... content ... This is not possible as it will give following exception: /org.xml.sax.SAXParseException/ /The element type "div" must be terminated by the matching end-tag "". /For my use case I can make a p

Re: Proposal for a new book: Mastering Apache Tapestry

2013-08-07 Thread Arve Klev
I would like such a book, and hope that it will be based on the upcoming Tapestry 5.4-version. That way the book will be relevant regardless of Igor's book (witch I also bought). A good in-depth example of integration-testing would be nice. Regards, Arve Klev (arvek...@gmail.com)