I feel quite dumb, My issue was simply the capital o on my OnInc method
(becoming lazy about case sensitivy in Tapestry :p ).
Although, thank you for the requestParameter link!
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/AJAX-Events-tp2429263p5714109.html
Sent from t
Have a look at the RequestParameter annotation.
On Tue, Jun 26, 2012 at 11:05 AM, Gep wrote:
> Sorry to dig out this post, but I'm having the exact same issue.
>
> After having a look at :
> http://samroyale.blogspot.fr/2009/11/controlling-ajax-in-tapestry.html I
> tried to use this trick, but I
Sorry to dig out this post, but I'm having the exact same issue.
After having a look at :
http://samroyale.blogspot.fr/2009/11/controlling-ajax-in-tapestry.html I
tried to use this trick, but I failed.
In my page.java, I create a link this way:
With a simple OnInc method in the same page:
Wh
I finally figured out how to handle Ajax events and sessions from the @XHR
annotation.
It involved Thiago's suggested SessionState object, but as a means of
communicating
between the annotation worker and the session state tracker.
The session state tracker turned out to be pretty complex, unfort
I finally had a chance to try these methods, unfortunately with little success.
Yes, I can check only one @Persist field for null to see whether the session
still exists, which works.
Request.getSession(false) does not really work, because a new (empty) session
can be created
within this request
Thanks Thiago. I will try all these options and report the results.
On Sep 14, 2011, at 5:19 PM, "Thiago H. de Paula Figueiredo"
wrote:
> On Wed, 14 Sep 2011 16:25:14 -0300, Lenny Primak
> wrote:
>
>> This is a design/best practices question.
>> We set up @Persist fields inside @SetupRend
On Wed, 14 Sep 2011 16:25:14 -0300, Lenny Primak
wrote:
This is a design/best practices question.
We set up @Persist fields inside @SetupRender method.
When a session is invalid/expired and an Ajax event is called,
All these fields at null.
The question is if there is a better way to handle t
Check out EventLink and/or ComponentResources.createEventLink. Like:
public class SomeComponent {
@Inject
private ComponentResources resources;
public String getEventLink() {
return
resources
.createEventLink
("MyCustomEventName",contextParameter1,contextParameter2,...);
}
void onMyCustom
Em Wed, 25 Feb 2009 08:07:18 -0300, Davor Miku
escreveu:
Question is how can some arbitraryJavaScriptFunction() invoke
corresponding Tapestry method?
Make your Javascript invoke an URL created by
ComponentResources.createEventLink(). ;)
--
Thiago H. de Paula Figueiredo
Independent Java
Clicking on actionlink component, some Tapestry method is invoked (method
for action event).
Question is how can some arbitraryJavaScriptFunction() invoke corresponding
Tapestry method?
I'm not sure I'm clear enough.
On Wed, Feb 25, 2009 at 4:17 AM, Alex Kotchnev wrote:
> Davor,
> what do
Davor,
what do you mean by "when some is dropped" ? Can you please
describe in slightly more detail by "custom events" ?
Cheers,
Alex Kotchnev
On Mon, Feb 23, 2009 at 1:56 PM, Davor Miku wrote:
> Hi!
>
> I've found some tutorials for AJAX in Tapestry, but there all about action
> event, fi
11 matches
Mail list logo