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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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
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 é
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
Stack Trace:
*
org.apache.tapestry.parse.SpecificationParser.parseDocument(SpecificationParser.java:1625)
*
org.apache.tapestry.parse.SpecificationParser.parseLibrarySpecification(SpecificationParser.java:1671)
*
$ISpecificationParser_1179c692cc4.parseLibrarySpecification($ISpecificat
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
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
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
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,
>
>
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
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
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
29 matches
Mail list logo