Hi,
No one...
It's OK when I use a simple t:loop.
Le 16/09/2013 18:48, TNO a écrit :
Hi,
I'm trying to use AjaxFormLoop inspired from
*
http://jumpstart.doublenegative.com.au/jumpstart/examples/ajax/formloop1
*
http://tapestry.apache.org/current/apidocs/org/apache/tapestry5/corelib/com
I don't think that piece of JavaScript will do it for T5.3. Try the
technique found here instead:
http://jumpstart.doublenegative.com.au/jumpstart/examples/infrastructure/protectingpages
or go with FlowLogix.
2013/9/19 ANDRE Christophe
> Thx, that's really interresting.
> But then how to know
There should already be a translator for BigDecimal. If it's really some
other type you can just create one in your AppModule and it will just work.
See
https://git-wip-us.apache.org/repos/asf?p=tapestry-5.git;a=blob;f=tapestry-core/src/main/java/org/apache/tapestry5/modules/TapestryModule.java;h=
Translator isn't a Prop: binging, do you can't use it like you are doing here.
You need to create a translator that checks the type and does what you need to
do depending on the type.
On Sep 18, 2013, at 12:37 PM, George Christman wrote:
> Hello, I have a textfield placed within a loop. My ob
Hello, I have a textfield placed within a loop. My object contains the
property type of the field "bigdecimal". I'm trying to dynamically set the
translate attribute, but it fails with the following exception.
*Render queue error in BeginRender[employee/TimeSheet:textfield]: Failure
reading parame
FlowLogix library takes care of this with the @AJAX annotation.
http://code.google.com/p/flowlogix/wiki/TLAJAXAnnotation
SNAPSHOT release is available for T5.4
On Sep 18, 2013, at 9:48 AM, ANDRE Christophe
wrote:
> I tried with href but same thing.
>
> Yes the method is called (checked with
Thx, that's really interresting.
But then how to know the session (Spring) has expired? Even when the session
spring has expired when I test session.isInvalidated() returns false?
public boolean dispatch(Request request, Response response) throws IOException {
Session session = request
if the client should be redirected on an event (click) after timeout
happen, You can try to contribute the MasterDispatcher to do a refresh
(or a redirect) if session not exists. See
http://stackoverflow.com/questions/3733277/session-timeout-ajax-error-in-tapestry-application
2013/9/18 ANDRE Chris
I tried with href but same thing.
Yes the method is called (checked with firebug). But nothing happens.
I don't know if this has to do with it, but I got the same kind of weird
behavior when I do a javascript callback to show an alert from a java applet.
The method is called but the alert is nev
It's hard to tell why... Try to debug js code - is it called or not. But
this sample is real one, I use it in several projects.
18.09.2013 17:23, ANDRE Christophe пишет:
I tryed with this:
$(document).ajaxComplete(function(event, xhr, options){
if (xhr&& xhr.getResponseHeader("Locati
try
window.location.href = xhr.getResponseHeader("Location");
2013/9/18 ANDRE Christophe :
> I tryed with this:
>
>
>
> $(document).ajaxComplete(function(event, xhr, options){
>
> if (xhr && xhr.getResponseHeader("Location")) {
>
> window.location = xhr.getResponseHeader("Location");
I tryed with this:
$(document).ajaxComplete(function(event, xhr, options){
if (xhr && xhr.getResponseHeader("Location")) {
window.location = xhr.getResponseHeader("Location");
}
});
When I look at the request I get the following :
00:02:29.263 0.073 2319
Hi,
another option is to manage the Timeout in Javascript
on each render of the layout component Yout pass to a Javascript
function the maxInactiveInterval of the session and on Javascript side
starts an Timer with count down function. When the maxInactiveInterval
value is 0, a window.location.href
Another options to return from page/component event:
1. Link object
2. String with page url
3. JSON containing {redirectURL:"/desired/location"}
18.09.2013 16:22, ANDRE Christophe пишет:
Hi,
I have an application that use a lot of Ajax.
When my session has expired, my server redirect me on my d
If you're using jquery add following code to the page:
$j(document).ajaxComplete(function(event, xhr, options){
if (xhr && xhr.getResponseHeader("Location")) {
window.location = xhr.getResponseHeader("Location");
}
});
18.09.2013 16:22, ANDRE Christophe пишет:
Hi,
I have an app
Hi,
I have an application that use a lot of Ajax.
When my session has expired, my server redirect me on my deconnexion page.
(Spring web do it)
The problem is if I get redirected after an Ajax call, nothing happens. (I
guess the client wait for an ajax answer and not for a redirection)
How coul
16 matches
Mail list logo