Re: Tapestry 5.2 + Google Appengine

2010-03-27 Thread Peter Kanze
ing s, Instrumentation instrumentation) { } public static Object getAgent() { return null; } } On Sat, Mar 27, 2010 at 2:02 PM, Peter Kanze wrote: > Hello I have a working webapp with Tapestry 5.2 running with Google > Appengine. > > But when I add a simple form like this I ge

Tapestry 5.2 + Google Appengine

2010-03-27 Thread Peter Kanze
Hello I have a working webapp with Tapestry 5.2 running with Google Appengine. But when I add a simple form like this I get the error shown below. First Name: Last Name: 12:58:00,625 ERROR [org.apache.tapestry5.services.TapestryModule.RequestExceptionHandle

working pom.xml for latest tapestry 5.2.0-SNAPSHOT

2010-03-23 Thread Peter Kanze
Does anyone have a working pom.xml file, so I can use the latest tapestry 5.2.0-SNAPSHOT en download all its dependencies.

T5: tapestry.page-pool.hard-limit for high traffic websites

2009-04-09 Thread Peter Kanze
Hello The default for the absolute maximum number of page instances is 20. Does this mean 20 users can request the same page at the same time? I am rebuilding a website that has at peaktimes around 100 users per second, requesting the same page (home page).. Should I then maximize the page-pool.

Re: T5: Block with Form + Submit

2009-04-02 Thread Peter Kanze
Sorry my fault. I solved it. I didn't used id="mailForm" instead of t:id='"mailForm" Thanks anyway! Peter On Thu, Apr 2, 2009 at 4:24 PM, Peter Kanze wrote: > Hello > > I have a tabset, that works with a zone and blocks. > > In one block I have a

T5: Block with Form + Submit

2009-04-02 Thread Peter Kanze
Hello I have a tabset, that works with a zone and blocks. In one block I have a form to send mail and in another block a form for registration. De problem is that I cannot catch submit in the correct onSuccessFrom... Form. I can only catch the submit events in a general onSuccess() method. But

T5: Form NoSuchElementException

2009-04-02 Thread Peter Kanze
Can someone explain the error below? The page is loading correctly, but when I hit the search button I get this error. the onPrepare is the last method, after that I get the exception. java.util.NoSuchElementException # java.util.AbstractList$Itr.next(Unknown Source) # org.apache.tapestry5.core

Re: T5: onActivate called before onSuccessFrom

2009-04-01 Thread Peter Kanze
xamples/navigation/onactivateandonpassivate/3 > > http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/navigation/whatiscalledandwhen > > Regards, > Geoff > > > On 01/04/2009, at 9:30 PM, Peter Kanze wrote: > > To be more clear I added a basic page with a simple form. >

Re: T5: onActivate called before onSuccessFrom

2009-04-01 Thread Peter Kanze
(int nr) 2 getInputString() Thanks, Peter On Wed, Apr 1, 2009 at 10:50 AM, Peter Kanze wrote: > Hello > > Today I noticed that when I submit a form by clicking the submit button, > tapestry first calls the onActivate and then the onSuccesFromMyForm. > > Is this normal tapestry

T5: onActivate called before onSuccessFrom

2009-04-01 Thread Peter Kanze
Hello Today I noticed that when I submit a form by clicking the submit button, tapestry first calls the onActivate and then the onSuccesFromMyForm. Is this normal tapestry behaviour? What is the reason behind it? See my output after I clicked the submit button: onActivate(String categoryName, i

Re: Good Cheap Java Web Hosting Solutions

2009-03-28 Thread Peter Kanze
Hi Otho, What company are you talking about? And are there also companies located in Europe? On Sat, Mar 28, 2009 at 8:22 AM, Otho wrote: > The price difference between virtualized and full servers isn't that big > anymore. I run a dual core opteron with 3 gigs or ram and 2 mirrored 250gig

Re: T5: Prototype question

2009-03-28 Thread Peter Kanze
Hello Yes indeed, this.activeTabId = 'tab4' On Fri, Mar 27, 2009 at 10:12 PM, Howard Lewis Ship wrote: > Do you mean: > > this.activeTabId = 'tab4' > > ? > > If not, there's your answer. > > On Fri, Mar 27, 2009 at 11:35 AM, Peter Kanze

T5: Prototype question

2009-03-27 Thread Peter Kanze
Hello Why is this working: if (element.up().id == 'tab4') element.addClassName('active'); And this not: if (element.up().id == this.activeTabId) { element.addClassName('active'); And this.activeTabId = tab4 See here the full javascript code: var ActiveStyle = Class.create(); ActiveSty

Re: T5: How to load image Asset from filesystem?

2009-03-27 Thread Peter Kanze
emplate and set the src attribute to > ${imagePath} > > img src="${imagePath}" > > Hope this helps, > Daniel > > > Peter Kanze wrote: > > > > Hi Daniel, > > > > Thanks for your example. I tried this one, but the Object onImage is > never

T5: Are Search Form Fields Persisted Per Page?

2009-03-27 Thread Peter Kanze
Hello At the top of the page I have a search form where a user can search on product description, category etc.. The result list of products (generated below the search form) also contains a pager component.. Like this Page: 1 | 2 | 3 | 4 | 5 | 6 ... | 11 | 12 When I click on a page link (page

T5: onActivate called twice

2009-03-25 Thread Peter Kanze
Hello I have a pagelink that point to this /products/computer/5 In my Products.java I have two onActivate methods. See below. When I click the pageLink I can see that both onActivate are called. Because this is printed to the output console: onActivate(String categoryName, int pageNr) onActivate:

Re: T5: Navigation Component with Active style, How?

2009-03-20 Thread Peter Kanze
> On Fri, Mar 20, 2009 at 9:34 AM, Peter Kanze wrote: > > I have a component at the top of the page for navigating to my "main" > > pages.. > > This works perfect, see the xhtml code below.. But the problem is that I > > want the clicked navigate link to g

T5: Navigation Component with Active style, How?

2009-03-20 Thread Peter Kanze
Hello I have a component at the top of the page for navigating to my "main" pages.. This works perfect, see the xhtml code below.. But the problem is that I want the clicked navigate link to get an class="active" attribute. How can I do this? The problem is the component is rerendered after I clic

T5: How to set generated component id

2009-03-13 Thread Peter Kanze
Hello, I want to add some blocks with a generated id. like this: But I get the following error message: Block id 'image${thumbIndex}' is not valid; block ids must be valid Java identifiers: start with a letter, and consist of letters, numbers and underscores. How can

Re: T5.1 + JSONArray

2009-03-13 Thread Peter Kanze
gt; > See https://issues.apache.org/jira/browse/TAP5-469. > > Patrick > > 2009/3/12 Howard Lewis Ship > > > It's possible that XmlHttpRequest may not handle GZIPed responses > > correctly; I'm looking into it. > > > > On Thu, Mar 12, 2009 at 4:28 AM,

Re: T5: How to load image Asset from filesystem?

2009-03-12 Thread Peter Kanze
splay. >return StreamResponseBuilder.getItemImage(pID); >} > > PAGE TEMPLATE > > ${imagePath} > > Hope this helps > Regards, > Daniel > > > > Peter Kanze wrote: > > > > Hello > > > > I want to load images from the

Re: T5: How to load image Asset from filesystem?

2009-03-12 Thread Peter Kanze
quot; for the image >> file on disk and creates and returns a "StreamResponse", so essentially >> you >> want this action handler to return a "StreamResponse" of the image you >> want >> to display. >>return StreamResponseBuilder

Re: T5.1 + JSONArray

2009-03-12 Thread Peter Kanze
y). Haven't had the time to look into it but maybe it is > related. > > Just thought I'd share, > Joost > > On Thu, Mar 12, 2009 at 7:05 PM, Peter Kanze wrote: > > Hello > > > > I had implement a depended select box. This works fine in T 5.0.18. But

T5.1 + JSONArray

2009-03-12 Thread Peter Kanze
Hello I had implement a depended select box. This works fine in T 5.0.18. But after I upgrade to 5.1 the dependent select doesn't work anymore. Only sometimes. It seems that the response is sometimes filled correctly, but most of the time it is empty. I then mostly get the error "Badly formed JSO

Re: Image Asset Help Needed

2009-03-11 Thread Peter Kanze
; Did you read the thread "How to load image Asset from filesystem"? > > You might want to vote for the issue. > > Regards, > Andy > > > Peter Kanze schrieb: > > Here am I again. >> >> I am struggling for 2 days now to load an image from the file

Image Asset Help Needed

2009-03-11 Thread Peter Kanze
Here am I again. I am struggling for 2 days now to load an image from the filesystem into my webpage. The image needs to be loaded based on the product id. The steps I did was: 1. Implemented a FileSystemAssetFactory based on the ClasspathAssetFactory 2. Implemented a FileSystemResource; See the

Re: T5: How to load image Asset from filesystem?

2009-03-10 Thread Peter Kanze
> Asset icon = assetFactory.createAsset(iconResource); > > if(icon != null) { > > writer.element("img", > "src", icon.toClientURL(), > "alt", getAlt()); > > resources.renderInformalParameters(wri

Re: T5: How to load image Asset from filesystem?

2009-03-10 Thread Peter Kanze
getRootResource() and public Asset createAsset(Resource resource); I also looked at ClasspathAssetFactory but don't understand it. The comment is too minimal. Can someone help me with this? Thanks, Peter! On Tue, Mar 10, 2009 at 1:59 PM, Peter Kanze wrote: > Oke thank you. > > Bu

Re: T5: How to load image Asset from filesystem?

2009-03-10 Thread Peter Kanze
Oke thank you. But how do I map between the web http:// and the file D:/ urls? Can you give me some (pseudo) code examples how to do this? Thanks! Peter On Tue, Mar 10, 2009 at 1:56 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > On Tue, Mar 10, 2009 at 9:51 AM, Pe

Re: T5: How to load image Asset from filesystem?

2009-03-10 Thread Peter Kanze
Hello I already searched the archive and found the question, but it is not clear to me. There are no examples in it with a dynamic path.. On Tue, Mar 10, 2009 at 1:45 PM, Thiago H. de Paula Figueiredo < thiag...@gmail.com> wrote: > Hi! > > Search this mailing list archives because this was al

T5: How to load image Asset from filesystem?

2009-03-10 Thread Peter Kanze
Hello I want to load images from the filesystem, like for example D:/category/1/products/55/thumb.jpg So the file path is dynamic and is based on the categoryId and the productId. How can I load such an image into my webpage using a Tapestry Asset? This looks like a common usecase to me, but I c