[Wicket-user] About AjaxPagingNavigator doesnt support dataview

2006-08-26 Thread Koji Lin
hello all
i found the code like this in the AjaxPagingNavigator.

protected void onAjaxEvent(AjaxRequestTarget target){
if ((pageable instanceof MarkupContainer)  !(pageable instanceof 
ListView))
}

this makes dataview wont work well.
or AjaxPagingNavigator wont support 
wicket.extensions.markup.html.repeater.data.DataView?

koji

-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


[Wicket-user] AjaxPagingNavigator in Internet Explorer

2006-08-26 Thread Koji Lin
Hi.

Sorry, i didnt write this in the previous mail


when i try the wicket 
examples(wicket.examples.ajax.builtin.PageablesPage) in the IE(all 
wicket 1.2.1)

the wicket ajax debug shows
ERROR: error while processing response: [object Error].blah blah

but it works well in the firefox.

and i found the AjaxPagingNavigator component appears twice in the ajax 
response, and looks it makes IE confused!?.
so i move the td wicket:id=navigator/td out of the table 
wicket:id=data,
and looks well now.



koji




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxPagingNavigator in Internet Explorer

2006-08-26 Thread Koji Lin
thanks
what means outerhtml?

I foud in 
http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=wicket-0:wicket.examples.ajax.builtin.PageablesPage
the ajax reponse looks like this
*?xml version=1.0 encoding=UTF-8?ajax-responsecomponent 
id=data ![CDATA[table id=data
thead
.
/thead
tbody 
...
/tbody
tfoot
tr
td id=data_navigator  /td
/tr
/tfoot
/table]]/component/ajax-response*

but the same examples in my environment runs like this

*?xml version=1.0 encoding=UTF-8?ajax-responsecomponent 
id=data ![CDATA[table id=data
thead

/thead
tbody 

/tbody
tfoot
tr
td id=data_navigator

  /td
/tr
/tfoot
/table]]/componentcomponent id=data_navigator ![CDATA[td 
id=data_navigator

  /td]]/component/ajax-response
*
Looks the second *component id=data_navigator * makes IE choke?
and i dont know how to remove the second one
so i try to modify the example like

*table wicket:id=data
thead
tr
thName/th
/tr
/thead
tbody 
tr wicket:id=rows
td wicket:id=name/td
/tr
/tbody
tfoot
tr
   
/tr
/tfoot
/table
span wicket:id=navigator/span*
and makes the ajax response like
*?xml version=1.0 encoding=UTF-8?ajax-responsecomponent 
id=data ![CDATA[table id=data
thead
...
/thead
tbody 
...
/tbody
tfoot
tr
/tr
/tfoot
/table]]/componentcomponent id=navigator ![CDATA[span 
id=navigator
...
  /span]]/component/ajax-response*

then it works well, but i dont know is it a correct way or not.

koji

Igor Vaynberg wrote:
 you cannot update tr/td/tbody and a few others via outerhtml which is 
 how our ajax updates work - it makes IE choke.

 -Igor




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxPagingNavigator in Internet Explorer

2006-08-26 Thread Koji Lin
Thanks Igor,
but the original example(i downloaded and never modify, i just put 
the war in tomcat ).
the example will make
the table is updated - and then only the td containing the navigator is 
updated(found in wicket ajax debug window).
The page renders well but ajax debug windows shows the errorERROR: 
error while processing response: [object Error].


koji

Igor Vaynberg wrote:
 the difference is that in the original example the entire table is 
 updated - where as in your example the table is updated - which works 
 fine - and then only the td containing the navigator is updated - 
 which causes the error.

 outerhtml: http://www.javascriptkit.com/javatutors/dynamiccontent2.shtml

 -Igor


-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user


Re: [Wicket-user] AjaxPagingNavigator in Internet Explorer

2006-08-26 Thread Koji Lin
No i didnt change the example.
i just put the wicket-examples-1.2.1.war into my tomcat
and just runs the example
http://localhost:8080/wicket-examples-1.2.1/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.PageablesPage

the IE will complain the error

so i try to download wicket-examples-1.2 a moment ago.
wicket 1.2 doesnt have this problem..

koji

Igor Vaynberg wrote:
 right - that error is because the td is updated. i dont understand why 
 the first time it shows just the table but the second time the table 
 and the pager - did you change anything? why does it change behavior 
 all of a sudden?

 -Igor




-
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
___
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user