Re: T5: TapestryTestCase newbie

2008-01-21 Thread Angelo Chen
hi, found the solution, should have been: expect(session.save(anyObject())).andReturn(null); another question is, TapestryTestCase has replay(), verify(), but don't have reset(), how to reset mock objects under TapestryTestCase? Thanks, A.C. Angelo Chen wrote: > > > expect(sess

Layout component

2008-01-21 Thread Michael Courcy
Hi, I propose a small tutorial to build a Layout component. http://courcy-en.blogspot.com/2008/01/tapestry-5-create-layout-component.html This one is a bit more sophisticated than the exemple given in the documentation, because you are able to override static content on case by case. Your f

Re: T5: Inject services into domain objects?

2008-01-21 Thread Franz Amador
I'm afraid I don't see a connection between Hibernate interceptors and my use case. I'm wondering if it's because I didn't explain myself well enough. In my use case, a domain object is executing some business logic. It needs to gather some other domain objects to do something with them, and

Re: T5: Inject services into domain objects?

2008-01-21 Thread Davor Hrg
have you tried using a hibernate interceptor ? On Jan 21, 2008 8:26 PM, Franz Amador <[EMAIL PROTECTED]> wrote: > Are there any plans for a way to inject services into domain objects, i.e. > entities created by Hibernate? For example, my domain objects have some > fairly complex business logic

Re: T5.0.7: ThreadCleanupHubImpl.cleanup swallows exceptions

2008-01-21 Thread Davor Hrg
Just some ideas out of my head ... Meybe focusing more on a hibernate connection provider can make your problem easier. c3p0 : http://sourceforge.net/projects/c3p0 might be extensible enough. Since Hibernate sessions are, or should be used per thread and not retained for a long period. for confi

Re: T4: Popup window

2008-01-21 Thread Kevin Menard
That indeed does the trick. Thanks for the quick responses, Jesse and Andy. -- Kevin On 1/21/08 2:39 PM, in article [EMAIL PROTECTED], "Jesse Kuhnert" <[EMAIL PROTECTED]> wrote: > I think it was replaced by the "renderer" parameter that most link > components support. > > There is still a Po

Re: T4: Popup window

2008-01-21 Thread Andreas Andreou
links can accept a linkrenderer parameter & tapestry-contrib has PopupLinkRenderer http://tapestry.apache.org/tapestry4.1/tapestry-contrib/apidocs/org/apache/tapestry/contrib/link/PopupLinkRenderer.html On Jan 21, 2008 9:32 PM, Kevin Menard <[EMAIL PROTECTED]> wrote: > Hi, > > T3 had a PopupLink c

Re: T4: Popup window

2008-01-21 Thread Jesse Kuhnert
I think it was replaced by the "renderer" parameter that most link components support. There is still a PopupLinkRenderer to plug-in - which the Inspector component uses. We need to add some documentation on these extra link renderers in the org.apache.tapestry.contrib.link package. Here's a sam

T4: Popup window

2008-01-21 Thread Kevin Menard
Hi, T3 had a PopupLink component which was nice. It appears this is gone in T4, presumably in favor of something Dojo related. What then is the preferred approach for loading a page into a popup window? If there isn't one, I'll just duplicate PopupLink locally, but I figured there was something

T5: Inject services into domain objects?

2008-01-21 Thread Franz Amador
Are there any plans for a way to inject services into domain objects, i.e. entities created by Hibernate? For example, my domain objects have some fairly complex business logic that must occasionally execute a query. For that, they use a DAO, which is a service, but it's not clear the best way

T5 tapestry5-acegi salt source not overridable

2008-01-21 Thread Franz Amador
It looks to me like the tapestry5-acegi module hard-codes the password salt source to be SystemWideSaltSource. I can change the system-wide salt via acegi.password.salt, but there is no corresponding acegi.salt.source property. Having a system-wide salt is better than having no salt, but it is

RE: T5 Proposal: Provide a Mechanism to Force Cache Flushing

2008-01-21 Thread David Kendall
Howard - thanks for your reply. > From: Howard Lewis Ship [mailto:[EMAIL PROTECTED] > Sent: Friday, January 18, 2008 3:14 PM > Obviously, we can't predict every possible use case ahead of time. Very true. It's notable that we have built a whole lot of functionality on T5 without encountering any

Re: T5.0.7: ThreadCleanupHubImpl.cleanup swallows exceptions

2008-01-21 Thread Franz Amador
Actually, for me there is something above. My use case is unusual. Our customers often belong to large organizations that have autocratic IT departments. The customer buys and is responsible for our app, but IT owns and controls access to the hardware. Simple things like editing config files

Re: AjaxStatus

2008-01-21 Thread Andreas Andreou
no direct way - however, you can get notified when the following are executed: tapestry.linkOnClick(url, id, isJson, eventName) tapestry.form.submitAsync(form, content, submitName, parms) and use their id or the form argument Something like: dojo.event.connect(tapestry,'linkOnClick', function(url

AjaxStatus

2008-01-21 Thread DR_GLoPeL_BouCa
Hi people, how i can get ID of component who shoot ajax request, i what to show a ajaxstatus not for all component with async=true, only for component that I specific . -- View this message in context: http://www.nabble.com/AjaxStatus-tp15002537p15002537.html Sent from the Tapestry - User maili

Session in ServiceEncoder's?

2008-01-21 Thread Kaspar Fischer
Hi, Can I inject the current session into a service encoder? Doing it with interface="org.apache.tapestry.engine.ServiceEncoder"> class="org.myorg.tapestry.myproject.serviceencoders.DBObjectServiceEncod er"> in hivemodule.xml does not work: the loginSession is onl

Re: [ANN] t5components - release 0.5.3

2008-01-21 Thread Sven Homburg
for BeanSelect there is a problem in conjuction with OnChange because you cant define the value of the option tag. 2008/1/21, Marcelo Lotif <[EMAIL PROTECTED]>: > > Really good, Sven! Thank you for the enhancement. > > I like the OnChange mixin you added, but can i use it with the BeanSelect > or

Re: Tacos 4.1.1 and Tapestry 4.1.3

2008-01-21 Thread DR_GLoPeL_BouCa
Sorry, sorry, was my application.xml of my JBoss, sorry, i'm idiot, sorry for lost your time. Andreas Andreou wrote: > > Then we need to see more of that exception message... > > On Jan 21, 2008 1:23 PM, DR_GLoPeL_BouCa <[EMAIL PROTECTED]> wrote: >> >> I not use maven, what another things can b

Re: [ANN]: Seam for T5

2008-01-21 Thread Davor Hrg
Actualy it's no problem replacing tapestry-hibernate if The session is your only concern. You may depend also on HibernateSessionManager and have contributions for extra entity packages. Davor Hrg On Jan 21, 2008 1:26 PM, Chris Lewis <[EMAIL PROTECTED]> wrote: > Regarding hibernate, I'm not sure

Re: [ANN] t5components - release 0.5.3

2008-01-21 Thread Marcelo Lotif
Really good, Sven! Thank you for the enhancement. I like the OnChange mixin you added, but can i use it with the BeanSelect or just with the core Select component, as in the example? Regards, 2008/1/19, Michael Courcy <[EMAIL PROTECTED]>: > > Really impressing > > Go on !! > > > Sven Homburg a é

Re: [ANN]: Seam for T5

2008-01-21 Thread Chris Lewis
Regarding hibernate, I'm not sure you could just drop in this module and remove tapestry-hibernate with no problems. This is because tapestry-hibernate provides a Session impl that transparently results in the Session for the active thread. The reason this is useful is because we can simply inj

Re: Tacos 4.1.1 and Tapestry 4.1.3

2008-01-21 Thread DR_GLoPeL_BouCa
Stack Trace: * org.apache.tapestry.parse.SpecificationParser.parseDocument(SpecificationParser.java:1625) * org.apache.tapestry.parse.SpecificationParser.parseLibrarySpecification(SpecificationParser.java:1671) * $ISpecificationParser_1179c692cc4.parseLibrarySpecification($ISpecificat

Re: Tacos 4.1.1 and Tapestry 4.1.3

2008-01-21 Thread Andreas Andreou
Then we need to see more of that exception message... On Jan 21, 2008 1:23 PM, DR_GLoPeL_BouCa <[EMAIL PROTECTED]> wrote: > > I not use maven, what another things can be. > > Andreas Andreou wrote: > > > > tacos 4.1.1 works with all of them... > > If you're using maven, exclude tapestry4.1

Re: T5.0.7 is the encoding solved? (org.tapestry.upload)

2008-01-21 Thread Christian Köberl
dapeng-2 wrote: > > today i hit the problem > http://www.nabble.com/T5.0.7-still-can't-resolve-encoding.-td14521638.html > any quick solution to this ? (i am not using spring) > This should be fixed in 5.0.8 - it was a bug in my patch for the encoding problem: https://issues.apache.org/jira/br

Re: Tacos 4.1.1 and Tapestry 4.1.3

2008-01-21 Thread DR_GLoPeL_BouCa
I not use maven, what another things can be. Andreas Andreou wrote: > > tacos 4.1.1 works with all of them... > If you're using maven, exclude tapestry4.1.2 when depending on tacos > > On Jan 18, 2008 9:18 PM, DR_GLoPeL_BouCa <[EMAIL PROTECTED]> wrote: >> >> >> Hi, is tacos 4.1.1 work o

Re: [ANN]: Seam for T5

2008-01-21 Thread Igor Drobiazko
The integration offers the bijection of Seam components. Please read here how to do it. http://tacos.sourceforge.net/tacos5/tacos-seam/index.html Hopefully this is enough to use the other stuff provided by Seam. On Jan 21, 2008 8:31 AM, Borut Bolčina <[EMAIL PROTECTED]> wrote: > Hello Igor, > >

Re: [ANN]: Seam for T5

2008-01-21 Thread Michael Courcy
What would be extremly cool is having the famous seam book example working with T5. http://seam.demo.jboss.com/home.seam Because the more interesting features of seam are in there (convesation, security ) But I know that's probably a lot of work ... Angelo Chen a écrit : Hi, Good new

Re: [ANN]: Seam for T5

2008-01-21 Thread Igor Drobiazko
On Jan 21, 2008 4:00 AM, Angelo Chen <[EMAIL PROTECTED]> wrote: > > Hi, > > Good news, a few questions: > > 1) Any tutorials on using Seam with T5? I tried Seam, up to the point of > booking example, stop when i know I have to learn something about JSF. A > 'hello world' tutorial with T5 will b

Re: T5: Strategy for pages that edit beans

2008-01-21 Thread Hugo Palma
Cool, i didn't even know about that particular event. I just found that it's explained in the "Input Validation" section of the docs. Just thinking out loud, but wouldn't it be great if all the notifications a component can send were documented with the component documentation itself ? Maybe some