Re: [Wicket-user] IDataProvider.size()
Why would want to cache the result? Look, you have to make a decission. Are you interested in paging lists or not? If you are, you should do a count query to determine how many rows there are, and then just load the page of results you need with another one. If you don't want to use paging, but you want to display the whole result set at once, Timo's answer will work fine. what happened if the results returned are big If the results can be big, use a pageable list. It's the whole point of the constructs we have that these components will load just what is needed instead of all the results. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ?Contract for Iterator IDataProvider.iterator(int first, int count) ???
On 6/10/07, Eelco Hillenius [EMAIL PROTECTED] wrote: if calling paging 1,2,3 n each time requires a call to iterator(first, count) and size(), which means a call to db, wouldn't this way, it ll give a bottleneck at the database layer? Imagine there are about concurrent 5000 users doing the pagingim sure the database will slowdown significantly? can it be any way where iterator() can return the size value as well, just to reduce to one query rather than 2 queries being made each time the paging is executed? No, this is not possible. Relational database don't work that way. Read up on this first please, it's basic programming knowledge. There is actually a way around, though with it's own potential ceveat. Read more on for example http://www.oracle.com/technology/sample_code/tech/java/codesnippet/jdbc/rs/CountResult.html Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] IDataProvider.size()
you can only do onDetach on the AbstractDetachableReadOnlyModel, but you can't do it in IDataProvider if you are to cache the result. Even if you nullify the object in onDetach, the result list still appear in IDataProvider. How to nullify the result in IDataProvider? Jeremy Thomerson-2 wrote: I believe that the onDetach() { result = null; } should take care of that. At the end of the request, that will be called and your cache will be blown away, which means you are as safe as any other way (memory wise), because the data is only held for the length of the request. You can verify, but I don't think memory will be an issue there. -- Jeremy Thomerson jthomerson AT users DOT sourceforge DOT net On 6/10/07, Lec [EMAIL PROTECTED] wrote: Why would want to cache the result? what happened if the results returned are big and if that s not enought, what will happened if 5000 concurrent users are accessing the paging and hence caching a potential big records returned? the memory of the server will be eaten away right? Timo Stamm wrote: Steve Knight schrieb: If my SortableDataProvider implementation will always return the max number of results (I'm not using paging), is it safe to have the size() method simply return Integer.MAX_VALUE instead of performing a database query to count the actual results? You shouldn't. It might not give you problems right now, but you break the contract with the interface. You can cache the result so that you do only one query per request to get both the result size and the result values. Use onDetach to clear the cache after each request. It should look like this (pseudo-code): private List result; void onDetach() { result = null; } Iterator iterator(from, to) { return getData().iterator(); } int size() { return result.size(); } private Collection getData() { if (result == null) { result = dbquery(from, to); } return result; } Timo --- This SF.Net email is sponsored by xPML, a groundbreaking scripting language that extends applications into web and mobile media. Attend the live webcast and join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmd=lnkkid=110944bid=241720dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/IDataProvider.size%28%29-tf1317737.html#a11055063 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/IDataProvider.size%28%29-tf1317737.html#a11055597 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] IDataProvider.size()
you can only do onDetach on the AbstractDetachableReadOnlyModel, but you can't do it in IDataProvider if you are to cache the result. In Wicket 1.3 you can. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ?Contract for Iterator IDataProvider.iterator(int first, int count) ???
in my experience this wont cause a problem. any reasonable db keeps a count of the total rows in any given table. the size() query is most likely select count(*) from foo, which will use that stored count. and even if there is something more dynamic to it, the db will most likely put that statement in a cache and use that. so basically, dont cry wolf until you actually encounter the problem. you can play what-if for a long time :) -igor On 6/10/07, Lec [EMAIL PROTECTED] wrote: Igor, if calling paging 1,2,3 n each time requires a call to iterator(first, count) and size(), which means a call to db, wouldn't this way, it ll give a bottleneck at the database layer? Imagine there are about concurrent 5000 users doing the pagingim sure the database will slowdown significantly? can it be any way where iterator() can return the size value as well, just to reduce to one query rather than 2 queries being made each time the paging is executed? igor.vaynberg wrote: the iterator() and size() are not meant to be used together and there is no, nor ever be, a contract that guarantees any ordering of invocations between these two methods. size() is meant to return the total number of rows iterator() is used to return a window that will be displayed those are the only contracts. what exactly is the problem? -Igor On 4/4/06, Frank Silbermann [EMAIL PROTECTED] wrote: I have a question about the intended use of the DataTable components provided in Wicket Extensions. The DataTable relies upon an IDataProvider to provide the data. To do this, we implement: Iterator iterate(first, count) Lacking any advice to the contrary, I assumed that this is the method which would retrieve data from the database, but this does not seem to be working well for me. My database query is parameterized based on page-component model values, and these may change with each rendering. My problem is that when one rendering presents a short data set, on the next rendering the DataTable is not always requesting all of the rows. The count seems to be affected by the number of rows returned by the previous rendering. I suspect this is because my implementation of int DataProvider.size () assumes that it will be called _*after*_ Iterator iterate(first, count) pulls down the data – so it's always one rendering behind. Should I give the int IDataProvider.size() method the responsibility for figuring out the query string and going to the database? (How else would it be able to tell the DataProvider how many rows to request?) -- View this message in context: http://www.nabble.com/RE%3A--Contract-for-%22Iterator-IDataProvider.iterator%28int-first%2C-int-count%29%22-tf1395451.html#a11054989 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] IDataProvider.size()
i believe even in 1.2.6 you can mix in idetachable. in 1.3 idataprovider extends it directly. -igor On 6/10/07, Eelco Hillenius [EMAIL PROTECTED] wrote: you can only do onDetach on the AbstractDetachableReadOnlyModel, but you can't do it in IDataProvider if you are to cache the result. In Wicket 1.3 you can. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] IDataProvider.size()
Eelco, What i mean is that, you don't necessary have to cache the result just do the paging lists. you can directly call the db to query the page just like that... void iterator( int first, int count) { db.getPage( parameter, first, count ).iterator(); } int size() { db.getPageCount( parameter ); } This approach make heavy db call. Imagine there are 5000 concurrent users making the same paging, with no constant data changing at the backend ( adding or deletion of data ), then the db will be heavy-loaded with unnecessary duplication db call - size(). And I realise this is not an efficient way of pagination, is it? To avoid this problem, you suggested to cache the results or even the result size, so that subsequently paging call will not trigger the same db.getPageCount( parameter ) or even the db.getPage( parameter, first, count ).iterator(); Having said that, however, if you look at it, you will realise caching is also not an efficient way of doing a paging list, considering all the records returned might be a potential big record. And if these records are stored in a List, the memory of the server will be eaten away especially when the paging site is heavy loaded with concurrent users, say 5000 concurrent users are doing the same paging. get me? :) so what s the most optimized way of doing paging using the IDataProvider? Eelco Hillenius wrote: Why would want to cache the result? Look, you have to make a decission. Are you interested in paging lists or not? If you are, you should do a count query to determine how many rows there are, and then just load the page of results you need with another one. If you don't want to use paging, but you want to display the whole result set at once, Timo's answer will work fine. what happened if the results returned are big If the results can be big, use a pageable list. It's the whole point of the constructs we have that these components will load just what is needed instead of all the results. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/IDataProvider.size%28%29-tf1317737.html#a11055761 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] turning off markup validation
Thank you, thank you. I missed that setEscapeModelStrings(), it works now like a charm now. My boss will be happy :) Kent Tong wrote: wicket at rozkovec.info writes: Those parts are important: !--[if IE 7]!--/a!--![endif]-- !--[if lte IE 6]/td/tr/table/a![endif]-- the markup which is seen by the browser is not illegal, browser see correct tags a.../a in the ouput, one of the /a tags is always commented for the browser, which one depends on the browser type, only wicket can see both closing tags and fires an error. Try: public class RawLabel extends Label { public RawLabel(String id, IModel model) { super(id, model); setEscapeModelStrings(false); } } public class RawOutput extends WebPage { public RawOutput() { RawLabel outerConditionalStart = new RawLabel(outerConditionalStart, new Model(!--[if lte IE 6]tabletrtd![endif]--)); RawLabel outerConditionalEnd = new RawLabel(outerConditionalEnd, new Model( !--[if lte IE 6]/td/tr/table/a![endif]--)); add(outerConditionalStart); add(outerConditionalEnd); ... } } - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] IDataProvider.size()
If it's only the repeated execution of a count projection that bothers you, what Eelco suggest is likely not caching the data returned by the iterator, it's caching the long returned by size(). It will decrease the accuracy of the pager in favor of performance, and will not contribute to significant increase in memory use. The interface to IDataProvider does require you to provide a size, but it puts no limitation on how you retrieve that size. If you can construct a query to return the size alongside your resultset, or your datalayer otherwise can provide the count baed on the data query alone, by all means, use it. If what you want is a pager that doesn't care about the count, implement it, either as a separate dataTable-esque component, or by modifying the existing one (which I suspect might even get included, if it leave the existing implementaiton compatible with existing users of it) Johan Lec wrote: Eelco, What i mean is that, you don't necessary have to cache the result just do the paging lists. you can directly call the db to query the page just like that... void iterator( int first, int count) { db.getPage( parameter, first, count ).iterator(); } int size() { db.getPageCount( parameter ); } This approach make heavy db call. Imagine there are 5000 concurrent users making the same paging, with no constant data changing at the backend ( adding or deletion of data ), then the db will be heavy-loaded with unnecessary duplication db call - size(). And I realise this is not an efficient way of pagination, is it? To avoid this problem, you suggested to cache the results or even the result size, so that subsequently paging call will not trigger the same db.getPageCount( parameter ) or even the db.getPage( parameter, first, count ).iterator(); Having said that, however, if you look at it, you will realise caching is also not an efficient way of doing a paging list, considering all the records returned might be a potential big record. And if these records are stored in a List, the memory of the server will be eaten away especially when the paging site is heavy loaded with concurrent users, say 5000 concurrent users are doing the same paging. get me? :) so what s the most optimized way of doing paging using the IDataProvider? Eelco Hillenius wrote: Why would want to cache the result? Look, you have to make a decission. Are you interested in paging lists or not? If you are, you should do a count query to determine how many rows there are, and then just load the page of results you need with another one. If you don't want to use paging, but you want to display the whole result set at once, Timo's answer will work fine. what happened if the results returned are big If the results can be big, use a pageable list. It's the whole point of the constructs we have that these components will load just what is needed instead of all the results. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket did not make the grade.
I think theres lots(Eelco usually being the friendliest), however considering the subject of this thread. I think most will be inclined to be not so friendly. - Kick a guy in his ass and then asking to borrow a coin won't get you any.. regards Nino A_flj_ wrote: Thanks, I'm just downloading the examples, hopefully I'll get what I need from them. Is there any friendlier poster here than Eelco? A_flj_ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket did not make the grade.
Hi all, I have been on holiday for a while... and I am very much surprised to see this thread still going! Eelco Hillenius wrote: previous post. After all, as far as I could notice, he's the only one who didn't make fun of this thread's initiator in his first response. You know how it is with programmers... always passionate about their stuff :) I didn't think Florian deserved such a strong reaction, as I think it's good he let us know on what grounds some people don't choose Wicket (though such posts come dangerously close to flame baits), and maybe we can learn from that. That said, I agreed with the reasoning of most other reactions. It was far from being my intention to start any kind of flame-war. On the contrary I was just sad that my team had not decided to go with wicket , and as Eelco said I thought it was good to let the wicket community know what had happened... feedback is always better then none. I did not take any of the comments posted back badly. I have nothing but respect for Wicket and it's community. Further-more I am looking at how I can use Wicket on some other personal projects to keep on discovering all of it's features. Anyway... let this be the last post in this thread. Please. florian - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ?Contract for IteratorIDataProvider.iterator(int first, int count) ???
any reasonable db keeps a count of the total rows in any given table. the size() query is most likely select count(*) from foo Then I guess Postgres (up until version 8.0 anyway) is not a reasonable database. Unfortunately, getting a row count is typically an expensive process due to its implementation of MVCC architecture. -Roger From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Sunday, June 10, 2007 11:38 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] ?Contract for IteratorIDataProvider.iterator(int first, int count) ??? in my experience this wont cause a problem. any reasonable db keeps a count of the total rows in any given table. the size() query is most likely select count(*) from foo, which will use that stored count. and even if there is something more dynamic to it, the db will most likely put that statement in a cache and use that. so basically, dont cry wolf until you actually encounter the problem. you can play what-if for a long time :) -igor On 6/10/07, Lec [EMAIL PROTECTED] wrote: Igor, if calling paging 1,2,3 n each time requires a call to iterator(first, count) and size(), which means a call to db, wouldn't this way, it ll give a bottleneck at the database layer? Imagine there are about concurrent 5000 users doing the pagingim sure the database will slowdown significantly? can it be any way where iterator() can return the size value as well, just to reduce to one query rather than 2 queries being made each time the paging is executed? igor.vaynberg wrote: the iterator() and size() are not meant to be used together and there is no, nor ever be, a contract that guarantees any ordering of invocations between these two methods. size() is meant to return the total number of rows iterator() is used to return a window that will be displayed those are the only contracts. what exactly is the problem? -Igor On 4/4/06, Frank Silbermann [EMAIL PROTECTED] wrote: I have a question about the intended use of the DataTable components provided in Wicket Extensions. The DataTable relies upon an IDataProvider to provide the data. To do this, we implement: Iterator iterate(first, count) Lacking any advice to the contrary, I assumed that this is the method which would retrieve data from the database, but this does not seem to be working well for me. My database query is parameterized based on page-component model values, and these may change with each rendering. My problem is that when one rendering presents a short data set, on the next rendering the DataTable is not always requesting all of the rows. The count seems to be affected by the number of rows returned by the previous rendering. I suspect this is because my implementation of int DataProvider.size() assumes that it will be called _*after*_ Iterator iterate(first, count) pulls down the data - so it's always one rendering behind. Should I give the int IDataProvider.size() method the responsibility for figuring out the query string and going to the database? (How else would it be able to tell the DataProvider how many rows to request?) -- View this message in context: http://www.nabble.com/RE%3A--Contract-for-%22Iterator-IDataProvider.iter ator%28int-first%2C-int-count%29%22-tf1395451.html#a11054989 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket did not make the grade.
Al Maw wrote: I'm guessing you didn't try typing wicket treetable into Google and clicking the I'm feeling lucky button? Right, I pushed the google search button instead. Silly me. I got to sites where the examples were on display. But I could not find any place where a downloadable archive with the examples was available. I was expecting to find such a downloadable archive, instead of having only svn access to the source code. What somebody could help with, however, is how to convert what I get out of SVN into a proper Eclipse project. Until now, all I got are maven errors - listing at end of post. What I do: - checkout the directory wicket-examples - chdir to the checked out directory (where the pom.xml is) - run mvn eclipse:eclipse like Elco suggested. I'm no maven expert, neither am I a svn expert - I'm just getting my feet wet. I looked at the error message, I looked into pom.xml, and it seems I didn't check out what I should have (as far as I can understand the pom.xml, it references some parent directory). What should I get from the repository? Or is it something else that I didn't do right? Al Maw wrote: Sometimes, I wonder how people like Eelco have the patience... :o) Me too! (But where would ppl like me ask for help if there weren't ppl like Elco?) flj --- Listing of what maven says: d:\workfj\myEclipseWork\wicket-examples\wicket-examplesmvn eclipse:eclipse [INFO] Scanning for projects... [INFO] [ERROR] FATAL ERROR [INFO] [INFO] Error building POM (may not be this project's POM). Project ID: org.apache.wicket:wicket-jdk15:pom:null Reason: Cannot find parent: org.apache.wicket:wicket-parent for project: org.apa che.wicket:wicket-jdk15:pom:null [INFO] [INFO] Trace org.apache.maven.reactor.MavenExecutionException: Cannot find parent: org.apache .wicket:wicket-parent for project: org.apache.wicket:wicket-jdk15:pom:null at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:378) at org.apache.maven.DefaultMaven.doExecute(DefaultMaven.java:290) at org.apache.maven.DefaultMaven.execute(DefaultMaven.java:125) at org.apache.maven.cli.MavenCli.main(MavenCli.java:272) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) at java.lang.reflect.Method.invoke(Unknown Source) at org.codehaus.classworlds.Launcher.launchEnhanced(Launcher.java:315) at org.codehaus.classworlds.Launcher.launch(Launcher.java:255) at org.codehaus.classworlds.Launcher.mainWithExitCode(Launcher.java:430) at org.codehaus.classworlds.Launcher.main(Launcher.java:375) Caused by: org.apache.maven.project.ProjectBuildingException: Cannot find parent : org.apache.wicket:wicket-parent for project: org.apache.wicket:wicket-jdk15:po m:null at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D efaultMavenProjectBuilder.java:1264) at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D efaultMavenProjectBuilder.java:1281) at org.apache.maven.project.DefaultMavenProjectBuilder.buildInternal(Def aultMavenProjectBuilder.java:749) at org.apache.maven.project.DefaultMavenProjectBuilder.buildFromSourceFi leInternal(DefaultMavenProjectBuilder.java:479) at org.apache.maven.project.DefaultMavenProjectBuilder.build(DefaultMave nProjectBuilder.java:200) at org.apache.maven.DefaultMaven.getProject(DefaultMaven.java:537) at org.apache.maven.DefaultMaven.collectProjects(DefaultMaven.java:467) at org.apache.maven.DefaultMaven.getProjects(DefaultMaven.java:364) ... 11 more Caused by: org.apache.maven.project.ProjectBuildingException: POM 'org.apache.wi cket:wicket-parent' not found in repository: Unable to download the artifact fro m any repository org.apache.wicket:wicket-parent:pom:1.3.0-incubating-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) at org.apache.maven.project.DefaultMavenProjectBuilder.findModelFromRepo sitory(DefaultMavenProjectBuilder.java:573) at org.apache.maven.project.DefaultMavenProjectBuilder.assembleLineage(D efaultMavenProjectBuilder.java:1260) ... 18 more Caused by: org.apache.maven.artifact.resolver.ArtifactNotFoundException: Unable to download the artifact from any repository org.apache.wicket:wicket-parent:pom:1.3.0-incubating-SNAPSHOT from the specified remote repositories: central (http://repo1.maven.org/maven2) at org.apache.maven.artifact.resolver.DefaultArtifactResolver.resolve(De faultArtifactResolver.java:197) at
Re: [Wicket-user] wicket did not make the grade.
hi, What I do: - checkout the directory wicket-examples try checking out not only wicket-examples but the whole trunk. then you should have all dependencies. regards, --- jan. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ?Contract for IteratorIDataProvider.iterator(int first, int count) ???
yeah i sincerely believe issuing a row count() is an expensive, especially when the row count doesn't change at all Roger Hand wrote: any reasonable db keeps a count of the total rows in any given table. the size() query is most likely select count(*) from foo Then I guess Postgres (up until version 8.0 anyway) is not a reasonable database. Unfortunately, getting a row count is typically an expensive process due to its implementation of MVCC architecture. -Roger From: Igor Vaynberg [mailto:[EMAIL PROTECTED] Sent: Sunday, June 10, 2007 11:38 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] ?Contract for IteratorIDataProvider.iterator(int first, int count) ??? in my experience this wont cause a problem. any reasonable db keeps a count of the total rows in any given table. the size() query is most likely select count(*) from foo, which will use that stored count. and even if there is something more dynamic to it, the db will most likely put that statement in a cache and use that. so basically, dont cry wolf until you actually encounter the problem. you can play what-if for a long time :) -igor On 6/10/07, Lec [EMAIL PROTECTED] wrote: Igor, if calling paging 1,2,3 n each time requires a call to iterator(first, count) and size(), which means a call to db, wouldn't this way, it ll give a bottleneck at the database layer? Imagine there are about concurrent 5000 users doing the pagingim sure the database will slowdown significantly? can it be any way where iterator() can return the size value as well, just to reduce to one query rather than 2 queries being made each time the paging is executed? igor.vaynberg wrote: the iterator() and size() are not meant to be used together and there is no, nor ever be, a contract that guarantees any ordering of invocations between these two methods. size() is meant to return the total number of rows iterator() is used to return a window that will be displayed those are the only contracts. what exactly is the problem? -Igor On 4/4/06, Frank Silbermann [EMAIL PROTECTED] wrote: I have a question about the intended use of the DataTable components provided in Wicket Extensions. The DataTable relies upon an IDataProvider to provide the data. To do this, we implement: Iterator iterate(first, count) Lacking any advice to the contrary, I assumed that this is the method which would retrieve data from the database, but this does not seem to be working well for me. My database query is parameterized based on page-component model values, and these may change with each rendering. My problem is that when one rendering presents a short data set, on the next rendering the DataTable is not always requesting all of the rows. The count seems to be affected by the number of rows returned by the previous rendering. I suspect this is because my implementation of int DataProvider.size() assumes that it will be called _*after*_ Iterator iterate(first, count) pulls down the data - so it's always one rendering behind. Should I give the int IDataProvider.size() method the responsibility for figuring out the query string and going to the database? (How else would it be able to tell the DataProvider how many rows to request?) -- View this message in context: http://www.nabble.com/RE%3A--Contract-for-%22Iterator-IDataProvider.iter ator%28int-first%2C-int-count%29%22-tf1395451.html#a11054989 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/RE%3A--Contract-for-%22Iterator-IDataProvider.iterator%28int-first%2C-int-count%29%22-tf1395451.html#a11057660 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control
Re: [Wicket-user] [GMAP contrib] IE7 Ajax target appendJavascript not working?
Yes i'll try to explain in greater detail. Looks like it was not the appendjavascript that wasnt working. But something else.:) Our hidden variables arent updated when using IE. Why they arent updated correctly puzzles me, because just before the ajax call they seem to have the correct values. heres a snip of what I try to do(working everywhere but IE): GEvent.addListener(googleMap, dragend, function () { var center = googleMap.getCenter(); var sW = googleMap.getBounds().getSouthWest(); var nE = googleMap.getBounds().getNorthEast(); document.getElementById(latitudeCenter).value=center.lat(); document.getElementById(longitudeCenter).value=center.lng(); document.getElementById(latitudeSW).value=sW.lat(); document.getElementById(longitudeSW).value=sW.lng(); document.getElementById(latitudeNE).value=nE.lat(); document.getElementById(longitudeNE).value=nE.lng(); document.getElementById(zoomLevel).value=googleMap.getZoom(); document.getElementById(gmap_ajaxGMapUpdatingFormSubmit).onclick(); }); So the different variables are stored in hidden fields. Just before the last entry above, every value looks ok. Here are some of the java server side code: Form gMapUpdatingForm = new Form(gmapUpdatingForm); gMapUpdatingForm.setOutputMarkupId(true); gMapUpdatingForm.add(new HiddenField(latitudeCenter, new PropertyModel(gMap.getCenter(), latitude)) { public IConverter getConverter() { return getUSConverter(); } }); gMapUpdatingForm.add(new HiddenField(longitudeCenter, new PropertyModel(gMap.getCenter(), longitude)) { public IConverter getConverter() { return getUSConverter(); } }); Please remember that it is actually working in both FF and safari. Ajax calls goes through as it should, values arent updated. regards Nino Eelco Hillenius wrote: I still only half understand the issue tbh. Can you elaborate about the problems you are experiencing? Eelco On 6/7/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi We are experiencing some issues with ajax in IE7, possibly IE6 as well when using the target.appendjavascript. Are there any workarounds? I've looked a bit at http://www.nabble.com/-BUG-%3Cscript%3E-tag-evaluation-in-IE-t3839952.html but it does not seem to work. Any ideas, solutions will be highly appreciated, as this are a showstopper for the v1 release of the gmap contrib. regards Nino - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Cyclic parent/child relationship
Hello, I made an innocent programming error that day by adding a Form as a child component of a TextField thats already the child of the Form. In that case, execution gets stuck in an infinite loop in Component.findParent(final Class c). I still am only scratching the surface of wicket, but are there any cases when two component can be parents of each other, as in, is this the case with some component types? Could a check be added in the code to prevent adding a component, if the component being added is already the parent of 'this' component? Or should I just ensure I have enough caffeine in my system before I start putting together component hierarchies ? :) Thanks - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [GMAP contrib] IE7 Ajax target appendJavascript not working?
Can you please test it with latest wicket 1.3? There was a bug that prevented IE7 from processing ajax requests properly, it might be related. -Matej On 6/11/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Yes i'll try to explain in greater detail. Looks like it was not the appendjavascript that wasnt working. But something else.:) Our hidden variables arent updated when using IE. Why they arent updated correctly puzzles me, because just before the ajax call they seem to have the correct values. heres a snip of what I try to do(working everywhere but IE): GEvent.addListener(googleMap, dragend, function () { var center = googleMap.getCenter(); var sW = googleMap.getBounds().getSouthWest(); var nE = googleMap.getBounds().getNorthEast(); document.getElementById(latitudeCenter).value=center.lat(); document.getElementById(longitudeCenter).value=center.lng(); document.getElementById(latitudeSW).value=sW.lat(); document.getElementById(longitudeSW).value=sW.lng(); document.getElementById(latitudeNE).value=nE.lat(); document.getElementById(longitudeNE).value=nE.lng(); document.getElementById(zoomLevel).value=googleMap.getZoom(); document.getElementById(gmap_ajaxGMapUpdatingFormSubmit).onclick(); }); So the different variables are stored in hidden fields. Just before the last entry above, every value looks ok. Here are some of the java server side code: Form gMapUpdatingForm = new Form(gmapUpdatingForm); gMapUpdatingForm.setOutputMarkupId(true); gMapUpdatingForm.add(new HiddenField(latitudeCenter, new PropertyModel(gMap.getCenter(), latitude)) { public IConverter getConverter() { return getUSConverter(); } }); gMapUpdatingForm.add(new HiddenField(longitudeCenter, new PropertyModel(gMap.getCenter(), longitude)) { public IConverter getConverter() { return getUSConverter(); } }); Please remember that it is actually working in both FF and safari. Ajax calls goes through as it should, values arent updated. regards Nino Eelco Hillenius wrote: I still only half understand the issue tbh. Can you elaborate about the problems you are experiencing? Eelco On 6/7/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi We are experiencing some issues with ajax in IE7, possibly IE6 as well when using the target.appendjavascript. Are there any workarounds? I've looked a bit at http://www.nabble.com/-BUG-%3Cscript%3E-tag-evaluation-in-IE-t3839952.html but it does not seem to work. Any ideas, solutions will be highly appreciated, as this are a showstopper for the v1 release of the gmap contrib. regards Nino - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Cyclic parent/child relationship
You just have to respect the hierarchy you have defined in the markup. Nart Seine wrote: Hello, I made an innocent programming error that day by adding a Form as a child component of a TextField thats already the child of the Form. In that case, execution gets stuck in an infinite loop in Component.findParent(final Class c). I still am only scratching the surface of wicket, but are there any cases when two component can be parents of each other, as in, is this the case with some component types? Could a check be added in the code to prevent adding a component, if the component being added is already the parent of 'this' component? Or should I just ensure I have enough caffeine in my system before I start putting together component hierarchies ? :) Thanks - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Cyclic-parent-child-relationship-tf3900804.html#a11058487 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [GMAP contrib] IE7 Ajax target appendJavascript not working?
Hi Matej Currently gmap contrib are using wicket 1.2.6. And currently im testing with IE 6 which has the problems I mentioned, the ajax calls seems to yield no problems so far I can see we get a call when the form are submitted and it calls back after processing. However form values arent updated, im not sure if that has anything to do with the ajax part? Im not sure how far we are in the process of upgrading the gmap contrib to 1.3. regards Nino Matej Knopp wrote: Can you please test it with latest wicket 1.3? There was a bug that prevented IE7 from processing ajax requests properly, it might be related. -Matej On 6/11/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Yes i'll try to explain in greater detail. Looks like it was not the appendjavascript that wasnt working. But something else.:) Our hidden variables arent updated when using IE. Why they arent updated correctly puzzles me, because just before the ajax call they seem to have the correct values. heres a snip of what I try to do(working everywhere but IE): GEvent.addListener(googleMap, dragend, function () { var center = googleMap.getCenter(); var sW = googleMap.getBounds().getSouthWest(); var nE = googleMap.getBounds().getNorthEast(); document.getElementById(latitudeCenter).value=center.lat(); document.getElementById(longitudeCenter).value=center.lng(); document.getElementById(latitudeSW).value=sW.lat(); document.getElementById(longitudeSW).value=sW.lng(); document.getElementById(latitudeNE).value=nE.lat(); document.getElementById(longitudeNE).value=nE.lng(); document.getElementById(zoomLevel).value=googleMap.getZoom(); document.getElementById(gmap_ajaxGMapUpdatingFormSubmit).onclick(); }); So the different variables are stored in hidden fields. Just before the last entry above, every value looks ok. Here are some of the java server side code: Form gMapUpdatingForm = new Form(gmapUpdatingForm); gMapUpdatingForm.setOutputMarkupId(true); gMapUpdatingForm.add(new HiddenField(latitudeCenter, new PropertyModel(gMap.getCenter(), latitude)) { public IConverter getConverter() { return getUSConverter(); } }); gMapUpdatingForm.add(new HiddenField(longitudeCenter, new PropertyModel(gMap.getCenter(), longitude)) { public IConverter getConverter() { return getUSConverter(); } }); Please remember that it is actually working in both FF and safari. Ajax calls goes through as it should, values arent updated. regards Nino Eelco Hillenius wrote: I still only half understand the issue tbh. Can you elaborate about the problems you are experiencing? Eelco On 6/7/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi We are experiencing some issues with ajax in IE7, possibly IE6 as well when using the target.appendjavascript. Are there any workarounds? I've looked a bit at http://www.nabble.com/-BUG-%3Cscript%3E-tag-evaluation-in-IE-t3839952.html but it does not seem to work. Any ideas, solutions will be highly appreciated, as this are a showstopper for the v1 release of the gmap contrib. regards Nino - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to
Re: [Wicket-user] [GMAP contrib] IE7 Ajax target appendJavascript not working?
In addition to the previous mail I would like to add, that we would like to resolve this using wicket 1.2.6. Now if anything are unclear or so please write and I'll try to explain further. Also the current version are the one available from SVN, I belive Iulian upgraded the example so that its now using that aswell. So you can just check out the code from wicket stuff repo if you want to see the code.. regards Nino Nino Saturnino Martinez Vazquez Wael wrote: Hi Matej Currently gmap contrib are using wicket 1.2.6. And currently im testing with IE 6 which has the problems I mentioned, the ajax calls seems to yield no problems so far I can see we get a call when the form are submitted and it calls back after processing. However form values arent updated, im not sure if that has anything to do with the ajax part? Im not sure how far we are in the process of upgrading the gmap contrib to 1.3. regards Nino Matej Knopp wrote: Can you please test it with latest wicket 1.3? There was a bug that prevented IE7 from processing ajax requests properly, it might be related. -Matej On 6/11/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Yes i'll try to explain in greater detail. Looks like it was not the appendjavascript that wasnt working. But something else.:) Our hidden variables arent updated when using IE. Why they arent updated correctly puzzles me, because just before the ajax call they seem to have the correct values. heres a snip of what I try to do(working everywhere but IE): GEvent.addListener(googleMap, dragend, function () { var center = googleMap.getCenter(); var sW = googleMap.getBounds().getSouthWest(); var nE = googleMap.getBounds().getNorthEast(); document.getElementById(latitudeCenter).value=center.lat(); document.getElementById(longitudeCenter).value=center.lng(); document.getElementById(latitudeSW).value=sW.lat(); document.getElementById(longitudeSW).value=sW.lng(); document.getElementById(latitudeNE).value=nE.lat(); document.getElementById(longitudeNE).value=nE.lng(); document.getElementById(zoomLevel).value=googleMap.getZoom(); document.getElementById(gmap_ajaxGMapUpdatingFormSubmit).onclick(); }); So the different variables are stored in hidden fields. Just before the last entry above, every value looks ok. Here are some of the java server side code: Form gMapUpdatingForm = new Form(gmapUpdatingForm); gMapUpdatingForm.setOutputMarkupId(true); gMapUpdatingForm.add(new HiddenField(latitudeCenter, new PropertyModel(gMap.getCenter(), latitude)) { public IConverter getConverter() { return getUSConverter(); } }); gMapUpdatingForm.add(new HiddenField(longitudeCenter, new PropertyModel(gMap.getCenter(), longitude)) { public IConverter getConverter() { return getUSConverter(); } }); Please remember that it is actually working in both FF and safari. Ajax calls goes through as it should, values arent updated. regards Nino Eelco Hillenius wrote: I still only half understand the issue tbh. Can you elaborate about the problems you are experiencing? Eelco On 6/7/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi We are experiencing some issues with ajax in IE7, possibly IE6 as well when using the target.appendjavascript. Are there any workarounds? I've looked a bit at http://www.nabble.com/-BUG-%3Cscript%3E-tag-evaluation-in-IE-t3839952.html but it does not seem to work. Any ideas, solutions will be highly appreciated, as this are a showstopper for the v1 release of the gmap contrib. regards Nino - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express
[Wicket-user] AjaxFormComponentUpdatingBehavior for DropDownChoice not working in IE
I need to change image according the selection made in dropdown. It is working fine Firefox but not in IE I tried it with onchange and onclick. It worked in Firefox but some how it is not working IE. Is there anything I am missing? Is there any other approach to achieve the same functionality with Ajax effect? -- View this message in context: http://www.nabble.com/AjaxFormComponentUpdatingBehavior-for-DropDownChoice-not-working-in-IE-tf3901202.html#a11059387 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [GMAP contrib] IE7 Ajax target appendJavascript not working?
I dunno. Could be problem with ajax form serialization. Can you intercept the post request to see what parameters are submitted? -Matej On 6/11/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Looking even further into the problem I can see that the values are correct after the ajax post. So it seems that the models of our hidden fields arent updated. Im not sure what todo about this, Matej mentioned that it could be a problem with wicket 1.2.6 and IE7, im using IE6 are the same problem there? regards Nino Nino Saturnino Martinez Vazquez Wael wrote: In addition to the previous mail I would like to add, that we would like to resolve this using wicket 1.2.6. Now if anything are unclear or so please write and I'll try to explain further. Also the current version are the one available from SVN, I belive Iulian upgraded the example so that its now using that aswell. So you can just check out the code from wicket stuff repo if you want to see the code.. regards Nino Nino Saturnino Martinez Vazquez Wael wrote: Hi Matej Currently gmap contrib are using wicket 1.2.6. And currently im testing with IE 6 which has the problems I mentioned, the ajax calls seems to yield no problems so far I can see we get a call when the form are submitted and it calls back after processing. However form values arent updated, im not sure if that has anything to do with the ajax part? Im not sure how far we are in the process of upgrading the gmap contrib to 1.3. regards Nino Matej Knopp wrote: Can you please test it with latest wicket 1.3? There was a bug that prevented IE7 from processing ajax requests properly, it might be related. -Matej On 6/11/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Yes i'll try to explain in greater detail. Looks like it was not the appendjavascript that wasnt working. But something else.:) Our hidden variables arent updated when using IE. Why they arent updated correctly puzzles me, because just before the ajax call they seem to have the correct values. heres a snip of what I try to do(working everywhere but IE): GEvent.addListener(googleMap, dragend, function () { var center = googleMap.getCenter(); var sW = googleMap.getBounds().getSouthWest(); var nE = googleMap.getBounds().getNorthEast(); document.getElementById(latitudeCenter).value=center.lat(); document.getElementById(longitudeCenter).value=center.lng(); document.getElementById(latitudeSW).value=sW.lat(); document.getElementById(longitudeSW).value=sW.lng(); document.getElementById(latitudeNE).value=nE.lat(); document.getElementById(longitudeNE).value=nE.lng(); document.getElementById(zoomLevel).value=googleMap.getZoom(); document.getElementById(gmap_ajaxGMapUpdatingFormSubmit).onclick(); }); So the different variables are stored in hidden fields. Just before the last entry above, every value looks ok. Here are some of the java server side code: Form gMapUpdatingForm = new Form(gmapUpdatingForm); gMapUpdatingForm.setOutputMarkupId(true); gMapUpdatingForm.add(new HiddenField(latitudeCenter, new PropertyModel(gMap.getCenter(), latitude)) { public IConverter getConverter() { return getUSConverter(); } }); gMapUpdatingForm.add(new HiddenField(longitudeCenter, new PropertyModel(gMap.getCenter(), longitude)) { public IConverter getConverter() { return getUSConverter(); } }); Please remember that it is actually working in both FF and safari. Ajax calls goes through as it should, values arent updated. regards Nino Eelco Hillenius wrote: I still only half understand the issue tbh. Can you elaborate about the problems you are experiencing? Eelco On 6/7/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi We are experiencing some issues with ajax in IE7, possibly IE6 as well when using the target.appendjavascript. Are there any workarounds? I've looked a bit at http://www.nabble.com/-BUG-%3Cscript%3E-tag-evaluation-in-IE-t3839952.html but it does not seem to work. Any ideas, solutions will be highly appreciated, as this are a showstopper for the v1 release of the gmap contrib. regards Nino - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
Re: [Wicket-user] [GMAP contrib] IE7 Ajax target appendJavascript not working?
I can see in my form I have a action that looks like this(on IE): /quickstart/gmap/;jsessionid=blabla?wicket:interface:0:gmap in firefox it looks like this: /quickstart/gmap/?wicket:interface=:0:gmap:gmapUpdatingForm::IFormSubmitListener im not sure if that does affect anything? regards Nino Nino Saturnino Martinez Vazquez Wael wrote: Looking even further into the problem I can see that the values are correct after the ajax post. So it seems that the models of our hidden fields arent updated. Im not sure what todo about this, Matej mentioned that it could be a problem with wicket 1.2.6 and IE7, im using IE6 are the same problem there? regards Nino Nino Saturnino Martinez Vazquez Wael wrote: In addition to the previous mail I would like to add, that we would like to resolve this using wicket 1.2.6. Now if anything are unclear or so please write and I'll try to explain further. Also the current version are the one available from SVN, I belive Iulian upgraded the example so that its now using that aswell. So you can just check out the code from wicket stuff repo if you want to see the code.. regards Nino Nino Saturnino Martinez Vazquez Wael wrote: Hi Matej Currently gmap contrib are using wicket 1.2.6. And currently im testing with IE 6 which has the problems I mentioned, the ajax calls seems to yield no problems so far I can see we get a call when the form are submitted and it calls back after processing. However form values arent updated, im not sure if that has anything to do with the ajax part? Im not sure how far we are in the process of upgrading the gmap contrib to 1.3. regards Nino Matej Knopp wrote: Can you please test it with latest wicket 1.3? There was a bug that prevented IE7 from processing ajax requests properly, it might be related. -Matej On 6/11/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Yes i'll try to explain in greater detail. Looks like it was not the appendjavascript that wasnt working. But something else.:) Our hidden variables arent updated when using IE. Why they arent updated correctly puzzles me, because just before the ajax call they seem to have the correct values. heres a snip of what I try to do(working everywhere but IE): GEvent.addListener(googleMap, dragend, function () { var center = googleMap.getCenter(); var sW = googleMap.getBounds().getSouthWest(); var nE = googleMap.getBounds().getNorthEast(); document.getElementById(latitudeCenter).value=center.lat(); document.getElementById(longitudeCenter).value=center.lng(); document.getElementById(latitudeSW).value=sW.lat(); document.getElementById(longitudeSW).value=sW.lng(); document.getElementById(latitudeNE).value=nE.lat(); document.getElementById(longitudeNE).value=nE.lng(); document.getElementById(zoomLevel).value=googleMap.getZoom(); document.getElementById(gmap_ajaxGMapUpdatingFormSubmit).onclick(); }); So the different variables are stored in hidden fields. Just before the last entry above, every value looks ok. Here are some of the java server side code: Form gMapUpdatingForm = new Form(gmapUpdatingForm); gMapUpdatingForm.setOutputMarkupId(true); gMapUpdatingForm.add(new HiddenField(latitudeCenter, new PropertyModel(gMap.getCenter(), latitude)) { public IConverter getConverter() { return getUSConverter(); } }); gMapUpdatingForm.add(new HiddenField(longitudeCenter, new PropertyModel(gMap.getCenter(), longitude)) { public IConverter getConverter() { return getUSConverter(); } }); Please remember that it is actually working in both FF and safari. Ajax calls goes through as it should, values arent updated. regards Nino Eelco Hillenius wrote: I still only half understand the issue tbh. Can you elaborate about the problems you are experiencing? Eelco On 6/7/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi We are experiencing some issues with ajax in IE7, possibly IE6 as well when using the target.appendjavascript. Are there any workarounds? I've looked a bit at http://www.nabble.com/-BUG-%3Cscript%3E-tag-evaluation-in-IE-t3839952.html but it does not seem to work. Any ideas, solutions will be highly appreciated, as this are a showstopper for the v1 release of the gmap contrib. regards Nino - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
Re: [Wicket-user] [GMAP contrib] IE7 Ajax target appendJavascript not working?
this doesn't really makes sense. you have different action for IE and different for firefox? On 6/11/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I can see in my form I have a action that looks like this(on IE): /quickstart/gmap/;jsessionid=blabla?wicket:interface:0:gmap in firefox it looks like this: /quickstart/gmap/?wicket:interface=:0:gmap:gmapUpdatingForm::IFormSubmitListener im not sure if that does affect anything? regards Nino Nino Saturnino Martinez Vazquez Wael wrote: Looking even further into the problem I can see that the values are correct after the ajax post. So it seems that the models of our hidden fields arent updated. Im not sure what todo about this, Matej mentioned that it could be a problem with wicket 1.2.6 and IE7, im using IE6 are the same problem there? regards Nino Nino Saturnino Martinez Vazquez Wael wrote: In addition to the previous mail I would like to add, that we would like to resolve this using wicket 1.2.6. Now if anything are unclear or so please write and I'll try to explain further. Also the current version are the one available from SVN, I belive Iulian upgraded the example so that its now using that aswell. So you can just check out the code from wicket stuff repo if you want to see the code.. regards Nino Nino Saturnino Martinez Vazquez Wael wrote: Hi Matej Currently gmap contrib are using wicket 1.2.6. And currently im testing with IE 6 which has the problems I mentioned, the ajax calls seems to yield no problems so far I can see we get a call when the form are submitted and it calls back after processing. However form values arent updated, im not sure if that has anything to do with the ajax part? Im not sure how far we are in the process of upgrading the gmap contrib to 1.3. regards Nino Matej Knopp wrote: Can you please test it with latest wicket 1.3? There was a bug that prevented IE7 from processing ajax requests properly, it might be related. -Matej On 6/11/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Yes i'll try to explain in greater detail. Looks like it was not the appendjavascript that wasnt working. But something else.:) Our hidden variables arent updated when using IE. Why they arent updated correctly puzzles me, because just before the ajax call they seem to have the correct values. heres a snip of what I try to do(working everywhere but IE): GEvent.addListener(googleMap, dragend, function () { var center = googleMap.getCenter(); var sW = googleMap.getBounds().getSouthWest(); var nE = googleMap.getBounds().getNorthEast(); document.getElementById(latitudeCenter).value=center.lat(); document.getElementById(longitudeCenter).value=center.lng(); document.getElementById(latitudeSW).value=sW.lat(); document.getElementById(longitudeSW).value=sW.lng(); document.getElementById(latitudeNE).value=nE.lat(); document.getElementById(longitudeNE).value=nE.lng(); document.getElementById(zoomLevel).value=googleMap.getZoom(); document.getElementById(gmap_ajaxGMapUpdatingFormSubmit).onclick(); }); So the different variables are stored in hidden fields. Just before the last entry above, every value looks ok. Here are some of the java server side code: Form gMapUpdatingForm = new Form(gmapUpdatingForm); gMapUpdatingForm.setOutputMarkupId(true); gMapUpdatingForm.add(new HiddenField(latitudeCenter, new PropertyModel(gMap.getCenter(), latitude)) { public IConverter getConverter() { return getUSConverter(); } }); gMapUpdatingForm.add(new HiddenField(longitudeCenter, new PropertyModel(gMap.getCenter(), longitude)) { public IConverter getConverter() { return getUSConverter(); } }); Please remember that it is actually working in both FF and safari. Ajax calls goes through as it should, values arent updated. regards Nino Eelco Hillenius wrote: I still only half understand the issue tbh. Can you elaborate about the problems you are experiencing? Eelco On 6/7/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi We are experiencing some issues with ajax in IE7, possibly IE6 as well when using the target.appendjavascript. Are there any workarounds? I've looked a bit at http://www.nabble.com/-BUG-%3Cscript%3E-tag-evaluation-in-IE-t3839952.html but it does not seem to work. Any ideas, solutions will be highly appreciated, as this are a showstopper for the v1 release of the gmap contrib. regards Nino - This SF.net email is sponsored by DB2 Express
Re: [Wicket-user] [GMAP contrib] IE7 Ajax target appendJavascript not working?
No I dont... It's pretty strange I guess it could be caused by IE not accepting cookies? And then web container trying with url rewrite. The difference in the action being called was a matter of me pasting from two different places, I guess the heat are getting to me now(its pretty hot here in dk).. regards Nino Matej Knopp wrote: this doesn't really makes sense. you have different action for IE and different for firefox? On 6/11/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: I can see in my form I have a action that looks like this(on IE): /quickstart/gmap/;jsessionid=blabla?wicket:interface:0:gmap in firefox it looks like this: /quickstart/gmap/?wicket:interface=:0:gmap:gmapUpdatingForm::IFormSubmitListener im not sure if that does affect anything? regards Nino Nino Saturnino Martinez Vazquez Wael wrote: Looking even further into the problem I can see that the values are correct after the ajax post. So it seems that the models of our hidden fields arent updated. Im not sure what todo about this, Matej mentioned that it could be a problem with wicket 1.2.6 and IE7, im using IE6 are the same problem there? regards Nino Nino Saturnino Martinez Vazquez Wael wrote: In addition to the previous mail I would like to add, that we would like to resolve this using wicket 1.2.6. Now if anything are unclear or so please write and I'll try to explain further. Also the current version are the one available from SVN, I belive Iulian upgraded the example so that its now using that aswell. So you can just check out the code from wicket stuff repo if you want to see the code.. regards Nino Nino Saturnino Martinez Vazquez Wael wrote: Hi Matej Currently gmap contrib are using wicket 1.2.6. And currently im testing with IE 6 which has the problems I mentioned, the ajax calls seems to yield no problems so far I can see we get a call when the form are submitted and it calls back after processing. However form values arent updated, im not sure if that has anything to do with the ajax part? Im not sure how far we are in the process of upgrading the gmap contrib to 1.3. regards Nino Matej Knopp wrote: Can you please test it with latest wicket 1.3? There was a bug that prevented IE7 from processing ajax requests properly, it might be related. -Matej On 6/11/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Yes i'll try to explain in greater detail. Looks like it was not the appendjavascript that wasnt working. But something else.:) Our hidden variables arent updated when using IE. Why they arent updated correctly puzzles me, because just before the ajax call they seem to have the correct values. heres a snip of what I try to do(working everywhere but IE): GEvent.addListener(googleMap, dragend, function () { var center = googleMap.getCenter(); var sW = googleMap.getBounds().getSouthWest(); var nE = googleMap.getBounds().getNorthEast(); document.getElementById(latitudeCenter).value=center.lat(); document.getElementById(longitudeCenter).value=center.lng(); document.getElementById(latitudeSW).value=sW.lat(); document.getElementById(longitudeSW).value=sW.lng(); document.getElementById(latitudeNE).value=nE.lat(); document.getElementById(longitudeNE).value=nE.lng(); document.getElementById(zoomLevel).value=googleMap.getZoom(); document.getElementById(gmap_ajaxGMapUpdatingFormSubmit).onclick(); }); So the different variables are stored in hidden fields. Just before the last entry above, every value looks ok. Here are some of the java server side code: Form gMapUpdatingForm = new Form(gmapUpdatingForm); gMapUpdatingForm.setOutputMarkupId(true); gMapUpdatingForm.add(new HiddenField(latitudeCenter, new PropertyModel(gMap.getCenter(), latitude)) { public IConverter getConverter() { return getUSConverter(); } }); gMapUpdatingForm.add(new HiddenField(longitudeCenter, new PropertyModel(gMap.getCenter(), longitude)) { public IConverter getConverter() { return getUSConverter(); } }); Please remember that it is actually working in both FF and safari. Ajax calls goes through as it should, values arent updated. regards Nino Eelco Hillenius wrote: I still only half understand the issue tbh. Can you elaborate about the problems you are experiencing? Eelco On 6/7/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi We are experiencing some issues with ajax in IE7, possibly IE6 as well when using the target.appendjavascript. Are there any workarounds? I've looked a bit at http://www.nabble.com/-BUG-%3Cscript%3E-tag-evaluation-in-IE-t3839952.html but it
Re: [Wicket-user] [GMAP contrib] IE7 Ajax target appendJavascript not working?
Looking at the the post (I use paros as proxy), things are alright. Im now suspecting that its our function that aren't merged correctly. We have a function called refreshGmap which we replace on ajax calls and then evaluate on the client, im not sure if this are updated correctly in IE. The error I get are that the map wont go to the place where the user draged it, now when we intialize the gmap I in my example set the center to 0,0 and there it stays not matter what in IE. However it looks as everything are updated correctly. But the map keeps it center to 0,0 which makes me belive that the refreshGmap function arent updated correctly. So I guess it could be related to what you talked about in the first instance? regards Nino Matej Knopp wrote: I dunno. Could be problem with ajax form serialization. Can you intercept the post request to see what parameters are submitted? -Matej On 6/11/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Looking even further into the problem I can see that the values are correct after the ajax post. So it seems that the models of our hidden fields arent updated. Im not sure what todo about this, Matej mentioned that it could be a problem with wicket 1.2.6 and IE7, im using IE6 are the same problem there? regards Nino Nino Saturnino Martinez Vazquez Wael wrote: In addition to the previous mail I would like to add, that we would like to resolve this using wicket 1.2.6. Now if anything are unclear or so please write and I'll try to explain further. Also the current version are the one available from SVN, I belive Iulian upgraded the example so that its now using that aswell. So you can just check out the code from wicket stuff repo if you want to see the code.. regards Nino Nino Saturnino Martinez Vazquez Wael wrote: Hi Matej Currently gmap contrib are using wicket 1.2.6. And currently im testing with IE 6 which has the problems I mentioned, the ajax calls seems to yield no problems so far I can see we get a call when the form are submitted and it calls back after processing. However form values arent updated, im not sure if that has anything to do with the ajax part? Im not sure how far we are in the process of upgrading the gmap contrib to 1.3. regards Nino Matej Knopp wrote: Can you please test it with latest wicket 1.3? There was a bug that prevented IE7 from processing ajax requests properly, it might be related. -Matej On 6/11/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Yes i'll try to explain in greater detail. Looks like it was not the appendjavascript that wasnt working. But something else.:) Our hidden variables arent updated when using IE. Why they arent updated correctly puzzles me, because just before the ajax call they seem to have the correct values. heres a snip of what I try to do(working everywhere but IE): GEvent.addListener(googleMap, dragend, function () { var center = googleMap.getCenter(); var sW = googleMap.getBounds().getSouthWest(); var nE = googleMap.getBounds().getNorthEast(); document.getElementById(latitudeCenter).value=center.lat(); document.getElementById(longitudeCenter).value=center.lng(); document.getElementById(latitudeSW).value=sW.lat(); document.getElementById(longitudeSW).value=sW.lng(); document.getElementById(latitudeNE).value=nE.lat(); document.getElementById(longitudeNE).value=nE.lng(); document.getElementById(zoomLevel).value=googleMap.getZoom(); document.getElementById(gmap_ajaxGMapUpdatingFormSubmit).onclick(); }); So the different variables are stored in hidden fields. Just before the last entry above, every value looks ok. Here are some of the java server side code: Form gMapUpdatingForm = new Form(gmapUpdatingForm); gMapUpdatingForm.setOutputMarkupId(true); gMapUpdatingForm.add(new HiddenField(latitudeCenter, new PropertyModel(gMap.getCenter(), latitude)) { public IConverter getConverter() { return getUSConverter(); } }); gMapUpdatingForm.add(new HiddenField(longitudeCenter, new PropertyModel(gMap.getCenter(), longitude)) { public IConverter getConverter() { return getUSConverter(); } }); Please remember that it is actually working in both FF and safari. Ajax calls goes through as it should, values arent updated. regards Nino Eelco Hillenius wrote: I still only half understand the issue tbh. Can you elaborate about the problems you are experiencing? Eelco On 6/7/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi We are experiencing some issues with ajax in IE7, possibly IE6 as well when using the target.appendjavascript. Are there any workarounds? I've looked
Re: [Wicket-user] [GMAP contrib] IE7 Ajax target appendJavascript not working?
i'll try:) Matej Knopp wrote: I dunno. Could be problem with ajax form serialization. Can you intercept the post request to see what parameters are submitted? -Matej On 6/11/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Looking even further into the problem I can see that the values are correct after the ajax post. So it seems that the models of our hidden fields arent updated. Im not sure what todo about this, Matej mentioned that it could be a problem with wicket 1.2.6 and IE7, im using IE6 are the same problem there? regards Nino Nino Saturnino Martinez Vazquez Wael wrote: In addition to the previous mail I would like to add, that we would like to resolve this using wicket 1.2.6. Now if anything are unclear or so please write and I'll try to explain further. Also the current version are the one available from SVN, I belive Iulian upgraded the example so that its now using that aswell. So you can just check out the code from wicket stuff repo if you want to see the code.. regards Nino Nino Saturnino Martinez Vazquez Wael wrote: Hi Matej Currently gmap contrib are using wicket 1.2.6. And currently im testing with IE 6 which has the problems I mentioned, the ajax calls seems to yield no problems so far I can see we get a call when the form are submitted and it calls back after processing. However form values arent updated, im not sure if that has anything to do with the ajax part? Im not sure how far we are in the process of upgrading the gmap contrib to 1.3. regards Nino Matej Knopp wrote: Can you please test it with latest wicket 1.3? There was a bug that prevented IE7 from processing ajax requests properly, it might be related. -Matej On 6/11/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Yes i'll try to explain in greater detail. Looks like it was not the appendjavascript that wasnt working. But something else.:) Our hidden variables arent updated when using IE. Why they arent updated correctly puzzles me, because just before the ajax call they seem to have the correct values. heres a snip of what I try to do(working everywhere but IE): GEvent.addListener(googleMap, dragend, function () { var center = googleMap.getCenter(); var sW = googleMap.getBounds().getSouthWest(); var nE = googleMap.getBounds().getNorthEast(); document.getElementById(latitudeCenter).value=center.lat(); document.getElementById(longitudeCenter).value=center.lng(); document.getElementById(latitudeSW).value=sW.lat(); document.getElementById(longitudeSW).value=sW.lng(); document.getElementById(latitudeNE).value=nE.lat(); document.getElementById(longitudeNE).value=nE.lng(); document.getElementById(zoomLevel).value=googleMap.getZoom(); document.getElementById(gmap_ajaxGMapUpdatingFormSubmit).onclick(); }); So the different variables are stored in hidden fields. Just before the last entry above, every value looks ok. Here are some of the java server side code: Form gMapUpdatingForm = new Form(gmapUpdatingForm); gMapUpdatingForm.setOutputMarkupId(true); gMapUpdatingForm.add(new HiddenField(latitudeCenter, new PropertyModel(gMap.getCenter(), latitude)) { public IConverter getConverter() { return getUSConverter(); } }); gMapUpdatingForm.add(new HiddenField(longitudeCenter, new PropertyModel(gMap.getCenter(), longitude)) { public IConverter getConverter() { return getUSConverter(); } }); Please remember that it is actually working in both FF and safari. Ajax calls goes through as it should, values arent updated. regards Nino Eelco Hillenius wrote: I still only half understand the issue tbh. Can you elaborate about the problems you are experiencing? Eelco On 6/7/07, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Hi We are experiencing some issues with ajax in IE7, possibly IE6 as well when using the target.appendjavascript. Are there any workarounds? I've looked a bit at http://www.nabble.com/-BUG-%3Cscript%3E-tag-evaluation-in-IE-t3839952.html but it does not seem to work. Any ideas, solutions will be highly appreciated, as this are a showstopper for the v1 release of the gmap contrib. regards Nino - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Resource.getParameters and resource mounting
On Saturday 09 June 2007 12:03 pm, Janos Cserep escreveu: I've started migrating my applications to 1.3.0 and I think I ran into a bug with Resource.getParameters(). If a resource is mounted via Application.mountSharedResource then Resource.getParameters returns with an empty valuemap. If it is not mounted then the valuemap contains all the parameters passed in via the URL. Created an issue in JIRA: https://issues.apache.org/jira/browse/WICKET-631 Regards, That's weird. I've got only two DynamicWebResources that are mountedSharedResources, and they both seem to work, though with one I have to use this syntax: http://localhost:8084/nrg/app/jnlp?app=edv and the other only works if I use: http://localhost:8084/nrg/app/foo/type/primary I'm not sure why the two of them use a different syntax. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AjaxFormComponentUpdatingBehavior for DropDownChoice not working in IE
Hi I haven't got experience with that error. Can you please post the code that is not working? Frank On 6/11/07, Javed [EMAIL PROTECTED] wrote: I need to change image according the selection made in dropdown. It is working fine Firefox but not in IE I tried it with onchange and onclick. It worked in Firefox but some how it is not working IE. Is there anything I am missing? Is there any other approach to achieve the same functionality with Ajax effect? -- View this message in context: http://www.nabble.com/AjaxFormComponentUpdatingBehavior-for-DropDownChoice-not-working-in-IE-tf3901202.html#a11059387 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AJAX Button on my Form inside a Panel needs 2 clicks to do a search
Great Jim, thanks a bunch. I'll try it out and let you know. Thanks again, f(t) On 6/8/07, James McLaughlin [EMAIL PROTECTED] wrote: I think some of the older versions of wicket would sometimes omit header contributions. When the error happens, check to see if wicket-ajax.js is included in the page. Also, you might want to upgrade to 1.2.6 and see if that fixes the issue. best, jim On 6/8/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: James, sorry I took so long to respond. I tried to put PageLinks in the menu. And I could swear that the frequency of error drop, but some times it still happens. I am using wicket 1.2.5. f(t) On 6/6/07, James McLaughlin [EMAIL PROTECTED] wrote: Looks good. What version of wicket are you using? And the second time you click DossierSearch, the time when no wicket ajax debug shows up, do a view source and see if the proper wicket-ajax js files are in the head section. Another thing I would suggest is using Bookmarkable links in your menu for Dossier search. You are using regular links, and that is why your url changes. best, jim On 6/6/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Here is the video. It is .AVI file made with CamStudio, an Open-source project. and it is inside a rar. f(t) On 6/6/07, James McLaughlin [EMAIL PROTECTED] wrote: Hi Francisco, I can't see anything logically wrong with your code, all though there are things I would have done differently. What is the output of the wicket ajax debug panel when you click on the ajax submit button? If you want some advice, I would suggest not using a pageablelistview and not keeping your search results as an instance member (unless they are very expensive to create). Instead, look into using DefaultDataTable or extending DataTable. That way you can put all your search logic in your IDataProvider (such as SortableDataProvider), and retrieve only the results you will display in the current page, and not carry them around in the session after the request is over. Hope this helps. best, jim On 6/6/07, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Sorry but I cannot find what the problem is. I've search Nabble. - Hello every one, I have a page that uses a panel (code ahead) that has a form with an AJAX button, it works fine, but some times I have to click on the Search button 2 times to make it work. I think it has to do with URLs or something because when it happens it changes the url. The code for the page that uses the following panel I don't include because it only has a statement saying add(new SearchPanel(etc... Here is the code, can some one help? ps: If any other comments like, your code sucks, please also include them. thanks a bunch f(t) and here is the code: package ch.logismata.wicket.panels.ajax; import ch.logismata.serverwrapper.DossierSearch ; import ch.logismata.serverwrapper.DossierSearchResult ; import ch.logismata.serverwrapper.DossierSearchResultList; import ch.logismata.wicket.pages.NewDossier ; import ch.logismata.wicket.panels.BasePanel; import java.io.Serializable; import java.util.ArrayList ; import wicket.AttributeModifier; import wicket.Component; import wicket.PageParameters; import wicket.ajax.AjaxRequestTarget; import wicket.ajax.markup.html.form.AjaxSubmitButton ; import wicket.ajax.markup.html.navigation.paging.AjaxPagingNavigator ; import wicket.markup.html.WebMarkupContainer; import wicket.markup.html.basic.Label ; import wicket.markup.html.form.Form ; import wicket.markup.html.form.TextField; import wicket.markup.html.link.Link; import wicket.markup.html.list.ListItem ; import wicket.markup.html.list.PageableListView; import wicket.markup.html.panel.FeedbackPanel ; import wicket.model.AbstractReadOnlyModel; import wicket.model.CompoundPropertyModel ; import wicket.model.Model; import wicket.model.ResourceModel; /** * Panel to make a Dossier Search and display the results * * @author gm */ public class DossierSearchPanel extends BasePanel { private SearchDossierModel m_cSearchDossierModel = new SearchDossierModel(); private ArrayListDossierSearchResult m_cSearchResults= new ArrayListDossierSearchResult(); public DossierSearchPanel(String id) { //Call super base panel super(id); // create feedback panel to show errors final FeedbackPanel feedback = new FeedbackPanel(searchFeedback); //add feedback panel
Re: [Wicket-user] IDataProvider.size()
On 6/11/07, Johan Karlberg [EMAIL PROTECTED] wrote: If it's only the repeated execution of a count projection that bothers you, what Eelco suggest is likely not caching the data returned by the iterator, it's caching the long returned by size(). It will decrease the accuracy of the pager in favor of performance, and will not contribute to significant increase in memory use. The interface to IDataProvider does require you to provide a size, but it puts no limitation on how you retrieve that size. If you can construct a query to return the size alongside your resultset, or your datalayer otherwise can provide the count baed on the data query alone, by all means, use it. Yep. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ?Contract for IteratorIDataProvider.iterator(int first, int count) ???
yeah i sincerely believe issuing a row count() is an expensive, especially when the row count doesn't change at all Like it is said in the other thread, you should then look at caching the count in either the data provider or the, if the data provider calls a service to get the count, in the service. If you do the latter, you'll cache one long for your whole application, so that won't be a memory hog. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Problem with request sent with double quotes present in component value [Dropdown option value not being escaped]
why not download 1.2.6 and try yourself? let us know if its fixed or not. -igor On 6/11/07, Swaroop Belur [EMAIL PROTECTED] wrote: Hi All I have a dropdown choice in which I happened to render string values for option value tags. So as i have mentioned earlier in this thread, some option values were having double quotes in them and therefore coming as in the server side. I found that by escaping the markup for option values as well in AbstractChoice#appendOptionHtml i was able to get the value. Is this scenatio fixed in versions 1.2.4 ? If not is it possible for the wicket team to have a look at this as well -Thanks swaroop belur On 6/8/07, Swaroop Belur [EMAIL PROTECTED] wrote: Hi All Wicket 1.2.4 I hava a dropdownchoice with round tip to the server enabled on selection change. The problem is when i select a string which is delimited by double quotes, the value comes up as an empty string at the server side. The class which initially processes is MultipartServletWebRequest . It appears that DiskFileItem#get() method returns empty array. It works properly for single quotes. How do I overcome this problem. Please help. -Thanks swaroop belur - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] MarkupException using a fragment with a TabbedPanel
I am migrating my application from 1.2.6 to 1.3.0 and am getting a similar (although slightly different) problem in 1.3.0-incubating-SNAPSHOT. I'll try to isolate the problem in a small example and follow up. Regards, Huergo Igor Vaynberg wrote: have you tried against the latest wicket-1.2.x branch? -igor On 6/8/07, *Huergo Perez* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi All, I am having the following problem trying to use a TabbedPanel inside a fragment. The structure of components is the following: [CompanyDetailsPanel] - [RelatedInfoFragment] - [TabbedPanel]. Wicket throws a MarkupException complaining about a missing component ID. The exception message seems to be unrelated to the real cause of the problem. The component IDs in HTML and the panel's Java code match. Below the exception stack trace Wicket displays my markup file and highlights the closing /div of my fragment. If I use the TabbedPanel directly from my CompanyDetailsPanel (i.e. without using a fragment), then everything works fine. I am using Wicket 1.2.6. Has anybody faced such a problem? Is it a bug in Wicket? Are there any workarounds? Thanks in advance! Huergo Markup reported by wicket: - wicket:panel div wicket:id=generalInfo[general info]/divbr / div wicket:id=bankInfo[bank info]/divbr / div wicket:id=contactInfo[contact info]/divbr / div wicket:id=legalAddress[legal address]/divbr / div wicket:id=primaryAddress[primary address]/divbr / div wicket:id=comments[comments section]/divbr / div wicket:id=relatedInfo[related info] /divbr / ^^^ /wicket:panel Wicket's exception message: - WicketMessage: Unable to find component with id 'name' in [MarkupContainer [Component id = relatedInfo, page = com.xlab.collection.wicket.test.london.CompanyDetailsTestPage, path = 0:companyDetails:relatedInfo.CompanyDetailsPanel$RelatedInfoFragment , isVisible = true, isVersioned = true]]. This means that you declared wicket:id=name in your markup, but that you either did not add the component to your page at all, or that the hierarchy does not match. [markup = file:/C:/work/projects/collection/collection-webapp/target/classes/com/xlab/collection/wicket/gui/party/details/CompanyDetailsPanel.html, index = 177, current = 'span wicket:id=name' (line 97, column 7)] - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] ?Contract for IteratorIDataProvider.iterator(int first, int count) ???
well, if a select count(*) from foo performs a table scan, i dont know if i would call it reasonable. this is of course imho. -igor On 6/11/07, Roger Hand [EMAIL PROTECTED] wrote: any reasonable db keeps a count of the total rows in any given table. the size() query is most likely select count(*) from foo Then I guess Postgres (up until version 8.0 anyway) is not a reasonable database. Unfortunately, getting a row count is typically an expensive process due to its implementation of MVCC architecture. -Roger *From:* Igor Vaynberg [mailto:[EMAIL PROTECTED] *Sent:* Sunday, June 10, 2007 11:38 PM *To:* wicket-user@lists.sourceforge.net *Subject:* Re: [Wicket-user] ?Contract for IteratorIDataProvider.iterator(int first, int count) ??? in my experience this wont cause a problem. any reasonable db keeps a count of the total rows in any given table. the size() query is most likely select count(*) from foo, which will use that stored count. and even if there is something more dynamic to it, the db will most likely put that statement in a cache and use that. so basically, dont cry wolf until you actually encounter the problem. you can play what-if for a long time :) -igor On 6/10/07, *Lec* [EMAIL PROTECTED] wrote: Igor, if calling paging 1,2,3 n each time requires a call to iterator(first, count) and size(), which means a call to db, wouldn't this way, it ll give a bottleneck at the database layer? Imagine there are about concurrent 5000 users doing the pagingim sure the database will slowdown significantly? can it be any way where iterator() can return the size value as well, just to reduce to one query rather than 2 queries being made each time the paging is executed? igor.vaynberg wrote: the iterator() and size() are not meant to be used together and there is no, nor ever be, a contract that guarantees any ordering of invocations between these two methods. size() is meant to return the total number of rows iterator() is used to return a window that will be displayed those are the only contracts. what exactly is the problem? -Igor On 4/4/06, Frank Silbermann [EMAIL PROTECTED] wrote: I have a question about the intended use of the DataTable components provided in Wicket Extensions. The DataTable relies upon an IDataProvider to provide the data. To do this, we implement: Iterator iterate(first, count) Lacking any advice to the contrary, I assumed that this is the method which would retrieve data from the database, but this does not seem to be working well for me. My database query is parameterized based on page-component model values, and these may change with each rendering. My problem is that when one rendering presents a short data set, on the next rendering the DataTable is not always requesting all of the rows. The count seems to be affected by the number of rows returned by the previous rendering. I suspect this is because my implementation of int DataProvider.size () assumes that it will be called _*after*_ Iterator iterate(first, count) pulls down the data – so it's always one rendering behind. Should I give the int IDataProvider.size() method the responsibility for figuring out the query string and going to the database? (How else would it be able to tell the DataProvider how many rows to request?) -- View this message in context: http://www.nabble.com/RE%3A--Contract-for-%22Iterator-IDataProvider.iterator%28int-first%2C-int-count%29%22-tf1395451.html#a11054989 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Cyclic parent/child relationship
Yeah agreed. I was just wondering if a sanity check is needed at that point in the code. Thanks. On 6/11/07, Alex Objelean [EMAIL PROTECTED] wrote: You just have to respect the hierarchy you have defined in the markup. Nart Seine wrote: Hello, I made an innocent programming error that day by adding a Form as a child component of a TextField thats already the child of the Form. In that case, execution gets stuck in an infinite loop in Component.findParent(final Class c). I still am only scratching the surface of wicket, but are there any cases when two component can be parents of each other, as in, is this the case with some component types? Could a check be added in the code to prevent adding a component, if the component being added is already the parent of 'this' component? Or should I just ensure I have enough caffeine in my system before I start putting together component hierarchies ? :) Thanks - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Cyclic-parent-child-relationship-tf3900804.html#a11058487 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] IDataProvider.size()
Lec wrote: so what s the most optimized way of doing paging using the IDataProvider? There is no optimal way. You have to engage your brain and make trade-offs, just like you do with everything else. You can make sure your database is configured to cache the COUNT(*) query, which will be as efficient as you need, I imagine. It will probably also stop you getting stale values, depending how your database vendor handles things. However, even if it caches it, you need to roundtrip to your database to find it, which you may consider sub-optimal. To avoid this, you can cache the result of COUNT(*) in your DAO layer for some time (a few seconds or a minute, say). You then need to decide how to cope with stale values. You can cache the result of COUNT(*) in your DAO layer and make that layer intelligently expunge the cache when you run DELETE or INSERT statements, but that assumes nothing external to your DAO layer will be touching the database and that you're not clustering your application. You can make the above cluster-safe by mixing in JGroups or JMS or something else that can send clustered cache invalidations around the place, but you still have external modification issues. You can combine the above with cache timeouts to give you a blend of both, and tune the rate of invalidation messages (you could group multiple entity invalidations into a single message) and also tune the timeout values to give an acceptable trade-off between data staleness and speed. This trade-off will be different depending on lots of factors, including what sort of data you're displaying, how big a performance bottleneck this really is (ideally you want realtime updates, so have you profiled it to make sure you really need to cache things and serve potentially stale data yet?). See, there is no optimal way. If the above confuses you, just do what 99% of people will do, and rely on your MySQL or whatever to cache the value for you and don't worry about it. If you're really concerned, you can profile your application and fix the bottlenecks. They probably won't be where you think they will. Premature optimisation is the root of all evil. Al -- Alastair Maw Wicket-biased blog at http://herebebeasties.com - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Cyclic parent/child relationship
On 6/11/07, Nart Seine [EMAIL PROTECTED] wrote: Yeah agreed. I was just wondering if a sanity check is needed at that point in the code. Thanks. It would be possible to build this in, but it would come at the price of increased processing overhead. Tbh, I'm not sure if the problem is common enough to justify this. Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Cyclic parent/child relationship
Speaking of sanity, awhile back, I was guilty of this fine piece of brain damage: class MyBrainDamagedModel implements IModel { // some interesting members // some interesting methods public Object getObject() { return this; } } Turns out this an excellent way to exercise your cpu. I don't know if there is anything wicket can do to prevent the hapless user the shame and frustration of falling into such a sandtrap. Maybe a note in the javadoc. Maybe this message will be enough. Maybe such users should not be allowed near wicket in the first place :). best, jim On 6/11/07, Nart Seine [EMAIL PROTECTED] wrote: Yeah agreed. I was just wondering if a sanity check is needed at that point in the code. Thanks. On 6/11/07, Alex Objelean [EMAIL PROTECTED] wrote: You just have to respect the hierarchy you have defined in the markup. Nart Seine wrote: Hello, I made an innocent programming error that day by adding a Form as a child component of a TextField thats already the child of the Form. In that case, execution gets stuck in an infinite loop in Component.findParent(final Class c). I still am only scratching the surface of wicket, but are there any cases when two component can be parents of each other, as in, is this the case with some component types? Could a check be added in the code to prevent adding a component, if the component being added is already the parent of 'this' component? Or should I just ensure I have enough caffeine in my system before I start putting together component hierarchies ? :) Thanks - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Cyclic-parent-child-relationship-tf3900804.html#a11058487 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] TabbedPanel and i18n
Hello, The application I am working on uses i18n. Wicket has been great with this. :) Our base page that every other page extends from, does the following: getSession().setLocale(((INLWebSession)getSession()).getCredentials((WebRequest)getRequest()).getPreferredLocale()); to set the current locale based on the users preference. The content of the application is in an iframe. (The wicket pages are in the iframe) The navigation, preferences elements, etc. are outside the iframe in what we refer to as the wrapper. Changing the language is done through this wrapper. When the display language is changed, we refresh the contents of the iframe and it comes back in the new language. HOWEVER We have one page that uses TabbedPanel with two tabs. This page (and tabs) correctly internationalizes based on the locale used when the page is loaded. Changing the language in the wrapper does cause the page to refresh, but not cause it to change languages. Is there something special with tabs and TabbedPanel? Another issue with the same page, we use the following constructors: public ReviewPage(String ahId) { build(ahId, 0); } public ReviewPage(String ahId, int tab) { build(ahId, tab); } So, if no tab number is passed in it uses tab 0. From tab 1, there are actions that update the underlying object and use: setResponsePage(new ReviewPage(req.getReqId(), 1) ); to show the changes, effectively just calling it's self. This work just fine. However, from a different wicket page trying to have a link that uses the setResponsePage(new ReviewPage(req.getReqId(), 1) ); causes a NotSerializableException. Why / how does the same call cause two different results? Thanks for any insights. -Shawn - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Prototype scoped Spring beans
I read on the wiki that serializing spring beans is a problem because of injected references. So what I want is something from spring which it probably cannot give me. But I will try to clear this up on the spring forum. 2007/6/7, Igor Vaynberg [EMAIL PROTECTED]: hrm. you say you will have a serialization problem if you lookup the bean directly and hold on to it. but isnt that exactly what you want? to pull out a prototype bean and keep it inside the form's scope? the form is in httpsession and so the bean will be serialized. so if that is what you want to do you have to make sure the bean is serializable and do the lookup yourself. we can probably add @SpringBean(transient=false) or something like that to keep the reference instead of discarding it, but that wont solve your serialization problem, it will just save you doing the lookup yourself. so what exactly do you want? -igor On 6/3/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: I put a breakpoint in the constructor of my Form, which has the @SpringBean annotation on ia property named logic. Before the super() call, logic is null. After that, it is set to $Proxy39, with a h-attribute to a org.apache.wicket.proxy.LazyInitProxyFactory$JdkHandler. The target property of the handler is null. After the next line, where I call a method from logic, the target property is set to the bean instance. So it seems that the reference gets lost in the first call. But, as you said that the bean is transient anyway, I think that prototype beans could not be used that way for holding state of wicket components, because that state should certainly also be kept when using the back button. I'm not sure what is best then. I could get a reference to the spring bean directly from ApplicationContext, and just keep it. But then I would face the problem of serialization. The best thing would be IMHO if the proxy could somehow do an automatic re-lookup from Spring for prototype beans, so that not a new instance is fetched from the container, but the same as before. But I don't know enough about Spring to say if that is even possible. 2007/6/3, Eelco Hillenius [EMAIL PROTECTED]: I'm not that familiar with the code, but the interesting thing is that LazyInitProxyFactory$JdkHandler does cache the bean it located: if (target == null) { target = locator.locateProxyTarget(); } return proxy.invoke(target, args); The target is a transient member of JdkHandler and judging from the code, once the bean is located it should just be reused until the page is serialized/ deserialized (for backbutton support or when clustered). Can you use you debugger to find out what exactly happens? Eelco On 6/1/07, Rüdiger Schulz [EMAIL PROTECTED] wrote: Right, forgot the Stacktraces: The first when calling super(): at KitManagementBean.init(KitManagementBean.java:34) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance( NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance( DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java :513) at org.springframework.beans.BeanUtils.instantiateClass( BeanUtils.java:85) at org.springframework.beans.factory.support.SimpleInstantiationStrategy.instantiate (SimpleInstantiationStrategy.java:61) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.instantiateBean (AbstractAutowireCapableBeanFactory.java:732) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBeanInstance (AbstractAutowireCapableBeanFactory.java:720) at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean (AbstractAutowireCapableBeanFactory.java:386) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean( AbstractBeanFactory.java:270) at org.springframework.beans.factory.support.AbstractBeanFactory.getBean( AbstractBeanFactory.java:164) at org.springframework.context.support.AbstractApplicationContext.getBean( AbstractApplicationContext.java:707) at org.apache.wicket.spring.SpringBeanLocator.lookupSpringBean (SpringBeanLocator.java:240) at org.apache.wicket.spring.SpringBeanLocator.locateProxyTarget( SpringBeanLocator.java:163) at org.apache.wicket.spring.injection.annot.AnnotProxyFieldValueFactory.testLocator (AnnotProxyFieldValueFactory.java:124) at org.apache.wicket.spring.injection.annot.AnnotProxyFieldValueFactory.getFieldValue (AnnotProxyFieldValueFactory.java:99)
Re: [Wicket-user] TabbedPanel and i18n
how are you creating your itab/abstracttab objects? can we see that code? mainly what model do you pass in for the title. and what object does it say is not serializable? -igor On 6/11/07, Shawn Tumey [EMAIL PROTECTED] wrote: Hello, The application I am working on uses i18n. Wicket has been great with this. :) Our base page that every other page extends from, does the following: getSession().setLocale(((INLWebSession)getSession()).getCredentials((WebRequest)getRequest()).getPreferredLocale()); to set the current locale based on the users preference. The content of the application is in an iframe. (The wicket pages are in the iframe) The navigation, preferences elements, etc. are outside the iframe in what we refer to as the wrapper. Changing the language is done through this wrapper. When the display language is changed, we refresh the contents of the iframe and it comes back in the new language. HOWEVER We have one page that uses TabbedPanel with two tabs. This page (and tabs) correctly internationalizes based on the locale used when the page is loaded. Changing the language in the wrapper does cause the page to refresh, but not cause it to change languages. Is there something special with tabs and TabbedPanel? Another issue with the same page, we use the following constructors: public ReviewPage(String ahId) { build(ahId, 0); } public ReviewPage(String ahId, int tab) { build(ahId, tab); } So, if no tab number is passed in it uses tab 0. From tab 1, there are actions that update the underlying object and use: setResponsePage(new ReviewPage(req.getReqId(), 1) ); to show the changes, effectively just calling it's self. This work just fine. However, from a different wicket page trying to have a link that uses the setResponsePage(new ReviewPage( req.getReqId(), 1) ); causes a NotSerializableException. Why / how does the same call cause two different results? Thanks for any insights. -Shawn - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] TabbedPanel and i18n
The spring service is what it is complaining about not being serializable. private void build(final String ahId, final int tab) { List tabs=new ArrayList(); tabs.add(new AbstractTab(new ResourceModel(common.summary)){ private static final long serialVersionUID = 1L; public Panel getPanel(String panelId) { return new SummaryPanel(panelId, AHBasePage.getASM ().getRequest(ahId)); } }); // this is tab 0 // getASM() is a spring service Credentials creds = ((INLWebSession)getSession()).getCredentials((WebRequest)getRequest()); UserPrivileges userPrivs = creds.getPrivileges(); if (userPrivs.hasPrivilege( CredentialsConstants.PRIV_CATG_AUTOMATED_REQUESTS , CredentialsConstants.ACTION_PRIV_UPDATE)){ tabs.add(new AbstractTab(new ResourceModel(common.details)) { private static final long serialVersionUID = 1L; public Panel getPanel(String panelId) { return new DetailPanel(panelId, AHBasePage.getASM ().getRequest(ahId)); } }); // this is tab 1 // getASM() is a spring service } TabbedPanel tPanel = new TabbedPanel(tabs, tabs); tPanel.setOutputMarkupId(true); tPanel.setSelectedTab(tab); add(tPanel); Thanks for the assistance, -Shawn On 6/11/07, Igor Vaynberg [EMAIL PROTECTED] wrote: how are you creating your itab/abstracttab objects? can we see that code? mainly what model do you pass in for the title. and what object does it say is not serializable? -igor - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Cyclic parent/child relationship
On Mon, 11 Jun 2007, James McLaughlin wrote: class MyBrainDamagedModel implements IModel ... public Object getObject() { return this; } } Turns out this an excellent way to exercise your cpu. I don't know if there is anything wicket can do to prevent the hapless user the shame and frustration of falling into such a sandtrap. Maybe a note in Yep, generic models, once that feature of the old 2.0 will be resurrected in some more fortunate version. - Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Accessing HttpSession attributes
You can get to the HttpSession through the WebRequest. Assuming your code is in a WebPage: getRequest().getHttpServletRequest().getSession() Enjoy, On Mon, 2007-06-11 at 21:54 +0200, Kees de Kooter wrote: I am currently working on a proof -of-concept of Wicket inside an existing Struts app. I need to access some (old skool) session attributes from my wicket WebSession. How can this be done? -- Philip A. Chapman Desktop and Web Application Development: Java, .NET, PostgreSQL, MySQL, MSSQL Linux, Windows 2000, Windows XP signature.asc Description: This is a digitally signed message part - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AjaxSubmitButton changing Button's Name/Displayed Text/etc
* Francisco Diaz Trepat - gmail: Anybody knows how to change the displayed name of an AjaxSubmitButton? I just tried to do a .setMode(new ResourceModel(bla bla But it didn't work. I have an input: input type=submit value=create wicket:id=createButton Please always mention the version of Wicket you are using. In Wicket 1.3, this is supposed to work. Set a breakpoint in Button#onComponentTag() on the line tag.put(value, value); Best regards, -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Accessing HttpSession attributes
Thanks Igor. I should have been more specific. I would like to access HttpSession attributes from a wicket WebSession object. Is this possible? To be specific my WebSession subclass has a getUser() method. This user is stored as the session variable user. On 6/11/07, Igor Vaynberg [EMAIL PROTECTED] wrote: ((webrequest)getrequest()).gethttpservletrequest().getsession() -igor On 6/11/07, Kees de Kooter [EMAIL PROTECTED] wrote: I am currently working on a proof -of-concept of Wicket inside an existing Struts app. I need to access some (old skool) session attributes from my wicket WebSession. How can this be done? -- Cheers, Kees de Kooter http://www.boplicity.net - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Cheers, Kees de Kooter http://www.boplicity.net - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Accessing HttpSession attributes
((webrequest)RequestCycle.get().getRequest())... -igor On 6/11/07, Kees de Kooter [EMAIL PROTECTED] wrote: Thanks Igor. I should have been more specific. I would like to access HttpSession attributes from a wicket WebSession object. Is this possible? To be specific my WebSession subclass has a getUser() method. This user is stored as the session variable user. On 6/11/07, Igor Vaynberg [EMAIL PROTECTED] wrote: ((webrequest)getrequest()).gethttpservletrequest().getsession() -igor On 6/11/07, Kees de Kooter [EMAIL PROTECTED] wrote: I am currently working on a proof -of-concept of Wicket inside an existing Struts app. I need to access some (old skool) session attributes from my wicket WebSession. How can this be done? -- Cheers, Kees de Kooter http://www.boplicity.net - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Cheers, Kees de Kooter http://www.boplicity.net - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Unit testing shared resources
* Janos Cserep: I've started writing a unit test for the getParameters() bug (WICKET-631), but can't find a way to directly call a shared resource using WicketTester. It's not on a page, or on a panel... Any pointers? Eelco suggested to ask on this list. Just typed Ctrl-Shift-T in Eclipse and came across SharedResourceRequestTarget, is that what you need? RequestParameters params = new RequestParameters(); params.setResourceKey(sharedResource); getRequestCycle().setRequestTarget(new SharedResourceRequestTarget(params)); -- Jean-Baptiste Quenot aka John Banana Qwerty http://caraldi.com/jbq/ - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Accessing HttpSession attributes
I would like to access HttpSession attributes from a wicket WebSession object. Is this possible? To be specific my WebSession subclass has a getUser() method. This user is stored as the session variable user. Note that (Web)Session is an abstraction. If your session store backs on HttpSession (like the default implementation does), you can provide your own session object, and let that call super.get/setAttribute. public class MySession extends WebSession { ... public User getUser() { return (User)getAttribute(my.user.key); } ... } Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Using Ajax to update my tree
Wicket: 1.2.6 Is there a trick to getting a table's data updated using Ajax (eg when a DropDownChoice value changes - without refreshing the whole page)? I started with a table that got update by its ListView with no Ajax. That worked well. Now, I try to use a WebMarkupContainer to wrap the ListView so I can update the table by Ajax. final ListView lines = new ListView(lv,myList){ @Override protected void populateItem(ListItem item) { item.add(...); // derive and add 1st name item.add(...); // derive and add 2nd name }}; WebMarkupContainer listContainer = new WebMarkupContainer(wmc); listContainer.add(lines); form.add(listContainer.setOutputMarkupId(true)); the my most recent try at mark-up looks like: table border =1 align=center thead tr thfirst name/th thlast name/th /tr /thead tbody tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr /tbody /table -- View this message in context: http://www.nabble.com/Using-Ajax-to-update-my-%3Ctree%3E-tf3904545.html#a11070200 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Ajax - update table
Wicket: 1.2.6 Is there a trick to getting a table's data updated using Ajax (eg when a DropDownChoice value changes the rows in the table change - without refreshing the whole page)? I started with a table that got updated by its ListView with no Ajax. That worked well. Now, I try to use a WebMarkupContainer to wrap the ListView (need a named component) so I can update the table by Ajax. final ListView lines = new ListView(lv,myList){ @Override protected void populateItem(ListItem item) { item.add(...); // derive and add 1st name item.add(...); // derive and add 2nd name }}; WebMarkupContainer listContainer = new WebMarkupContainer(wmc); listContainer.add(lines); form.add(listContainer.setOutputMarkupId(true)); the my most recent try at mark-up looks like: table border =1 align=center thead tr thfirst name/th thlast name/th /tr /thead tbody tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr /tbody /table -- View this message in context: http://www.nabble.com/Ajax---update-%3Ctable%3E-tf3904552.html#a11070211 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax - update table
Fixed indentation for clarity ... any ideas how to make this work - see below (table row data to be updated by the underlying ListView's model in Wicket)? final ListView lines = new ListView(lv,myList){ @Override protected void populateItem(ListItem item) { item.add(...); // derive add first name item.add(...); // derive add last name }}; WebMarkupContainer listContainer = new WebMarkupContainer(wmc); listContainer.add(lv); form.add(listContainer.setOutputMarkupId(true)); the most recent (failed) try at mark-up looks like: table border =1 align=center thead tr thfirst name/th thlast name/th /tr /thead tbody tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr /tbody /table howzat wrote: Wicket: 1.2.6 Is there a trick to getting a table's data updated using Ajax (eg when a DropDownChoice value changes the rows in the table change - without refreshing the whole page)? I started with a table that got updated by its ListView with no Ajax. That worked well. Now, I try to use a WebMarkupContainer to wrap the ListView (need a named component) so I can update the table by Ajax. final ListView lines = new ListView(lv,myList){ @Override protected void populateItem(ListItem item) { item.add(...); // derive and add 1st name item.add(...); // derive and add 2nd name }}; WebMarkupContainer listContainer = new WebMarkupContainer(wmc); listContainer.add(lines); form.add(listContainer.setOutputMarkupId(true)); the my most recent try at mark-up looks like: table border =1 align=center thead tr thfirst name/th thlast name/th /tr /thead tbody tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr /tbody /table -- View this message in context: http://www.nabble.com/Ajax---update-%3Ctable%3E-tf3904552.html#a11070603 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax - update table
try putting a webmarkupcontainer on the table tag and repainting that. -igor On 6/11/07, howzat [EMAIL PROTECTED] wrote: Fixed indentation for clarity ... any ideas how to make this work - see below (table row data to be updated by the underlying ListView's model in Wicket)? final ListView lines = new ListView(lv,myList){ @Override protected void populateItem(ListItem item) { item.add(...); // derive add first name item.add(...); // derive add last name }}; WebMarkupContainer listContainer = new WebMarkupContainer(wmc); listContainer.add(lv); form.add(listContainer.setOutputMarkupId(true)); the most recent (failed) try at mark-up looks like: table border =1 align=center thead tr thfirst name/th thlast name/th /tr /thead tbody tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr /tbody /table howzat wrote: Wicket: 1.2.6 Is there a trick to getting a table's data updated using Ajax (eg when a DropDownChoice value changes the rows in the table change - without refreshing the whole page)? I started with a table that got updated by its ListView with no Ajax. That worked well. Now, I try to use a WebMarkupContainer to wrap the ListView (need a named component) so I can update the table by Ajax. final ListView lines = new ListView(lv,myList){ @Override protected void populateItem(ListItem item) { item.add(...); // derive and add 1st name item.add(...); // derive and add 2nd name }}; WebMarkupContainer listContainer = new WebMarkupContainer(wmc); listContainer.add(lines); form.add(listContainer.setOutputMarkupId(true)); the my most recent try at mark-up looks like: table border =1 align=center thead tr thfirst name/th thlast name/th /tr /thead tbody tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr /tbody /table -- View this message in context: http://www.nabble.com/Ajax---update-%3Ctable%3E-tf3904552.html#a11070603 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Howto determine what objects are part of session state
Through the use of anonymous inner classes it is easy for objects to become part of session state unintentionally. Does anyone know of a tool (or io util package) that would help debuging these issues? Specifically it would be great to be able to print the heiarchy/containment structure of a serialized object so that at any level deep you can see the path that lead to that object becoming serialized. Eelco created something very similar to this to make serialization error messages more friendly, perhaps it can be modified to help with session debuging? ( http://herebebeasties.com/2007-02-08/javaionotserializableexception-in-your-httpsession/) Ryan - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax - update table
Thanks Igor. Could you be a bit more specific? As per my original post, I am trying to use the WebMarkupContainer, but it's not working (yet). I'll repeat the code in case I confused the issue with my indentation correction. final ListView lines = new ListView(lv,myList){ @Override protected void populateItem(ListItem item) { item.add(...); // derive and add 1st name item.add(...); // derive and add 2nd name }}; WebMarkupContainer listContainer = new WebMarkupContainer(wmc); listContainer.add(lines); form.add(listContainer.setOutputMarkupId(true)); the my most recent try at mark-up looks like: table border =1 align=center thead tr thfirst name/th thlast name/th /tr /thead tbody tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr /tbody /table igor.vaynberg wrote: try putting a webmarkupcontainer on the table tag and repainting that. -igor On 6/11/07, howzat [EMAIL PROTECTED] wrote: Fixed indentation for clarity ... any ideas how to make this work - see below (table row data to be updated by the underlying ListView's model in Wicket)? final ListView lines = new ListView(lv,myList){ @Override protected void populateItem(ListItem item) { item.add(...); // derive add first name item.add(...); // derive add last name }}; WebMarkupContainer listContainer = new WebMarkupContainer(wmc); listContainer.add(lv); form.add(listContainer.setOutputMarkupId(true)); the most recent (failed) try at mark-up looks like: table border =1 align=center thead tr thfirst name/th thlast name/th /tr /thead tbody tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr /tbody /table howzat wrote: Wicket: 1.2.6 Is there a trick to getting a table's data updated using Ajax (eg when a DropDownChoice value changes the rows in the table change - without refreshing the whole page)? I started with a table that got updated by its ListView with no Ajax. That worked well. Now, I try to use a WebMarkupContainer to wrap the ListView (need a named component) so I can update the table by Ajax. final ListView lines = new ListView(lv,myList){ @Override protected void populateItem(ListItem item) { item.add(...); // derive and add 1st name item.add(...); // derive and add 2nd name }}; WebMarkupContainer listContainer = new WebMarkupContainer(wmc); listContainer.add(lines); form.add(listContainer.setOutputMarkupId(true)); the my most recent try at mark-up looks like: table border =1 align=center thead tr thfirst name/th thlast name/th /tr /thead tbody tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr /tbody /table -- View this message in context: http://www.nabble.com/Ajax---update-%3Ctable%3E-tf3904552.html#a11070603 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Ajax---update-%3Ctable%3E-tf3904552.html#a11070715 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/
Re: [Wicket-user] Howto determine what objects are part of session state
Through the use of anonymous inner classes it is easy for objects to become part of session state unintentionally. Does anyone know of a tool (or io util package) that would help debuging these issues? Specifically it would be great to be able to print the heiarchy/containment structure of a serialized object so that at any level deep you can see the path that lead to that object becoming serialized. Eelco created something very similar to this to make serialization error messages more friendly, perhaps it can be modified to help with session debuging? Funny you bring that up, as I thought about coding such a class a couple of days ago. Unfortunately, I don't have any spare time soon, so I can't do this. But indeed, something similar to org.apache.wicket.util.io.SerializableChecker should do the trick. It would be great if someone could pick this up. Something you could do Ryan? Mind opening up a JIRA issue for it? Cheers, Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax - update table
OK, thanks.I tried that early on, but then my wicket:id=fN wicket:id=lN but got the old ... but that you either did not add the component to your page at all, or that the hierarchy does not match. for ... tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr igor.vaynberg wrote: instead of tr wicket:id=wmc move that wicket:id to table -igor On 6/11/07, howzat [EMAIL PROTECTED] wrote: Thanks Igor. Could you be a bit more specific? As per my original post, I am trying to use the WebMarkupContainer, but it's not working (yet). I'll repeat the code in case I confused the issue with my indentation correction. final ListView lines = new ListView(lv,myList){ @Override protected void populateItem(ListItem item) { item.add(...); // derive and add 1st name item.add(...); // derive and add 2nd name }}; WebMarkupContainer listContainer = new WebMarkupContainer(wmc); listContainer.add(lines); form.add(listContainer.setOutputMarkupId(true)); the my most recent try at mark-up looks like: table border =1 align=center thead tr thfirst name/th thlast name/th /tr /thead tbody tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr /tbody /table igor.vaynberg wrote: try putting a webmarkupcontainer on the table tag and repainting that. -igor On 6/11/07, howzat [EMAIL PROTECTED] wrote: Fixed indentation for clarity ... any ideas how to make this work - see below (table row data to be updated by the underlying ListView's model in Wicket)? final ListView lines = new ListView(lv,myList){ @Override protected void populateItem(ListItem item) { item.add(...); // derive add first name item.add(...); // derive add last name }}; WebMarkupContainer listContainer = new WebMarkupContainer(wmc); listContainer.add(lv); form.add(listContainer.setOutputMarkupId(true)); the most recent (failed) try at mark-up looks like: table border =1 align=center thead tr thfirst name/th thlast name/th /tr /thead tbody tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr /tbody /table howzat wrote: Wicket: 1.2.6 Is there a trick to getting a table's data updated using Ajax (eg when a DropDownChoice value changes the rows in the table change - without refreshing the whole page)? I started with a table that got updated by its ListView with no Ajax. That worked well. Now, I try to use a WebMarkupContainer to wrap the ListView (need a named component) so I can update the table by Ajax. final ListView lines = new ListView(lv,myList){ @Override protected void populateItem(ListItem item) { item.add(...); // derive and add 1st name item.add(...); // derive and add 2nd name }}; WebMarkupContainer listContainer = new WebMarkupContainer(wmc); listContainer.add(lines); form.add(listContainer.setOutputMarkupId(true)); the my most recent try at mark-up looks like: table border =1 align=center thead tr thfirst name/th thlast name/th /tr /thead tbody tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr /tbody /table -- View this message in context: http://www.nabble.com/Ajax---update-%3Ctable%3E-tf3904552.html#a11070603 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user
Re: [Wicket-user] Ajax - update table
you are missing wicket:id=lv somewhere -igor On 6/11/07, howzat [EMAIL PROTECTED] wrote: OK, thanks.I tried that early on, but then my wicket:id=fN wicket:id=lN but got the old ... but that you either did not add the component to your page at all, or that the hierarchy does not match. for ... tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr igor.vaynberg wrote: instead of tr wicket:id=wmc move that wicket:id to table -igor On 6/11/07, howzat [EMAIL PROTECTED] wrote: Thanks Igor. Could you be a bit more specific? As per my original post, I am trying to use the WebMarkupContainer, but it's not working (yet). I'll repeat the code in case I confused the issue with my indentation correction. final ListView lines = new ListView(lv,myList){ @Override protected void populateItem(ListItem item) { item.add(...); // derive and add 1st name item.add(...); // derive and add 2nd name }}; WebMarkupContainer listContainer = new WebMarkupContainer(wmc); listContainer.add(lines); form.add(listContainer.setOutputMarkupId(true)); the my most recent try at mark-up looks like: table border =1 align=center thead tr thfirst name/th thlast name/th /tr /thead tbody tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr /tbody /table igor.vaynberg wrote: try putting a webmarkupcontainer on the table tag and repainting that. -igor On 6/11/07, howzat [EMAIL PROTECTED] wrote: Fixed indentation for clarity ... any ideas how to make this work - see below (table row data to be updated by the underlying ListView's model in Wicket)? final ListView lines = new ListView(lv,myList){ @Override protected void populateItem(ListItem item) { item.add(...); // derive add first name item.add(...); // derive add last name }}; WebMarkupContainer listContainer = new WebMarkupContainer(wmc); listContainer.add(lv); form.add(listContainer.setOutputMarkupId(true)); the most recent (failed) try at mark-up looks like: table border =1 align=center thead tr thfirst name/th thlast name/th /tr /thead tbody tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr /tbody /table howzat wrote: Wicket: 1.2.6 Is there a trick to getting a table's data updated using Ajax (eg when a DropDownChoice value changes the rows in the table change - without refreshing the whole page)? I started with a table that got updated by its ListView with no Ajax. That worked well. Now, I try to use a WebMarkupContainer to wrap the ListView (need a named component) so I can update the table by Ajax. final ListView lines = new ListView(lv,myList){ @Override protected void populateItem(ListItem item) { item.add(...); // derive and add 1st name item.add(...); // derive and add 2nd name }}; WebMarkupContainer listContainer = new WebMarkupContainer(wmc); listContainer.add(lines); form.add(listContainer.setOutputMarkupId(true)); the my most recent try at mark-up looks like: table border =1 align=center thead tr thfirst name/th thlast name/th /tr /thead tbody tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr /tbody /table -- View this message in context: http://www.nabble.com/Ajax---update-%3Ctable%3E-tf3904552.html#a11070603 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
Re: [Wicket-user] Howto determine what objects are part of session state
I just found terracotta provides a nice dump of an object graph if it finds problems in your clustering configuration. This should work for me however if it does not I will definitely take a look at the code you wrote to create a wicket session debug tool. Either way I will open a jira issue. Ryan On 6/11/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Through the use of anonymous inner classes it is easy for objects to become part of session state unintentionally. Does anyone know of a tool (or io util package) that would help debuging these issues? Specifically it would be great to be able to print the heiarchy/containment structure of a serialized object so that at any level deep you can see the path that lead to that object becoming serialized. Eelco created something very similar to this to make serialization error messages more friendly, perhaps it can be modified to help with session debuging? Funny you bring that up, as I thought about coding such a class a couple of days ago. Unfortunately, I don't have any spare time soon, so I can't do this. But indeed, something similar to org.apache.wicket.util.io.SerializableChecker should do the trick. It would be great if someone could pick this up. Something you could do Ryan? Mind opening up a JIRA issue for it? Cheers, Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax - update table
The ListView with id lv was added to listContainer, and listContiner (a WebMarkupContainer with id wmc) was added to the form. Do I need to explicitly mention lv in the html as well as wmc ?? igor.vaynberg wrote: you are missing wicket:id=lv somewhere -igor On 6/11/07, howzat [EMAIL PROTECTED] wrote: OK, thanks.I tried that early on, but then my wicket:id=fN wicket:id=lN but got the old ... but that you either did not add the component to your page at all, or that the hierarchy does not match. for ... tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr igor.vaynberg wrote: instead of tr wicket:id=wmc move that wicket:id to table -igor On 6/11/07, howzat [EMAIL PROTECTED] wrote: Thanks Igor. Could you be a bit more specific? As per my original post, I am trying to use the WebMarkupContainer, but it's not working (yet). I'll repeat the code in case I confused the issue with my indentation correction. final ListView lines = new ListView(lv,myList){ @Override protected void populateItem(ListItem item) { item.add(...); // derive and add 1st name item.add(...); // derive and add 2nd name }}; WebMarkupContainer listContainer = new WebMarkupContainer(wmc); listContainer.add(lines); form.add(listContainer.setOutputMarkupId(true)); the my most recent try at mark-up looks like: table border =1 align=center thead tr thfirst name/th thlast name/th /tr /thead tbody tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr /tbody /table igor.vaynberg wrote: try putting a webmarkupcontainer on the table tag and repainting that. -igor On 6/11/07, howzat [EMAIL PROTECTED] wrote: Fixed indentation for clarity ... any ideas how to make this work - see below (table row data to be updated by the underlying ListView's model in Wicket)? final ListView lines = new ListView(lv,myList){ @Override protected void populateItem(ListItem item) { item.add(...); // derive add first name item.add(...); // derive add last name }}; WebMarkupContainer listContainer = new WebMarkupContainer(wmc); listContainer.add(lv); form.add(listContainer.setOutputMarkupId(true)); the most recent (failed) try at mark-up looks like: table border =1 align=center thead tr thfirst name/th thlast name/th /tr /thead tbody tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr /tbody /table howzat wrote: Wicket: 1.2.6 Is there a trick to getting a table's data updated using Ajax (eg when a DropDownChoice value changes the rows in the table change - without refreshing the whole page)? I started with a table that got updated by its ListView with no Ajax. That worked well. Now, I try to use a WebMarkupContainer to wrap the ListView (need a named component) so I can update the table by Ajax. final ListView lines = new ListView(lv,myList){ @Override protected void populateItem(ListItem item) { item.add(...); // derive and add 1st name item.add(...); // derive and add 2nd name }}; WebMarkupContainer listContainer = new WebMarkupContainer(wmc); listContainer.add(lines); form.add(listContainer.setOutputMarkupId(true)); the my most recent try at mark-up looks like: table border =1 align=center thead tr thfirst name/th thlast name/th /tr /thead tbody tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr /tbody /table -- View this message in context: http://www.nabble.com/Ajax---update-%3Ctable%3E-tf3904552.html#a11070603 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___
Re: [Wicket-user] Ajax - update table
of course -igor On 6/11/07, howzat [EMAIL PROTECTED] wrote: The ListView with id lv was added to listContainer, and listContiner (a WebMarkupContainer with id wmc) was added to the form. Do I need to explicitly mention lv in the html as well as wmc ?? igor.vaynberg wrote: you are missing wicket:id=lv somewhere -igor On 6/11/07, howzat [EMAIL PROTECTED] wrote: OK, thanks.I tried that early on, but then my wicket:id=fN wicket:id=lN but got the old ... but that you either did not add the component to your page at all, or that the hierarchy does not match. for ... tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr igor.vaynberg wrote: instead of tr wicket:id=wmc move that wicket:id to table -igor On 6/11/07, howzat [EMAIL PROTECTED] wrote: Thanks Igor. Could you be a bit more specific? As per my original post, I am trying to use the WebMarkupContainer, but it's not working (yet). I'll repeat the code in case I confused the issue with my indentation correction. final ListView lines = new ListView(lv,myList){ @Override protected void populateItem(ListItem item) { item.add(...); // derive and add 1st name item.add(...); // derive and add 2nd name }}; WebMarkupContainer listContainer = new WebMarkupContainer(wmc); listContainer.add(lines); form.add(listContainer.setOutputMarkupId(true)); the my most recent try at mark-up looks like: table border =1 align=center thead tr thfirst name/th thlast name/th /tr /thead tbody tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr /tbody /table igor.vaynberg wrote: try putting a webmarkupcontainer on the table tag and repainting that. -igor On 6/11/07, howzat [EMAIL PROTECTED] wrote: Fixed indentation for clarity ... any ideas how to make this work - see below (table row data to be updated by the underlying ListView's model in Wicket)? final ListView lines = new ListView(lv,myList){ @Override protected void populateItem(ListItem item) { item.add(...); // derive add first name item.add(...); // derive add last name }}; WebMarkupContainer listContainer = new WebMarkupContainer(wmc); listContainer.add(lv); form.add(listContainer.setOutputMarkupId(true)); the most recent (failed) try at mark-up looks like: table border =1 align=center thead tr thfirst name/th thlast name/th /tr /thead tbody tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr /tbody /table howzat wrote: Wicket: 1.2.6 Is there a trick to getting a table's data updated using Ajax (eg when a DropDownChoice value changes the rows in the table change - without refreshing the whole page)? I started with a table that got updated by its ListView with no Ajax. That worked well. Now, I try to use a WebMarkupContainer to wrap the ListView (need a named component) so I can update the table by Ajax. final ListView lines = new ListView(lv,myList){ @Override protected void populateItem(ListItem item) { item.add(...); // derive and add 1st name item.add(...); // derive and add 2nd name }}; WebMarkupContainer listContainer = new WebMarkupContainer(wmc); listContainer.add(lines); form.add(listContainer.setOutputMarkupId(true)); the my most recent try at mark-up looks like: table border =1 align=center thead tr thfirst name/th thlast name/th /tr /thead tbody tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr /tbody /table -- View this message in context: http://www.nabble.com/Ajax---update-%3Ctable%3E-tf3904552.html#a11070603 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now.
Re: [Wicket-user] Howto determine what objects are part of session state
yeah, this would be particularly neat if it could tell you the size of each object in the graph using that JMX sizeof call. it's actually the non-serialized size that matters the most and that management call ought to be able to get a value pretty close to correct (although if it's transitive, it might be necessary to do a bunch of finagling to temporarily set references to null before computing the size). Eelco Hillenius wrote: Through the use of anonymous inner classes it is easy for objects to become part of session state unintentionally. Does anyone know of a tool (or io util package) that would help debuging these issues? Specifically it would be great to be able to print the heiarchy/containment structure of a serialized object so that at any level deep you can see the path that lead to that object becoming serialized. Eelco created something very similar to this to make serialization error messages more friendly, perhaps it can be modified to help with session debuging? Funny you bring that up, as I thought about coding such a class a couple of days ago. Unfortunately, I don't have any spare time soon, so I can't do this. But indeed, something similar to org.apache.wicket.util.io.SerializableChecker should do the trick. It would be great if someone could pick this up. Something you could do Ryan? Mind opening up a JIRA issue for it? Cheers, Eelco - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/Howto-determine-what-objects-are-part-of-session-state-tf3904698.html#a11073163 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Using Ajax to update my tree
I guess your code doesn't work right now.. Try this markup: table border =1 align=center wicket:id=wmc thead tr thfirst name/th thlast name/th /tr /thead tbody tr wicket:id=lv td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr /tbody /table Frank On 6/12/07, howzat [EMAIL PROTECTED] wrote: Wicket: 1.2.6 Is there a trick to getting a table's data updated using Ajax (eg when a DropDownChoice value changes - without refreshing the whole page)? I started with a table that got update by its ListView with no Ajax. That worked well. Now, I try to use a WebMarkupContainer to wrap the ListView so I can update the table by Ajax. final ListView lines = new ListView(lv,myList){ @Override protected void populateItem(ListItem item) { item.add(...); // derive and add 1st name item.add(...); // derive and add 2nd name }}; WebMarkupContainer listContainer = new WebMarkupContainer(wmc); listContainer.add(lines); form.add(listContainer.setOutputMarkupId(true)); the my most recent try at mark-up looks like: table border =1 align=center thead tr thfirst name/th thlast name/th /tr /thead tbody tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr /tbody /table -- View this message in context: http://www.nabble.com/Using-Ajax-to-update-my-%3Ctree%3E-tf3904545.html#a11070200 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Using Ajax to update my tree
Ok I didn't see you double-posted: http://www.nabble.com/Ajax---update-%3Ctable%3E-tf3904552.html Frank On 6/12/07, Frank Bille [EMAIL PROTECTED] wrote: I guess your code doesn't work right now.. Try this markup: table border =1 align=center wicket:id=wmc thead tr thfirst name/th thlast name/th /tr /thead tbody tr wicket:id=lv td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr /tbody /table Frank On 6/12/07, howzat [EMAIL PROTECTED] wrote: Wicket: 1.2.6 Is there a trick to getting a table's data updated using Ajax (eg when a DropDownChoice value changes - without refreshing the whole page)? I started with a table that got update by its ListView with no Ajax. That worked well. Now, I try to use a WebMarkupContainer to wrap the ListView so I can update the table by Ajax. final ListView lines = new ListView(lv,myList){ @Override protected void populateItem(ListItem item) { item.add(...); // derive and add 1st name item.add(...); // derive and add 2nd name }}; WebMarkupContainer listContainer = new WebMarkupContainer(wmc); listContainer.add(lines); form.add(listContainer.setOutputMarkupId(true)); the my most recent try at mark-up looks like: table border =1 align=center thead tr thfirst name/th thlast name/th /tr /thead tbody tr wicket:id=wmc td wicket:id=fNfirstName/td td wicket:id=lNlastName/td /tr /tbody /table -- View this message in context: http://www.nabble.com/Using-Ajax-to-update-my-%3Ctree%3E-tf3904545.html#a11070200 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - This SF.net email is sponsored by DB2 Express Download DB2 Express C - the FREE version of DB2 express and take control of your XML. No limits. Just data. Click to get it now. http://sourceforge.net/powerbar/db2/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user