Re: Real World Ajax Examples/Tutorials/Help

2007-11-09 Thread Curtis Cooley
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.

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Real World Ajax Examples/Tutorials/Help

2007-11-09 Thread JulianS


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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Real World Ajax Examples/Tutorials/Help

2007-11-09 Thread Curtis Cooley
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Real World Ajax Examples/Tutorials/Help

2007-11-09 Thread Gwyn Evans
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 [EMAIL PROTECTED] 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: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]



-- 
Download Wicket 1.2.6 now! - http://wicketframework.org

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Real World Ajax Examples/Tutorials/Help

2007-11-07 Thread Curtis Cooley
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?

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Real World Ajax Examples/Tutorials/Help

2007-11-07 Thread Curtis Cooley
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.


-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Re: Real World Ajax Examples/Tutorials/Help

2007-11-07 Thread Gwyn Evans
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Real World Ajax Examples/Tutorials/Help

2007-11-07 Thread Gwyn Evans

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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]