Re: Custom error pages with actual messages

2014-12-19 Thread Bob Harner
No, sorry, it's 5.3.7. This particular project isn't ready to move to 5.4 yet. I had forgotten about your exception page additions to 5.4, thanks for the reminder. That's one of several new things in 5.4 that aren't yet well explained anywhere. On Fri, Dec 19, 2014 at 7:39 PM, Kalle Korhonen wrot

Re: Custom error pages with actual messages

2014-12-19 Thread Kalle Korhonen
For 5.4? Use exceptions, not error codes and the new contributable DefaultExceptionHandler. 5.4 contains a built-in a version of tapestry-exceptionpage (see http://tynamo.org/tapestry-exceptionpage+guide, you can map exceptions to specific pages with context). I've written the javadocs for 5.4 but

Custom error pages with actual messages

2014-12-19 Thread Bob Harner
Hi everybody, Whenever I follow the Error Page Recipe [1] to create custom a error response page, everything works fine except that, to my knowledge, the page can only have a fixed message. For example, my 403 error page always says "Sorry, you can't have that". That's fine, but what if I want my

Re: How to use font awesome with Tapestry

2014-12-19 Thread George Christman
finally got it, thanks guys. On Fri, Dec 19, 2014 at 6:51 AM, Cezary Biernacki wrote: > > Hi George, > I believe you use exactly string > "classpath:META-INF/assets/fonts/fontawesome-webfont.eot" > in Java code. You should use "fonts/fontawesome-webfont.eot" instead - > Tapestry 5.4 knows that it

Re: How to use font awesome with Tapestry

2014-12-19 Thread Cezary Biernacki
Hi George, I believe you use exactly string "classpath:META-INF/assets/fonts/fontawesome-webfont.eot" in Java code. You should use "fonts/fontawesome-webfont.eot" instead - Tapestry 5.4 knows that it needs to prepend "META-INF/assets". However, as others said, for Font Awesome you need rather impo

Re: How to use font awesome with Tapestry

2014-12-19 Thread Geoff Callender
I have a folder "font-awesome-4.0.3" in resources/META-INF/assets/ and use this in my java pages and components: @Import(stylesheet = { "font-awesome-4.0.3/css/font-awesome.min.css" }) Geoff On 19 Dec 2014, at 7:58 pm, George Christman wrote: > hmm, I'm using 5.4. We no longer have assets in

Re: How to use font awesome with Tapestry

2014-12-19 Thread George Christman
hmm, I'm using 5.4. We no longer have assets in the webapp directory. I wonder if that makes a difference. On Fri, Dec 19, 2014 at 3:01 AM, Daniel Jue wrote: > > Forgot to mention, I am using T5.3.7 > > On Fri, Dec 19, 2014 at 2:59 AM, Daniel Jue wrote: > > > > Hi George, I'm not really sure wha

Re: How to use font awesome with Tapestry

2014-12-19 Thread Daniel Jue
Forgot to mention, I am using T5.3.7 On Fri, Dec 19, 2014 at 2:59 AM, Daniel Jue wrote: > > Hi George, I'm not really sure what the .eot file does. > > My assets are under src/main/webapp in my maven module: > > i.e. > > https://github.com/Sotera/graphene/tree/master/graphene-parent/graphene-web/

Re: How to use font awesome with Tapestry

2014-12-19 Thread Daniel Jue
Hi George, I'm not really sure what the .eot file does. My assets are under src/main/webapp in my maven module: i.e. https://github.com/Sotera/graphene/tree/master/graphene-parent/graphene-web/src/main/webapp/core/fonts https://github.com/Sotera/graphene/tree/master/graphene-parent/graphene-web/s