[Wicket-user] Manu bar
Does anybody on the list know of a good drop down menu bar component that can be easily embedded into a wicket page? Does anybody work on such a menu bar for wicket extensions? Stefan Lindner [EMAIL PROTECTED] --- 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=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Manu bar
im not aware of anything in extensions, yet. doesnt mean you cant write it and contribute it :)imho, the coolest looking drop down ive seen is this one: http://www.youngpup.net/_projectDirectories/transmenus/demos/photos/index.htmlfrom here:http://www.youngpup.net/2004/transmenusthis particular one is old school and is configured through a lot of _javascript_ - but thats ok because you can get wicket to write it for you. we've been throwing an idea in ##wicket to build a good menu system for wicket-extensions. essentially the idea is to create a generic way to define a menu through a tree like structure, and then have a few adapters working off that structure. an adapter would take care of actually rendering the menu, so you can swap out implementations for different drop down js libraries quickly. i think the consensus was that none of us have enough time nor an immediate need right now, but maybe you can get the ball rolling.-IgorOn 4/6/06, Stefan Lindner [EMAIL PROTECTED] wrote: Does anybody on the list know of a good drop down menu bar componentthat can be easily embedded into a wicket page? Does anybody work onsuch a menu bar for wicket extensions?Stefan Lindner [EMAIL PROTECTED]---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat 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?cmdlnkkid0944bid$1720dat1642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Check / Checkbox
Hi Im trying to use some of the functionality of Checkbox but I get an exception : wicket.util.string.StringValueConversionException: Boolean value [EMAIL PROTECTED] not recognized I guess this tells me that my model needs either to be true of false as a string, however I would really like to my real model in conjunction with mycheckbox I do also override the wantonselectionchangenotification so that I can override onSelectionChanged aswell. Ive tried to change the model to this new model(false), this works to some extent but I loose the link to my realmodel plus it seems that the checkboxes becomes unaware if they are clicked, I do get the selectionnotification but the checks remains checked or unchecked. So Ive also tried to use the check instead this works fine with my code (using my real model), but does not implement the Ionchangelistener or IrequestListener. It seems strange to me that check works but checkbox does not, am I doing something wrong? In addition to the above I populate the checkbox/check in a listview and have a checkgroup as well. Is anything theoretically wrong with this? Do you want to se a sniplet of my code? -regards Nino
Re: [Wicket-user] Re: beta3
there is a unit test (RadioGroupTest) for this in our testswicket is suddenly much more sensitive if the input tag is not terminated with /but justinput type= name= value= can result in an error now.johanOn 4/7/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:wicket core contains several unit tests with input / and these tests look ok to me. It can not only be that. Did you try and change it toinput ../input to see if it works? I guess it is related towicket:head. Try and add a head to your page if you haven't or wait until the weekend. And a unit test based on your markup would bevery helpful of course as well.JuergenOn 4/6/06, Nathan Hamblen [EMAIL PROTECTED] wrote: As I'm moving over source from 1.1 I'm seeing a lot of sensitivity to input tags that aren't XHTML, i.e. lacking a closing slash. Could that be the problem here? If the behavior is intentional, I'll add it to the guide. Anyone? Nathan Dzenan Ridjanovic wrote: Hi, I have two errors that come from the Wicket beta3 jar files: Tag '/html' (line 11, column 1) does not have a matching open tag [markup = jar:file:/D:/software/tomcat/webapps/domain10/WEB-INF/lib/wicket-1.2-beta3.jar!/wicket/markup/html/navigation/paging/PagingNavigator.html , index = 34, current = [Raw markup]] and Tag '/html' (line 40, column 1) does not have a matching open tag [markup = jar:file:/D:/software/tomcat/webapps/domain10/WEB-INF/lib/wicket- 1.2-beta3.jar!/wicket/markup/html/debug/PageView.html, index = 36, current = [Raw markup]] Dzenan --- 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 ---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat 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?cmdlnkkid0944bid$1720dat1642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Is it possible to give wicket URLs an extension?
thats very odd. Can't help you with that i guess.It seems that the cookie can't be read? But if that is the case then tomcat should put jsessiondid info in the urls.johan On 4/7/06, Andrew Berman [EMAIL PROTECTED] wrote: Johan and Nathan, that's exactly how I'm doing it. However, the problem is that I have a single web app which has two different servlets mapped to different URLs. I have the Spring MVC servlet mapped to /*.htm (which is older but will be migrated to Wicket at some point :-)) and I have the Wicket servlet mapped to /foo/*. Both apps use common services, including the same db, so I didn't want to split them out into separate web apps and use remote EJBs or JMS or something of the sort. So, the URLs I want are like this:http://foo.whatever.com -- Spring MVC app http://bar.something.com -- Wicket app Things seem to work fine for the Spring app, but the Wicket app doesn't work right because Wicket is mapped to a directory and not an extension. So, when I go to http://bar.something.com I get my homepage fine. However, I click a link and the link automatically appends the /foo to the url so you get http://bar.something.com/foo?wicket., which still works, though it's not correct. However, when you submit a form it goes back to the home page because the session is new because Tomcat thinks its a new session due to the way the webapp is being accessed. No matter what I do it seems that Tomcat just keeps creating a new session so Wicket takes the user back to the homepage. Thanks for your help,AndrewOn 4/6/06, Johan Compagner [EMAIL PROTECTED] wrote: this should work: VirtualHost *ServerAdmin [EMAIL PROTECTED]DocumentRoot youredocrootdirServerName www.yourevirtualhost.com ... ProxyRequests OffProxy *Order deny,allowAllow from all/ProxyProxyPass / http://localhost:9090/ ProxyPassReverse / http://localhost:9090/ On 4/6/06, Johan Compagner [EMAIL PROTECTED] wrote:that is something apache/mod_rewrite should do. Don't know why this doesn't work we only set the complete path.But a redirect has to be the full url. So tomcat really sends the complete url to the browser. But apache should rewrite that to use the virtual host address. johanOn 4/6/06, Andrew Berman [EMAIL PROTECTED] wrote: I'm using Virtual Hosts along with mod_proxy and mod_rewrite and one thing I've noticed is that when I use a DropDownChoice along with the onSelectionChange method which simply does a setResponsePage(...), it redirects the user to the http://localhost:8080/ address instead of the http://bar.com address from which they originally came to the page. Any thoughts on how to fix this? --AndrewOn 4/6/06, Johan Compagner [EMAIL PROTECTED] wrote: what you want is virtual hosting. Wicket does touch the http://.xxx It only generates the /contextpath/servletpath/X And you can set the contextpath to so and map with apache to a different server so that http://localhost:8080/context/ is mapped to http://bar.comjohanOn 4/6/06, Andrew Berman [EMAIL PROTECTED] wrote: But that wouldn't work for all Wicket urls. The problem I have is that I have one war file with multiple applications. Right now, I'm having problems mapping urls to each of those webapps. One app uses .htm (Spring MVC) and the other is a Wicket app which is mapped based on url folder. So, I want to be able to map http://foo.com to the Spring one via the .htm extension and http://bar.com to the Wicket app via some other extension instead of a folder. Currently, I'm playing around with mod_proxy and mod_rewrite in Apache and forwarding the requests to Tomcat. Anyone have any thoughts on how to do this?On 4/5/06, Igor Vaynberg [EMAIL PROTECTED] wrote: did you try doing mountBookmarkablePage(/HomePage.htm, HomePage.class) ?-IgorOn 4/5/06, Andrew Berman [EMAIL PROTECTED] wrote:I was wondering if there is a way in 1.2 to map Wicket's urls to an extension instead of to a directory. For example, is it possible to do http://localhost/HomePage.htm instead of the usual http://localhost/wicket/HomePage?Thanks, Andrew
[Wicket-user] Ajax in IE gets slower and slower
I created a DropDownChoice that submits the form via Ajax on it's onchange event. Seems to work great in Firefox, but in Internet Explorer it gets progressively slower each time I trigger the Ajax call. Is this a known issue with IE? Steve
Re: [Wicket-user] Ajax in IE gets slower and slower
can you reproduce this in wicket-examples/ajax drop down example. i tried and couldnt. maybe you have a memory leak elsewhere that is slowing down the container.-IgorOn 4/7/06, Steve Knight [EMAIL PROTECTED] wrote: I created a DropDownChoice that submits the form via Ajax on it's onchange event. Seems to work great in Firefox, but in Internet Explorer it gets progressively slower each time I trigger the Ajax call. Is this a known issue with IE? Steve
Re: [Wicket-user] Ajax in IE gets slower and slower
The wicket-examples dropdown example uses AjaxFormComponentUpdatingBehavior. I am using AjaxFormSubmitBehavior.My DropDownChoice is acting as a filter to filter the results of a database query. The results are displayed in a table on the same page. It definitely slows down quicker when the returned table content is quite large. If I return only a small bit then you wouldn't even notice the slowdown until after many repeated Ajax calls. And like I said it doesn't seem to occur in Firefox.SteveOn 4/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote:can you reproduce this in wicket-examples/ajax drop down example. i tried and couldnt. maybe you have a memory leak elsewhere that is slowing down the container. -IgorOn 4/7/06, Steve Knight [EMAIL PROTECTED] wrote: I created a DropDownChoice that submits the form via Ajax on it's onchange event. Seems to work great in Firefox, but in Internet Explorer it gets progressively slower each time I trigger the Ajax call. Is this a known issue with IE? Steve
Re: [Wicket-user] Ajax in IE gets slower and slower
hmm, can you please reproduce in a quickstart project so i can see whats going on.-IgorOn 4/7/06, Steve Knight [EMAIL PROTECTED] wrote:The wicket-examples dropdown example uses AjaxFormComponentUpdatingBehavior. I am using AjaxFormSubmitBehavior. My DropDownChoice is acting as a filter to filter the results of a database query. The results are displayed in a table on the same page. It definitely slows down quicker when the returned table content is quite large. If I return only a small bit then you wouldn't even notice the slowdown until after many repeated Ajax calls. And like I said it doesn't seem to occur in Firefox.Steve On 4/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote:can you reproduce this in wicket-examples/ajax drop down example. i tried and couldnt. maybe you have a memory leak elsewhere that is slowing down the container. -IgorOn 4/7/06, Steve Knight [EMAIL PROTECTED] wrote: I created a DropDownChoice that submits the form via Ajax on it's onchange event. Seems to work great in Firefox, but in Internet Explorer it gets progressively slower each time I trigger the Ajax call. Is this a known issue with IE? Steve
RE: [Wicket-user] Ajax in IE gets slower and slower
This is happening with AjaxPagingNavigator as well. The memory usage of both IE and firefox jump pretty high on each refresh. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Steve Knight Sent: Friday, April 07, 2006 10:58 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Ajax in IE gets slower and slower Actually, it does appear to occur in Firefox as well, but it takes a lot longer to notice. In IE the slowdown is noticeable after using the dropdown only a couple of times. If I go to another page of my application and then go back, the filtering is fast again, but then starts to slow. I will see if I can create a quickstart project to reproduce it. Steve On 4/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: hmm, can you please reproduce in a quickstart project so i can see whats going on. -Igor On 4/7/06, Steve Knight [EMAIL PROTECTED] wrote: The wicket-examples dropdown example uses AjaxFormComponentUpdatingBehavior. I am using AjaxFormSubmitBehavior. My DropDownChoice is acting as a filter to filter the results of a database query. The results are displayed in a table on the same page. It definitely slows down quicker when the returned table content is quite large. If I return only a small bit then you wouldn't even notice the slowdown until after many repeated Ajax calls. And like I said it doesn't seem to occur in Firefox. Steve On 4/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: can you reproduce this in wicket-examples/ajax drop down example. i tried and couldnt. maybe you have a memory leak elsewhere that is slowing down the container. -Igor On 4/7/06, Steve Knight [EMAIL PROTECTED] wrote: I created a DropDownChoice that submits the form via Ajax on it's onchange event. Seems to work great in Firefox, but in Internet Explorer it gets progressively slower each time I trigger the Ajax call. Is this a known issue with IE? Steve
[Wicket-user] Wicket and textareas
Hi all, Does Wicket enable you to work with individual words in a text area, somehow? Or do anything special with a text area? Are there examples of this? -- Geertjan --- 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
[Wicket-user] Basic Wickettester question
I need to test my sigon page - meaning i need to make sure that after validation of credentials, it stores my user object in the session. I want to check with the session at the end that the session has the user object on providing valid credentials. But I guess am missing something here - WicketTester has its own application and session? Can i get WickTester to use mine instead. It has a setSessionFactory that in turn needs a reference to my application class. But i guess its application class is already set ( i mean wickettester itself extends from Application?) or like i said am i looking at the wrong class to do the above testing? thanks, karthik --- 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=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Ajax in IE gets slower and slower
and some reading if you guys want to try to help me spot the problem:http://weblogs.asp.net/mschwarz/archive/2005/11/17/430770.aspx http://ajaxian.com/archives/screencast-on-diagnosing-memory-leaks-in-iehttp://msdn.microsoft.com/library/default.asp?url="" -IgorOn 4/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i noticed the effect is significantly reduced when turning off the ajax debug console via getAjaxSettings().setAjaxDebugModeEnabled(false); -IgorOn 4/7/06, Jerry Smith [EMAIL PROTECTED] wrote: This is happening with AjaxPagingNavigator as well. The memory usage of both IE and firefox jump pretty high on each refresh. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Steve Knight Sent: Friday, April 07, 2006 10:58 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Ajax in IE gets slower and slower Actually, it does appear to occur in Firefox as well, but it takes a lot longer to notice. In IE the slowdown is noticeable after using the dropdown only a couple of times. If I go to another page of my application and then go back, the filtering is fast again, but then starts to slow. I will see if I can create a quickstart project to reproduce it. Steve On 4/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: hmm, can you please reproduce in a quickstart project so i can see whats going on. -Igor On 4/7/06, Steve Knight [EMAIL PROTECTED] wrote: The wicket-examples dropdown example uses AjaxFormComponentUpdatingBehavior. I am using AjaxFormSubmitBehavior. My DropDownChoice is acting as a filter to filter the results of a database query. The results are displayed in a table on the same page. It definitely slows down quicker when the returned table content is quite large. If I return only a small bit then you wouldn't even notice the slowdown until after many repeated Ajax calls. And like I said it doesn't seem to occur in Firefox. Steve On 4/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: can you reproduce this in wicket-examples/ajax drop down example. i tried and couldnt. maybe you have a memory leak elsewhere that is slowing down the container. -Igor On 4/7/06, Steve Knight [EMAIL PROTECTED] wrote: I created a DropDownChoice that submits the form via Ajax on it's onchange event. Seems to work great in Firefox, but in Internet Explorer it gets progressively slower each time I trigger the Ajax call. Is this a known issue with IE? Steve
Re: [Wicket-user] Ajax in IE gets slower and slower
i noticed the effect is significantly reduced when turning off the ajax debug console via getAjaxSettings().setAjaxDebugModeEnabled(false);-IgorOn 4/7/06, Jerry Smith [EMAIL PROTECTED] wrote: This is happening with AjaxPagingNavigator as well. The memory usage of both IE and firefox jump pretty high on each refresh. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Steve Knight Sent: Friday, April 07, 2006 10:58 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Ajax in IE gets slower and slower Actually, it does appear to occur in Firefox as well, but it takes a lot longer to notice. In IE the slowdown is noticeable after using the dropdown only a couple of times. If I go to another page of my application and then go back, the filtering is fast again, but then starts to slow. I will see if I can create a quickstart project to reproduce it. Steve On 4/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: hmm, can you please reproduce in a quickstart project so i can see whats going on. -Igor On 4/7/06, Steve Knight [EMAIL PROTECTED] wrote: The wicket-examples dropdown example uses AjaxFormComponentUpdatingBehavior. I am using AjaxFormSubmitBehavior. My DropDownChoice is acting as a filter to filter the results of a database query. The results are displayed in a table on the same page. It definitely slows down quicker when the returned table content is quite large. If I return only a small bit then you wouldn't even notice the slowdown until after many repeated Ajax calls. And like I said it doesn't seem to occur in Firefox. Steve On 4/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: can you reproduce this in wicket-examples/ajax drop down example. i tried and couldnt. maybe you have a memory leak elsewhere that is slowing down the container. -Igor On 4/7/06, Steve Knight [EMAIL PROTECTED] wrote: I created a DropDownChoice that submits the form via Ajax on it's onchange event. Seems to work great in Firefox, but in Internet Explorer it gets progressively slower each time I trigger the Ajax call. Is this a known issue with IE? Steve
Re: [Wicket-user] Wicket and textareas
what do you mean?wicket's TextArea component is attached to html textarea tag, everything else is up to the browser.-IgorOn 4/7/06, Geertjan Wielenga [EMAIL PROTECTED] wrote: Hi all,Does Wicket enable you to work with individual words in a text area,somehow? Or do anything special with a text area? Are there examples ofthis?-- Geertjan--- This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand 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 listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket and textareas
Well, if I have text in the textarea tag, can I do something with it via the TextArea component? Can I somehow parse the content of the textarea and give every other word a different color, for example? -- Geertjan Igor Vaynberg wrote: what do you mean? wicket's TextArea component is attached to html textarea tag, everything else is up to the browser. -Igor On 4/7/06, Geertjan Wielenga [EMAIL PROTECTED] wrote: Hi all, Does Wicket enable you to work with individual words in a text area, somehow? Or do anything special with a text area? Are there examples of this? -- Geertjan --- 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
[Wicket-user] Re: Re: strange behaviour of TextField conversion to Float in beta3
Here is the original code to define a Date format : getApplicationSettings().setConverterFactory(new IConverterFactory() {public IConverter newConverter(final Locale locale){ final Converter converter = new Converter(locale); // String - Date DateConverter dc = new DateConverter(); dc.setDateFormat(locale, new SimpleDateFormat("dd-MM-")); converter.set(Date.class, dc); // Date - String DateToStringConverter dsc = new DateToStringConverter(); dsc.setDateFormat(locale, new SimpleDateFormat("dd-MM-") ); converter.set(String.class, dsc); (*) return converter;} } );But in this case a float value gets formatted as it werea Date.If a insert the following code in (*) : // Float - String NumberToStringConverter numberToStringConverter = new NumberToStringConverter(); DecimalFormat fmt = new DecimalFormat("###,###,###,###.#"); numberToStringConverter.setNumberFormat(locale, fmt); final StringConverter stringConverter = new StringConverter(); stringConverter.set(Float.class, numberToStringConverter); stringConverter.set(Float.TYPE, numberToStringConverter); stringConverter.set(Date.class, dsc); converter.set(String.class, stringConverter); converter.set(Float.class, new FloatConverter());I get the float value correctly formmatted but the date is displayed using Date.toString().Jaime.can you show me youre converter code?On 4/6/06, Jaime De La Jara [EMAIL PROTECTED] wrote: Yes, I use the following code : add(new TextField("montoTotal", Float.class)); I've made some tests and found that commenting the definition of the IConverterFactory for the date format and defining the format for the float field and it worked, however I cannot define the format for both types. Thanks, Jaime. did you do TextField.setType(Float.class) or create it with the constructor that takes the class? -Igor On 4/6/06, Jaime De La Jara [EMAIL PROTECTED] wrote: Hi, I've just downloaded version 1.2 beta 3 and I have a problem when editing the contents of a javabean, particularly in a case of a Float field. The relevant code is : Javabean : public class Pago { . public Float getMontoTotal() { return Float.valueOf("1234567890"); } ... } Html : td class="tit" input wicket:id="montoTotal" type="text" class="normal" size="20"/ /tdWhen the page is displayed it shows the following : 15-01-1970 in the textfield, this value corresponds to the date equivalent (aprox) to the above number in milisec. The only thing I've done that can be important to this issue is to define a new IConverterFactory to apply the same date format to the whole app. What is going on? Thanks. Jaime. Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
Re: [Wicket-user] Re: Re: strange behaviour of TextField conversion to Float in beta3
i think the problem is that you registered your own converter for String.class so when wicket will try to display the float in the textfield it will try to format it to string, and it will use the datetostring converter you registered. -IgorOn 4/7/06, Jaime De La Jara [EMAIL PROTECTED] wrote: Here is the original code to define a Date format : getApplicationSettings().setConverterFactory(new IConverterFactory() {public IConverter newConverter(final Locale locale) { final Converter converter = new Converter(locale); // String - Date DateConverter dc = new DateConverter(); dc.setDateFormat(locale, new SimpleDateFormat(dd-MM-)); converter.set(Date.class, dc); // Date - String DateToStringConverter dsc = new DateToStringConverter(); dsc.setDateFormat(locale, new SimpleDateFormat(dd-MM-) ); converter.set(String.class, dsc); (*) return converter;} } );But in this case a float value gets formatted as it werea Date.If a insert the following code in (*) : // Float - String NumberToStringConverter numberToStringConverter = new NumberToStringConverter(); DecimalFormat fmt = new DecimalFormat(###,###,###,###.#); numberToStringConverter.setNumberFormat(locale, fmt); final StringConverter stringConverter = new StringConverter(); stringConverter.set(Float.class, numberToStringConverter); stringConverter.set(Float.TYPE, numberToStringConverter); stringConverter.set(Date.class , dsc); converter.set(String.class, stringConverter); converter.set(Float.class, new FloatConverter());I get the float value correctly formmatted but the date is displayed using Date.toString(). Jaime.can you show me youre converter code?On 4/6/06, Jaime De La Jara [EMAIL PROTECTED] wrote: Yes, I use the following code : add(new TextField(montoTotal, Float.class)); I've made some tests and found that commenting the definition of the IConverterFactory for the date format and defining the format for the float field and it worked, however I cannot define the format for both types. Thanks, Jaime. did you do TextField.setType(Float.class) or create it with the constructor that takes the class? -Igor On 4/6/06, Jaime De La Jara [EMAIL PROTECTED] wrote: Hi, I've just downloaded version 1.2 beta 3 and I have a problem when editing the contents of a javabean, particularly in a case of a Float field. The relevant code is : Javabean : public class Pago { . public Float getMontoTotal() { return Float.valueOf(1234567890); } ... } Html : td class=tit input wicket:id=montoTotal type=text class=normal size=20/ /tdWhen the page is displayed it shows the following : 15-01-1970 in the textfield, this value corresponds to the date equivalent (aprox) to the above number in milisec. The only thing I've done that can be important to this issue is to define a new IConverterFactory to apply the same date format to the whole app. What is going on? Thanks. Jaime. Yahoo! Messenger with Voice. PC-to-Phone calls for ridiculously low rates.
Re: [Wicket-user] Ajax in IE gets slower and slower
You're right. After turning off ajax debugging it is MUCH better.SteveOn 4/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote:i noticed the effect is significantly reduced when turning off the ajax debug console via getAjaxSettings().setAjaxDebugModeEnabled(false); -IgorOn 4/7/06, Jerry Smith [EMAIL PROTECTED] wrote: This is happening with AjaxPagingNavigator as well. The memory usage of both IE and firefox jump pretty high on each refresh. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Steve Knight Sent: Friday, April 07, 2006 10:58 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Ajax in IE gets slower and slower Actually, it does appear to occur in Firefox as well, but it takes a lot longer to notice. In IE the slowdown is noticeable after using the dropdown only a couple of times. If I go to another page of my application and then go back, the filtering is fast again, but then starts to slow. I will see if I can create a quickstart project to reproduce it. Steve On 4/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: hmm, can you please reproduce in a quickstart project so i can see whats going on. -Igor On 4/7/06, Steve Knight [EMAIL PROTECTED] wrote: The wicket-examples dropdown example uses AjaxFormComponentUpdatingBehavior. I am using AjaxFormSubmitBehavior. My DropDownChoice is acting as a filter to filter the results of a database query. The results are displayed in a table on the same page. It definitely slows down quicker when the returned table content is quite large. If I return only a small bit then you wouldn't even notice the slowdown until after many repeated Ajax calls. And like I said it doesn't seem to occur in Firefox. Steve On 4/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: can you reproduce this in wicket-examples/ajax drop down example. i tried and couldnt. maybe you have a memory leak elsewhere that is slowing down the container. -Igor On 4/7/06, Steve Knight [EMAIL PROTECTED] wrote: I created a DropDownChoice that submits the form via Ajax on it's onchange event. Seems to work great in Firefox, but in Internet Explorer it gets progressively slower each time I trigger the Ajax call. Is this a known issue with IE? Steve
Re: [Wicket-user] Ajax in IE gets slower and slower
furthermore, with logging turned off there is no leak at all in firefox.-IgorOn 4/7/06, Steve Knight [EMAIL PROTECTED] wrote:You're right. After turning off ajax debugging it is MUCH better. SteveOn 4/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote:i noticed the effect is significantly reduced when turning off the ajax debug console via getAjaxSettings().setAjaxDebugModeEnabled(false); -IgorOn 4/7/06, Jerry Smith [EMAIL PROTECTED] wrote: This is happening with AjaxPagingNavigator as well. The memory usage of both IE and firefox jump pretty high on each refresh. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Steve Knight Sent: Friday, April 07, 2006 10:58 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Ajax in IE gets slower and slower Actually, it does appear to occur in Firefox as well, but it takes a lot longer to notice. In IE the slowdown is noticeable after using the dropdown only a couple of times. If I go to another page of my application and then go back, the filtering is fast again, but then starts to slow. I will see if I can create a quickstart project to reproduce it. Steve On 4/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: hmm, can you please reproduce in a quickstart project so i can see whats going on. -Igor On 4/7/06, Steve Knight [EMAIL PROTECTED] wrote: The wicket-examples dropdown example uses AjaxFormComponentUpdatingBehavior. I am using AjaxFormSubmitBehavior. My DropDownChoice is acting as a filter to filter the results of a database query. The results are displayed in a table on the same page. It definitely slows down quicker when the returned table content is quite large. If I return only a small bit then you wouldn't even notice the slowdown until after many repeated Ajax calls. And like I said it doesn't seem to occur in Firefox. Steve On 4/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: can you reproduce this in wicket-examples/ajax drop down example. i tried and couldnt. maybe you have a memory leak elsewhere that is slowing down the container. -Igor On 4/7/06, Steve Knight [EMAIL PROTECTED] wrote: I created a DropDownChoice that submits the form via Ajax on it's onchange event. Seems to work great in Firefox, but in Internet Explorer it gets progressively slower each time I trigger the Ajax call. Is this a known issue with IE? Steve
Re: [Wicket-user] Wicket and textareas
no, html textarea doesnt support rich text formatting.if you want that look at wicket-contrib-tinymce, tinymce is a _javascript_ based rich text editor. google tinymce for more details.-Igor On 4/7/06, Geertjan Wielenga [EMAIL PROTECTED] wrote: Well, if I have text in the textarea tag, can I do something with it via the TextArea component? Can I somehow parse the content of the textarea and give every other word a different color, for example? -- Geertjan Igor Vaynberg wrote: what do you mean? wicket's TextArea component is attached to html textarea tag, everything else is up to the browser. -Igor On 4/7/06, Geertjan Wielenga [EMAIL PROTECTED] wrote: Hi all, Does Wicket enable you to work with individual words in a text area, somehow? Or do anything special with a text area? Are there examples of this? -- Geertjan --- 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
Re: [Wicket-user] Basic Wickettester question
WicketTester extends Application. Hence you create the session object exactly the way you do it in your real application. Juergen On 4/7/06, karthik Guru [EMAIL PROTECTED] wrote: I need to test my sigon page - meaning i need to make sure that after validation of credentials, it stores my user object in the session. I want to check with the session at the end that the session has the user object on providing valid credentials. But I guess am missing something here - WicketTester has its own application and session? Can i get WickTester to use mine instead. It has a setSessionFactory that in turn needs a reference to my application class. But i guess its application class is already set ( i mean wickettester itself extends from Application?) or like i said am i looking at the wrong class to do the above testing? thanks, karthik --- 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?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user --- 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=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Re: Re: Re: strange behaviour of TextField conversion to Float in beta3
I commented the lines that define the datetostring converterand the effect was that the date was displayed using toString()and the float value was displayed correctly.So, how can I define converters for different types, likeFloat and Date from and to String?. In a previous post I learnt that that the conversion was a two-way process, that is from type1-type2 and from type2-type1, and that was applicable to a textfield.I'm lost here.Jaime.i think the problem is that you registered your own converter for String.class so when wicket will try to display the float in the textfield it will try to format it to string, and it will use the datetostring converter you registered.-IgorOn 4/7/06, Jaime De La Jara [EMAIL PROTECTED] wrote: Here is the original code to define a Date format : getApplicationSettings().setConverterFactory(new IConverterFactory(){ public IConverter newConverter(final Locale locale) { final Converter converter = new Converter(locale); // String - Date DateConverter dc = new DateConverter(); dc.setDateFormat(locale, new SimpleDateFormat("dd-MM-")); converter.set(Date.class, dc); // Date - String DateToStringConverter dsc = new DateToStringConverter(); dsc.setDateFormat(locale, new SimpleDateFormat("dd-MM-") ); converter.set(String.class, dsc); (*) return converter; }} ); But in this case a float value gets formatted as it were a Date. If a insert the following code in (*) : // Float - String NumberToStringConverter numberToStringConverter = new NumberToStringConverter(); DecimalFormat fmt = new DecimalFormat("###,###,###,###.#"); numberToStringConverter.setNumberFormat(locale, fmt); final StringConverter stringConverter = new StringConverter(); stringConverter.set(Float.class, numberToStringConverter); stringConverter.set(Float.TYPE, numberToStringConverter); stringConverter.set(Date.class, dsc); converter.set(String.class, stringConverter); converter.set(Float.class, new FloatConverter()); I get the float value correctly formmatted but the date is displayed using Date.toString(). Jaime. can you show me youre converter code? On 4/6/06, Jaime De La Jara [EMAIL PROTECTED] wrote: Yes, I use the following code : add(new TextField("montoTotal", Float.class)); I've made some tests and found that commenting the definition of the IConverterFactory for the date format and defining the format for the float field and it worked, however I cannot define the format for both types. Thanks, Jaime. did you do TextField.setType(Float.class) or create it with the constructor that takes the class? -IgorOn 4/6/06, Jaime De La Jara [EMAIL PROTECTED] wrote: Hi, I've just downloaded version 1.2 beta 3 and I have a problem when editing the contents of a javabean, particularly in a case of a Float field. The relevant code is : Javabean : public class Pago { . public Float getMontoTotal() { return Float.valueOf("1234567890"); } ... } Html : td class="tit" input wicket:id="montoTotal" type="text" class="normal" size="20"/ /td When the page is displayed it shows the following : 15-01-1970 in the textfield, this value corresponds to the date equivalent (aprox) to the above number in milisec. The only thing I've done that can be important to this issue is to define a new IConverterFactory to apply the same date format to the whole app. What is going on? Thanks. Jaime. Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
Re: [Wicket-user] Re: Re: Re: strange behaviour of TextField conversion to Float in beta3
i dont think you can do this globally, i would override getConverter() on the textfield thats displaying dates, or craete a DateTextField subclass that does it for you.alternatively you can create a model decorator that does the conversion, advantage is that it will work for any component. -IgorOn 4/7/06, Jaime De La Jara [EMAIL PROTECTED] wrote: I commented the lines that define the datetostring converterand the effect was that the date was displayed using toString()and the float value was displayed correctly.So, how can I define converters for different types, like Float and Date from and to String?. In a previous post I learnt that that the conversion was a two-way process, that is from type1-type2 and from type2-type1, and that was applicable to a textfield. I'm lost here.Jaime.i think the problem is that you registered your own converter for String.class so when wicket will try to display the float in the textfield it will try to format it to string, and it will use the datetostring converter you registered.-IgorOn 4/7/06, Jaime De La Jara [EMAIL PROTECTED] wrote: Here is the original code to define a Date format : getApplicationSettings().setConverterFactory(new IConverterFactory(){ public IConverter newConverter(final Locale locale) { final Converter converter = new Converter(locale); // String - Date DateConverter dc = new DateConverter(); dc.setDateFormat(locale, new SimpleDateFormat(dd-MM-)); converter.set(Date.class, dc); // Date - String DateToStringConverter dsc = new DateToStringConverter(); dsc.setDateFormat(locale, new SimpleDateFormat(dd-MM-) ); converter.set(String.class, dsc); (*) return converter; }} ); But in this case a float value gets formatted as it were a Date. If a insert the following code in (*) : // Float - String NumberToStringConverter numberToStringConverter = new NumberToStringConverter(); DecimalFormat fmt = new DecimalFormat(###,###,###,###.#); numberToStringConverter.setNumberFormat(locale, fmt); final StringConverter stringConverter = new StringConverter(); stringConverter.set (Float.class, numberToStringConverter); stringConverter.set(Float.TYPE, numberToStringConverter); stringConverter.set(Date.class, dsc); converter.set(String.class, stringConverter); converter.set (Float.class, new FloatConverter()); I get the float value correctly formmatted but the date is displayed using Date.toString(). Jaime. can you show me youre converter code? On 4/6/06, Jaime De La Jara [EMAIL PROTECTED] wrote: Yes, I use the following code : add(new TextField(montoTotal, Float.class)); I've made some tests and found that commenting the definition of the IConverterFactory for the date format and defining the format for the float field and it worked, however I cannot define the format for both types. Thanks, Jaime. did you do TextField.setType(Float.class) or create it with the constructor that takes the class? -IgorOn 4/6/06, Jaime De La Jara [EMAIL PROTECTED] wrote: Hi, I've just downloaded version 1.2 beta 3 and I have a problem when editing the contents of a javabean, particularly in a case of a Float field. The relevant code is : Javabean : public class Pago { . public Float getMontoTotal() { return Float.valueOf(1234567890); } ... } Html : td class=tit input wicket:id=montoTotal type=text class=normal size=20/ /td When the page is displayed it shows the following : 15-01-1970 in the textfield, this value corresponds to the date equivalent (aprox) to the above number in milisec. The only thing I've done that can be important to this issue is to define a new IConverterFactory to apply the same date format to the whole app. What is going on? Thanks. Jaime. Yahoo! Messenger with Voice. Make PC-to-Phone Calls to the US (and 30+ countries) for 2¢/min or less.
Re: [Wicket-user] Re: Re: Re: strange behaviour of TextField conversion to Float in beta3
Yeah, you can do that. Like this: getApplicationSettings().setConverterFactory(new IConverterFactory() { public IConverter newConverter(final Locale locale) { final Converter converter = new Converter(locale); // String - Date DateConverter dc = new DateConverter(); dc.setDateFormat(locale, new SimpleDateFormat(dd-MM-)); converter.set(Date.class, dc); // Date - String DateToStringConverter dsc = new DateToStringConverter(); dsc.setDateFormat(locale, new SimpleDateFormat(dd-MM-)); StringConverter sc = new StringConverter(); sc.set(Date.class, dsc); converter.set(String.class, sc); return converter; } }); Notice the use of a seperate StringConverter that has a registry for type converters itself. It's kind of awkward right now. It's on our list to simplify for 1.3. Eelco On 4/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i dont think you can do this globally, i would override getConverter() on the textfield thats displaying dates, or craete a DateTextField subclass that does it for you. alternatively you can create a model decorator that does the conversion, advantage is that it will work for any component. -Igor On 4/7/06, Jaime De La Jara [EMAIL PROTECTED] wrote: I commented the lines that define the datetostring converter and the effect was that the date was displayed using toString() and the float value was displayed correctly. So, how can I define converters for different types, like Float and Date from and to String?. In a previous post I learnt that that the conversion was a two-way process, that is from type1-type2 and from type2-type1, and that was applicable to a textfield. I'm lost here. Jaime. i think the problem is that you registered your own converter for String.class so when wicket will try to display the float in the textfield it will try to format it to string, and it will use the datetostring converter you registered. -Igor On 4/7/06, Jaime De La Jara [EMAIL PROTECTED] wrote: Here is the original code to define a Date format : getApplicationSettings().setConverterFactory(new IConverterFactory() { public IConverter newConverter(final Locale locale) { final Converter converter = new Converter(locale); // String - Date DateConverter dc = new DateConverter(); dc.setDateFormat(locale, new SimpleDateFormat(dd-MM-)); converter.set(Date.class, dc); // Date - String DateToStringConverter dsc = new DateToStringConverter(); dsc.setDateFormat(locale, new SimpleDateFormat(dd-MM-) ); converter.set(String.class, dsc); (*) return converter; } } ); But in this case a float value gets formatted as it were a Date. If a insert the following code in (*) : // Float - String NumberToStringConverter numberToStringConverter = new NumberToStringConverter(); DecimalFormat fmt = new DecimalFormat(###,###,###,###.#); numberToStringConverter.setNumberFormat(locale, fmt); final StringConverter stringConverter = new StringConverter(); stringConverter.set (Float.class, numberToStringConverter); stringConverter.set(Float.TYPE, numberToStringConverter); stringConverter.set(Date.class, dsc); converter.set(String.class, stringConverter); converter.set (Float.class, new FloatConverter()); I get the float value correctly formmatted but the date is displayed using Date.toString(). Jaime. can you show me youre converter code? On 4/6/06, Jaime De La Jara [EMAIL PROTECTED] wrote: Yes, I use the following code : add(new TextField(montoTotal, Float.class)); I've made some tests and found that commenting the definition of the IConverterFactory for the date format and defining the format for the float field and it worked, however I cannot define the format for both types. Thanks, Jaime. did you do TextField.setType(Float.class) or create it with the constructor that takes the class? -Igor On 4/6/06, Jaime De La Jara [EMAIL PROTECTED] wrote: Hi, I've just downloaded version 1.2 beta 3 and I have a problem when editing the contents of a javabean, particularly in a case of a Float field. The relevant code is : Javabean : public class Pago { . public Float getMontoTotal() { return Float.valueOf(1234567890); } ...
[Wicket-user] IMG reload via AJAX
Hi all, Im trying to get an Image to reload via AJAX. Basically Ive got some thumbnails when the user clicks on them I want to display the full version. The model is changing, but the screen isnt refreshing quite right. The AJAX response comes back but the graphic doesnt update unless I force the browser to refresh. The url for the img src attribute is the same everytime, Im using a subclass of WebResource to feed the Image. Any ideas on how to get this working would be awesome! Thanks!
Re: [Wicket-user] IMG reload via AJAX
there are a couple of ways:one) add anti caching headers to your resourcetwo) append a random number to the resource url-IgorOn 4/7/06, Jerry Smith [EMAIL PROTECTED] wrote: Hi all, I'm trying to get an Image to reload via AJAX. Basically I've got some thumbnails when the user clicks on them I want to display the full version. The model is changing, but the screen isn't refreshing quite right. The AJAX response comes back but the graphic doesn't update unless I force the browser to refresh. The url for the img src attribute is the same everytime, I'm using a subclass of WebResource to feed the Image. Any ideas on how to get this working would be awesome! Thanks!
Re: [Wicket-user] links problems again
Ok thanks Igor, got the mounting working.When I use mounting I first failed to get the parameters, I usedgetRequest.getParameter(action); but I found out that I now can get the parameters by calling getRequest.getParameterMap().get(action); (where action is my parameter name).Evert2006/4/6, Igor Vaynberg [EMAIL PROTECTED]: see mountPackage in webapplication and nice url example for details.your urls will look something like this:/context/mount/Index/context/adminmount/Index -Igor On 4/6/06, Potje rode kool [EMAIL PROTECTED] wrote: I created a new project with a TabbedPanel and it worked, so that works now.I wanted to use the new mount stuff but failed to get it working, I want to mount packages.I have packages like: com.mypagescom.mypages.admin etc.My start page is 'com.mypages.Index' and my admin page is 'com.mypages.admin.Index'.How do I mount the admin package and how should my link look like?Evert 2006/4/4, Igor Vaynberg [EMAIL PROTECTED]: wicket:link has always worked like this and we did not intend to change it in 1.2. wicket:link is a convinience, if it doesnt fit your usecase use regular link components or subclass WicketLinkTagHandler and implement any behavior you want. i tested tabbed panels here and they work fine. if you want, create a quickstart project that reproduces the error and attach it to the list, i will take a look. -Igor On 4/4/06, Potje rode kool [EMAIL PROTECTED] wrote: Just updated to wicket 1.2 beta 3 but I still have link problems all over the place.If I use wicket:link the links work only correctly if the pages where they point to are in the same package. I also got problems with working with tabs (using the TabbedPanel from wicket extensions), if I put links on a panel on a tab the tabs don't work anymore I can can't switch to another tab, even got that with plain old html links.Does anyone has the same problems or does anyone knows how to solve them?I would like to hear that, for the most part I like wicket but these link problems are driving me a bit crazy. Thanks in advance.Evert
RE: [Wicket-user] IMG reload via AJAX
Ive already got res.setHeader(Cache-Control, no-cache); res.setHeader(Cache-Control, no-store); in the resource, how do I go about changing the src url? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Igor Vaynberg Sent: Friday, April 07, 2006 3:29 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] IMG reload via AJAX there are a couple of ways: one) add anti caching headers to your resource two) append a random number to the resource url -Igor On 4/7/06, Jerry Smith [EMAIL PROTECTED] wrote: Hi all, I'm trying to get an Image to reload via AJAX. Basically I've got some thumbnails when the user clicks on them I want to display the full version. The model is changing, but the screen isn't refreshing quite right. The AJAX response comes back but the graphic doesn't update unless I force the browser to refresh. The url for the img src attribute is the same everytime, I'm using a subclass of WebResource to feed the Image. Any ideas on how to get this working would be awesome! Thanks!
Re: [Wicket-user] links problems again
why are you calling that on the request?you should get those in youre constructor (the PageParameters object)johanOn 4/7/06, Potje rode kool [EMAIL PROTECTED] wrote: Ok thanks Igor, got the mounting working.When I use mounting I first failed to get the parameters, I usedgetRequest.getParameter(action); but I found out that I now can get the parameters by calling getRequest.getParameterMap().get(action); (where action is my parameter name).Evert2006/4/6, Igor Vaynberg [EMAIL PROTECTED]: see mountPackage in webapplication and nice url example for details.your urls will look something like this:/context/mount/Index/context/adminmount/Index -Igor On 4/6/06, Potje rode kool [EMAIL PROTECTED] wrote: I created a new project with a TabbedPanel and it worked, so that works now.I wanted to use the new mount stuff but failed to get it working, I want to mount packages.I have packages like: com.mypagescom.mypages.admin etc.My start page is 'com.mypages.Index' and my admin page is 'com.mypages.admin.Index'.How do I mount the admin package and how should my link look like?Evert 2006/4/4, Igor Vaynberg [EMAIL PROTECTED]: wicket:link has always worked like this and we did not intend to change it in 1.2. wicket:link is a convinience, if it doesnt fit your usecase use regular link components or subclass WicketLinkTagHandler and implement any behavior you want. i tested tabbed panels here and they work fine. if you want, create a quickstart project that reproduces the error and attach it to the list, i will take a look. -Igor On 4/4/06, Potje rode kool [EMAIL PROTECTED] wrote: Just updated to wicket 1.2 beta 3 but I still have link problems all over the place.If I use wicket:link the links work only correctly if the pages where they point to are in the same package. I also got problems with working with tabs (using the TabbedPanel from wicket extensions), if I put links on a panel on a tab the tabs don't work anymore I can can't switch to another tab, even got that with plain old html links.Does anyone has the same problems or does anyone knows how to solve them?I would like to hear that, for the most part I like wicket but these link problems are driving me a bit crazy. Thanks in advance.Evert
Re: [Wicket-user] Re : Re : Re: strange behaviour of TextField conversion to Float in beta3 : resolved !
I commented the lines that define the datetostring converter and the effect was that the date was displayed using toString() and the float value was displayed correctly. So, how can I define converters for different types, like Float and Date from and to String?. Like I answered you earlier: getApplicationSettings().setConverterFactory(new IConverterFactory() { public IConverter newConverter(final Locale locale) { final Converter converter = new Converter(locale); // String - Date DateConverter dc = new DateConverter(); dc.setDateFormat(locale, new SimpleDateFormat(dd-MM-)); converter.set(Date.class, dc); // Date - String DateToStringConverter dsc = new DateToStringConverter(); dsc.setDateFormat(locale, new SimpleDateFormat(dd-MM-)); StringConverter sc = new StringConverter(); sc.set(Date.class, dsc); converter.set(String.class, sc); return converter; } }); Notice the use of a seperate StringConverter that has a registry for type converters itself. In a previous post I learnt that that the conversion was a two-way process, that is from type1-type2 and from type2-type1, and that was applicable to a textfield. I'm lost here. It is. Currently Wicket doesn't know about ingoing or outgoing values though. But typically conversion is from String to T and from T to String. Different converters would be used in both cases. Eelco --- 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=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] IMG reload via AJAX
what are you using right now to display images?usually i call urlfor(resourcereference), get the url, append rand=+Math.random() and use an attributemodifier or oncomponenttag() to set the src attr of an img tag. -IgorOn 4/7/06, Jerry Smith [EMAIL PROTECTED] wrote: I've already got res.setHeader(Cache-Control, no-cache); res.setHeader(Cache-Control, no-store); in the resource, how do I go about changing the src url? From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] On Behalf Of Igor Vaynberg Sent: Friday, April 07, 2006 3:29 PM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] IMG reload via AJAX there are a couple of ways: one) add anti caching headers to your resource two) append a random number to the resource url -Igor On 4/7/06, Jerry Smith [EMAIL PROTECTED] wrote: Hi all, I'm trying to get an Image to reload via AJAX. Basically I've got some thumbnails when the user clicks on them I want to display the full version. The model is changing, but the screen isn't refreshing quite right. The AJAX response comes back but the graphic doesn't update unless I force the browser to refresh. The url for the img src attribute is the same everytime, I'm using a subclass of WebResource to feed the Image. Any ideas on how to get this working would be awesome! Thanks!
Re: [Wicket-user] links problems again
yeah, use the MyPage { public MyPage(PageParameters params) {...}} constructor and they should be available.-IgorOn 4/7/06, Johan Compagner [EMAIL PROTECTED] wrote: why are you calling that on the request?you should get those in youre constructor (the PageParameters object)johan On 4/7/06, Potje rode kool [EMAIL PROTECTED] wrote: Ok thanks Igor, got the mounting working.When I use mounting I first failed to get the parameters, I usedgetRequest.getParameter(action); but I found out that I now can get the parameters by calling getRequest.getParameterMap().get(action); (where action is my parameter name).Evert2006/4/6, Igor Vaynberg [EMAIL PROTECTED]: see mountPackage in webapplication and nice url example for details.your urls will look something like this:/context/mount/Index/context/adminmount/Index -Igor On 4/6/06, Potje rode kool [EMAIL PROTECTED] wrote: I created a new project with a TabbedPanel and it worked, so that works now.I wanted to use the new mount stuff but failed to get it working, I want to mount packages.I have packages like: com.mypagescom.mypages.admin etc.My start page is 'com.mypages.Index' and my admin page is 'com.mypages.admin.Index'.How do I mount the admin package and how should my link look like?Evert 2006/4/4, Igor Vaynberg [EMAIL PROTECTED]: wicket:link has always worked like this and we did not intend to change it in 1.2. wicket:link is a convinience, if it doesnt fit your usecase use regular link components or subclass WicketLinkTagHandler and implement any behavior you want. i tested tabbed panels here and they work fine. if you want, create a quickstart project that reproduces the error and attach it to the list, i will take a look. -Igor On 4/4/06, Potje rode kool [EMAIL PROTECTED] wrote: Just updated to wicket 1.2 beta 3 but I still have link problems all over the place.If I use wicket:link the links work only correctly if the pages where they point to are in the same package. I also got problems with working with tabs (using the TabbedPanel from wicket extensions), if I put links on a panel on a tab the tabs don't work anymore I can can't switch to another tab, even got that with plain old html links.Does anyone has the same problems or does anyone knows how to solve them?I would like to hear that, for the most part I like wicket but these link problems are driving me a bit crazy. Thanks in advance.Evert
Re: [Wicket-user] IMG reload via AJAX
On 4/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: usually i call urlfor(resourcereference), get the url, append rand=+Math.random() and use an attributemodifier or oncomponenttag() to set the src attr of an img tag. Did you calculate the chance you have with Math.random() how many times it could generate the same url after X number of calls?:)johan
Re: [Wicket-user] IMG reload via AJAX
you are absolutely right, how foolish of me.a better way of course would be url="">but wait...even with that there is a chance of collission...hmmm how about you have a static BigInteger in your resource, and use that as a sequence to generate unique ids to append to the url!-IgorOn 4/7/06, Johan Compagner [EMAIL PROTECTED] wrote: On 4/7/06, Igor Vaynberg [EMAIL PROTECTED] wrote: usually i call urlfor(resourcereference), get the url, append rand=+Math.random() and use an attributemodifier or oncomponenttag() to set the src attr of an img tag. Did you calculate the chance you have with Math.random() how many times it could generate the same url after X number of calls?:)johan
Re: [Wicket-user] IMG reload via AJAX
url=url+rand=+UUID.random().toString() but wait...even with that there is a chance of collission...hmmm Is there? Isn't UUID supposed to be unique in space and time? Eelco --- 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=lnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] IMG reload via AJAX
no, not unique, but pretty darn close.-IgorOn 4/7/06, Eelco Hillenius [EMAIL PROTECTED] wrote: url=""> but wait...even with that there is a chance of collission...hmmmIs there? Isn't UUID supposed to be unique in space and time?Eelco--- This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat extends applications into web and mobile media. Attend the live webcastand join the prime developer group breaking into this new coding territory! http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642___ Wicket-user mailing listWicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] IMG reload via AJAX
and in case someone takes this suggestion seriously - dont. johan is just being sarcastic...or at least i really really hope he is :)-IgorOn 4/7/06, Eelco Hillenius [EMAIL PROTECTED] wrote: url=""> but wait...even with that there is a chance of collission...hmmmIs there? Isn't UUID supposed to be unique in space and time? Eelco---This SF.Net email is sponsored by xPML, a groundbreaking scripting languagethat 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?cmdlnkkid0944bid$1720dat1642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] IMG reload via AJAX
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 so... NSUUID? Igor Vaynberg wrote: no, not unique, but pretty darn close. -Igor On 4/7/06, *Eelco Hillenius* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: url=url+rand=+UUID.random().toString() but wait...even with that there is a chance of collission...hmmm Is there? Isn't UUID supposed to be unique in space and time? Eelco --- 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?cmdlnkkid0944bid$1720dat1642 http://sel.as-us.falkag.net/sel?cmdlnkkid0944bid$1720dat1642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net mailto:Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user https://lists.sourceforge.net/lists/listinfo/wicket-user - -- Justin Lee http://www.antwerkz.com AIM : evan chooly Skype : evanchooly -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.1 (Cygwin) iD8DBQFENufXJnQfEGuJ90MRAylKAKDMxUc2w9e67eVb/aKkLBWRTanZXACgr+MZ KrXfZn2yD7unXd+cnSTpfgg= =1zfd -END PGP SIGNATURE- --- 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