Re: ITemplateSourceDelegate

2006-10-31 Thread andyhot
I recently did the exact same thing and just saw your implementation... Actually, I got a slightly better solution ;) After finding the page class, you have to create a 'virtual' page spec. The trick is to set its specificationLocation to be in the classpath, right in the package of the class yo

Re: How to custom the script event.

2006-10-31 Thread Jesse Kuhnert
dojo.event.connect("after", dojo, "onload",function(){}) ? On 10/31/06, Jun Tsai <[EMAIL PROTECTED]> wrote: I want to do something after "dojo.onload". not in dojo.onload. 2006/11/1, Jesse Kuhnert <[EMAIL PROTECTED]>: > > Either ; > > dojo.addOnLoad(function(){ > // your script > }); > > Or u

Re: How to custom the script event.

2006-10-31 Thread Jun Tsai
I want to do something after "dojo.onload". not in dojo.onload. 2006/11/1, Jesse Kuhnert <[EMAIL PROTECTED]>: Either ; dojo.addOnLoad(function(){ // your script }); Or use the block of a @Script template. On 10/31/06, Jun Tsai <[EMAIL PROTECTED]> wrote: > > How to execute some script afte

Re: Line precise error reporting redirecting

2006-10-31 Thread Howard Lewis Ship
This should work in Tapestry 3. In Tapestry 4, the correct way is to provide an override of the ExceptionPresenter service (or to provide an override of the Exception page). http://tapestry.apache.org/tapestry4/tapestry/hivedocs/service/tapestry.error.ExceptionPresenter.html On 10/31/06, Mark S

Re: How to custom the script event.

2006-10-31 Thread Jesse Kuhnert
Either ; dojo.addOnLoad(function(){ // your script }); Or use the block of a @Script template. On 10/31/06, Jun Tsai <[EMAIL PROTECTED]> wrote: How to execute some script after "dojo.onload"? Thanks. 2006/10/27, Jesse Kuhnert <[EMAIL PROTECTED]>: > > You can override portions of > org.apac

Re: How to custom the script event.

2006-10-31 Thread Jun Tsai
How to execute some script after "dojo.onload"? Thanks. 2006/10/27, Jesse Kuhnert <[EMAIL PROTECTED]>: You can override portions of org.apache.tapestry.services.impl.DefaultResponseBuilder to bind window loading things they way you want. Really the window loading stuff happens with dojo.addOn

Problem on Nested Body component

2006-10-31 Thread wong wayne
Hello all I'm developing a system which using tapestry v3.03. I have some problem on Rollover & directLink component. When I using directLink to redirect a page - a static html page(actually is render the page in a page border), it works fine but when i added Rollover component, it need include in

Re: links in a table

2006-10-31 Thread ra
Daniel Jue wrote: > > Hi, > > Perhaps I am not understanding your situation or perhaps my example > failed to stimulate your creativity. ;-) > > If you don't know the class, at the minumum the class should implement > something that will spit out the column names, and the way to get the > ele

Re: links in a table

2006-10-31 Thread Daniel Jue
I would recommend Kent Tong's book. It's more of an advanced tutorial than a book. If I didn't have it, I would not be programming in Tapestry at all. And it was like $20US for the PDF. BTW, the pdf is better since you can copy and paste the code, and search for examples much quicker. Plus I

Re: links in a table

2006-10-31 Thread Daniel Jue
Hi, Perhaps I am not understanding your situation or perhaps my example failed to stimulate your creativity. ;-) If you don't know the class, at the minumum the class should implement something that will spit out the column names, and the way to get the elements of each row. For instance, if yo

Re: links in a table

2006-10-31 Thread ra
Ok. and how can I construct the url to a page ? The page name is known. Sorry I'm a novice Regards, Arek andyhot wrote: > > ok, so generate the String returned by getTableColumns() > at runtime... > > > > ra wrote: >> >> Daniel Jue wrote: >> >>> I recently found a solution due to some

Re: links in a table

2006-10-31 Thread andyhot
ok, so generate the String returned by getTableColumns() at runtime... ra wrote: > > Daniel Jue wrote: > >> I recently found a solution due to some help on this mailing list. >> >> Here's what we came up with. It displays a table of people, and the >> extent of people details are not known u

Re: links in a table

2006-10-31 Thread ra
Daniel Jue wrote: > > I recently found a solution due to some help on this mailing list. > > Here's what we came up with. It displays a table of people, and the > extent of people details are not known until runtime (i.e. should we > display the first name, last name, email, etc) > > In the

Re: ANN: tacos 4.0.1 released

2006-10-31 Thread andyhot
andyhot wrote: > edward pedersson wrote: > >> Well done on the new release. Thanks for keeping tacos up and running >> and >> providing very useful components. >> >> Just one question, is this below documented? I would like to define my >> own >> exception and stale-session pages. >> see

Re: links in a table

2006-10-31 Thread Daniel Jue
I recently found a solution due to some help on this mailing list. Here's what we came up with. It displays a table of people, and the extent of people details are not known until runtime (i.e. should we display the first name, last name, email, etc) In the page file:

links in a table

2006-10-31 Thread ra
I'd like display links in a table, but ... column names are unknown at the development time I'm new to tapestry and don't what is the best solution. What I found is I can override method getValueRender in i.e. SimpleTableRenderer and return somehow PageLink instance but it's abstract class and ha

RE: Line precise error reporting redirecting

2006-10-31 Thread Mark Stang
Is this done the same in 3.x or different, if different, how is it done? We would like to display a simple page and then log the stack trace... Mark J. Stang Senior Engineer/Architect office: +1 303.468.2900 mobile: +1 303.507.2833 Ping Identity -Original Message- From: Jabbar [mailto

Re: Line precise error reporting redirecting

2006-10-31 Thread Jabbar
Used the source .. Added the following to MyExceptionPage public abstract void setExceptions(ExceptionDescription[] exceptions); public void setException(Throwable value) { ExceptionAnalyzer analyzer = new ExceptionAnalyzer(); ExceptionDescription[] exceptions = a

Re: Optimizing dojo and the tapestry js source code

2006-10-31 Thread Josh Long
Sounds good so far! Thatll good to know.. what would building/baking the tapestry files into dojo.js or some file where its compressed look like? That is, i have the tapestry head on disk and im in /js/ and i see tapestry, dojo, and a few other directories. i also see a tapestry profile .js -- h

Tree and Table Component

2006-10-31 Thread tux4ever
Dear users! I hope you can give me some hints to realize the following requirement. We want to implement a tree table including custom components. Please have a look a the screenshot to see what I mean;-) The header should include some fields and if you click on the "+" symbol a detailed overview

Line precise error reporting redirecting

2006-10-31 Thread Jabbar
Hello all, I want to catch the line precise exception page and redirect to one of my own pages. To do this all I need to add is to .application Once I've gone to my own exception page how do I get hold of the stack trace ? -- Thanks A Jabbar Azam

Component won't remember value

2006-10-31 Thread Gurps
I have 2 pages. A Home.html and a Result.html. I have 1 component (SearchComponent) which is to be SHARED across both pages. The component is a simple textfield. When submitting a value in the first page, it then goes to the result page. However the component don't remember it's value the first t

Re: ANN: tacos 4.0.1 released

2006-10-31 Thread andyhot
edward pedersson wrote: > Well done on the new release. Thanks for keeping tacos up and running > and > providing very useful components. > > Just one question, is this below documented? I would like to define my > own > exception and stale-session pages. I planned to document this in the FAQ ht

Re: Optimizing dojo and the tapestry js source code

2006-10-31 Thread Jesse Kuhnert
The dojo build system can compress its own and your (or tapestry) js packages all into one file. You'll probably have to dig around in manual.dojotoolkit.org to find more. When you are really getting serious about optimizations though I would check out the jslinker provided with dojo as well. It

Re: Optimizing dojo and the tapestry js source code

2006-10-31 Thread Jesse Kuhnert
Oh..And don't forget the "intern-strings" ant build option. That will embed the templates/css into the main dojo.js file as well. On 10/31/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: The dojo build system can compress its own and your (or tapestry) js packages all into one file. You'll probabl

Re: One component, multiple templates?

2006-10-31 Thread Shaun
Thanks Jesse, this is precisely the pattern that I was looking for. It works a treat. Shaun Jessek wrote: > > For something like this I would do it this way: > > -) Write out your html as you would normally... > > -) For all messages define one basic css class name and set it on all of > the

Re: ThreadLocals for Hibernate in Tapestry 4.1

2006-10-31 Thread James Carman
You can use Tapernate (www.carmanconsulting.com/tapernate) if you want, but I'd recommend against the persistence strategies as I think I have a better idea how to do it and it'll be changing soon. The hibernate configuration, open-session-in-view, data squeezer, and POJO rollback features are wo

Re: ANN: tacos 4.0.1 released

2006-10-31 Thread edward pedersson
Well done on the new release. Thanks for keeping tacos up and running and providing very useful components. Just one question, is this below documented? I would like to define my own exception and stale-session pages. Easier way for defining ajax exception and stale-session pages. On 31/10

Re: Getting a reference to Hivemind registry

2006-10-31 Thread Shing Hing Man
The Hivemind registry is stored in the servlet context. (Please see the source code of init method in org.apache.tapestry.ApplicationServlet.) If you need to reference the HiveMind registry outside a web page, you might need to create your own 'singleton' of HiveMind registry. Shing --- "B.

Using the TableView component within a Form

2006-10-31 Thread Gareth
contrary to what you might think, stealing a thread wasn't intended but an oversight. hi, I'm using the TableView component on what can be visulised as a search page. The whole page is wrapped in a form (so that the paging buttons etc submit the search criteria), and the Form version of TableR

Re: setAttribute() fails.. (Tapestry 4.1)

2006-10-31 Thread Skorpien126
The same problem I think he didn“t reference the correct Object. I would try to make the parameters as properties(default-value then should be the value of the input-parameter) and in the doSubmitForm() i would save them... but this doesnt seem to work in tapestry 4.1! [EMAIL PROTECTED] wr

Re: Using java 1.5 enums as property selection models

2006-10-31 Thread Stephanos Piperoglou
"Martin Strand" <[EMAIL PROTECTED]> wrote on 30/10/2006 17:33:32: > On Mon, 30 Oct 2006 18:24:27 +0100, Stephanos Piperoglou [EMAIL PROTECTED]> wrote: > > > I was kind of expecting to be able to use a generic type (T > > above) as an instance of java.lang.Class. Unsurprisingly, I can't. > > Surp

Re: setAttribute() fails.. (Tapestry 4.1)

2006-10-31 Thread gant
i had some problems wiht @For I used instead @Foreach. Try with @Foreach - Original Message - From: "Skorpien126" <[EMAIL PROTECTED]> To: Sent: Tuesday, October 31, 2006 6:27 PM Subject: Re: setAttribute() fails.. (Tapestry 4.1) I REALLY NEED HELP. (last night i thought thats

Re: setAttribute() fails.. (Tapestry 4.1)

2006-10-31 Thread Skorpien126
I REALLY NEED HELP. (last night i thought thats its maybe a problem with accesing because the list is build and accessed by two different services (page,direct-service... ).. so i decide to make the list a porperty of an global/ Visit Object... i can access the object and i can read the data..

Optimizing dojo and the tapestry js source code

2006-10-31 Thread Josh Long
I'm experiencing a ridiculous slow down in speed on a front page because the initial page uses a few widgets whcih themselves use other dojo packages, few of which are included in the default dojo.js that comes bundled with tapestry. So, i built a dojo.js equivalent to te kitchen sink build with a