Re: Upgrade from T4 to T4.1: Javascript problem

2008-09-28 Thread Christian Haselbach
Hi Andreas Andreou wrote: > well, if it's easily reproducable add a bug report - > It is easily reproducible, but I'm not sure that the problem is a bug in Tapestry. It probably is not. > otherwise, perhaps attaching the resulting html might help us find the cause > Unfortunately, I cannot

Re: Upgrade from T4 to T4.1: Javascript problem

2008-09-19 Thread Christian Haselbach
Hi Andreas Andreou wrote: > No, this shouldn't be the cause of this... > > Does this happen on FF? Does firebug show any resources not loading? > It happens on Firefox and IE. No, firebug reports nothing suspicious. I think I saw someone reporting a similar problem, but there was no further re

Upgrade from T4 to T4.1: Javascript problem

2008-09-19 Thread Christian Haselbach
Hi, I was just trying to upgrade from T4 to T4.1 (4.1.6). When Javascript is enabled, the page will be blank. With Javascript disabled in the browser, the page renders just fine. I replaces the ajaxDelegate in the Shell component with an empty render method. This works, but of course I get Javascr

Re: [T4] Validation Problem

2008-09-04 Thread Christian Haselbach
Hi again, a colleague of mine gave me a hint: Look at FieldLabel. FieldLabel handles exactly the same problem and uses preRender(). I could solve it analogous. Regards, Christian Christian Haselbach wrote: > Hi, > > I'm using a required validator on a TextField and use the form

[T4] Validation Problem

2008-09-04 Thread Christian Haselbach
Hi, I'm using a required validator on a TextField and use the form delegate to check whether there is an error in the TextField. If so, I render an error message. However, this message is rendered before the input-field is rendered. The problem starts when I have this TextField in a For loop. Now

Re: Only one user request at the same time

2008-03-03 Thread Christian Haselbach
d back to the user. Regards, Christian -- Christian Haselbach TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring Geschüftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock Amtsgericht München, HRB 135082 --

Re: i18n in javascript

2008-02-12 Thread Christian Haselbach
Quoting learner <[EMAIL PROTECTED]>: onclick="javascript:return confirm('${message:key_in_my_property_file}');" i try to use key in javascript like above but failed. how to use key in javascript? There are several thing to consider here. 1) You cannot use the message service directly from Jav

Re: [T4] Event for every request to clear data

2007-08-03 Thread Christian Haselbach
quite sure if this works as I think. So the request is done in a new thread, the service is created for this thread and is discarded when the request finishes, right? That would work for me, if this is the way things go. Regards, Christian -- Christian Haselbach - [EMAIL PROTECTED] - +49 176 2082

Re: T4 creating dynamic styles for divs

2007-08-03 Thread Christian Haselbach
On Thu, Aug 02, 2007 at 06:32:06PM -0700, kael20 wrote: > I have an issue where I need to create the style for a div based on the > properties of an object in my database. This object contains top, left, > width, and height which are important to create this particular div. Is > there anyway that

[T4] Event for every request to clear data

2007-08-02 Thread Christian Haselbach
in the wrong direction here? Thanks. Regards, Christian -- Christian Haselbach - [EMAIL PROTECTED] - +49 176 2082 5804 TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring Geschäftsführer: Henrik Klagges, Gerhard Müller, Christoph Stock Amtsgericht München, HRB 135082

Re: Help needed for persistent properties initialization in components (4.1.2)

2007-05-27 Thread Christian Haselbach
an initilization function that uses data from the current session, you will not get what you expect. Regards, Christian -- Christian Haselbach - [EMAIL PROTECTED] - +49 176 2082 5804 TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring Geschäftsführer: Henrik Klagges, Gerhard Müller, Eike Rei

Re: What are benefits of pure HTML templates?

2007-05-24 Thread Christian Haselbach
Quoting Igor Lobanov <[EMAIL PROTECTED]>: Anyway, Jonathan's suggestion about ease of CSS use is the most appealing to me, because nowadays CSS finally became the most powerful facility for determining style and position of elements on a page. I've got to say that this is not so important to m

Re: What are benefits of pure HTML templates?

2007-05-23 Thread Christian Haselbach
Quoting Lobanov Igor <[EMAIL PROTECTED]>: Considering all of these, decision to use "pure HTML" templates looks like completely arbitrary and the matter of taste of Mr. Howard Lewis Ship. However I suppose I missed an important point here, so I would be very grateful if somebody shed light on th

Re: How to set value of @Option component

2007-05-08 Thread Christian Haselbach
On Tue, May 08, 2007 at 06:48:03PM +0800, li li wrote: Hi li li, I cannot read your mail, because you send it in html only. Anyway, guessing from your subject: You must wrap Options components in a Select component. There you can set the value parameter. HTH Regards, Christian -- Christian

Re: [T-4.0] LinkFactoryImpl caches context path

2007-05-08 Thread Christian Haselbach
On Tue, May 08, 2007 at 11:24:33AM +0200, Christian Haselbach wrote: > Oh, got that wrong. Tapestry uses the servlet path, not the context > path, to create the url. On a closer look, I had it right the first time. The context path is cached and used. I guess I have to use a custom LinkF

Re: [T-4.0] LinkFactoryImpl caches context path

2007-05-08 Thread Christian Haselbach
On Tue, May 08, 2007 at 11:08:29AM +0200, Christian Haselbach wrote: > LinkFactoryImpl seems to cache the context path from the first request. > This causes EngineServiceLink to have the context path of the first > request and not of the current request. > > Is there an easy

[T-4.0] LinkFactoryImpl caches context path

2007-05-08 Thread Christian Haselbach
different context paths for different requests. Regards, Christian -- Christian Haselbach - [EMAIL PROTECTED] - +49 176 2082 5804 TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring Geschäftsführer: Henrik Klagges, Gerhard Müller, Eike Reinel Amtsgericht München, HRB 135082

Re: retrive value from html to java

2007-04-24 Thread Christian Haselbach
> file. You mean what the equivalent of the ognl expression "tool.product.pnumber" in java would be? Well, this depends on what realy is behind the properties tool and product. But probably it is equivalent to getTool().getProduct().getPnumber(). Regards, Christian -- Christian

Re: tapestry 4.0.2: How do I get a new page object?

2007-04-17 Thread Christian Haselbach
ian -- Christian Haselbach - [EMAIL PROTECTED] - +49 176 2082 5804 TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring Geschäftsführer: Henrik Klagges, Gerhard Müller, Eike Reinel Amtsgericht München, HRB 135082 -

Re: tapestry 4.0.2: How do I get a new page object?

2007-04-17 Thread Christian Haselbach
On Tue, Apr 17, 2007 at 11:30:03AM +0200, Christian Haselbach wrote: > You can instantiate a page by hand, but this will undermine the caching > strategy of tapestry. My guess is, that you are better off rethinking > your method of resolution. Perhaps you can put your things into po

Re: tapestry 4.0.2: How do I get a new page object?

2007-04-17 Thread Christian Haselbach
age once > before You can instantiate a page by hand, but this will undermine the caching strategy of tapestry. My guess is, that you are better off rethinking your method of resolution. Regards, Christian -- Christian Haselbach - [EMAIL PROTECTED] - +49 176 2082 5804 TNG Technology Consult

Re: tapestry 4.0.2: How do I get a new page object?

2007-04-17 Thread Christian Haselbach
On Tue, Apr 17, 2007 at 10:39:38AM +0200, Holger Stolzenberg wrote: > How about: > > @InjectPage("PageName") > public abstract IPage getNewPageObject(); This will not necessarily give you a new instance as the OP wanted. Regards, Christian -- Christian Haselbach - [EMAI

Re: tapestry 4.0.2: How do I get a new page object?

2007-04-16 Thread Christian Haselbach
Quoting Karthik N <[EMAIL PROTECTED]>: I have a requirement however where I want newPage to be a different instance than this In that case you should probably rethink the requirement. Why do you want to have a different instance? The concept of the page is that you have an instance to render f

Re: Rendering raw data in pages

2007-03-25 Thread Christian Haselbach
(ab)using a page to render a png. What should tapestry pool here, and how should it know how to do it? Other markups (like SVG) would be another case. There is a lot of reuse potential. Regards, Christian -- Christian Haselbach - [EMAIL PROTECTED] - +49 176 2082 5804 TNG Technology Consulting Gm

Re: [T4] Adding body of a sub-component w/o using a template

2007-03-04 Thread Christian Haselbach
ather hoped I could reuse LinkSubmit. The use case is pretty simple: A specialized LinkSubmit component. Regards, Christian -- Christian Haselbach - [EMAIL PROTECTED] - +49 176 2082 5804 TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring Geschäftsführer: Henrik Klagges, Gerhard Mü

Re: [T4] Adding body of a sub-component w/o using a template

2007-03-01 Thread Christian Haselbach
function I can add the custom renderer, but I cannot find the right way to do it, as I explained formerly. Regards, Christian -- Christian Haselbach - [EMAIL PROTECTED] - +49 176 2082 5804 TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring Geschäftsführer: Henrik Klagges, Gerhar

[T4] Adding body of a sub-component w/o using a template

2007-03-01 Thread Christian Haselbach
, because i cannot access the sub-component. Any ideas? Thanks in advance. Regards, Christian -- Christian Haselbach - [EMAIL PROTECTED] - +49 176 2082 5804 TNG Technology Consulting GmbH, Betastr. 13a, 85774 Unterföhring Geschäftsführer: Henrik Klagges, Gerhard Müller, Eike Reinel Amtsgericht

Re: Problem with Euro symbol

2006-12-04 Thread Christian Haselbach
Zitat von Ron Piterman <[EMAIL PROTECTED]>: > The € is comming from the java currency format object: > NumebrFormat.getCurrencyInstance(); Just a guess. You are using a number format without specifying the locale. Hence, the default locale for your platform is used which propably includes the enc

Re: dynamic image assets?

2006-11-29 Thread Christian Haselbach
Zitat von Brian Long <[EMAIL PROTECTED]>: > the "pathToImage" returned by my subscriber dataobject is exactly that, a > path to the image. I'd like to use this in the asset component instead of > the path: > > Right, thats why I meant the parameter binding. > > > > > > Change to:

Re: dynamic image assets?

2006-11-29 Thread Christian Haselbach
Zitat von Brian Long <[EMAIL PROTECTED]>: > > > Try The value is already an ognl expression (if not declared otherwise). However, this will still depend on named assets in the page. I.e., there must be an asset named like what subsriber.pathToImage evaluates to. You probably want yo

Re: Components inside For component

2006-10-30 Thread Christian Haselbach
On Mon, Oct 30, 2006 at 08:46:41PM +, pipothebit wrote: > I add rols and delete (throught index property of For component) but my > rol values are not set during post, and when i go to save it to database > all items of rols List are empty (state is not saved). I do not really understand what

Upload file size limit in 4.0.2

2006-10-26 Thread Christian Haselbach
Hello, we wanted the set the file size limit for upload files to a different value, but this is not possible as noted in the following bug report: http://issues.apache.org/jira/browse/TAPESTRY-995 Unfortunately, updating is not an option right now. Is there a work-around? Thanks. Regards, Christ

Re: For component ConcurrentModificationException during rewind.

2006-10-16 Thread Christian Haselbach
Zitat von Gareth <[EMAIL PROTECTED]>: > I have gotten around the problem by, in the listener for "onDelete", I flag > the row for deletion, and then in the "PageBeginRender" method, I check to > see that it is not rewinding - i.e. it is about to start rendering the > response, and if the deletion

Re: Insert Components depending on SubClass

2006-10-04 Thread Christian Haselbach
Quoting Skorpien126 <[EMAIL PROTECTED]>: > In another Component I read the array. This one should entry a the > Non-worker component or the Worker-Component for each object depending on > which object i want to visualize. Is there a way realize that?!?! You can use the If component to choose how

Re: tapestry - spring integration

2006-07-21 Thread Christian Haselbach
Quoting Anders Cessner <[EMAIL PROTECTED]>: > I´ve browsed through some of the mails sent to this mailing list earlier and > have learned some tricks to keep those lazy load exceptions away, for > example, but didnt really get how exactly do i configure tapestry and spring > so i can inject the sp

Re: OGNL in javascript

2006-06-06 Thread Christian Haselbach
Quoting Deon Visagie <[EMAIL PROTECTED]>: > I want to put an ognl expression in my onclick event of a link > e.g: onclick="ognl:'javascript: document.getElementById('userId').value=' + > user.Id" I'd say there is a syntax error with the single quotes, which occure in the getElementById call. If e

Re: Invalidate session

2006-05-23 Thread Christian Haselbach
Quoting Bryan Lewis <[EMAIL PROTECTED]>: > This has been discussed a few times before. For example, Yes, I have googled a bit and found some small discussions. But they were not to helpful. > As you say, Tapestry doesn't allow the exception to bubble up to the > user, but it does put a worrisom

Invalidate session

2006-05-23 Thread Christian Haselbach
Hello, how can a session be invalidadted gracefully? Simply calling session.invalidate() (where session for example was retrieved using WebRequest.getSession()) does invalidate exception, but will result in an exception later on in AbstractEngine. Here, the state manager is flushed which will comp