Hi,
Isn't this a matter of indicating which session you want injected? ( I
guess both sessions match "Session" ), there are some mechanisms for that
described here: http://tapestry.apache.org/injection-faq.html
--
Chris
On Wed, Sep 10, 2014 at 8:35 AM, Lance Java
wrote:
> Hmm, very strange. A
Hmm, very strange. Are you calling registry.shutdown() ever?
Is this perhaps an issue with registry.cleanupThread()?
How many @Test annotations in the class? Does the first @Test work and the
second fail?
Just grasping at straws here!
On 10 Sep 2014 02:05, "George Christman" wrote:
> Hi lance,
Hi lance, I'm just using constructor injection. I have a DAO that uses
public class GenericDAO {
private final Session session;
public GenericDAOImpl(Session session) {
this.session = session;
}
}
in my Module I have
@Scope(ScopeConstants.
PERTHREAD)
public static FullT
It looks like your server-side has all the info it needs to do a refresh, so
you can probably keep it as simple as this:
public void doRefresh() {
setup();
if (request.isXHR()) {
ajaxResponseRenderer.addZone(cartZone);
}
}
In contrast, in the example, the
That example was really helpfull, thanks Geoff.
My case was somewhat more trivial (just a line of js) and I'm using got5
jquery. The containing parent injects a reference to the cart-like component
and handles events from other sibling components by invoking doRefresh, which
triggers the client
Using the annotation triggers slightly different exception.
- org.apache.tapestry5.runtime.ComponentEventException
Exception in method null, parameter #1: Could not find a coercion from
type java.lang.String to type Scene.
context
- 3
eventTypeactivate
Also annotation wont,
It is a hibernate entity so yea it gets a ValueEncoder from hibernate. As
mentioned when I first navigate to the page, it works fine, but after form
submit it breaks...
I will remove return type and try annotation and see if that helps
On Tue, Sep 9, 2014 at 2:33 PM, Thiago H de Paula Figueiredo
>From my understanding of the tapestry registry, these are two distinct
services (even though one extends the other).
Where is this exception occurring? Are you using tapestry's @Inject
annotation? Is spring ioc in the mix somewhere?
Hi Sem, it looks like RequestSecurityManagerImpl is trying to redirect the
async request. Obviously redirecting an async request doesn't make sense,
hence the UnsupportedOperationException.
I can only guess that you have the @Secure annotation on the page. Correct?
Ultimately, we want Request.isS
Thanks, I just stored Subject in the session and retrieved in the
filter. Not ideal, but ok.
Much to my regret, there are another exceptions: first was with the
not defined tapestry-online symbols and after I defined them I have
another one:
[ERROR] 2014-09-09 17:18:39,077 - internal.PerRequestBr
Hi guys, I'm getting the following exception while trying to run my test.
[VerboseTestNG] org.apache.tapestry5.ioc.internal.OperationException:
Service interface org.hibernate.Session is matched by 2 services:
FullTextSession, Session. Automatic dependency resolution requires that
exactly one ser
On Tue, 09 Sep 2014 10:26:00 -0300, squallmat .
wrote:
Ah ok yes, nothing to see with tapestry. Many of the url are entered by
user and then many of them don't have the http:// appended at beginning.
I need to rewrite them, or is there a way in html to make all
tags
to be read as absolu
Ah ok yes, nothing to see with tapestry. Many of the url are entered by
user and then many of them don't have the http:// appended at beginning. I
need to rewrite them, or is there a way in html to make all tags
to be read as absolute by the browser ?
2014-09-09 15:12 GMT+02:00 Thiago H de Paula
On Tue, 09 Sep 2014 10:03:26 -0300, squallmat .
wrote:
Hi,
Hi!
I have url stored in DB, like "www.google.com" and I just pass them in my
template to an href attribute, like this :
- ${url}
The value of ${url} in the href attribute is rewrote to concatenate the
actual displayed page
Hi,
I have url stored in DB, like "www.google.com" and I just pass them in my
template to an href attribute, like this :
- ${url}
The value of ${url} in the href attribute is rewrote to concatenate the
actual displayed page url. Why is there url rewriting here ? And how can I
disable it ?
Thanks for your help Lance, with all problems I got with AjaxFormLoop
method I've finally changed the code to use this :
http://tapestry5-jquery.com/components/docsajaxupload
It is easier with this jquery component :p
2014-09-08 15:03 GMT+02:00 Lance Java :
> There's two concepts here:
> 1. Th
On Tue, 09 Sep 2014 04:10:22 -0300, Boris Horvat
wrote:
Hi my methods look like this
public boolean onActivate(Scene scene) {
selectedScene =
scene;//systemManager.getScene(Long.parseLong(scene.toString()));
return selectedScene != null;
}
public Scene onPassivat
Youre correct, the HttpServletRequest and HttpServletResponse are not
available. This was a design decision made by tapestry-offline. I guess I
could make this pluggable.
But the Request and Response tapestry wrappers ARE available. Also, the
ApplicationStateManager is available. I felt that these
>So it sounds like you'll need to contribute a ComponentRequestFilter. Make
>sure you order it "before:" the tynamo filter.
Yes, this is the right place, but I don't have HttpServletRequest and
HttpServletResponse and I can't initialize security subject like here:
https://github.com/tynamo/tapest
What are you hoping to achieve by returning boolean from onActivate()?
Have you tried a @PageActivationContext annotation instead on onActivate /
onPassivate?
> I don't have ValueEncoder cause I would expect that conversion works
String -> Long -> hibernate gets the id of the object and returns -
Hi my methods look like this
public boolean onActivate(Scene scene) {
selectedScene =
scene;//systemManager.getScene(Long.parseLong(scene.toString()));
return selectedScene != null;
}
public Scene onPassivate() {
return selectedScene;
}
I don't have ValueE
21 matches
Mail list logo