Re: [T5] Linkable rows with Grid component

2007-10-01 Thread Howard Lewis Ship
Alternately, you could subclass GridRows to provide the hooks for what you need, then subclass Grid to make use of your custom GridRows. The components in Tapestry are not meant to be sacrosanct, just useful. Though that does bring up the question of component compatibility between releases. Hmp

Re: T5: Persisting per page AND depending on page state.

2007-10-01 Thread Jean-Philippe Bouchard
Probably because the domain component of the cookie issued by the servlet container is the actual hostname, not .my-host.com (http://wp.netscape.com/newsref/std/cookie_spec.html). Anyhow, if you ever need to share the session, you'll know where to look :) Ted Steen wrote: hah, and now, after

Re: T5: the scanner and JBoss

2007-10-01 Thread Howard Lewis Ship
We should probably update the deployment notes for JBoss then. Perhaps JBoss has changed recently because I tried a lot of variations before I found one that worked properly. On 10/1/07, Ben Sommerville <[EMAIL PROTECTED]> wrote: > > Switching to the JBoss classloader also makes auto-loading of h

RE: T5: the scanner and JBoss

2007-10-01 Thread Ben Sommerville
Ahh, that would be the difference. My templates are under WEB-INF\classes. > -Original Message- > From: Geoff Callender [mailto:[EMAIL PROTECTED] > Sent: Tuesday, 2 October 2007 6:23 AM > To: Tapestry users > Subject: Re: T5: the scanner and JBoss > > Didn't work for me. My html templa

Re: [T5]

2007-10-01 Thread Ned Jackson Lovely
On Mon, Oct 01, 2007 at 10:56:56AM -0500, Robert Zeigler wrote: > Or... > > @Inject > private Cookies _cookies; > > You can then do: > > readCookieValue("mycookie"); > and there a variety of "writeCookieValue" methods offering control > over the age, domain, path, etc. Excellent! Thank you. I

Re: T4: Components in Page get Initialized even if its in IF condition block ?

2007-10-01 Thread andyhot
http://tapestry.apache.org/tapestry4.1/apidocs/org/apache/tapestry/AbstractComponent.html#prepareForRender(org.apache.tapestry.IRequestCycle) sunilmanu wrote: Thanks for the reply and information.. So is there any other method that could be used to initialize the properties needed for the page

Re: T3: Upload

2007-10-01 Thread Nazmul Bhuiyan
I've removed that deprecated method from my page. I'm running this example page as part of my original project. And running from inside Eclipse. All other pages working ok. That's how I normally test any example before using into my real page. In the example code there is no .page file. Is my .p

Re: T5: the scanner and JBoss

2007-10-01 Thread Geoff Callender
Didn't work for me. My html templates are in subdirectories of WEB- INF. Where are yours? On 01/10/2007, at 11:53 PM, Ben Sommerville wrote: Switching to the JBoss classloader also makes auto-loading of html templates work for me. Have you tried the html auto-loading after making the classl

Re: Javascript in T5.0.3

2007-10-01 Thread Josh Canfield
Where are you putting your js file? Are you trying to dynamically generate the js? I've been sticking my static js files here: src/main/webapp/js/ and referencing them directly using

Re: Javascript in T5.0.3

2007-10-01 Thread jblier
Any development about JavaScript support with 5.0.5 or 5.0.6? I haven't tried OutputRaw yet. Currently I get this error when trying to link to a JS file: Unable to resolve page 'js/effects' to a known page name. Available page names: Start, core/ExceptionReport, core/PropertyDisplayBlocks, core

Re: T4: Components in Page get Initialized even if its in IF condition block ?

2007-10-01 Thread sunilmanu
Thanks for the reply and information.. So is there any other method that could be used to initialize the properties needed for the page other than pagebeginrender method .. ? Or I have to pass in a parameter and check it's value inside the pageBeginRender and see whether to process or not ? than

Re: [T5] Entities ( , etc) are not preserved by template parser

2007-10-01 Thread Robin Helgelin
On 10/1/07, Josh Canfield <[EMAIL PROTECTED]> wrote: > By the way, as of this weekend http://www.thedailytube.com has left it's > Cold Fusion roots and been migrated to T5 on Tomcat. So far so good! Congrats! -- regards, Robin

[T5] Entities ( , etc) are not preserved by template parser

2007-10-01 Thread Josh Canfield
Hi all, I've noticed that entities are not preserved in the generated html output (  becomes the actual character for a non-breaking space). This has not shown up as a problem in any browsers that I have tried, but it has been a problem when emailing the content of the page (I'm sure there is a ch

Re: T4: Components in Page get Initialized even if its in IF condition block ?

2007-10-01 Thread Robert Zeigler
That's correct; think of your component as a listener, listening, not for when /it/ is starting to be rendered, but when the /page/ is starting to render. So, the component's "pageBeginRender" is always called, since the component is asking to be notified of when the /page/ starts to render

Re: T4: Components in Page get Initialized even if its in IF condition block ?

2007-10-01 Thread sunilmanu
Howard, thanks for ur reply..but still my doubt is.. I can understand if the Component was to be Rendered, the pagebeingrender method being fired. But why the method is fired, if the component is NOT going to be rendered ? HTML just has a reference to that Component inside a IF block, so is that

Re: T4: Components in Page get Initialized even if its in IF condition block ?

2007-10-01 Thread Howard Lewis Ship
This is normal. There are most specific methods that get called in the lifecycle of the individual component. pageBeginRender() means the Page is beginning to render, long before any of the components render. On 10/1/07, sunilmanu <[EMAIL PROTECTED]> wrote: > > > Hello Everyone, > > We are using

T4: Components in Page get Initialized even if its in IF condition block ?

2007-10-01 Thread sunilmanu
Hello Everyone, We are using Tapestry 4.0.2 . Recently we noticed a following issue : We have a HTML page that has multiple COMPONENTS but are in IF conditional block. No matter how the condition is evaluated to TRUE /FALSE, the Components are getting called i.e. the PAGEBEGINRENDER method is be

RE: Combined Component Model - Is it supported ?

2007-10-01 Thread Ken nashua
Thanks Martino... I am still confused... The action handlers for each auto-paging button (or link) needs to dispatch to a handler. Handlers are normally assigned in forms. Here is the layout of the auto-paging links << <1 2 3 4 5 6 7 8 9 10 > >> content goes

Re: T5: Newbie question - using a variable and replace it with a property

2007-10-01 Thread jblier
Thanks for your quick answer. I changed the "App.properties" file name to "app.properties" and it works. It looks like to be case sensitive. Chris Lewis-5 wrote: > > Whatever your app/context name is (by default its App as created by the > quickstart), create an App.properties file in WEB-INF

Re: T5: Using external Hibernate-mapped entities: the "contribute" method goes where?

2007-10-01 Thread Andy Buckley
Chris Lewis wrote: > Your "AppModule" is created with the same name used in web.xml (as Robin > pointed out). By default its AppModule.java, as created by the > quickstart archetype. You should find that to use Hibernate you need > only to add it, annotations, and tapestry-hibernate to your pom.xml

Re: T5: Newbie question - using a variable and replace it with a property

2007-10-01 Thread Chris Lewis
Whatever your app/context name is (by default its App as created by the quickstart), create an App.properties file in WEB-INF. Assuming you've done that and you have your "applicationTitle" message, access it in templates using the "message" binding prefix: ${message:applicationTitle} ...

T5: Newbie question - using a variable and replace it with a property

2007-10-01 Thread jblier
Newbie question: I would like to replace the content of the tag with a value read from a .properties file. How do I set the tag? ${applicationTitle} How do I set a .properties files that would contain: applicationTitle=Application Title version 1 Currently I get the error: Class org.examp

Re: [T5]

2007-10-01 Thread Robert Zeigler
Or... @Inject private Cookies _cookies; You can then do: readCookieValue("mycookie"); and there a variety of "writeCookieValue" methods offering control over the age, domain, path, etc. Cheers, Robert On Oct 1, 2007, at 10/110:50 AM , Ned Jackson Lovely wrote: On Mon, Oct 01, 2007 at 05

Re: [T5]

2007-10-01 Thread Ned Jackson Lovely
On Mon, Oct 01, 2007 at 05:00:30PM +0200, Borut Bolčina wrote: > is there a T5 way of sending and receiving cookies? @Inject private RequestGlobals _requestGlobals; You can then call _requestGlobals.getHTTPServletRequest() and _requestGlobals.getHTTPServletResponse() to get access to the Servlet

Re: Combined Component Model - Is it supported ?

2007-10-01 Thread Martino Piccinato
> > Is the @RenderBlock specified from within the template or within the JAVA? > RenderBlock is a component, it's actually a component "marking" where a specified Block component (could be chosen dynamically at runtime) will be rendered. As any component can be defined in the component definition

RE: Combined Component Model - Is it supported ?

2007-10-01 Thread Ken nashua
Hi Martino... Referring to your suggested RenderBlock usage... Is the @RenderBlock specified from within the template or within the JAVA? How would I rig up a listener="listener:edit" within the JAVA? I appreciate your help and just trying to grasp the concept of what can be

Re: T5: Using external Hibernate-mapped entities: the "contribute" method goes where?

2007-10-01 Thread Chris Lewis
Your "AppModule" is created with the same name used in web.xml (as Robin pointed out). By default its AppModule.java, as created by the quickstart archetype. You should find that to use Hibernate you need only to add it, annotations, and tapestry-hibernate to your pom.xml. After that you need o

[T5]

2007-10-01 Thread Borut Bolčina
Hi, is there a T5 way of sending and receiving cookies? Cheers, Borut

Re: Combined Component Model - Is it supported ?

2007-10-01 Thread Martino Piccinato
Don't know why you need specifically to extend that class, it's not compulsory to have ajax (er even dojo) features. You can easily manage XHR/AJax requests using an EventListener annotation and selecting which components to partially update with ResponseBuilde.updateComponent(idOfTheComponentToUp

Re: Combined Component Model - Is it supported ?

2007-10-01 Thread Martino Piccinato
If inserted in a writer the following html will be split out as it is. If you want to dynamically render components inside your component (that is render different components depending on some conditions, even dynamically with an ajax request) you can use block/renderblock components.

Re: "No redeploy, no restart ..." --- yeah right

2007-10-01 Thread Christian Gruber
This is the thing. You can even do this with Weblogic Server - the trick is just that you have to start it up from within eclipse, and eclipse's class loader hooks for that j2ee container provide the classes. As long as you have a proper J2EE container starter that uses eclipse's own clas

Re: "No redeploy, no restart ..." --- yeah right

2007-10-01 Thread Christian Gruber
Heh. I had to almost do exactly that for my flex2 maven plugin. Christian. On 30-Sep-07, at 5:41 PM, Howard Lewis Ship wrote: (I would also have to come up with a special version of the Maven WAR plugin, for example). -

RE: Combined Component Model - Is it supported ?

2007-10-01 Thread Ken nashua
Hi Martino... the component I need to extend from is AbstractFormWidget, as part of the demo Jesse made. import org.apache.tapestry.dojo.form.AbstractFormWidget; It is not part of the BaseComponent hierarchy and does not support the processing of templates. he uses it in AutoCompleter and dat

Re: T5: Using external Hibernate-mapped entities: the "contribute" method goes where?

2007-10-01 Thread Robin Helgelin
On 10/1/07, Andy Buckley <[EMAIL PROTECTED]> wrote: > shows a way to deal with this, but I'm left with no idea where to put my > contributeHibernateSessionSource(...) method! It doesn't seem to work if added > to the page class (good: that would be inconvenient anyway!) so where should I > put it?

T5: Using external Hibernate-mapped entities: the "contribute" method goes where?

2007-10-01 Thread Andy Buckley
Hi, I'm trying to get Tapestry working with Hibernate - unfortunately there isn't much guidance on this, but I found this tutorial handy: http://wiki.apache.org/tapestry/Tapestry5HowToUseTapestryHibernate My application differs from this template, though, because the mapped entities are in an ex

RE: Combined Component Model - Is it supported ?

2007-10-01 Thread Ken nashua
Here is another case... I can set up listener handlers easily via template. In JAVA, I have to become on keyboard tapestry and determine what the proper "javascript:... ()" notation is for the rendering output... and hope it will work? ID's ? guesswork? Sorry nah uh. I am seeing that

RE: T5: the scanner and JBoss

2007-10-01 Thread Ben Sommerville
Switching to the JBoss classloader also makes auto-loading of html templates work for me. Have you tried the html auto-loading after making the classloader change? cheers Ben > -Original Message- > From: Geoff Callender [mailto:[EMAIL PROTECTED] > Sent: Monday, 1 October 2007 6:52 AM >

RE: Combined Component Model - Is it supported ?

2007-10-01 Thread Ken nashua
I am assuming I cannot render the following directly from JAVA... as it will be output as just that text... and uninterpretted? Can someone clarify what I can and cannot do in the JAVA with regard to template like text? I do not know if it will be interpretted along the request pipeline and pr

RE: Combined Component Model - Is it supported ?

2007-10-01 Thread Ken nashua
If it means anything... I am designing a Gallery.HTML here is my component layout... -- auto-paging -- content -- auto-paging -- 1. auto-paging just operates auto-paging buttons top/bottom just l

Re: Combined Component Model - Is it supported ?

2007-10-01 Thread Martino Piccinato
don't know if it's what you are looking for but you can always override renderComponent also in BaseComponent decorating the component template with some additional html e.g. /* (non-Javadoc) * @see org.apache.tapestry.BaseComponent#renderComponent(org.apache.tapestry.IMarkupWriter, org.

Combined Component Model - Is it supported ?

2007-10-01 Thread Ken nashua
Folks... per doc text that follows... 1. Components that inherit from BaseComponent will use an HTML template. 2. Components that inherit from AbstractComponent will render output in Java code, by implementing method renderComponent() . I would like to build a component that operates combined

t5: mock-up templates with sample-content then replace in t5

2007-10-01 Thread Britske
Hi, in T4 it is possible to mock-up pages in your favorite html-editor (say dreamweaver) including sample-content (for tables for example). How can I achieve the same in T5. I mean, I can add a table (see below) with dynamic content, but is it possible to add sample content (which is replace

Re: T3: Upload

2007-10-01 Thread Nick Westgate
I've tested the example code on the page. It works with the exception of file.isTruncated(), which has been deprecated, I presume. So the rest of the code, ie the code you post below, does work. It must be a configuration issue. Are you running this example page in isolation, or is it part of a

Re: Antwort: Re: T5: OnPassivate returning multiple variables

2007-10-01 Thread Angelo Chen
Hi, Thanks to all, list of objects works, I do not try array, must be working as well. kristian.marinkovic wrote: > > you could also return a list of objects > > > > > "Robin Helgelin" <[EMAIL PROTECTED]> > 01.10.2007 11:12 > Bitte antworten an > "Tapestry users" > > > An > "Tapestry us

Antwort: Re: T5: OnPassivate returning multiple variables

2007-10-01 Thread Kristian Marinkovic
you could also return a list of objects "Robin Helgelin" <[EMAIL PROTECTED]> 01.10.2007 11:12 Bitte antworten an "Tapestry users" An "Tapestry users" Kopie Thema Re: T5: OnPassivate returning multiple variables On 10/1/07, Angelo Chen <[EMAIL PROTECTED]> wrote: > public Long onPassi

Re: T5: OnPassivate returning multiple variables

2007-10-01 Thread Robin Helgelin
On 10/1/07, Angelo Chen <[EMAIL PROTECTED]> wrote: > public Long onPassivate() { > return currentUser.getId(); > } I'm actually just guessing here, but public Long[] onPassivate() ? -- regards, Robin ---

T5: OnPassivate returning multiple variables

2007-10-01 Thread Angelo Chen
Hi, I have this page that was activated with two parameters, as I understand onPassivate is used to persist the parameters, how can u return two parameters in this case? Thanks, A.C. http://localhost:8080/Show/3097/262 public Class onActivate(Long id, Long usr_id) { /* some process here *

Re: Questions for Tapestry 5

2007-10-01 Thread Hugo Palma
There are companies and individuals that provide Tapestry professional services. You can find more info here http://tapestrysupport.com BLIER, Jacques wrote: Hi! I am a Tapestry newbie and want to start directly by using Tapesry 5. I think that Tapestry have a lot of potential and that it can