Re: New component library

2011-04-18 Thread Christian Gruber
Some confusion here. Maven is a binary deployment repository. You're asking about a source repository. You can use code.google.com which supports svn and mercurial for source control, github.com, which supports git, sourceforge.com which supports at least svn. Any of these would do. But, please

Re: Loop values & AJAX refreshing components

2010-09-24 Thread Christian Gruber
On Sep 24, 2010, at 2:58 PM, Thiago H. de Paula Figueiredo wrote: >> > >> 1. In my SetupRender method I assign the parameter value to a property foo >> of the component. > > I can't see why you need this. Because initially the value comes in from a parameter, but on refresh the value comes

Re: Event before which request data is processed.

2010-09-03 Thread Christian Gruber
Good answer! Thanks Thiago. Hadn't considered that. Christian. On Sep 3, 2010, at 10:02 AM, Thiago H. de Paula Figueiredo wrote: > On Fri, 03 Sep 2010 10:36:23 -0300, Michael Taylor > wrote: > >> Basically what we're trying to do is POST some data to our tapestry webapp >> from an external

Event before which request data is processed.

2010-09-02 Thread Christian Gruber
Hey, We have a "page" we want to use roughly in place of writing a separate servlet that needs access to the request and all its raw data before processing for binding - is there a proper event at which we can do this? Would @PageAttached be appropriate for this? Can we get the Request a

Re: Ok, really dumb questions about ioc scopes...

2010-07-16 Thread Christian Gruber
che Tapestry 5 and Hibernate consultant, developer, >> and instructor >> Owner, Ars Machina Tecnologia da Informação Ltda. >> http://www.arsmachina.com.br >> >> --------- >> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org >> For additional commands, e-mail: users-h...@tapestry.apache.org >> >> > -- - Christian Gruber christianedwardgru...@gmail.com

Re: Tapestry 5 IoC Eagerloading and ordering of services

2009-07-27 Thread Christian Gruber
On Jul 27, 2009, at 11:40 AM, Peter Stavrinides wrote: Create a service wrapper around DatabaseConnection.getReadConnection(). This will put the eager-loading mechanism on your side. I will try this, but this is not relevant to the issue in question, which is how to control the ordering of ea

Re: Testify injection only works once per test

2009-07-27 Thread Christian Gruber
On Jul 27, 2009, at 6:25 AM, Paul Field wrote: If you are setting up state that you want to be fresh for each test, then you should consider using Testify's pertest scope: http://tapestry.formos.com/nightly/tapestry-testify/#Per-test_scope Ah... this is what I was thinking - thanks for poi

Re: Tapestry, Maven and Log4j using an XML properties file

2009-07-14 Thread Christian Gruber
javassist jboss org.directwebremoting dwr 3.0rc1 target/site org.apache.tapestry tapestry-component-report 5.1.0.5 com.albourne.web 5.1.0.5 Thanks, Peter

Re: Tapestry, Maven and Log4j using an XML properties file

2009-07-13 Thread Christian Gruber
The xml provided looks a lot like the default metadata that occurs if you don't configure anything. Resources are copied from /src/main/ resources into the resulting jar/war/ear and are filtered.Can you post your pom.xml file (and any parent poms) in case you're overriding some subtle

Re: Testify + Testng

2009-07-13 Thread Christian Gruber
It might make sense to have a "hit" annotation for Testify that follows @Inject which allows the injection to be beforeMethod or beforeClass. Unfortunately, we can't re-use the jUnit ones because (if I recall correctly) they are not suitable for Field annotation, just method. But somethin

Re: [Tapestry Central] Caught between Two IDEs

2009-07-04 Thread Christian Gruber
ke this. :-) mrg On Thu, Jul 2, 2009 at 5:19 PM, Christian Gruber wrote: I'll tell you though, the one that gives me a NeXT-style InterfaceBuilder work-alike for Swing or SWT will probably win for me. (And if someone let me build tapestry code that way... drag and dro

Re: [Tapestry Central] Caught between Two IDEs

2009-07-02 Thread Christian Gruber
I agree - I bounce back and forth as well, quite commonly. I'm encouraged by Eclipse 3.5 for reasons you cite, but it's frustrating. Every-so-often I seriously consider just a text editor and command-line, but things like re-factoring tools, etc, usually bring me back. I'll tell you th

Re: stax2 issue

2009-07-01 Thread Christian Gruber
This should help for environments where you have access to system properties: http://www.nabble.com/-T5.1--Running-on-Glassfish--td22132485.html cheers, Christian. On Jul 1, 2009, at 5:14 PM, Howard Lewis Ship wrote: This is likely related ... an effort is underway to release a bug fix rele

Re: T5: BeanEditForm

2007-10-27 Thread Christian Gruber
Hmm. I've definitely wondered this as well. Unfortunately, something like this might bind the view and the model too closely together. You're really then instrumenting your model not with business logic (per, validate) but with display characteristics which starts to move away from the p

Re: [T5]: how to prevent onActivate() from firing with activationcontext

2007-10-24 Thread Christian Gruber
This feels a little kludgy, but you can always use a signal that is reset at some time after the activation. syncLists would then just check that boolean signal to see if it had already been run. Alternately, If you have a spring-style prototype scope in your services (ie, created anew for

Re: [t5] portlet question

2007-10-24 Thread Christian Gruber
I was wondering about this, and was thinking of making a JSR-168 wrapper component. I think that especially now that we can contribute .css to the page itself, this should be a nice way to quickly "portletify" t5 apps. Christian. On 24-Oct-07, at 4:19 AM, Giancarlo Degani wrote: Hi, I'm

Re: Tapestry 5 Roadmap

2007-10-23 Thread Christian Gruber
I am apparently a bit touchy this week, Kranga, et al. Please forgive. I also wasn't stating that lack of compatibility was an industry norm. I was saying, merely, that often (and demonstrably) a major version number implies a lack of complete backwards compatibility. That was all. Jus

Re: Tapestry 5 Roadmap

2007-10-23 Thread Christian Gruber
Ok, whatever. I give in. I'll go and use T4 and whine at Howard now. Oh wait, no I won't. I'll work on T5 and try to encourage it into as re-usable, and less brittle and change-vulnerable a form as I can, so that there is more likelihood of upgradability. (Howard's doing quite well abou

Re: T5: how to use a detached hibernate object in a form?

2007-10-22 Thread Christian Gruber
Yes. Hibernate sessions re cheap, however, though it would be nice to keep some of the session validity a teensy bit longer to get more caching value out of the L1 cache. But what you say is true, and .merge() is probably what you need here. Christian. On 22-Oct-07, at 6:50 AM, Angelo Che

Re: Tapestry 5 Roadmap

2007-10-19 Thread Christian Gruber
and establish my own framework. However, it also reflects on the popularly or lack of for Tapestry. This topic has been beaten to death and I don't wish to bring it up again. However, your point regarding versions was egregious. - Original Message - From: "Christian Grub

component list parameters?

2007-10-19 Thread Christian Gruber
Hi, So I'm wondering if this is possible, and if not, has this been thought of? I'm wanting to add a variable list of parameters to a component, because it can take an arbitrary number of them and loop overthem. So I'm looking at something like this. A.tml blah content 1

Re: Tapestry 5 Roadmap

2007-10-18 Thread Christian Gruber
I think this merely means that T5 should release sooner than later with a smaller functionality set, and release a 5.1 with the additional features. At this point, it's part perception, etc. But if the core is stable, then 5.0-RELEASE could be compared with JSF, Wicket, etc. on a feature-

Re: Tapestry 5 Roadmap

2007-10-18 Thread Christian Gruber
I'm not sure where "incompatible releases" comes in. No one releases 1.0 -> 2.0 compatible releases except O/S vendors. That's typically what the large version number change means - these are incompatible. That's not a strike against Tapestry, that's an industry expectation. Christian

SOLVED: T5: PropertyAccess service not injecting?

2007-10-18 Thread Christian Gruber
ccess _access; AFAIK, injected properties _have_ to be private. The full listing of 'SelectTest' further down the page uses the correct form. I don't remember where i read about injected properties being private, but i've certianly run across it several times, at least on 5.0.5.

T5: PropertyAccess service not injecting?

2007-10-17 Thread Christian Gruber
Hi, So I was working with the "select model from objects" example from the t5 wiki, and I pulled everything in just as per the class. The wierd thing is that the PropertyAccess service is not injecting. That page class has 2 other injected services (Logger and my DataService) which d

Re: T5: Tapestry, Hibernate and Underscores.

2007-10-15 Thread Christian Gruber
e you missed the point here, never mind the reason I use the _ prefix .. the problem was with hibernate, not with tapestry Davor Hrg On 10/15/07, Christian Gruber <[EMAIL PROTECTED]> wrote: Tapestry doesn't require _ prefixes, mind you. That's a Howard M. Lewis Ship-ism.

Re: T5: Tapestry, Hibernate and Underscores.

2007-10-14 Thread Christian Gruber
Tapestry doesn't require _ prefixes, mind you. That's a Howard M. Lewis Ship-ism. (actually, I have it too from my NeXTSTEP days.) It's not mandatory, however, so on your persistent objects, you could use the typical pattern and annotate your properties, if that's how you want to do it.

Re: Trails or Congnition ;-)

2007-10-10 Thread Christian Gruber
Heh. I wasn't really asking - more just trying to be funny. I've already asked the codehaus people. Christian. On 10-Oct-07, at 1:34 PM, Kalle Korhonen wrote: Probably not the right list to ask that one. Trails-wise, Tobago's apt plugin has its issues, but suffices for the purpose. Ideall

Re: Trails or Congnition ;-)

2007-10-10 Thread Christian Gruber
But when is the codehaus apt plugin going to be released? I found it much better than the tobago one. Christian. On 10-Oct-07, at 11:18 AM, Kalle Korhonen wrote: On 10/10/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: I wanted to use either Trails or Cognition for the next project. Howe

SOLVED: My problems with .tml the other day.

2007-10-09 Thread Christian Gruber
Yeah, so after all that frustration, I blew away my local workspace of /trunk, got it again, blew away ~/.m2/repository/org/apache/ tapestry and rebuilt, F5'ed in eclipse, cleaned the projects, then started it all up again and it magically worked. I'm guessing that somehow it was picking up

Re: t5: no root element has been defined

2007-10-06 Thread Christian Gruber
the corresponding package under main/resources like component templates solved the problem. Imants Quoting Christian Gruber <[EMAIL PROTECTED]>: I did. It's not a version thing. I built 5.0.6-SNAPSHOT from trunk (as of yesterday), and the pom file pulls in that version. (In fact, m

Re: t5: no root element has been defined

2007-10-06 Thread Christian Gruber
ml for the tapestry version etc. Cheers, Nick. Christian Gruber wrote: Actually, I'm getting it from the tutorial as well. That is, I'm getting [ERROR] Tapestry 5 Tutorial #1 /: java.lang.IllegalStateException: No root element has been defined. at org.apache.tapestry.dom.Document.toMar

Re: t5: no root element has been defined

2007-10-05 Thread Christian Gruber
Actually, I'm getting it from the tutorial as well. That is, I'm getting [ERROR] Tapestry 5 Tutorial #1 /: java.lang.IllegalStateException: No root element has been defined. at org.apache.tapestry.dom.Document.toMarkup(Document.java:89) at org .apache .tapestry .internal.services

Re: t5: no root element has been defined

2007-10-05 Thread Christian Gruber
I'm still gettin g the no root element thing, and that's on a quickstart project (with my patch to put Start.tml in the right place), with a build from trunk. Problem is I can't get Start.tml to work in any of the new or old locations, in resources or src/main/webapp. No matter what, I get

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: i don't like the new tapestry 5 based on xml ?

2007-09-29 Thread Christian Gruber
Heh. See!? I told you it should be configurable. ;) christian. On 29-Sep-07, at 2:08 PM, Chris Lewis wrote: I didn't realize that it was a (partial) attempt at preventing the container from serving them as static. However, "Use the extension ".tml" (Tapestry Markup Language)" confirms tha

Re: Comparison

2007-09-25 Thread Christian Gruber
I agree with Francois, but would add WebObjects, since it is going to be open-sourced, and has a long history and is a "mature" product. I'd fit it between Wicket and Tapestry 5. It has the core component architecture that inspired Tapestry, has some nice tools, and can run outside of a

Re: basic dev question

2007-09-23 Thread Christian Gruber
Because the model classes (non T5 components/pages/mixins) are not auto-reloaded when changed, validation put into business objects with attributes will require a restart of the server when altered. Many people put them into .properties files so that they can benefit from the rapid reloadi

Re: creating components with Tapestry 5

2007-09-23 Thread Christian Gruber
WOComponentContent is wonderful, and is actually quite easy to do in Tapestry. It's in one of the examples. You use a body component. http://tapestry.apache.org/tapestry5/tapestry-core/guide/templates.html go down to the Tapestry Elements section, and read the examples there. It should be

Re: T5 Momentum

2007-09-17 Thread Christian Gruber
Well, so far I'm just learning T5, but have been having quite a bit of success with the live class reloading. As stated, it only reloads live for components/pages/mixins, and not model classes and others, but given the incredibly short restart time on a T5 app with Jetty, even that's ok.

Re: T5 & JSP Tag Libarary

2007-09-14 Thread Christian Gruber
Tapestry, particularly T5 uses XML/xhtml as a template, not a scripting language. It doesn't interpret tags via the standard JSP tag system, if I am not mistaken. JSPs are converted to servlet code which is then compiled. No such transformation happens in Tapestry. So while you might be

Re: [5.0.6-SNAPSHOT] Bug? isTraceEnabled missing when I switch to slf4j

2007-09-12 Thread Christian Gruber
followup. Strange thing is - looking at the actuall log4j.Logger - it has an isTraceEnabled, so I'm really unclear as to why this would happen. Christian. On 12-Sep-07, at 10:01 AM, Christian Gruber wrote: Hi, I just started using Tapestry, and was working a little past the tut

[5.0.6-SNAPSHOT] Bug? isTraceEnabled missing when I switch to slf4j

2007-09-12 Thread Christian Gruber
Hi, I just started using Tapestry, and was working a little past the tutorial. I pulled in the snapshot code and my app broke, particularly around commons-logging no longer being imported as a transative dependency. I declared public RequestFilter buildTimingFilter(final Logg