Dynamic mixins

2012-03-09 Thread Brian Long
Hi all, have a problem that seems easy to resolve but I'm making hard work of it, was hoping someone here can help me out. I have a simple component I want to use on different pages in my application, and there's a mixin associated with the select component in this simple component, but I want to

Re: Exception handling in Tomcat 6.0.33

2012-01-31 Thread Brian Long
/* >                REQUEST >                ERROR >         > > Error handling in Jetty and Tomcat differ, see > http://www.cacoethes.co.uk/blog/software/a-tomcat-gotcha for more > info. > > Kalle > > > On Tue, Jan 31, 2012 at 2:50 AM, Brian Long wrote: >> Hi all

Exception handling in Tomcat 6.0.33

2012-01-31 Thread Brian Long
Hi all, I'm sure I'm not the first person to experience this issue but can't seem to find any answers in the mail archive or on the web. I have an ExceptionReport page implementing ExceptionReporter so any nasty surprises like NPE's result in a nice and friendly "We experiencing technical difficul

Re: property expressions

2011-10-25 Thread Brian Long
27;m going to have a lot of helper methods for the logic that was attached to the various fields on my form, but I guess I can't be avoided. Regards, Brian. On 25 October 2011 14:46, Thiago H. de Paula Figueiredo wrote: > On Tue, 25 Oct 2011 12:14:47 -0200, Brian Long > wrote: >

property expressions

2011-10-25 Thread Brian Long
Hi all, was hoping someone could point me in the direction on a good tutorial on the new property expressions in tapestry 5.2.6? I was using OGNL previously and would like to update these expression to work with ANTLR instead. The ognl expression i had was to decorate text field with different cl

pageRenderLinkSource.toAbsoluteURI() returns relative URL

2011-10-03 Thread Brian Long
Hi all, I want determine the URL of my tapestry page, and rather that build the path from the request, I thought I'd use the PageRenderLinkSource service similar to the example posted here http://blog.markwshead.com/825/get-the-url-of-page-in-tapestry-5/, however when I call the method toAbsoluteU

Re: StackMapTable format error: bad class index

2011-06-03 Thread Brian Long
pestry version you are using ? May be this > will help > > http://tapestry.1045711.n5.nabble.com/T5-StackMapTable-format-error-td2408450.html > > regards > Taha > > On Thu, Jun 2, 2011 at 9:44 PM, Brian Long wrote: > >> Hi all, >> >> getting this error m

StackMapTable format error: bad class index

2011-06-02 Thread Brian Long
Hi all, getting this error message sporadically when running my tapestry application in jetty, was hoping that someone might have encountered this before and would be able to point me in the general direction of a solution? Thanks, Brian. 2011-06-02 16:08:05,109 {33144006@qtp-18954926-4} [T(W9EM

Re: Property expressions

2009-10-05 Thread Brian Long
ollection. Thus > ... should work. > > On Mon, Oct 5, 2009 at 8:39 AM, Brian Long wrote: > >> Hi all, >> >> just a quick question, looking at the property expressions guide @ >> http://tapestry.apache.org/tapestry5/guide/propexp.html it looks like I >> shou

Property expressions

2009-10-05 Thread Brian Long
Hi all, just a quick question, looking at the property expressions guide @ http://tapestry.apache.org/tapestry5/guide/propexp.html it looks like I should be able to evaluate whether a property has a null value (handy for if conditions) without having to use ognl, e.g. instead of

using prop: binding to evaluate an expression?

2009-01-08 Thread Brian Long
Hi, in tapestry 4 you could use ognl to check a page property in a expression like disabled="ognl:!nextAvailable" or ognl:(nextAvailable == false)", I'm wondering is we can do something similar in T5 without using ognl, just using the prop: binding prefix alone, for example public final b

Re: Regexp validation

2008-05-30 Thread Brian Long
Sura, take a look at this example here http://tapestry.formos.com/nightly/tapestry5/tapestry-core/ref/org/apache/tapestry/corelib/components/TextField.html you'll have to put your regular expression in your classes properties file for it to work . . . /Brian. Sura, Bhupesh wrote: I am usin

localization of keys returned as properties in T5

2008-02-07 Thread Brian Long
Sorry about the ambiguous title, but I'll try to explain what it is I'm trying to achieve . . . in T4 it's possible to have properties/keys in an object that can be localized in the html file using the following expression AddressLine1 tapestry will resolve what the contents of "sender.address.a

Form names in T4.1

2007-05-31 Thread Brian Long
Hi all, this is just a quick question, in previous versions of tapestry a Form was assigned a name using the convention jwcid="[EMAIL PROTECTED]", however in T4.1this no longer sets the name but assigns an id="someName". Question is, how do I assign a name to my Form component in 4.1, as informal

Re: Re: dynamic image assets?

2006-11-30 Thread Brian Long
Guys, I'm ashamed to admit that my problem was a classic case of RTFM, as there was an example on the tapestry web site that fixed my dynamic Image asset problem with just a few lines of code. I placed my subscriberImage component on my page, and then added the relevant method to my class:

Re: dynamic image assets?

2006-11-29 Thread Brian Long
he class itself but I still get the same problem, the string for path has to be a constant, variables are not allowed. Brian. On 11/29/06, Gareth <[EMAIL PROTECTED]> wrote: why not store the assets in a database, and write the image direct as raw? - Original Message From: Brian Lon

dynamic image assets?

2006-11-29 Thread Brian Long
Hi, I'm sure there's a simple solution to this problem, but I've yet to figure out just what it is! I have an image associated with each subscriber that registers with my application, and on login I'd like to show them their picture along with their subscriber details. I know I can add an asset

Re: DirectArea component in Tapestry 4

2006-09-01 Thread Brian Long
From the tapestry users mailing list, where else . . . ! /Brian. On 9/1/06, Hajaansh <[EMAIL PROTECTED]> wrote: Perfect. Where did you find that the name for the engine service was engine-service:direct ? On 9/1/06, Brian Long <[EMAIL PROTECTED]> wrote: > > Hajaansh

Re: DirectArea component in Tapestry 4

2006-09-01 Thread Brian Long
Hajaansh, had the same problem myself when moving from 3 to 4, so here are the updated AreaLink.jwc and AreaLink.java that I use. The main difference in the use of property injection for the engine service. AreaLink.jwc http://jakarta.apache.org/tapestry/dtd/Tapestry_4_0.dtd";> Creates a

Re: multiple stylesheets

2006-09-01 Thread Brian Long
... SomePage.html - which passes the array of stylesheet assets: ... SomePage.page - which defines the css assets: Cheers, Nick. Brian Long wrote: > Hi all, > > I'm afraid I might have dug myself into a hole (again!), but I hope someone > my have already encountered thi

multiple stylesheets

2006-08-31 Thread Brian Long
Hi all, I'm afraid I might have dug myself into a hole (again!), but I hope someone my have already encountered this problem and is willing to let me know of a possible solution. I'm trying to add multiple stylesheets to my web project, I'm currently using a @Shell component to enclose my web pa

[no subject]

2006-08-31 Thread Brian Long