Re: T5:Tiles?

2007-08-24 Thread Nick Westgate
The page location is http://localhost:8080/Somepage; http://localhost:8080/Somepage.html; is the location of component html on the page Somepage. I.e. Tapestry 5 uses . to specify components. (Which might actually be a bad idea.) Cheers, Nick. Angelo Chen wrote: Hi Josh, It works perfectly!

Re: T5:Tiles?

2007-08-24 Thread Angelo Chen
Hi Josh, It works perfectly! thanks, It's my fault, I start the page directly: http://localhost:8080/Somepage.html. this works: t:PageLink t:page = Somepagesomepage/t:PageLink don't know what's the difference. A.C. Josh Canfield-2 wrote: html

Re: T5:Tiles?

2007-08-24 Thread Angelo Chen
Hi Josh, What defined in the parameter block should be in the same page(Somepage.html), can it refer to another html? A.C. somepage.html t:layout xmlns:t=http://tapestry.apache.org/schema/tapestry_5_0_0.xsd; t:parameter name=sidebarContent Add this additional to

Re: T4.1 :: async form auto-submit

2007-08-24 Thread Patrick Klein
Hello, How can I make a PropertySelection auto-submit an async form when changed? Create an EventListener in your java file listening for the onchange event for this element or target. Inside this method you can trigger an async update of the page using

Re: T5 questions: adding my own initializations; outputing pre-formatted HTML; tree component; javadoc

2007-08-24 Thread Francois Armand
Erik Vullings wrote: 3. Related to Q2, are there any T5 tutorials on how to develop a tree component, similar to a grid component? Or does someone already have it? I have an example tree component here :

Re: T5 questions: adding my own initializations; outputing pre-formatted HTML; tree component; javadoc

2007-08-24 Thread Kheldar666
I do this : In AppModule.java : public void contributeApplicationInitializer(OrderedConfigurationApplicationInitializerFilter configuration) { configuration.add(mainModuleInitializer, new MainModuleInitializer()); } With MainModuleInitializer

Re: T5:Tiles?

2007-08-24 Thread Angelo Chen
Hi Josh, This works, now if I have this in the Layout.html: head title${title}/title /head Layout.java also has a getTtitle to return 'base page'; now how to replace this title with 'somepage' in the somepage.html? I add a getTitle in the Somepage.java, but it still picks up 'base page',

Re: T5 questions: adding my own initializations; outputing pre-formatted HTML; tree component; javadoc

2007-08-24 Thread Robin Helgelin
On 8/24/07, Kheldar666 [EMAIL PROTECTED] wrote: I do this : In AppModule.java : public void contributeApplicationInitializer(OrderedConfigurationApplicationInitializerFilter configuration) { configuration.add(mainModuleInitializer, new

Re: [T5.0.5] Caching and IE6

2007-08-24 Thread Siddhartha Argollo
With auto-links I wanted to say links to the same page. For example, when the user clicks the link, a condition for an if is met, rendering a block. With IE, instead of the new state of the page, it shows the same state before the click. I will be foreced to break the logic in several pages,

path to referenced files

2007-08-24 Thread Angelo Chen
Hi, If I have something like following in the html, which directory should i put so that it can be picked up during run time: /images/logo.jpg Thanks, A.C. -- View this message in context: http://www.nabble.com/path-to-referenced-files-tf4322970.html#a12310389 Sent from the Tapestry - User

RE: path to referenced files

2007-08-24 Thread Marcus.Schulte
yourWebApp/images -Original Message- From: Angelo Chen [mailto:[EMAIL PROTECTED] Sent: Friday, August 24, 2007 1:07 PM To: users@tapestry.apache.org Subject: path to referenced files Hi, If I have something like following in the html, which directory should i put so that

Re: path to referenced files

2007-08-24 Thread Michael Wölm
I use path=context:/images/logo.jpg to display the office emblem, for example. But I use T4, doesn't know if T5 has is still... That has the small adavantage that renaming the application doesn't force a change to such links. Regards, Michael Wölm [EMAIL PROTECTED] schrieb:

Re: T5 questions: adding my own initializations; outputing pre-formatted HTML; tree component; javadoc

2007-08-24 Thread Francois Armand
Erik Vullings wrote: In the end, to create the Tree component ( http://wiki.apache.org/tapestry/Tapestry5TreeComponent) ho :) I didn't make the link between this page and you :) I just opened a Jira issue to ask for the addition of a Tree element in the code lib, so that every users may use

Re: T4.1 :: async form auto-submit

2007-08-24 Thread Marcelo C. de Freitas
Thanks Patrick, It didn't work as expected (well, at all), but I saw some javascript written in the HTML output. I'll just have to dig a little deeper; at least now I have the right directions. Regards. 2007/8/24, Patrick Klein [EMAIL PROTECTED]: Hello, How can I make a

RE: T5 is production ready ?

2007-08-24 Thread Kolesnikov, Alexander GNI
T5 isn't production ready, but you can do a lot with it. Some obvious features are missing like a control for date entry, some bugs are here and there, like validation error messages are misplaced. Despite of this, I think you can already build a fully working T5 application. You will just need to

T5 is production ready ?

2007-08-24 Thread #Cyrille37#
Hello, This subject is often present in the list... I'm working on a project which has to be in production in 1 month. The business layer is done, and the web part is nearly done with T4.1.2. I've some time left, and every day I'm thinking about changing to T5 ... The only T5 missing part

Re: T5 is production ready ?

2007-08-24 Thread Robin Helgelin
On 8/24/07, Kolesnikov, Alexander GNI [EMAIL PROTECTED] wrote: T5 isn't production ready, but you can do a lot with it. Some obvious features are missing like a control for date entry, some bugs are here and there, like validation error messages are misplaced. Despite of this, I think you

[T5]: Question about temporary properties

2007-08-24 Thread Kevin Menard
Hi, Now that T4 is likely to go the way of the dodo and I'm looking at a new app, I'm evaluating T5 along with several other frameworks. I'm trying to get some info on T5 that may help out. It appears that the page spec has gone away in T5. While it was optional in T4, one of the things I

Re: T5 is production ready ?

2007-08-24 Thread Marcus
Hi Cyrille, We're using 5.0.5 in production with no problems. Anyway, search for AssetProtectorDispatcher topic on this forum. Marcus

RE: path to referenced files

2007-08-24 Thread Angelo Chen
works, thanks. I have to add this: @Inject @Path(context:/images/logo.jpg) private Asset logo; public Asset getLogo() { return logo; } then in the Layout.html, add: img src=${logo} is there a way to directly specify it in the html? Marcus.Schulte wrote:

Re: T5 is production ready ?

2007-08-24 Thread Daniel Jue
I am also using T5 for a project that will go into production in October. There are some useful how-tos on the wiki regarding custom components, etc On 8/24/07, Marcus [EMAIL PROTECTED] wrote: Hi Cyrille, We're using 5.0.5 in production with no problems. Anyway, search for

[T5]: Question about template = page class mapping

2007-08-24 Thread Kevin Menard
Hi, Another one of my T5 questions. In T4, I could easily map multiple templates to the same class in the page spec. Oftentimes this meant creating a page spec that did nothing more than specify the class, but this was more attractive to me than creating an empty Java class that subclasses the

Grid inside a form (with checkboxes)

2007-08-24 Thread Ognen Ivanovski
Hello again, I am trying to setup a Grid with checkboxes where the user can select several items and submit. I wrote a CheckboxGroup/Checkbox set of components derived from the RadioGruop/Radio which enables me to render any number of checkboxes *all with the same name attribute*. The

Memory consumption in T4.1.2 - Hard data

2007-08-24 Thread Bryan Dotzour
I and another colleague of mine have been investigating what seems to be a memory leak in our Tapestry application for about a month since we upgraded to T4.1.2. I won't bore you with the saga of the last month, but I would like to present the data I've gathered and look to the list for a

RE: [General] Changing the name of web app

2007-08-24 Thread Jonathan Barker
Daniel, Recognize that your servlet container will have its own, sometimes confusing, way of specifying contexts. With tomcat, I think it defaults to the name of the war file, overriding whatever you have in web.xml. Once you layer on Eclipse integration - who knows what they override? I'm

T5 on JDK 1.6 or newer

2007-08-24 Thread Stephan Schwab
We've been experiencing strange behaviour of our now growing application Savila and as well with another project we are working on. Both use Tapestry 5.0.5. Our development machines run with Mac OS X and we use JDK 1.5 that comes with it. We deploy to Linux with Sun's JDK 1.6 and Tomcat 6.0.10.

Re: T5:Tiles?

2007-08-24 Thread Josh Canfield
Hey Angelo, Nick's right, sorry I didn't see that before. Try using your browsers view source feature, if you're using Firefox look into getting the firebug plugin (google for a tutorial) so you can inspect what is actually getting rendered, you should never not know what is getting generated in

Re: T5:Tiles?

2007-08-24 Thread Josh Canfield
Yes, you can put other components inside of your block parameters. On 8/23/07, Angelo Chen [EMAIL PROTECTED] wrote: Hi Josh, What defined in the parameter block should be in the same page(Somepage.html), can it refer to another html? A.C. somepage.html

Re: T5:Tiles?

2007-08-24 Thread Josh Canfield
On 8/24/07, Angelo Chen [EMAIL PROTECTED] wrote: Hi Josh, This works, now if I have this in the Layout.html: head title${title}/title /head Layout.java also has a getTtitle to return 'base page'; now how to replace this title with 'somepage' in the somepage.html? I add a getTitle

Re: DynamicSelectionList Hivemind NullPointerException

2007-08-24 Thread Jacob Arnold
I was able to fix the NullPointer by adding this code abovecycle.getParameter(_childId) in the rewindFormComponent() method of DynamicSelectionList: String suffix = ; if (getIndex() 0) { suffix = _ + (getIndex() - 1); } _childId = getId() + suffix; It looks like it's working

RE: T5 on JDK 1.6 or newer

2007-08-24 Thread Joel Wiegman
Hrm... I've been running a reasonably robust production app on T5.05 and JDK 1.6 and haven't seen any hangs. I develop on Jetty but deploy to SJSAS, which runs Catalina (Tomcat's servlet container). Production is Linux and development is Windows. I also have 92 integration tests and unit tests

Re: [T5]: Question about temporary properties

2007-08-24 Thread Josh Canfield
Interesting idea. You could look at contributing a BindingSource, call it 'variable'. You'd need to investigate how they are created, not sure about typing the values, the get/set in the Binding interface are Object so you may be able to get away with out worrying about it: t:loop

Re: T5 on JDK 1.6 or newer

2007-08-24 Thread Howard Lewis Ship
An earlier posting on this list highlighted a bug in concurrency on some version of JDK 1.6. Please check into that, the symptoms sound similar to what you see. On 8/24/07, Stephan Schwab [EMAIL PROTECTED] wrote: We've been experiencing strange behaviour of our now growing application Savila

Re: [T5]: Question about temporary properties

2007-08-24 Thread Thiago H de Paula Figueiredo
On Fri, 24 Aug 2007 14:49:39 -0300, Josh Canfield [EMAIL PROTECTED] wrote: Interesting idea. You could look at contributing a BindingSource, call it 'variable'. You'd need to investigate how they are created, not sure about typing the values, the get/set in the Binding interface are Object

Re: [T5.0.5] Caching and IE6

2007-08-24 Thread Josh Canfield
On 8/24/07, Siddhartha Argollo [EMAIL PROTECTED] wrote: With auto-links I wanted to say links to the same page. For example, when the user clicks the link, a condition for an if is met, rendering a block. With IE, instead of the new state of the page, it shows the same state before the click.

Re: [T5]: Question about temporary properties

2007-08-24 Thread Kevin Menard
Well, on the one hand I guess that means it's not supported yet. But on the other, it's nice to see that there's interest in it. Taking it a step further, it'd be nice if you didn't even need to bind a value and if they just became properties of the component itself. E.g., why supply a value or

Re: DynamicSelectionList Hivemind NullPointerException

2007-08-24 Thread Shing Hing Man
I have just downoloaded manTap4Library-1.3-src.jar from Tassel and verified all the files are same as my local copy. I am running Tap 4.0.2 as well and the component works. It is strange that you have problem with it. Anyway, I am glad you have found a solution. Shing --- Jacob Arnold

Re: Memory consumption in T4.1.2 - Hard data

2007-08-24 Thread Jesse Kuhnert
Hmmm...well, I don't think I like the sound of any of that. I'm just going to pretend this problem doesn't exist. (just kidding) I had thought I was doing something special with the ognl compilations that would cause its generated classes to not hang around afterwards in any pools. I'll take

[T5] Restricting Page Access

2007-08-24 Thread Charles Mason
Firstly I just want to say Tapestry 5 is amazing, Tapestry 4 was very good but Tapestry 5 is outstanding. One thing I haven't figured out how to do the Tapestry 5 way is controlling page access. On many sites I write there is often a need to password protect a large number of pages. The way I

Re: [T5] Restricting Page Access

2007-08-24 Thread Robin Helgelin
On 8/24/07, Charles Mason [EMAIL PROTECTED] wrote: @Secured(ROLE_ADMIN) public class AdminPage { } I was wondering how this worked. I am assuming its through some sort of T5 service. I was looking at the documentation on the T5 site, although I can't figure how to do something like that. I

Re: [T5]: Question about temporary properties

2007-08-24 Thread Josh Canfield
anyway? If the loop can already figure these out, make them read-only properties of the loop. Then you could reference them like ${loop_id.index} or ${loop_id.value}. That'd be nice in some cases, but there are also times when I want to be able to access them through my component class. I

Re: [T5] Restricting Page Access

2007-08-24 Thread César Lesc
If you have a base class for your protected pages then onActivate event will trigger first on the parent then in the child if return value of the parent onActivate event is null. This work fine in my project, I don´t use any annotation for this just declare: public abstract class SecurePage{

Re: [T5] Restricting Page Access

2007-08-24 Thread César Lesc
A little mistake myPage MUST extends SecurePage of course :) On 8/24/07, César Lesc [EMAIL PROTECTED] wrote: If you have a base class for your protected pages then onActivate event will trigger first on the parent then in the child if return value of the parent onActivate event is

Re: [T5] Restricting Page Access

2007-08-24 Thread Nick Westgate (Work)
Also, just as a reminder, base classes must not go in the pages package. Cheers, Nick. César Les wrote: A little mistake myPage MUST extends SecurePage of course :) On 8/24/07, César Lesc [EMAIL PROTECTED] wrote: If you have a base class for your protected pages then

RE: T5 on JDK 1.6 or newer

2007-08-24 Thread Ben Sommerville
You can find that discussion here http://www.nabble.com/T5%3A-NPE-in-Base64InputStream-and-locked-waiting-Ch eckForUpdatesFilter-tf4058686.html -Original Message- From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] Sent: Saturday, 25 August 2007 3:35 AM To: Tapestry users Subject: