You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by Curtis Cooley <cu...@venture.com.sg> on 2007/11/08 00:20:00 UTC
Real World Ajax Examples/Tutorials/Help
Where can I get more info on using ajax with wicket? The examples I've
found so far do not include round trips. Sure, writing a clock label is
cool and all, but I have real time data on a page that I don't want to
have to reload the whole page for all the time.
Also, I'm using a TabbedPanel with nested panels and even the simple
ajax examples won't run.
Also, it seems that when I attempt to enable ajax, whenever I click on
another tab, I get the "page expired" link. What's up with that? I'm
assuming wicket has detected that the page has changed, but the labels
on the page have not updated. Can this be disabled?
Re: Real World Ajax Examples/Tutorials/Help
Posted by Gwyn Evans <gw...@gmail.com>.
For the best chance of someone looking into it, reproduce it in a
quickstart and raise it as a Jira issue.
/Gwyn
On 09/11/2007, Curtis Cooley <cu...@venture.com.sg> wrote:
> JulianS wrote:
> > Curtis Cooley-2 wrote:
> >
> >> Also, it seems that when I attempt to enable ajax, whenever I click on
> >> another tab, I get the "page expired" link. What's up with that?
> >>
> >>
> >
> > I am also seeing the "page expired" problem frequently with 1.3.0-beta4. We
> > are just in the process of upgrading to 1.3 from 1.2.6 and did not see this
> > problem with 1.2.6, although our code is somewhat different so I can't
> > compare apples to apples. It seems to happen more often when there are
> > multiple ajax controls on a page.
> >
> > If anyone can shed light on this, I'd appreciate it.
> > Julian
> >
> >
> I've fixed my other issues, so the ajax timer is now firing, but now
> whenever it fires, instead of updating the label, I get the "Paged
> Expired" page. I went back to basics and reproduced the world clock
> example, but I still get the page expired problem.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
> For additional commands, e-mail: users-help@wicket.apache.org
>
--
Download Wicket 1.2.6 now! - http://wicketframework.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Real World Ajax Examples/Tutorials/Help
Posted by Curtis Cooley <cu...@venture.com.sg>.
JulianS wrote:
> Curtis Cooley-2 wrote:
>
>> Also, it seems that when I attempt to enable ajax, whenever I click on
>> another tab, I get the "page expired" link. What's up with that?
>>
>>
>
> I am also seeing the "page expired" problem frequently with 1.3.0-beta4. We
> are just in the process of upgrading to 1.3 from 1.2.6 and did not see this
> problem with 1.2.6, although our code is somewhat different so I can't
> compare apples to apples. It seems to happen more often when there are
> multiple ajax controls on a page.
>
> If anyone can shed light on this, I'd appreciate it.
> Julian
>
>
I've fixed my other issues, so the ajax timer is now firing, but now
whenever it fires, instead of updating the label, I get the "Paged
Expired" page. I went back to basics and reproduced the world clock
example, but I still get the page expired problem.
Re: Real World Ajax Examples/Tutorials/Help
Posted by JulianS <js...@yahoo.com>.
Curtis Cooley-2 wrote:
>
> Also, it seems that when I attempt to enable ajax, whenever I click on
> another tab, I get the "page expired" link. What's up with that?
>
I am also seeing the "page expired" problem frequently with 1.3.0-beta4. We
are just in the process of upgrading to 1.3 from 1.2.6 and did not see this
problem with 1.2.6, although our code is somewhat different so I can't
compare apples to apples. It seems to happen more often when there are
multiple ajax controls on a page.
If anyone can shed light on this, I'd appreciate it.
Julian
-----
http://javathoughts.capesugarbird.com/ My blog about Wicket and other Java
stuff
--
View this message in context: http://www.nabble.com/Real-World-Ajax-Examples-Tutorials-Help-tf4768053.html#a13672148
Sent from the Wicket - User mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Real World Ajax Examples/Tutorials/Help
Posted by Curtis Cooley <cu...@venture.com.sg>.
Gwyn Evans wrote:
> CC> The only difference between my java file and the WorldClock
> CC> example is that it extends BasePage and I extend Panel. I'm also
> CC> updating a label that is in a ListView. I'm trying to build a
> CC> table of data that updates dynamically.
>
> That might be significant. Could it be a case for
> ListView.setReuseItems()?
>
>
It seems the problem is more fundamental. I must have wicket deployment
issues because my browser's error console reports these errors:
Error: invalid XML namespace wicket
Source File:
http://localhost:8090/new/resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js;jsessionid=ja7k1wng2fbw
Line: 26
Error: invalid XML namespace wicket
Source File:
http://localhost:8090/new/resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js;jsessionid=ja7k1wng2fbw
Line: 26
Error: invalid XML namespace wicket
Source File:
http://localhost:8090/new/resources/org.apache.wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax-debug.js;jsessionid=ja7k1wng2fbw
Line: 26
Error: Wicket is not defined
Source File: http://localhost:8090/new/
Line: 12
Error: Wicket is not defined
Source File: http://localhost:8090/new/
Line: 16
It looks like the javascript files are not being served up correctly.
Re: Real World Ajax Examples/Tutorials/Help
Posted by Gwyn Evans <gw...@gmail.com>.
CC> The only difference between my java file and the WorldClock
CC> example is that it extends BasePage and I extend Panel. I'm also
CC> updating a label that is in a ListView. I'm trying to build a
CC> table of data that updates dynamically.
That might be significant. Could it be a case for
ListView.setReuseItems()?
--
/Gwyn
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Real World Ajax Examples/Tutorials/Help
Posted by Curtis Cooley <cu...@venture.com.sg>.
Gwyn Evans wrote:
> Hi Curtis,
>
> On 07 November 2007, 11:20:00 PM, Curtis Cooley wrote:
> CC> Where can I get more info on using ajax with wicket? The examples I've
> CC> found so far do not include round trips. Sure, writing a clock label is
> CC> cool and all, but I have real time data on a page that I don't want to
> CC> have to reload the whole page for all the time.
>
> http://wicket.apache.org/exampleajaxcounter.html
>
> http://wicketstuff.org/wicket13/ajax/
>
> http://cwiki.apache.org/WICKET/dropdownchoice-examples.html#DropDownChoiceExamples-UsingAjax
>
> http://day-to-day-stuff.blogspot.com/2007/01/backward-compatible-ajax-development.html
>
>
Thanks for the links. I'll absorb those.
> CC> Also, I'm using a TabbedPanel with nested panels and even the simple
> CC> ajax examples won't run.
>
> CC> Also, it seems that when I attempt to enable ajax, whenever I click on
> CC> another tab, I get the "page expired" link. What's up with that? I'm
> CC> assuming wicket has detected that the page has changed, but the labels
> CC> on the page have not updated. Can this be disabled?
>
> Did you call .setOutputMarkupId(true) on any components you want to
> update via Ajax (or setOutputMarkupPlaceholderTag(true) if they're
> starting out invisible) & add them to the 'target' in the Ajax
> callback?
>
I wasn't, but I found the WorldClock example that looks a lot more like
the click counter example. I've modeled my page as closely as possible,
but I still do not see the label updating dynamically. It updates fine
on refresh. I seem to have fixed the expired page problem, though.
The only difference between my java file and the WorldClock example is
that it extends BasePage and I extend Panel. I'm also updating a label
that is in a ListView. I'm trying to build a table of data that updates
dynamically.
Re: Real World Ajax Examples/Tutorials/Help
Posted by Gwyn Evans <gw...@gmail.com>.
Hi Curtis,
On 07 November 2007, 11:20:00 PM, Curtis Cooley wrote:
CC> Where can I get more info on using ajax with wicket? The examples I've
CC> found so far do not include round trips. Sure, writing a clock label is
CC> cool and all, but I have real time data on a page that I don't want to
CC> have to reload the whole page for all the time.
http://wicket.apache.org/exampleajaxcounter.html
http://wicketstuff.org/wicket13/ajax/
http://cwiki.apache.org/WICKET/dropdownchoice-examples.html#DropDownChoiceExamples-UsingAjax
http://day-to-day-stuff.blogspot.com/2007/01/backward-compatible-ajax-development.html
CC> Also, I'm using a TabbedPanel with nested panels and even the simple
CC> ajax examples won't run.
CC> Also, it seems that when I attempt to enable ajax, whenever I click on
CC> another tab, I get the "page expired" link. What's up with that? I'm
CC> assuming wicket has detected that the page has changed, but the labels
CC> on the page have not updated. Can this be disabled?
Did you call .setOutputMarkupId(true) on any components you want to
update via Ajax (or setOutputMarkupPlaceholderTag(true) if they're
starting out invisible) & add them to the 'target' in the Ajax
callback?
--
/Gwyn
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org
Re: Real World Ajax Examples/Tutorials/Help
Posted by Al Maw <wi...@almaw.com>.
Curtis Cooley wrote:
> Where can I get more info on using ajax with wicket? The examples I've
> found so far do not include round trips. Sure, writing a clock label is
> cool and all, but I have real time data on a page that I don't want to
> have to reload the whole page for all the time.
Sorry, but I think you've missed the point somewhat...
The clock example gets the time on every tick from the server, doing a
round trip each time.
Regards,
Al
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org