How to dynamically detemine the asset path?

2010-03-03 Thread Hilco Wijbenga
Hi all, I used to have (in my .tml): which of course worked fine. To support multiple colours I need a little bit more flexibility so I tried to do which failed miserably because T5 doesn't do variable expansion inside variable expansions. Not entirely unreasonable, I suppose. :-) I had a

Re: Why can't component classes be abstract? [5.1]

2010-02-22 Thread Hilco Wijbenga
On 22 February 2010 12:48, Howard Lewis Ship wrote: > In all cases where Tapestry needs to access the field, such as to > synchronize its value with the session, it bypasses getters and > setters (either yours, or those generated by @Property) and updates > the field directly. So what happens if

Re: How to get RESTful hierarchical URLs

2010-02-21 Thread Hilco Wijbenga
On 21 February 2010 02:11, Alexander Kiel wrote: > * /articles/                         list all articles available > * /articles/{a-id}/                  show one article > * /customers/                        list all customers > * /customers/{c-id}/                 show one customer > * /custom

Re: t5: maven problem

2010-02-21 Thread Hilco Wijbenga
On 21 February 2010 06:22, Angelo Chen wrote: > suddenly I can not build my t5 app, got following error: > >  A required plugin was not found: Plugin could not be found - check that the > goal name is correct: Unable to download the artifact from any repository > > mvn install:install-file -Dgroup

Dynamicly Created Checkboxes

2010-01-21 Thread Hilco Wijbenga
Hi all, I am trying to get the submit results of a dynamic set of checkboxes and I'm stumped. http://tapestry.apache.org/schema/tapestry_5_1_0.xsd";> ${item} public class Test { private final String[] list = new String[] { "Abc", "Defg", "Hijkl",

Re: How to clear an @Persist-ed value in a component?

2010-01-21 Thread Hilco Wijbenga
2010/1/21 Howard Lewis Ship : > In Tapestry 5.2, there's a new lifecycle method, pageReset(), that > your pages/components can implement.  It is invoked during page render > requests, when the active page changes. See the nightly documentation > for details. That sounds very useful. I'll have a lo

Re: How to clear an @Persist-ed value in a component?

2010-01-21 Thread Hilco Wijbenga
2010/1/21 Stephan Windmüller : > Am 21.01.2010 09:04, Hilco Wijbenga wrote: > >> So how would you suggest I store data that I only need in a component? > > That depends on what you want to do with the data and where you need it. The component would consist of a dynamic set

Re: How to clear an @Persist-ed value in a component?

2010-01-21 Thread Hilco Wijbenga
2010/1/20 Stephan Windmüller : > Hilco Wijbenga wrote: > >> Any advice would be appreciated (also comments about this approach, is >> it wrong to @Persist values in a component?). > > You should use @Persist only when it is absolutely necessary. When you > only need it

Re: How to clear an @Persist-ed value in a component?

2010-01-20 Thread Hilco Wijbenga
2010/1/20 Robert Zeigler : > 1) @InjectComponent to inject a component instance that is specified in the > template. Ah, it's in a different package. Perfect, this works. > 2) Check out: > http://tapestry.apache.org/tapestry5/guide/persist.html > See the section under the heading: > Clearing Pers

How to clear an @Persist-ed value in a component?

2010-01-20 Thread Hilco Wijbenga
Hi all, I have a page (MyPage) with an embedded component (MyComponent). The component uses @Persist to store a value (@Persist String myValue;). This all works (of course). But I noticed that when I jump from domain.com/index to domain.com/mypage, myValue still has the value from last time. How

Re: Exception handling after violation of unique constraint

2009-09-12 Thread Hilco Wijbenga
2009/9/12 Thiago H. de Paula Figueiredo : > Em Sat, 12 Sep 2009 17:38:43 -0300, Bruno Santos > escreveu: > >> Well, even if i do: >> >> league = new League(); >> league.setName("repeated name"); > > Unique constraints like this should be checked by you *before* sending an > insert or update to the

Re: Is AjaxFormLoop example working for you?

2009-07-16 Thread Hilco Wijbenga
2009/7/16 Geoff Callender : >  http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/tables/ajaxformloop1 >  http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/tables/ajaxformlooptailored1 Both work, with or without cookies. First time or otherwise. I'm using Firefox. I'm run

Re: Is AjaxFormLoop example working for you?

2009-07-16 Thread Hilco Wijbenga
2009/7/16 Geoff Callender : >  http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/tables/ajaxformloop1 Does not work. >  http://jumpstart.doublenegative.com.au:8080/jumpstart/examples/tables/ajaxformlooptailored1 Works. I'm at work behind a proxy (although not everything is proxied

Re: [OT] By boss decided

2009-02-18 Thread Hilco Wijbenga
2009/2/18 Thiago H. de Paula Figueiredo : > 2009/2/18 Otho : >> Yup, no websites in java. Googlemail doesn't count. And german Telekom and >> Postbank are totally niche companies. :) > > I'm 99.9% sure that Gmail is written in GWT. I had a job interview at > Google once. I asked if Google was writt

Re: AW: T5: ApplicationStateObject is misleading

2008-09-17 Thread Hilco Wijbenga
On Wed, Sep 17, 2008 at 09:03, Filip S. Adamsen <[EMAIL PROTECTED]> wrote: > @Scope does, indeed, make more sense than @Persist and > @ApplicationStateObject. I wouldn't mind that change, but is it feasible at > this point in Tapestry 5's development cycle? Sure, just deprecate @Persist and @Appli

Re: PageTester and HttpServletRequest error.

2008-09-17 Thread Hilco Wijbenga
Hi Kit, On Wed, Sep 17, 2008 at 01:19, Kit Yeung <[EMAIL PROTECTED]> wrote: > I am doing a evaluation on Tapestry, I am very new to Tapestry as well as > Java and its frameworks. Don't you think you're taking on slightly more than you can handle? If you're really that new to Java, its frameworks,

Re: Displaying the source of an event

2008-02-11 Thread Hilco Wijbenga
On Feb 7, 2008 3:31 PM, Hilco Wijbenga <[EMAIL PROTECTED]> wrote: > To aid debugging, is it possible to do something like this: > > @onEvent > public void onEvent() { > final String componentId = MagicWand.getComponentIdForThisEvent(); >

Displaying the source of an event

2008-02-07 Thread Hilco Wijbenga
To aid debugging, is it possible to do something like this: @onEvent public void onEvent() { final String componentId = MagicWand.getComponentIdForThisEvent(); final String action = MagicWand.getActionForThisEvent(); System.out.println("Component ID: " + componentId); System.out.pr

Re: Using Tapestry-ioc Separately

2008-02-06 Thread Hilco Wijbenga
On Feb 6, 2008 11:32 AM, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: > except for bind() which is static. Bummer! :-) > Just part of the strategy for deferring, or avoiding, instantiation of > the module class. > > In retrospect, premature optimization. If I were starting that from > scratch, al

Re: Using Tapestry-ioc Separately

2008-02-06 Thread Hilco Wijbenga
On Feb 6, 2008 11:08 AM, Davor Hrg <[EMAIL PROTECTED]> wrote: > module methods can be both static and instance methods, > you choose ... > > http://tapestry.apache.org/tapestry5/tapestry-ioc/module.html Great! :-) That's very nice. I think the examples should use instance methods then, shouldn't t

Re: Using Tapestry-ioc Separately

2008-02-06 Thread Hilco Wijbenga
On Feb 5, 2008 11:19 PM, Davor Hrg <[EMAIL PROTECTED]> wrote: > http://wiki.apache.org/tapestry/Tapestry5HowToIocOnly > http://wiki.apache.org/tapestry/Tapestry5HowToIocAndHibernate Oh, nice! I had not noticed these. Is there a reason that the Module needs to have a *static* bind(ServiceBinder)?

Re: Using Tapestry-ioc Separately

2008-02-06 Thread Hilco Wijbenga
On Feb 5, 2008 2:39 PM, Jan Vissers <[EMAIL PROTECTED]> wrote: > Indeed T5's IoC can be used without T5 core, although IMHO you're better > of using Google Guice. If you're already familiar with T5 IoC, using Guice > isn't that hard. Yes, I noticed that T5 IoC and Guice are *very* similar. But Gui

Using Tapestry-ioc Separately

2008-02-05 Thread Hilco Wijbenga
I was wondering about using T5's IOC separately, i.e. in a non-T5 app (in fact, not even a web app). The tapestry-ioc JAR is available separately, it's quite small, and has very few dependencies. Do people think this is a good idea? Or is tapestry-ioc too oriented towards a web app? Should I use S

Re: [T5] Looping over strings

2007-06-10 Thread Hilco Wijbenga
On 6/10/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: Something in your subdirectory context value is confusing Tapestry. I think it is the colon character. Can you provide a complete URL generated by Tapestry. /var/svn/conf /var/svn/repos T5 does a simple toString() on your context valu

[T5] Looping over strings

2007-06-09 Thread Hilco Wijbenga
Hi all, I've got the following in my Init.html: ${subdirectory} which nicely generates a list of links. The subdirectory parameter is a string (i.e. directory.options is a List, a list of subdirectories). In Init.java I have public void onActionFromSubdir(final String subdirectory) { System

Re: Redirect Question

2007-05-28 Thread Hilco Wijbenga
Ok, you managed to confuse me now. :-) On 5/28/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: What is "/app"? Is it a page? Tapestry 5 doesn't use a mapping to a servlet named "/app". T5 should see that URL, identify it as a page render request and see that there's no such page, and let the

Re: Redirect Question

2007-05-28 Thread Hilco Wijbenga
On 5/28/07, Howard Lewis Ship <[EMAIL PROTECTED]> wrote: It's easy if you do it from activate event handler method (onActivate()), just return the page name or page instance to redirect to. Once you progress as far as the SetupRender phase, you are committed to rendering a response. Yes, that'

Re: Redirect Question

2007-05-27 Thread Hilco Wijbenga
On 5/27/07, Jesse Kuhnert <[EMAIL PROTECTED]> wrote: void setup() { throw new PageRedirectException("YourPageName"); } So what about T5? I found "onActivate()" in the mailinglist and that works ... partially. Requesting www.example.com/app/start redirects as expected [onActivate() is in Sta

[T5] Tapestry and GWT?

2007-05-26 Thread Hilco Wijbenga
Hi all, Yesterday at work we were brainstorming a bit about what framework to use going forward with our web app. We are quite enthusiastic about T5 but GWT (Google Web Toolkit) looks very interesting when it comes to adding AJAX to the mix. This led us to wonder about using T5 as the main framew