Re: [Wicket-user] Output Stream Encoding
On 9/6/06, Imran M Yousuf [EMAIL PROTECTED] wrote: Hi dear Users, I have a requirement that I need to cofigure the language encoding based on the Request Header accept-charset. If this is not available than we have our default charset. It is already implemented The default is UTF-8 and can be configured via getRequestCycleSettings().setResponseRequestEncoding(String) Juergen Now I am overriding the configureResponse() and NOT calling super.configureResponse(). But I am using the same lines used in the source code and please find the code used in configureResponse at the end of the posting. The problem I am facing is that when I visit the page through a wicket link I get the response output stream open in configureResponse, but when I refresh the page the output stream opens after configureResponse is executed. As a result in the first case I get garbage character and in the second case I get correct ouput. Please advice what to do. Currently I am cofiguring the output stream to Shift_JIS hard codedly. If I can get this flow to work then dynamically I will read the request's accept-charset and set it. It is a bit urgent so quick response will be appreciated. Thank you. code final RequestCycle cycle = getRequestCycle(); final Application application = cycle.getApplication(); final Response response = cycle.getResponse(); // Determine encoding @SuppressWarnings(unused) final String encoding = application.getRequestCycleSettings().getResponseRequestEncoding(); final String encoding1 = text/ + getMarkupType() + ; charset= + SHIFT_JIS; // Set content type based on markup type for page ( (WebResponse) response ).getHttpServletResponse().setCharacterEncoding( SHIFT_JIS ); ( (WebResponse) response ).getHttpServletResponse().setContentType( encoding1 ); ( (WebResponse) response ).getHttpServletResponse().setHeader( ACCEPT_CHARSET, SHIFT_JIS ); ( (WebResponse) response ).getHttpServletResponse().setHeader( ACCEPT_LANGUAGE, JA_JP ); // response.setContentType (text/ + getMarkupType() + ; charset= + // encoding); // Write out an xml declaration if the markup stream and settings allow final MarkupStream markupStream = findMarkupStream(); if( ( markupStream != null ) ( markupStream.getXmlDeclaration() != null ) ( application.getMarkupSettings().getStripXmlDeclarationFromOutput() == false ) ) { response.write( ?xml version='1.0' encoding=' ); response.write( SHIFT_JIS ); response.write( '? ); } System.out.println(( (WebResponse) response ).getHttpServletResponse().getCharacterEncoding()); // Set response locale from session locale response.setLocale( getSession().getLocale() ); /code Imran - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Output Stream Encoding
Thanks Jurgern.Dear Users I am confirming my experience on this issue:When I load a Link, i.e. request header referrer is null I get the configure response without the Output stream being opened. So even if I set the output stream encoding from the filter it gets overriden and it writes in the default encoding which is UTF-8. When I come to the page without a referrer I get the output stream not opened, so from wherever I set the configuration it prevails. It is already implemented The default is UTF-8 and can be configured via getRequestCycleSettings().setResponseRequestEncoding(String)I do not want to use the default. I want to set the default endcoding. I do not want Wicket to set the default. I want Wicket to use what I set. Please advice.Imran - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Woogle is down
Wauw, that's really nice of you. I don't think it would require an entire dedicated machine, and the setup now is that nothing is run as root. It's entirely run as non root (except apache for proxying stuff :) So a normal user login an a existing server would be enough. You can see stats for it here:http://billen.dk/cgi-bin/awstats.pl?config=woogle.billen.dkFrank On 9/6/06, David Leangen [EMAIL PROTECTED] wrote: Hi, Frank,That all sounds possible. I could also see if we could even get adedicated machine, depending on funding is these days. In that case, youcould have root access yourself.This could be my (small) contribution to Wicket. About how many hits do you get per day?Cheers,DavidOn Tue, 2006-09-05 at 10:32 +0200, Frank Bille wrote: Very interesting. Do you have a possibility to setup a cron job? (that's how the index is updated) It's a little bit of a special setup I have: * Woogle app runs off a jetty * Every night I update the index using a shellscript/Nutch. * After the index is updated I restart jetty. That's how I could manage to get the index-db updated in the Woogle app.. Frank On 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Ok, thanks! If you need a place to host, you could use my server. Cheers, Dave On Tue, 2006-09-05 at 10:03 +0200, Frank Bille wrote: Sorry about that. Woogle runs off my home server, which has a mirrored raid of SATA discs. All should be fine, but for some reason one of the discs keeps falling out of the raid (HW) and the raid stops working.. grr... But it's up again. FrankOn 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Just thought I'd point out (sorry if this is not the right place): Tried using Woogle today and got a bad gateway error: Bad Gateway The proxy server received an invalid response from an upstream server. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list
Re: [Wicket-user] Woogle is down
Checked the stats. I don't think we need a big machine for this, and I don't think we need a dedicated machine, as you say. This will make it easier for me to free up resources. If the number of hits grows, we can upgrade as we go along. I'll see what I can dig up and get back to you asap. Cheers, Dave On Wed, 2006-09-06 at 08:30 +0200, Frank Bille wrote: Wauw, that's really nice of you. I don't think it would require an entire dedicated machine, and the setup now is that nothing is run as root. It's entirely run as non root (except apache for proxying stuff :) So a normal user login an a existing server would be enough. You can see stats for it here: http://billen.dk/cgi-bin/awstats.pl?config=woogle.billen.dk Frank On 9/6/06, David Leangen [EMAIL PROTECTED] wrote: Hi, Frank, That all sounds possible. I could also see if we could even get a dedicated machine, depending on funding is these days. In that case, you could have root access yourself. This could be my (small) contribution to Wicket. About how many hits do you get per day? Cheers, David On Tue, 2006-09-05 at 10:32 +0200, Frank Bille wrote: Very interesting. Do you have a possibility to setup a cron job? (that's how the index is updated) It's a little bit of a special setup I have: * Woogle app runs off a jetty * Every night I update the index using a shellscript/Nutch. * After the index is updated I restart jetty. That's how I could manage to get the index-db updated in the Woogle app.. Frank On 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Ok, thanks! If you need a place to host, you could use my server. Cheers, Dave On Tue, 2006-09-05 at 10:03 +0200, Frank Bille wrote: Sorry about that. Woogle runs off my home server, which has a mirrored raid of SATA discs. All should be fine, but for some reason one of the discs keeps falling out of the raid (HW) and the raid stops working.. grr... But it's up again. Frank On 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Just thought I'd point out (sorry if this is not the right place): Tried using Woogle today and got a bad gateway error: Bad Gateway The proxy server received an invalid response from an upstream server. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
Re: [Wicket-user] Woogle is down
Offering a server is really nice, but as mentioned before we (wicket) have our own dedicated server, and I would like to see all this wicket stuff collected to there, opposed to the current situation where everything is distributed into half dozen different servers.. Janne On 6.9.2006, at 9.37, David Leangen wrote: Checked the stats. I don't think we need a big machine for this, and I don't think we need a dedicated machine, as you say. This will make it easier for me to free up resources. If the number of hits grows, we can upgrade as we go along. I'll see what I can dig up and get back to you asap. Cheers, Dave On Wed, 2006-09-06 at 08:30 +0200, Frank Bille wrote: Wauw, that's really nice of you. I don't think it would require an entire dedicated machine, and the setup now is that nothing is run as root. It's entirely run as non root (except apache for proxying stuff :) So a normal user login an a existing server would be enough. You can see stats for it here: http://billen.dk/cgi-bin/awstats.pl?config=woogle.billen.dk Frank On 9/6/06, David Leangen [EMAIL PROTECTED] wrote: Hi, Frank, That all sounds possible. I could also see if we could even get a dedicated machine, depending on funding is these days. In that case, you could have root access yourself. This could be my (small) contribution to Wicket. About how many hits do you get per day? Cheers, David On Tue, 2006-09-05 at 10:32 +0200, Frank Bille wrote: Very interesting. Do you have a possibility to setup a cron job? (that's how the index is updated) It's a little bit of a special setup I have: * Woogle app runs off a jetty * Every night I update the index using a shellscript/Nutch. * After the index is updated I restart jetty. That's how I could manage to get the index-db updated in the Woogle app.. Frank On 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Ok, thanks! If you need a place to host, you could use my server. Cheers, Dave On Tue, 2006-09-05 at 10:03 +0200, Frank Bille wrote: Sorry about that. Woogle runs off my home server, which has a mirrored raid of SATA discs. All should be fine, but for some reason one of the discs keeps falling out of the raid (HW) and the raid stops working.. grr... But it's up again. Frank On 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Just thought I'd point out (sorry if this is not the right place): Tried using Woogle today and got a bad gateway error: Bad Gateway The proxy server received an invalid response from an upstream server. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Woogle is down
+1 for wicket server. We should have a discussion on what we are going to do with our current site. Martijn On 9/6/06, Janne Hietamäki [EMAIL PROTECTED] wrote: Offering a server is really nice, but as mentioned before we (wicket) have our own dedicated server, and I would like to see all this wicket stuff collected to there, opposed to the current situation where everything is distributed into half dozen different servers.. Janne On 6.9.2006, at 9.37, David Leangen wrote: Checked the stats. I don't think we need a big machine for this, and I don't think we need a dedicated machine, as you say. This will make it easier for me to free up resources. If the number of hits grows, we can upgrade as we go along. I'll see what I can dig up and get back to you asap. Cheers, Dave On Wed, 2006-09-06 at 08:30 +0200, Frank Bille wrote: Wauw, that's really nice of you. I don't think it would require an entire dedicated machine, and the setup now is that nothing is run as root. It's entirely run as non root (except apache for proxying stuff :) So a normal user login an a existing server would be enough. You can see stats for it here: http://billen.dk/cgi-bin/awstats.pl?config=woogle.billen.dk Frank On 9/6/06, David Leangen [EMAIL PROTECTED] wrote: Hi, Frank, That all sounds possible. I could also see if we could even get a dedicated machine, depending on funding is these days. In that case, you could have root access yourself. This could be my (small) contribution to Wicket. About how many hits do you get per day? Cheers, David On Tue, 2006-09-05 at 10:32 +0200, Frank Bille wrote: Very interesting. Do you have a possibility to setup a cron job? (that's how the index is updated) It's a little bit of a special setup I have: * Woogle app runs off a jetty * Every night I update the index using a shellscript/Nutch. * After the index is updated I restart jetty. That's how I could manage to get the index-db updated in the Woogle app.. Frank On 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Ok, thanks! If you need a place to host, you could use my server. Cheers, Dave On Tue, 2006-09-05 at 10:03 +0200, Frank Bille wrote: Sorry about that. Woogle runs off my home server, which has a mirrored raid of SATA discs. All should be fine, but for some reason one of the discs keeps falling out of the raid (HW) and the raid stops working.. grr... But it's up again. Frank On 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Just thought I'd point out (sorry if this is not the right place): Tried using Woogle today and got a bad gateway error: Bad Gateway The proxy server received an invalid response from an upstream server. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Download Wicket 1.2.2 now! New Ajax components: Tree, TreeTable and ModalWindow -- http://wicketframework.org - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] wicket-ajax and firefox 1.06
Hi all, wicket-ajax.js generates the following error on firefox 1.06: Error: [Exception... Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.getResponseHeader] nsresult: 0x80040111 (NS_ERROR_NOT_AVAILABLE) location: JS frame :: http://localhost/provision/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js :: anonymous :: line 569 data: no] Source File: http://localhost/provision/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js Line: 569 Is wicket ajax supported for firefox 1.06? Regards, Tomer - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Woogle is down
Hey DaveAs some of the other wicket devs has mentioned, Wicket has a dedicated machine and I also think it's best to keep it there. Also for future maintainance. But I would like to stress that I really appreciate your offer. And perhaps in near future it's not enough for Wicket with one dedicated server ;) Who knows? So thank you for your offer, but I have to turn it down this time. RegardsFrankOn 9/6/06, Martijn Dashorst [EMAIL PROTECTED] wrote:+1 for wicket server. We should have a discussion on what we are going to do with our current site.MartijnOn 9/6/06, Janne Hietamäki [EMAIL PROTECTED] wrote: Offering a server is really nice, but as mentioned before we (wicket) have our own dedicated server, and I would like to see all this wicket stuff collected to there, opposed to the current situation where everything is distributed into half dozen different servers.. Janne On 6.9.2006, at 9.37, David Leangen wrote:Checked the stats. I don't think we need a big machine for this, and I don't think we need a dedicated machine, as you say. This will make it easier for me to free up resources. If the number of hits grows, we can upgrade as we go along. I'll see what I can dig up and get back to you asap.Cheers, Dave On Wed, 2006-09-06 at 08:30 +0200, Frank Bille wrote: Wauw, that's really nice of you. I don't think it would require an entire dedicated machine, and the setup now is that nothing is run as root. It's entirely run as non root (except apache for proxying stuff :) So a normal user login an a existing server would be enough. You can see stats for it here: http://billen.dk/cgi-bin/awstats.pl?config=woogle.billen.dk Frank On 9/6/06, David Leangen [EMAIL PROTECTED] wrote: Hi, Frank, That all sounds possible. I could also see if we could even get a dedicated machine, depending on funding is these days. In that case, you could have root access yourself. This could be my (small) contribution to Wicket. About how many hits do you get per day?Cheers, David On Tue, 2006-09-05 at 10:32 +0200, Frank Bille wrote: Very interesting. Do you have a possibility to setup a cron job? (that's how the index is updated) It's a little bit of a special setup I have: * Woogle app runs off a jetty * Every night I update the index using a shellscript/Nutch. * After the index is updated I restart jetty. That's how I could manage to get the index-db updated in the Woogle app.. FrankOn 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Ok, thanks! If you need a place to host, you could use my server.Cheers, Dave On Tue, 2006-09-05 at 10:03 +0200, Frank Bille wrote: Sorry about that. Woogle runs off my home server, which has a mirrored raid of SATA discs. All should be fine, but for some reason one of the discs keeps falling out of the raid (HW) and the raid stops working.. grr... But it's up again. FrankOn 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Just thought I'd point out (sorry if this is not the right place): Tried using Woogle today and got a bad gateway error: Bad Gateway The proxy server received an invalid response from an upstream server. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user--Download Wicket 1.2.2 now! New Ajax components: Tree, TreeTable and ModalWindow-- http://wicketframework.org -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-ajax and firefox 1.06
Really 1.0.6? Current version is 1.5.0.6, isn't it? /Gwyn On 06/09/06, Tomer Mevorach [EMAIL PROTECTED] wrote: Hi all, wicket-ajax.js generates the following error on firefox 1.06: Error: [Exception... Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.getResponseHeader] nsresult: 0x80040111 (NS_ERROR_NOT_AVAILABLE) location: JS frame :: http://localhost/provision/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js :: anonymous :: line 569 data: no] Source File: http://localhost/provision/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js Line: 569 Is wicket ajax supported for firefox 1.06? Regards, Tomer -- Download Wicket 1.2.2 now! - http://wicketframework.org - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Change the dataprovider of a dataview
Thanks all, tha tworks great! /peter On 9/4/06, Igor Vaynberg [EMAIL PROTECTED] wrote: i would use different fragments one fragment containing the dataview for the master list and another for the detail then when a link is clicked on the master list it replaces its fragment with the detail fragment, use replaceWith() or parent.replace() and wicket will pickup the change on next render -Igor On 9/4/06, Peter Neubauer [EMAIL PROTECTED] wrote: Hi folks, I would like to change the data detail tabel view for a master table view. How do I do that? Do I have to change the whole Dataview component on the page or just the DataProvider for it or the Model object of the DataProvider? If I isntancieate a new Dataview component on a page, how to I get the rendering hierarchy to be updated in order to pick up the changes? Thanks for any hints. I suspect it's just that I do not understand how to do nested/linked Dataviews. /peter - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Woogle is down
No prob. Good luck!! On Wed, 2006-09-06 at 09:57 +0200, Frank Bille wrote: Hey Dave As some of the other wicket devs has mentioned, Wicket has a dedicated machine and I also think it's best to keep it there. Also for future maintainance. But I would like to stress that I really appreciate your offer. And perhaps in near future it's not enough for Wicket with one dedicated server ;) Who knows? So thank you for your offer, but I have to turn it down this time. Regards Frank On 9/6/06, Martijn Dashorst [EMAIL PROTECTED] wrote: +1 for wicket server. We should have a discussion on what we are going to do with our current site. Martijn On 9/6/06, Janne Hietamäki [EMAIL PROTECTED] wrote: Offering a server is really nice, but as mentioned before we (wicket) have our own dedicated server, and I would like to see all this wicket stuff collected to there, opposed to the current situation where everything is distributed into half dozen different servers.. Janne On 6.9.2006, at 9.37, David Leangen wrote: Checked the stats. I don't think we need a big machine for this, and I don't think we need a dedicated machine, as you say. This will make it easier for me to free up resources. If the number of hits grows, we can upgrade as we go along. I'll see what I can dig up and get back to you asap. Cheers, Dave On Wed, 2006-09-06 at 08:30 +0200, Frank Bille wrote: Wauw, that's really nice of you. I don't think it would require an entire dedicated machine, and the setup now is that nothing is run as root. It's entirely run as non root (except apache for proxying stuff :) So a normal user login an a existing server would be enough. You can see stats for it here: http://billen.dk/cgi-bin/awstats.pl?config=woogle.billen.dk Frank On 9/6/06, David Leangen [EMAIL PROTECTED] wrote: Hi, Frank, That all sounds possible. I could also see if we could even get a dedicated machine, depending on funding is these days. In that case, you could have root access yourself. This could be my (small) contribution to Wicket. About how many hits do you get per day? Cheers, David On Tue, 2006-09-05 at 10:32 +0200, Frank Bille wrote: Very interesting. Do you have a possibility to setup a cron job? (that's how the index is updated) It's a little bit of a special setup I have: * Woogle app runs off a jetty * Every night I update the index using a shellscript/Nutch. * After the index is updated I restart jetty. That's how I could manage to get the index-db updated in the Woogle app.. Frank On 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Ok, thanks! If you need a place to host, you could use my server. Cheers, Dave On Tue, 2006-09-05 at 10:03 +0200, Frank Bille wrote: Sorry about that. Woogle runs off my home server, which has a mirrored raid of SATA discs. All should be fine, but for some reason one of the discs keeps falling out of the raid (HW) and the raid stops working.. grr... But it's up again. Frank On 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Just thought I'd point out (sorry if this is not the right place): Tried using Woogle today and got a bad gateway
[Wicket-user] CharSequence Error -- Help Needed
Hi,Iusing wicket to build a web-appln. I am using WSAD5.2 as the IDE. I have added wicket1.2.2.jar in the lib directory of my workspace.Whenever I try creating my own POJOForm by extending the class Form, I get a error as follows:"This Compilation Unit indirectly refers the missing type Java.lang.CharSequence(typically a required file is referencing a type outside the classpath)".I looked into the wicket jar I downloaded and I could not find the CharSequence class. For a fact I donot think this class is required in the Jar file but I am stuck as this error does not go.Can anyone pls help or suggest?Regards,Ananth- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] CharSequence Error -- Help Needed
No 1.4 is enough for wicket 1.x When wicket 2.0 is released you'll need JDK 1.5 Dipu wrote: HI Ananth, I am not sure , but can you check the JDK version you are using. I think you will need the JDK 1.5 Cheers Dipu - Original Message - From: Ananth Prakash To: wicket-user@lists.sourceforge.net Sent: Wednesday, September 06, 2006 10:20 AM Subject: [Wicket-user] CharSequence Error -- Help Needed Hi, I using wicket to build a web-appln. I am using WSAD5.2 as the IDE. I have added wicket1.2.2.jar in the lib directory of my workspace. Whenever I try creating my own POJO Form by extending the class Form, I get a error as follows: This Compilation Unit indirectly refers the missing type Java.lang.CharSequence(typically a required file is referencing a type outside the classpath). I looked into the wicket jar I downloaded and I could not find the CharSequence class. For a fact I donot think this class is required in the Jar file but I am stuck as this error does not go. Can anyone pls help or suggest? Regards, Ananth - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] CharSequence Error -- Help Needed
Wicket 2.0 will be JDK 1.5 and newer though. Wicket 1.x (1.0, 1.1, 1.2, 1.3 etc) will remain 1.4 compatible. Martijn On 9/6/06, Martijn Dashorst [EMAIL PROTECTED] wrote: Wicket requires JDK 1.4 at the minimum, java.lang.CharSequence is part of 1.4. Martijn On 9/6/06, Dipu [EMAIL PROTECTED] wrote: HI Ananth, I am not sure , but can you check the JDK version you are using. I think you will need the JDK 1.5 Cheers Dipu - Original Message - From: Ananth Prakash To: wicket-user@lists.sourceforge.net Sent: Wednesday, September 06, 2006 10:20 AM Subject: [Wicket-user] CharSequence Error -- Help Needed Hi, I using wicket to build a web-appln. I am using WSAD5.2 as the IDE. I have added wicket1.2.2.jar in the lib directory of my workspace. Whenever I try creating my own POJO Form by extending the class Form, I get a error as follows: This Compilation Unit indirectly refers the missing type Java.lang.CharSequence(typically a required file is referencing a type outside the classpath). I looked into the wicket jar I downloaded and I could not find the CharSequence class. For a fact I donot think this class is required in the Jar file but I am stuck as this error does not go. Can anyone pls help or suggest? Regards, Ananth - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Download Wicket 1.2.2 now! New Ajax components: Tree, TreeTable and ModalWindow -- http://wicketframework.org -- Download Wicket 1.2.2 now! New Ajax components: Tree, TreeTable and ModalWindow -- http://wicketframework.org - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] CharSequence Error -- Help Needed
Wicket requires JDK 1.4 at the minimum, java.lang.CharSequence is part of 1.4. Martijn On 9/6/06, Dipu [EMAIL PROTECTED] wrote: HI Ananth, I am not sure , but can you check the JDK version you are using. I think you will need the JDK 1.5 Cheers Dipu - Original Message - From: Ananth Prakash To: wicket-user@lists.sourceforge.net Sent: Wednesday, September 06, 2006 10:20 AM Subject: [Wicket-user] CharSequence Error -- Help Needed Hi, I using wicket to build a web-appln. I am using WSAD5.2 as the IDE. I have added wicket1.2.2.jar in the lib directory of my workspace. Whenever I try creating my own POJO Form by extending the class Form, I get a error as follows: This Compilation Unit indirectly refers the missing type Java.lang.CharSequence(typically a required file is referencing a type outside the classpath). I looked into the wicket jar I downloaded and I could not find the CharSequence class. For a fact I donot think this class is required in the Jar file but I am stuck as this error does not go. Can anyone pls help or suggest? Regards, Ananth - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Download Wicket 1.2.2 now! New Ajax components: Tree, TreeTable and ModalWindow -- http://wicketframework.org - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] GridView cannot find components
Igor Vaynberg wrote: you are not doing anything wrong, its the gridview. we are still working out how to make it work within 2.0. the problem is that gridview needs to be able to switch parents of its items - something that we are still unsure how to best implement in 2.0 OK that's cool. Sorry, I forgot I was using a dev version. I should have posted this to the dev list. Will see you over there (not that I understand enough to be able to fix this for you yet). Ross - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Output Stream Encoding
Maybe this line: // Determine encoding final String encoding = application.getRequestCycleSettings().getResponseRequestEncoding();in configureResponseshould be transfered into its own protected overridable method: protected String getEncoding(){ return application.getRequestCycleSettings().getResponseRequestEncoding();}and then in configure response: // Determine encoding final String encoding = getEncoding();then you can at runtime get the right encoding.johanOn 9/6/06, Imran M Yousuf [EMAIL PROTECTED] wrote:Hi dear Users, I have a requirement that I need to cofigure the language encoding based on the Request Header accept-charset. If this is not available than we have our default charset. Now I am overriding the configureResponse() and NOT calling super.configureResponse(). But I am using the same lines used in the source code and please find the code used in configureResponse at the end of the posting. The problem I am facing is that when I visit the page through a wicket link I get the response output stream open in configureResponse, but when I refresh the page the output stream opens after configureResponse is executed. As a result in the first case I get garbage character and in the second case I get correct ouput. Please advice what to do. Currently I am cofiguring the output stream to Shift_JIS hard codedly. If I can get this flow to work then dynamically I will read the request's accept-charset and set it. It is a bit urgent so quick response will be appreciated. Thank you.code final RequestCycle cycle = getRequestCycle(); final Application application = cycle.getApplication(); final Response response = cycle.getResponse(); // Determine encoding @SuppressWarnings(unused) final String encoding = application.getRequestCycleSettings().getResponseRequestEncoding(); final String encoding1 = text/ + getMarkupType() + ; charset= + SHIFT_JIS; // Set content type based on markup type for page ( (WebResponse) response ).getHttpServletResponse().setCharacterEncoding( SHIFT_JIS ); ( (WebResponse) response ).getHttpServletResponse().setContentType( encoding1 ); ( (WebResponse) response ).getHttpServletResponse().setHeader( ACCEPT_CHARSET, SHIFT_JIS ); ( (WebResponse) response ).getHttpServletResponse().setHeader( ACCEPT_LANGUAGE, JA_JP ); // response.setContentType (text/ + getMarkupType() + ; charset= + // encoding); // Write out an xml declaration if the markup stream and settings allow final MarkupStream markupStream = findMarkupStream(); if( ( markupStream != null ) ( markupStream.getXmlDeclaration() != null ) ( application.getMarkupSettings().getStripXmlDeclarationFromOutput() == false ) ) { response.write( ?xml version='1.0' encoding=' ); response.write( SHIFT_JIS ); response.write( '? ); } System.out.println (( (WebResponse) response ).getHttpServletResponse().getCharacterEncoding()); // Set response locale from session locale response.setLocale( getSession().getLocale() );/codeImran -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list Wicket-user@lists.sourceforge.nethttps://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] DateTable with alternating row color
I just wonder about the place where in the DataTableExample (in wicket examples) the alternating style for the table rows (tr class=even... and tr class=odd.. has to be set? Or does this the DefaultDataTable class for me. Or does it the SortableDataProvider? Or do I have to it on my own (as in the displaytag examples)? If it should happen automatically, it does not work in Wicket 2.0. Stefan winmail.dat- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DateTable with alternating row color
Well, with the DefaultDataTable, it overrides DataTable's newRowItem() method in order to return an new OddEvenItem rather than a new Item. The OddEvenItem overrides on ComponentTag in order to add the odd or even class. Could you, however, have overridden one of these yourself? /Gwyn On 06/09/06, Stefan Lindner [EMAIL PROTECTED] wrote: I just wonder about the place where in the DataTableExample (in wicket examples) the alternating style for the table rows (tr class=even... and tr class=odd.. has to be set? Or does this the DefaultDataTable class for me. Or does it the SortableDataProvider? Or do I have to it on my own (as in the displaytag examples)? If it should happen automatically, it does not work in Wicket 2.0. Stefan -- Download Wicket 1.2.2 now! - http://wicketframework.org - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] filtertable and checkgroup cannot work together
thanks Igor! without a form, how can I get the filter input? have some sample codes? can I move the filterform out of the table? igor.vaynberg wrote: filter toolbar was not meant to be embedded in another form because it uses a form of its own, so for right now i would say that usecase is not supported. please add an rfe for it. if you want one right now then you have to create your own variant that doesnt use an embedded form. it would be pretty much a copy and paste job of the current toolbar but w/out the form. -Igor On 8/31/06, wq [EMAIL PROTECTED] wrote: HELP! HELP! wq wrote: final CheckGroup group=new CheckGroup(group, new ArrayList()); ... group.add(new CheckGroupSelector(groupselector)); .. SortableWapSrcDataProvider provider = new SortableWapSrcDataProvider(); DefaultDataTable table = new DefaultDataTable(table,columns,provider,30); table.addTopToolbar(new FilterToolbar(table,provider)); group.add(table); form.add(group); http://www.nabble.com/user-files/235815/Snap1.gif the html file is: form wicket:id=form span wicket:id=group nbsp;nbsp;nbsp;input type=checkbox wicket:id=groupselector全选/清除/inputbr/ table class=dataview cellspacing=0 wicket:id=table[table]/table /span input type=submit value=确定 / /form when I click the 'groupselector', the theckbox in filtertable cannot be checked. If the filtertoolbar is removed,all works fine. I suppose it is the filterform in filtertable that blocks the groupselect javascript. How can I do? very thanks! -- View this message in context: http://www.nabble.com/filtertable-and-checkgroup-cannot-work-together-tf2195268.html#a6078904 Sent from the Wicket - User forum at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- View this message in context: http://www.nabble.com/filtertable-and-checkgroup-cannot-work-together-tf2195268.html#a6170501 Sent from the Wicket - User forum at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] MouseOver Effect on DataTable
Dear all, I have implemented a Page where I use the DefaultDataTable to display a list of data. It is inspired by the Phonebook example and works perfect. Now I have seen the cdapp example from wicket-contrib and I like the mouse-over effect when I move the mouse over the table. How can I implement such an effect in my Page? Thanks in advance /thomas - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Woogle is down
-BEGIN PGP SIGNED MESSAGE- Hash: RIPEMD160 I wouldn't mind hosting qwicket on such a server either. Martijn Dashorst wrote: +1 for wicket server. We should have a discussion on what we are going to do with our current site. Martijn On 9/6/06, Janne Hietamäki [EMAIL PROTECTED] wrote: Offering a server is really nice, but as mentioned before we (wicket) have our own dedicated server, and I would like to see all this wicket stuff collected to there, opposed to the current situation where everything is distributed into half dozen different servers.. Janne On 6.9.2006, at 9.37, David Leangen wrote: Checked the stats. I don't think we need a big machine for this, and I don't think we need a dedicated machine, as you say. This will make it easier for me to free up resources. If the number of hits grows, we can upgrade as we go along. I'll see what I can dig up and get back to you asap. Cheers, Dave On Wed, 2006-09-06 at 08:30 +0200, Frank Bille wrote: Wauw, that's really nice of you. I don't think it would require an entire dedicated machine, and the setup now is that nothing is run as root. It's entirely run as non root (except apache for proxying stuff :) So a normal user login an a existing server would be enough. You can see stats for it here: http://billen.dk/cgi-bin/awstats.pl?config=woogle.billen.dk Frank On 9/6/06, David Leangen [EMAIL PROTECTED] wrote: Hi, Frank, That all sounds possible. I could also see if we could even get a dedicated machine, depending on funding is these days. In that case, you could have root access yourself. This could be my (small) contribution to Wicket. About how many hits do you get per day? Cheers, David On Tue, 2006-09-05 at 10:32 +0200, Frank Bille wrote: Very interesting. Do you have a possibility to setup a cron job? (that's how the index is updated) It's a little bit of a special setup I have: * Woogle app runs off a jetty * Every night I update the index using a shellscript/Nutch. * After the index is updated I restart jetty. That's how I could manage to get the index-db updated in the Woogle app.. Frank On 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Ok, thanks! If you need a place to host, you could use my server. Cheers, Dave On Tue, 2006-09-05 at 10:03 +0200, Frank Bille wrote: Sorry about that. Woogle runs off my home server, which has a mirrored raid of SATA discs. All should be fine, but for some reason one of the discs keeps falling out of the raid (HW) and the raid stops working.. grr... But it's up again. Frank On 9/5/06, David Leangen [EMAIL PROTECTED] wrote: Just thought I'd point out (sorry if this is not the right place): Tried using Woogle today and got a bad gateway error: Bad Gateway The proxy server received an invalid response from an upstream server. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - -- Justin Lee http://www.antwerkz.com AIM : evan chooly Skype : evanchooly -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.2.1 (Cygwin) iD8DBQFE/sprJnQfEGuJ90MRAx5XAKCxFM3BwE041rXyQqBXkC8BJk5++wCfbBOZ 4Z++LPbBx3i3INIfFUMe0k8= =QgIP -END PGP SIGNATURE- - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DateTable with alternating row color
Title: Wicket-user Digest, Vol 4, Issue 34 In the Wicket 1.2 Examples I noticed thatDefaultDataTablesets the odd/even attribute, and an external.CSS file interpreted the attribute to color the rows. I don't believe DataTable comes with any such row-coloring rules built in. So if you're using DefaultDataTable and not getting odd-even row colors, check your .CSS file. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Stefan LindnerSent: Wednesday, September 06, 2006 6:13 AMTo: wicket-user@lists.sourceforge.netSubject: DateTable with alternating row color I just wonder about the place where in the DataTableExample (in wicket examples) the alternating style for the table rows (tr class="even"... and tr class="odd".. has to be set? Or does this the DefaultDataTable class for me. Or does it the SortableDataProvider? Or do I have to it on my own (as in the displaytag examples)? If it should happen automatically, it does not work in Wicket 2.0. Stefan - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] MouseOver Effect on DataTable
It looks to be a combination of adding the CSS classes to your .css file .litupRow { } .litupRowOver { background-color: #66; cursor: pointer; } and the JavaScript to set the class in the markup. e.g. in SearchPage.html tr wicket:id=results class=litupRow onmouseover=this.className='litupRowOver'; onmouseout=this.className='litupRow'; I'm not sure enought of CSS and tables to be able to say if there's going to be any issues with trying to have both this and the Odd/Even classes working in the table row, though! /Gwyn On 06/09/06, Thomas Küchenthal [EMAIL PROTECTED] wrote: Dear all, I have implemented a Page where I use the DefaultDataTable to display a list of data. It is inspired by the Phonebook example and works perfect. Now I have seen the cdapp example from wicket-contrib and I like the mouse-over effect when I move the mouse over the table. How can I implement such an effect in my Page? Thanks in advance /thomas -- Download Wicket 1.2.2 now! - http://wicketframework.org - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Output Stream Encoding
you may remember that we lots of issues before we did that because browsers behave differently. If someone would search the mail archive for wicket, there were some links to articles which nicely described the issues associated. It is already implemented The default is UTF-8 and can be configured via getRequestCycleSettings().setResponseRequestEncoding(String) I do not want to use the default. I want to set the default endcoding. I do not want Wicket to set the default. I want Wicket to use what I set. I don't want to use the default = ok, set your own default I want to set the default endcoding: ok call getRequestCycleSettings().setResponseRequestEncoding(String) I do not want Wicket to set the default. I want Wicket to use what I set. . Yes, call getRequestCycleSettings().setResponseRequestEncoding(String) What are you trying to say? Juergen On 9/6/06, Johan Compagner [EMAIL PROTECTED] wrote: Maybe this line: // Determine encoding final String encoding = application.getRequestCycleSettings().getResponseRequestEncoding(); in configureResponse should be transfered into its own protected overridable method: protected String getEncoding() { return application.getRequestCycleSettings().getResponseRequestEncoding(); } and then in configure response: // Determine encoding final String encoding = getEncoding(); then you can at runtime get the right encoding. johan On 9/6/06, Imran M Yousuf [EMAIL PROTECTED] wrote: Hi dear Users, I have a requirement that I need to cofigure the language encoding based on the Request Header accept-charset. If this is not available than we have our default charset. Now I am overriding the configureResponse() and NOT calling super.configureResponse(). But I am using the same lines used in the source code and please find the code used in configureResponse at the end of the posting. The problem I am facing is that when I visit the page through a wicket link I get the response output stream open in configureResponse, but when I refresh the page the output stream opens after configureResponse is executed. As a result in the first case I get garbage character and in the second case I get correct ouput. Please advice what to do. Currently I am cofiguring the output stream to Shift_JIS hard codedly. If I can get this flow to work then dynamically I will read the request's accept-charset and set it. It is a bit urgent so quick response will be appreciated. Thank you. code final RequestCycle cycle = getRequestCycle(); final Application application = cycle.getApplication(); final Response response = cycle.getResponse(); // Determine encoding @SuppressWarnings(unused) final String encoding = application.getRequestCycleSettings().getResponseRequestEncoding(); final String encoding1 = text/ + getMarkupType() + ; charset= + SHIFT_JIS; // Set content type based on markup type for page ( (WebResponse) response ).getHttpServletResponse().setCharacterEncoding( SHIFT_JIS ); ( (WebResponse) response ).getHttpServletResponse().setContentType( encoding1 ); ( (WebResponse) response ).getHttpServletResponse().setHeader( ACCEPT_CHARSET, SHIFT_JIS ); ( (WebResponse) response ).getHttpServletResponse().setHeader( ACCEPT_LANGUAGE, JA_JP ); // response.setContentType (text/ + getMarkupType() + ; charset= + // encoding); // Write out an xml declaration if the markup stream and settings allow final MarkupStream markupStream = findMarkupStream(); if( ( markupStream != null ) ( markupStream.getXmlDeclaration() != null ) ( application.getMarkupSettings().getStripXmlDeclarationFromOutput() == false ) ) { response.write( ?xml version='1.0' encoding=' ); response.write( SHIFT_JIS ); response.write( '? ); } System.out.println (( (WebResponse) response ).getHttpServletResponse().getCharacterEncoding()); // Set response locale from session locale response.setLocale( getSession().getLocale() ); /code Imran - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated
Re: [Wicket-user] Output Stream Encoding
i think that is a global default..He does want to set the encoding based on the current request.See my previous reply.johanOn 9/6/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: you may remember that we lots of issues before we did that becausebrowsers behave differently. If someone would search the mail archivefor wicket, there were some links to articles which nicely describedthe issues associated. It is already implemented The default is UTF-8 and can be configured via getRequestCycleSettings().setResponseRequestEncoding(String)I do not want to use the default. I want to set the default endcoding. I do not want Wicket to set the default. I want Wicket touse what I set.I don't want to use the default = ok, set your own defaultI want to set the default endcoding: ok call getRequestCycleSettings().setResponseRequestEncoding(String)I do not want Wicket to set the default. I want Wicket to use what Iset. . Yes, callgetRequestCycleSettings().setResponseRequestEncoding(String) What are you trying to say?JuergenOn 9/6/06, Johan Compagner [EMAIL PROTECTED] wrote: Maybe this line: // Determine encoding final String encoding = application.getRequestCycleSettings().getResponseRequestEncoding(); in configureResponse should be transfered into its own protected overridable method: protected String getEncoding() {return application.getRequestCycleSettings().getResponseRequestEncoding(); } and then in configure response: // Determine encoding final String encoding = getEncoding(); then you can at runtime get the right encoding. johan On 9/6/06, Imran M Yousuf [EMAIL PROTECTED] wrote: Hi dear Users, I have a requirement that I need to cofigure the language encoding based on the Request Header accept-charset. If this is not available than we have our default charset. Now I am overriding the configureResponse() and NOT calling super.configureResponse(). But I am using the same lines used in the source code and please find the code used in configureResponse at the end of the posting. The problem I am facing is that when I visit the page through a wicket link I get the response output stream open in configureResponse, but when I refresh the pagethe output stream opens after configureResponse is executed. As a result in the first case I get garbage character and in the second case I get correct ouput. Please advice what to do. Currently I am cofiguring the output stream to Shift_JIS hard codedly. If I can get this flow to work then dynamically I will read the request's accept-charset and set it. It is a bit urgent so quick response will be appreciated. Thank you. code final RequestCycle cycle = getRequestCycle(); final Application application = cycle.getApplication(); final Response response = cycle.getResponse(); // Determine encoding @SuppressWarnings(unused) final String encoding = application.getRequestCycleSettings().getResponseRequestEncoding(); final String encoding1 = text/ + getMarkupType() + ; charset= + SHIFT_JIS; // Set content type based on markup type for page ( (WebResponse) response ).getHttpServletResponse().setCharacterEncoding( SHIFT_JIS ); ( (WebResponse) response ).getHttpServletResponse().setContentType( encoding1 ); ( (WebResponse) response ).getHttpServletResponse().setHeader( ACCEPT_CHARSET, SHIFT_JIS ); ( (WebResponse) response ).getHttpServletResponse().setHeader( ACCEPT_LANGUAGE, JA_JP ); // response.setContentType (text/ + getMarkupType() + ; charset= + // encoding); // Write out an xml declaration if the markup stream and settings allow final MarkupStream markupStream = findMarkupStream(); if( ( markupStream != null ) ( markupStream.getXmlDeclaration() != null ) ( application.getMarkupSettings().getStripXmlDeclarationFromOutput() == false ) ) { response.write( ?xml version='1.0' encoding=' ); response.write( SHIFT_JIS ); response.write( '? ); } System.out.println (( (WebResponse) response ).getHttpServletResponse().getCharacterEncoding()); // Set response locale from session locale response.setLocale( getSession().getLocale() ); /code Imran - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
Re: [Wicket-user] MouseOver Effect on DataTable
The combination won't work. Try this for the even rows: tr wicket:id=results class=even onmouseover=this.className='litupRowOver'; onmouseout=this.className='even'; and for the odd rows: tr wicket:id=results class=odd onmouseover=this.className='litupRowOver'; onmouseout=this.className='odd'; I removed the class litupRow as it contains no style in your example. If you want to maintain it do this: tr wicket:id=results class=litupRow even onmouseover=this.className='litupRowOver'; onmouseout=this.className='litupRow even'; and for the odd rows: tr wicket:id=results class=litupRow odd onmouseover=this.className='litupRowOver'; onmouseout=this.className='litupRow odd'; There are also javascript functions available on the net that allow you to add and remove classes from an element. Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ Gwyn Evans schreef: I'm not sure enought of CSS and tables to be able to say if there's going to be any issues with trying to have both this and the Odd/Even classes working in the table row, though! /Gwyn - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] MouseOver Effect on DataTable
The problem you've not addressed is how you set the different 'onmouseout' functions in the repeater... I expect it can be done by extending the way that the OddEvenItem itself extends things, though. What I was thinking about was if there'd be a way of putting in a span or similar, such that the mouseovers could just do their set clear, leaving the odd/even being set on the tr? While I don't know, I've got the impression that I'd run into issues as to what tags would actually be allowed where I'd need them in order to do that... /Gwyn On 06/09/06, Erik van Oosten [EMAIL PROTECTED] wrote: The combination won't work. Try this for the even rows: tr wicket:id=results class=even onmouseover=this.className='litupRowOver'; onmouseout=this.className='even'; and for the odd rows: tr wicket:id=results class=odd onmouseover=this.className='litupRowOver'; onmouseout=this.className='odd'; I removed the class litupRow as it contains no style in your example. If you want to maintain it do this: tr wicket:id=results class=litupRow even onmouseover=this.className='litupRowOver'; onmouseout=this.className='litupRow even'; and for the odd rows: tr wicket:id=results class=litupRow odd onmouseover=this.className='litupRowOver'; onmouseout=this.className='litupRow odd'; There are also javascript functions available on the net that allow you to add and remove classes from an element. Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ Gwyn Evans schreef: I'm not sure enought of CSS and tables to be able to say if there's going to be any issues with trying to have both this and the Odd/Even classes working in the table row, though! /Gwyn - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Download Wicket 1.2.2 now! - http://wicketframework.org - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Output Stream Encoding
but this is exactly what caused the problems as far as I remember. I'm not a encodings expert, but does UTF-8 not support JIS characters? Juergen On 9/6/06, Johan Compagner [EMAIL PROTECTED] wrote: i think that is a global default.. He does want to set the encoding based on the current request. See my previous reply. johan On 9/6/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: you may remember that we lots of issues before we did that because browsers behave differently. If someone would search the mail archive for wicket, there were some links to articles which nicely described the issues associated. It is already implemented The default is UTF-8 and can be configured via getRequestCycleSettings().setResponseRequestEncoding(String) I do not want to use the default. I want to set the default endcoding. I do not want Wicket to set the default. I want Wicket to use what I set. I don't want to use the default = ok, set your own default I want to set the default endcoding: ok call getRequestCycleSettings().setResponseRequestEncoding(String) I do not want Wicket to set the default. I want Wicket to use what I set. . Yes, call getRequestCycleSettings().setResponseRequestEncoding(String) What are you trying to say? Juergen On 9/6/06, Johan Compagner [EMAIL PROTECTED] wrote: Maybe this line: // Determine encoding final String encoding = application.getRequestCycleSettings().getResponseRequestEncoding(); in configureResponse should be transfered into its own protected overridable method: protected String getEncoding() { return application.getRequestCycleSettings().getResponseRequestEncoding(); } and then in configure response: // Determine encoding final String encoding = getEncoding(); then you can at runtime get the right encoding. johan On 9/6/06, Imran M Yousuf [EMAIL PROTECTED] wrote: Hi dear Users, I have a requirement that I need to cofigure the language encoding based on the Request Header accept-charset. If this is not available than we have our default charset. Now I am overriding the configureResponse() and NOT calling super.configureResponse(). But I am using the same lines used in the source code and please find the code used in configureResponse at the end of the posting. The problem I am facing is that when I visit the page through a wicket link I get the response output stream open in configureResponse, but when I refresh the page the output stream opens after configureResponse is executed. As a result in the first case I get garbage character and in the second case I get correct ouput. Please advice what to do. Currently I am cofiguring the output stream to Shift_JIS hard codedly. If I can get this flow to work then dynamically I will read the request's accept-charset and set it. It is a bit urgent so quick response will be appreciated. Thank you. code final RequestCycle cycle = getRequestCycle(); final Application application = cycle.getApplication(); final Response response = cycle.getResponse(); // Determine encoding @SuppressWarnings(unused) final String encoding = application.getRequestCycleSettings().getResponseRequestEncoding(); final String encoding1 = text/ + getMarkupType() + ; charset= + SHIFT_JIS; // Set content type based on markup type for page ( (WebResponse) response ).getHttpServletResponse().setCharacterEncoding( SHIFT_JIS ); ( (WebResponse) response ).getHttpServletResponse().setContentType( encoding1 ); ( (WebResponse) response ).getHttpServletResponse().setHeader( ACCEPT_CHARSET, SHIFT_JIS ); ( (WebResponse) response ).getHttpServletResponse().setHeader( ACCEPT_LANGUAGE, JA_JP ); // response.setContentType (text/ + getMarkupType() + ; charset= + // encoding); // Write out an xml declaration if the markup stream and settings allow final MarkupStream markupStream = findMarkupStream(); if( ( markupStream != null ) ( markupStream.getXmlDeclaration() != null ) ( application.getMarkupSettings().getStripXmlDeclarationFromOutput() == false ) ) { response.write( ?xml version='1.0' encoding=' ); response.write( SHIFT_JIS ); response.write( '? ); } System.out.println (( (WebResponse) response ).getHttpServletResponse().getCharacterEncoding()); // Set response locale from session locale response.setLocale( getSession().getLocale() ); /code Imran - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your
Re: [Wicket-user] MouseOver Effect on DataTable
Thank you for your help!! I did it that way now: public class MyDataTable extends DefaultDataTable { public MyDataTable(String id, List columns, SortableDataProvider dataProvider, int rowsPerPage) { super(id, columns, dataProvider, rowsPerPage); } protected Item newRowItem(String id, int index, IModel model) { return new MyOddEvenElement(id, index, model); } } public class MyOddEvenElement extends OddEvenItem { private String CLASS_EVEN = even; private String CLASS_ODD = odd; private String ON_MOUSE_OVER = this.className='litupRowOver';; private String ON_MOUSE_OUT_ODD = this.className='odd';; private String ON_MOUSE_OUT_EVEN = this.className='even';; public MyOddEvenElement(String id, int index, IModel model) { super(id, index, model); } protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put(class, (getIndex() % 2 == 0) ? CLASS_EVEN :CLASS_ODD); tag.put(onmouseover, ON_MOUSE_OVER); tag.put(onmouseout, (getIndex() % 2 == 0) ? ON_MOUSE_OUT_EVEN : ON_MOUSE_OUT_ODD); } } What do you think? Is that a reasonable approach? /thomas Gwyn Evans wrote: The problem you've not addressed is how you set the different 'onmouseout' functions in the repeater... I expect it can be done by extending the way that the OddEvenItem itself extends things, though. What I was thinking about was if there'd be a way of putting in a span or similar, such that the mouseovers could just do their set clear, leaving the odd/even being set on the tr? While I don't know, I've got the impression that I'd run into issues as to what tags would actually be allowed where I'd need them in order to do that... /Gwyn On 06/09/06, Erik van Oosten [EMAIL PROTECTED] wrote: The combination won't work. Try this for the even rows: tr wicket:id=results class=even onmouseover=this.className='litupRowOver'; onmouseout=this.className='even'; and for the odd rows: tr wicket:id=results class=odd onmouseover=this.className='litupRowOver'; onmouseout=this.className='odd'; I removed the class litupRow as it contains no style in your example. If you want to maintain it do this: tr wicket:id=results class=litupRow even onmouseover=this.className='litupRowOver'; onmouseout=this.className='litupRow even'; and for the odd rows: tr wicket:id=results class=litupRow odd onmouseover=this.className='litupRowOver'; onmouseout=this.className='litupRow odd'; There are also javascript functions available on the net that allow you to add and remove classes from an element. Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ Gwyn Evans schreef: I'm not sure enought of CSS and tables to be able to say if there's going to be any issues with trying to have both this and the Odd/Even classes working in the table row, though! /Gwyn - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Thomas Küchenthal Technical Director - Business Domain Management - LEMARIT Domain Management GmbH Werkstrasse 12 D - 24955 Harrislee / Flensburg - Tel.Nr: +49 (0)461 / 5050 35 - 90 Fax Nr: +49 (0)461 / 5050 35 - 35 E-Mail: [EMAIL PROTECTED] Domain: www.lemarit.com - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] MouseOver Effect on DataTable
that row has become needless, of course //tag.put(class, (getIndex() % 2 == 0) ? CLASS_EVEN : CLASS_ODD); /thomas Thomas Küchenthal wrote: Thank you for your help!! I did it that way now: public class MyDataTable extends DefaultDataTable { public MyDataTable(String id, List columns, SortableDataProvider dataProvider, int rowsPerPage) { super(id, columns, dataProvider, rowsPerPage); } protected Item newRowItem(String id, int index, IModel model) { return new MyOddEvenElement(id, index, model); } } public class MyOddEvenElement extends OddEvenItem { private String CLASS_EVEN = even; private String CLASS_ODD = odd; private String ON_MOUSE_OVER = this.className='litupRowOver';; private String ON_MOUSE_OUT_ODD = this.className='odd';; private String ON_MOUSE_OUT_EVEN = this.className='even';; public MyOddEvenElement(String id, int index, IModel model) { super(id, index, model); } protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put(class, (getIndex() % 2 == 0) ? CLASS_EVEN :CLASS_ODD); tag.put(onmouseover, ON_MOUSE_OVER); tag.put(onmouseout, (getIndex() % 2 == 0) ? ON_MOUSE_OUT_EVEN : ON_MOUSE_OUT_ODD); } } What do you think? Is that a reasonable approach? /thomas Gwyn Evans wrote: The problem you've not addressed is how you set the different 'onmouseout' functions in the repeater... I expect it can be done by extending the way that the OddEvenItem itself extends things, though. What I was thinking about was if there'd be a way of putting in a span or similar, such that the mouseovers could just do their set clear, leaving the odd/even being set on the tr? While I don't know, I've got the impression that I'd run into issues as to what tags would actually be allowed where I'd need them in order to do that... /Gwyn On 06/09/06, Erik van Oosten [EMAIL PROTECTED] wrote: The combination won't work. Try this for the even rows: tr wicket:id=results class=even onmouseover=this.className='litupRowOver'; onmouseout=this.className='even'; and for the odd rows: tr wicket:id=results class=odd onmouseover=this.className='litupRowOver'; onmouseout=this.className='odd'; I removed the class litupRow as it contains no style in your example. If you want to maintain it do this: tr wicket:id=results class=litupRow even onmouseover=this.className='litupRowOver'; onmouseout=this.className='litupRow even'; and for the odd rows: tr wicket:id=results class=litupRow odd onmouseover=this.className='litupRowOver'; onmouseout=this.className='litupRow odd'; There are also javascript functions available on the net that allow you to add and remove classes from an element. Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ Gwyn Evans schreef: I'm not sure enought of CSS and tables to be able to say if there's going to be any issues with trying to have both this and the Odd/Even classes working in the table row, though! /Gwyn - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Thomas Küchenthal Technical Director - Business Domain Management - LEMARIT Domain Management GmbH Werkstrasse 12 D - 24955 Harrislee / Flensburg - Tel.Nr: +49 (0)461 / 5050 35 - 90 Fax Nr: +49 (0)461 / 5050 35 - 35 E-Mail: [EMAIL PROTECTED] Domain: www.lemarit.com - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] MouseOver Effect on DataTable
I don't know about this particular class, but in general, an alternative is to use attribute modifiers: protected Item newRowItem(String id, int index, IModel model) { Item item = super.newRowItem(id, index, model); item.add(new SimpleAttributeModifier(class, (index % 2 == 0) ? even : odd); return new MyOddEvenElement(id, index, model); } Providing a custom class that overrides onComponentTag is slightly more efficient btw. Eelco On 9/6/06, Thomas Küchenthal [EMAIL PROTECTED] wrote: Thank you for your help!! I did it that way now: public class MyDataTable extends DefaultDataTable { public MyDataTable(String id, List columns, SortableDataProvider dataProvider, int rowsPerPage) { super(id, columns, dataProvider, rowsPerPage); } protected Item newRowItem(String id, int index, IModel model) { return new MyOddEvenElement(id, index, model); } } public class MyOddEvenElement extends OddEvenItem { private String CLASS_EVEN = even; private String CLASS_ODD = odd; private String ON_MOUSE_OVER = this.className='litupRowOver';; private String ON_MOUSE_OUT_ODD = this.className='odd';; private String ON_MOUSE_OUT_EVEN = this.className='even';; public MyOddEvenElement(String id, int index, IModel model) { super(id, index, model); } protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put(class, (getIndex() % 2 == 0) ? CLASS_EVEN :CLASS_ODD); tag.put(onmouseover, ON_MOUSE_OVER); tag.put(onmouseout, (getIndex() % 2 == 0) ? ON_MOUSE_OUT_EVEN : ON_MOUSE_OUT_ODD); } } What do you think? Is that a reasonable approach? /thomas Gwyn Evans wrote: The problem you've not addressed is how you set the different 'onmouseout' functions in the repeater... I expect it can be done by extending the way that the OddEvenItem itself extends things, though. What I was thinking about was if there'd be a way of putting in a span or similar, such that the mouseovers could just do their set clear, leaving the odd/even being set on the tr? While I don't know, I've got the impression that I'd run into issues as to what tags would actually be allowed where I'd need them in order to do that... /Gwyn On 06/09/06, Erik van Oosten [EMAIL PROTECTED] wrote: The combination won't work. Try this for the even rows: tr wicket:id=results class=even onmouseover=this.className='litupRowOver'; onmouseout=this.className='even'; and for the odd rows: tr wicket:id=results class=odd onmouseover=this.className='litupRowOver'; onmouseout=this.className='odd'; I removed the class litupRow as it contains no style in your example. If you want to maintain it do this: tr wicket:id=results class=litupRow even onmouseover=this.className='litupRowOver'; onmouseout=this.className='litupRow even'; and for the odd rows: tr wicket:id=results class=litupRow odd onmouseover=this.className='litupRowOver'; onmouseout=this.className='litupRow odd'; There are also javascript functions available on the net that allow you to add and remove classes from an element. Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ Gwyn Evans schreef: I'm not sure enought of CSS and tables to be able to say if there's going to be any issues with trying to have both this and the Odd/Even classes working in the table row, though! /Gwyn - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Thomas Küchenthal Technical Director - Business Domain Management - LEMARIT Domain Management GmbH Werkstrasse 12 D - 24955 Harrislee / Flensburg - Tel.Nr: +49 (0)461 / 5050 35 - 90 Fax Nr: +49 (0)461 / 5050 35 - 35 E-Mail: [EMAIL PROTECTED] Domain: www.lemarit.com - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere
Re: [Wicket-user] Using different HTML for the same Page class
I was actually wondering if packaging the markup and the Page classes in different jars would work. Something like: myapp-wicket.jar: com/myapp/MyApplication.class com/myapp/MySession.class com/myapp/page/Index.class com/myapp/page/Login.class myapp-store1-html.jar: com/myapp/page/Index.html com/myapp/page/Login.html myapp-store2-html.jar: com/myapp/page/Index.html com/myapp/page/Login.html I've never tried that myself. It might be a problem for class loaders to figure out how to load this if it comes from another jar. I think a global resource stream locator would work best for your case. Eelco - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] GridView cannot find components
i looked into it yesterday, and it seems like quete a bit of reshuffling in the entire hierearchy will be needed to make this work unfortunately. some concepts like itemreusestrategies no longer map as elegantly as they used to due to the constructor refactor so i foresee a lot of work going into the repeaters again. unfortunately i wont have the time in the near future so im not sure what to tell you :( -IgorOn 9/6/06, Ross Gardler [EMAIL PROTECTED] wrote: Igor Vaynberg wrote: you are not doing anything wrong, its the gridview. we are still working out how to make it work within 2.0. the problem is that gridview needs to be able to switch parents of its items - something that we are still unsure how to best implement in 2.0OK that's cool. Sorry, I forgot I was using a dev version. I should haveposted this to the dev list. Will see you over there (not that Iunderstand enough to be able to fix this for you yet). Ross-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] filtertable and checkgroup cannot work together
noep, no sample code. just try taking the original toolbar and removing the form it creates - and pass one into the constructor instead.-IgorOn 9/6/06, wq [EMAIL PROTECTED] wrote: thanks Igor!without a form, how can I get the filter input?have some sample codes?can I move the filterform out of the table?igor.vaynberg wrote: filter toolbar was not meant to be embedded in another form because it uses a form of its own, so for right now i would say that usecase is not supported. please add an rfe for it. if you want one right now then you have to create your own variant that doesnt use an embedded form. it would be pretty much a copy and paste job of the current toolbar but w/out the form. -Igor On 8/31/06, wq [EMAIL PROTECTED] wrote: HELP! HELP! wq wrote: final CheckGroup group=new CheckGroup(group, new ArrayList()); ... group.add(new CheckGroupSelector(groupselector)); .. SortableWapSrcDataProvider provider = new SortableWapSrcDataProvider(); DefaultDataTable table = new DefaultDataTable(table,columns,provider,30); table.addTopToolbar(new FilterToolbar(table,provider)); group.add(table); form.add(group); http://www.nabble.com/user-files/235815/Snap1.gif the html file is: form wicket:id=form span wicket:id=group nbsp;nbsp;nbsp;input type=checkbox wicket:id=groupselector全选/清除/inputbr/ table class=dataview cellspacing=0 wicket:id=table[table]/table /span input type=submit value=确定 / /form when I click the 'groupselector', the theckbox in filtertable cannot be checked. If the filtertoolbar is removed,all works fine. I suppose it is the filterform infiltertable thatblocks the groupselect _javascript_. How can I do? very thanks! -- View this message in context: http://www.nabble.com/filtertable-and-checkgroup-cannot-work-together-tf2195268.html#a6078904 Sent from the Wicket - User forum at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user--View this message in context: http://www.nabble.com/filtertable-and-checkgroup-cannot-work-together-tf2195268.html#a6170501Sent from the Wicket - User forum at Nabble.com.-Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] MouseOver Effect on DataTable
in this case not. depending on itemreuse strategy a row item can be even or odd - thats why oncomponenttag polls the item's index attribute.-IgorOn 9/6/06, Eelco Hillenius [EMAIL PROTECTED] wrote: I don't know about this particular class, but in general, analternative is to use attribute modifiers:protected Item newRowItem(String id, int index, IModel model) {Item item = super.newRowItem(id, index, model); item.add(new SimpleAttributeModifier(class, (index % 2 == 0) ?even : odd);return new MyOddEvenElement(id, index, model);}Providing a custom class that overrides onComponentTag is slightly more efficient btw.EelcoOn 9/6/06, Thomas Küchenthal [EMAIL PROTECTED] wrote: Thank you for your help!! I did it that way now: public class MyDataTable extends DefaultDataTable { public MyDataTable(String id, List columns, SortableDataProvider dataProvider, int rowsPerPage) { super(id, columns, dataProvider, rowsPerPage); } protected Item newRowItem(String id, int index, IModel model) { return new MyOddEvenElement(id, index, model); } } public class MyOddEvenElement extends OddEvenItem { private String CLASS_EVEN = even; private String CLASS_ODD = odd; private String > private String > private String this.className='even';; public MyOddEvenElement(String id, int index, IModel model) { super(id, index, model); } protected void onComponentTag(ComponentTag tag) { super.onComponentTag(tag); tag.put(class, (getIndex() % 2 == 0) ? CLASS_EVEN :CLASS_ODD); tag.put(onmouseover, ON_MOUSE_OVER); tag.put(onmouseout, (getIndex() % 2 == 0) ? ON_MOUSE_OUT_EVEN : ON_MOUSE_OUT_ODD); } } What do you think? Is that a reasonable approach? /thomas Gwyn Evans wrote: The problem you've not addressed is how you set the different 'onmouseout' functions in the repeater... I expect it can be done by extending the way that the OddEvenItem itself extends things, though. What I was thinking about was if there'd be a way of putting in a span or similar, such that the mouseovers could just do their set clear, leaving the odd/even being set on the tr?While I don't know, I've got the impression that I'd run into issues as to what tags would actually be allowed where I'd need them in order to do that... /Gwyn On 06/09/06, Erik van Oosten [EMAIL PROTECTED] wrote: The combination won't work. Try this for the even rows: tr wicket:id=results class=even ; > and for the odd rows: tr wicket:id=results class=odd > > I removed the class litupRow as it contains no style in your example. If you want to maintain it do this: tr wicket:id=results class=litupRow even ; even'; and for the odd rows: tr wicket:id=results class=litupRow odd > odd'; There are also _javascript_ functions available on the net that allow you to add and remove classes from an element. Regards, Erik. -- Erik van Oosten http://www.day-to-day-stuff.blogspot.com/ Gwyn Evans schreef: I'm not sure enought of CSS and tables to be able to say if there's going to be any issues with trying to have both this and the Odd/Even classes working in the table row, though! /Gwyn - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-- Thomas Küchenthal Technical Director - Business Domain Management -LEMARIT Domain Management GmbHWerkstrasse 12D - 24955 Harrislee / Flensburg- Tel.Nr: +49 (0)461 / 5050 35 - 90Fax Nr: +49 (0)461 / 5050 35 - 35E-Mail: [EMAIL PROTECTED]Domain: www.lemarit.com - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user-Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easierDownload IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___Wicket-user mailing list
Re: [Wicket-user] DateTable with alternating row color (Gwyn Evans)
Well, with the DefaultDataTable, it overrides DataTable's newRowItem() method in order to return an new OddEvenItem rather than a new Item. The OddEvenItem overrides on ComponentTag in order to add the odd or even class. Could you, however, have overridden one of these yourself? No, I don't override any mehtods, I just use the code as contained in wicket-examples 1.2.2 (just modified for the new wicket 2.0 constructor). In the Wicket 1.2 Examples I noticed that DefaultDataTable sets the odd/even attribute, and an external .CSS file interpreted the attribute to color the rows. I don't believe DataTable comes with any such row-coloring rules built in. So if you're using DefaultDataTable and not getting odd-even row colors, check your .CSS file. No, it is not a css problem. The odd/even atttributes are missing in the generated html code. Stefan winmail.dat- Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket-ajax and firefox 1.06
heh, i have never seen this error before. but just now i was using confluence - starred a page (which is done using their ajax stuff) - and bam got this error. how weird. i am using 1.5.0.6. i dont think this is a wicket related problem, it might be a bug in ffox. do you get this consistently? -IgorOn 9/6/06, Gwyn Evans [EMAIL PROTECTED] wrote: Really 1.0.6?Current version is 1.5.0.6, isn't it?/GwynOn 06/09/06, Tomer Mevorach [EMAIL PROTECTED] wrote: Hi all, wicket-ajax.js generates the following error on firefox 1.06: Error: [Exception... Component returned failure code: 0x80040111 (NS_ERROR_NOT_AVAILABLE) [nsIXMLHttpRequest.getResponseHeader] nsresult: 0x80040111 (NS_ERROR_NOT_AVAILABLE)location: JS frame :: http://localhost/provision/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js :: anonymous :: line 569data: no] Source File: http://localhost/provision/resources/wicket.ajax.AbstractDefaultAjaxBehavior/wicket-ajax.js Line: 569 Is wicket ajax supported for firefox 1.06? Regards, Tomer--Download Wicket 1.2.2 now! - http://wicketframework.org -Using Tomcat but need to do more? Need to support web services, security?Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimohttp://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___Wicket-user mailing listWicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Select row in tree
Is it possible to programatically select a row in the new tree component? I think the old version had setSelected(final DefaultMutableTreeNode node).Steve - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Select row in tree
sure it is. but you have to set it on tree state (Tree#getTreeState() - you'll find the method there. -Matej Steve Knight wrote: Is it possible to programatically select a row in the new tree component? I think the old version had setSelected(final DefaultMutableTreeNode node). Steve - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Output Stream Encoding
what could cause problems then? It should work i think, He wants to look what thebrowser sent it under accept encoding and use that encoding if possibleelse use the normal default (utf-8) On 9/6/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: but this is exactly what caused the problems as far as I remember. I'mnot a encodings expert, but does UTF-8 not support JIS characters?JuergenOn 9/6/06, Johan Compagner [EMAIL PROTECTED] wrote: i think that is a global default.. He does want to set the encoding based on the current request. See my previous reply. johan On 9/6/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: you may remember that we lots of issues before we did that because browsers behave differently. If someone would search the mail archive for wicket, there were some links to articles which nicely described the issues associated. It is already implemented The default is UTF-8 and can be configured via getRequestCycleSettings().setResponseRequestEncoding(String) I do not want to use the default. I want to set the default endcoding. I do not want Wicket to set the default. I want Wicket to use what I set. I don't want to use the default = ok, set your own default I want to set the default endcoding: ok call getRequestCycleSettings().setResponseRequestEncoding(String) I do not want Wicket to set the default. I want Wicket to use what I set. . Yes, call getRequestCycleSettings().setResponseRequestEncoding(String) What are you trying to say? Juergen On 9/6/06, Johan Compagner [EMAIL PROTECTED] wrote: Maybe this line: // Determine encoding final String encoding = application.getRequestCycleSettings().getResponseRequestEncoding(); in configureResponse should be transfered into its own protected overridable method: protected String getEncoding() { return application.getRequestCycleSettings().getResponseRequestEncoding(); } and then in configure response: // Determine encoding final String encoding = getEncoding(); then you can at runtime get the right encoding. johan On 9/6/06, Imran M Yousuf [EMAIL PROTECTED] wrote: Hi dear Users, I have a requirement that I need to cofigure the language encoding based on the Request Header accept-charset. If this is not available than we have our default charset. Now I am overriding the configureResponse() and NOT calling super.configureResponse(). But I am using the same lines used in the source code and please find the code used in configureResponse at the end of the posting. The problem I am facing is that when I visit the page through a wicket link I get the response output stream open in configureResponse, but when I refresh the pagethe output stream opens after configureResponse is executed. As a result in the first case I get garbage character and in the second case I get correct ouput. Please advice what to do. Currently I am cofiguring the output stream to Shift_JIS hard codedly. If I can get this flow to work then dynamically I will read the request's accept-charset and set it. It is a bit urgent so quick response will be appreciated. Thank you. code final RequestCycle cycle = getRequestCycle(); final Application application = cycle.getApplication(); final Response response = cycle.getResponse(); // Determine encoding @SuppressWarnings(unused) final String encoding = application.getRequestCycleSettings().getResponseRequestEncoding(); final String encoding1 = text/ + getMarkupType() + ; charset= + SHIFT_JIS; // Set content type based on markup type for page ( (WebResponse) response ).getHttpServletResponse().setCharacterEncoding( SHIFT_JIS ); ( (WebResponse) response ).getHttpServletResponse().setContentType( encoding1 ); ( (WebResponse) response ).getHttpServletResponse().setHeader( ACCEPT_CHARSET, SHIFT_JIS ); ( (WebResponse) response ).getHttpServletResponse().setHeader( ACCEPT_LANGUAGE, JA_JP ); // response.setContentType (text/ + getMarkupType() + ; charset= + // encoding); // Write out an xml declaration if the markup stream and settings allow final MarkupStream markupStream = findMarkupStream(); if( ( markupStream != null ) ( markupStream.getXmlDeclaration() != null ) ( application.getMarkupSettings().getStripXmlDeclarationFromOutput() == false ) ) { response.write( ?xml version='1.0' encoding=' ); response.write( SHIFT_JIS ); response.write ( '? ); } System.out.println (( (WebResponse) response ).getHttpServletResponse().getCharacterEncoding()); // Set response locale from session locale response.setLocale( getSession().getLocale() ); /code Imran - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642
Re: [Wicket-user] Output Stream Encoding
see http://www.wicket-wiki.org.uk/wiki/index.php/Markup_encoding and http://www.crazysquirrel.com/computing/general/form-encoding.jspx Juergen On 9/6/06, Johan Compagner [EMAIL PROTECTED] wrote: what could cause problems then? It should work i think, He wants to look what the browser sent it under accept encoding and use that encoding if possible else use the normal default (utf-8) On 9/6/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: but this is exactly what caused the problems as far as I remember. I'm not a encodings expert, but does UTF-8 not support JIS characters? Juergen On 9/6/06, Johan Compagner [EMAIL PROTECTED] wrote: i think that is a global default.. He does want to set the encoding based on the current request. See my previous reply. johan On 9/6/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: you may remember that we lots of issues before we did that because browsers behave differently. If someone would search the mail archive for wicket, there were some links to articles which nicely described the issues associated. It is already implemented The default is UTF-8 and can be configured via getRequestCycleSettings().setResponseRequestEncoding(String) I do not want to use the default. I want to set the default endcoding. I do not want Wicket to set the default. I want Wicket to use what I set. I don't want to use the default = ok, set your own default I want to set the default endcoding: ok call getRequestCycleSettings().setResponseRequestEncoding(String) I do not want Wicket to set the default. I want Wicket to use what I set. . Yes, call getRequestCycleSettings().setResponseRequestEncoding(String) What are you trying to say? Juergen On 9/6/06, Johan Compagner [EMAIL PROTECTED] wrote: Maybe this line: // Determine encoding final String encoding = application.getRequestCycleSettings().getResponseRequestEncoding(); in configureResponse should be transfered into its own protected overridable method: protected String getEncoding() { return application.getRequestCycleSettings().getResponseRequestEncoding(); } and then in configure response: // Determine encoding final String encoding = getEncoding(); then you can at runtime get the right encoding. johan On 9/6/06, Imran M Yousuf [EMAIL PROTECTED] wrote: Hi dear Users, I have a requirement that I need to cofigure the language encoding based on the Request Header accept-charset. If this is not available than we have our default charset. Now I am overriding the configureResponse() and NOT calling super.configureResponse(). But I am using the same lines used in the source code and please find the code used in configureResponse at the end of the posting. The problem I am facing is that when I visit the page through a wicket link I get the response output stream open in configureResponse, but when I refresh the page the output stream opens after configureResponse is executed. As a result in the first case I get garbage character and in the second case I get correct ouput. Please advice what to do. Currently I am cofiguring the output stream to Shift_JIS hard codedly. If I can get this flow to work then dynamically I will read the request's accept-charset and set it. It is a bit urgent so quick response will be appreciated. Thank you. code final RequestCycle cycle = getRequestCycle(); final Application application = cycle.getApplication(); final Response response = cycle.getResponse(); // Determine encoding @SuppressWarnings(unused) final String encoding = application.getRequestCycleSettings().getResponseRequestEncoding(); final String encoding1 = text/ + getMarkupType() + ; charset= + SHIFT_JIS; // Set content type based on markup type for page ( (WebResponse) response ).getHttpServletResponse().setCharacterEncoding( SHIFT_JIS ); ( (WebResponse) response ).getHttpServletResponse().setContentType( encoding1 ); ( (WebResponse) response ).getHttpServletResponse().setHeader( ACCEPT_CHARSET, SHIFT_JIS ); ( (WebResponse) response ).getHttpServletResponse().setHeader( ACCEPT_LANGUAGE, JA_JP ); // response.setContentType (text/ + getMarkupType() + ; charset= + // encoding); // Write out an xml declaration if the markup stream and settings allow final MarkupStream markupStream = findMarkupStream(); if( ( markupStream != null ) ( markupStream.getXmlDeclaration() != null ) ( application.getMarkupSettings().getStripXmlDeclarationFromOutput() == false ) ) {
Re: [Wicket-user] Output Stream Encoding
ahh ofcourse the problem is that the browser doesn't sent the encoding back to the serverin which it does sent the data.That is a problem yes. Because then you need to remember per session (== browser)what kind of encoding you did set. And use that again. (also in the WicketServlet.doGet())But i think the best thing is to use UTF-8 all the way. Why people want to use another encoding i don't know.johanOn 9/6/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: see http://www.wicket-wiki.org.uk/wiki/index.php/Markup_encoding and http://www.crazysquirrel.com/computing/general/form-encoding.jspxJuergenOn 9/6/06, Johan Compagner [EMAIL PROTECTED] wrote: what could cause problems then? It should work i think, He wants to look what the browser sent it under accept encoding and use that encoding if possible else use the normal default (utf-8)On 9/6/06, Juergen Donnerstag [EMAIL PROTECTED] wrote: but this is exactly what caused the problems as far as I remember. I'm not a encodings expert, but does UTF-8 not support JIS characters? Juergen On 9/6/06, Johan Compagner [EMAIL PROTECTED] wrote: i think that is a global default.. He does want to set the encoding based on the current request. See my previous reply.johanOn 9/6/06, Juergen Donnerstag [EMAIL PROTECTED] wrote:you may remember that we lots of issues before we did that because browsers behave differently. If someone would search the mail archive for wicket, there were some links to articles which nicely described the issues associated. It is already implemented The default is UTF-8 and can be configured via getRequestCycleSettings().setResponseRequestEncoding(String) I do not want to use the default. I want to set the default endcoding. I do not want Wicket to set the default. I want Wicket to use what I set. I don't want to use the default = ok, set your own default I want to set the default endcoding: ok call getRequestCycleSettings().setResponseRequestEncoding(String) I do not want Wicket to set the default. I want Wicket to use what I set. . Yes, call getRequestCycleSettings().setResponseRequestEncoding(String) What are you trying to say? Juergen On 9/6/06, Johan Compagner [EMAIL PROTECTED] wrote: Maybe this line: // Determine encoding final String encoding =application.getRequestCycleSettings().getResponseRequestEncoding(); in configureResponse should be transfered into its own protected overridable method: protected String getEncoding() { returnapplication.getRequestCycleSettings().getResponseRequestEncoding(); } and then in configure response: // Determine encoding final String encoding = getEncoding(); then you can at runtime get the right encoding. johan On 9/6/06, Imran M Yousuf [EMAIL PROTECTED] wrote: Hi dear Users, I have a requirement that I need to cofigure the language encoding based on the Request Header accept-charset. If this is not available than we have our default charset. Now I am overriding the configureResponse() and NOT calling super.configureResponse(). But I am using the same lines used in the source code and please find the code used in configureResponse at the end of the posting. The problem I am facing is that when I visit the page through a wicket link I get the response output stream open in configureResponse, but when I refresh the pagethe output stream opens after configureResponse is executed. As a result in the first case I get garbage character and in the second case I get correct ouput. Please advice what to do. Currently I am cofiguring the output stream to Shift_JIS hard codedly. If I can get this flow to work then dynamically I will read the request's accept-charset and set it. It is a bit urgent so quick response will be appreciated. Thank you. code final RequestCycle cycle = getRequestCycle(); final Application application = cycle.getApplication(); final Response response = cycle.getResponse(); // Determine encoding @SuppressWarnings(unused) final String encoding =application.getRequestCycleSettings().getResponseRequestEncoding(); final String encoding1 = text/ + getMarkupType() + ; charset= + SHIFT_JIS; // Set content type based on markup type for page ( (WebResponse) response ).getHttpServletResponse().setCharacterEncoding( SHIFT_JIS ); ( (WebResponse) response ).getHttpServletResponse().setContentType( encoding1 ); ( (WebResponse) response ).getHttpServletResponse().setHeader( ACCEPT_CHARSET, SHIFT_JIS ); ( (WebResponse) response ).getHttpServletResponse().setHeader( ACCEPT_LANGUAGE, JA_JP ); // response.setContentType (text/ + getMarkupType() + ; charset= + // encoding); // Write out an xml declaration if the markup stream and settings allow final MarkupStream markupStream = findMarkupStream(); if( ( markupStream != null ) ( markupStream.getXmlDeclaration()
Re: [Wicket-user] set attributes of HTML tag of page ?
i use 1.2 beta1 On Mon, 28 Aug 2006 10:43:20 +0430, Martijn Dashorst [EMAIL PROTECTED] wrote: If you use trunk, then you need to provide the parent as well in the constructor: WebMarkupContainer html = new WebMarkupContainer(this, html); where this is the page. -- Using Opera's revolutionary e-mail client: http://www.opera.com/mail/ - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Error: too much recursion for Date Widget
I found out that the error happens only when I listen to the onload on BODY tag. Here is my quickstart to prove it: Quick Start Set the date without refreshing, and then click on the link to refresh the panel. The js console will go: Error: too much recursion Source File: http://localhost:8080/quickstart/app/resources/wicket.extensions.markup.html.datepicker.DatePicker/calendar.js Line: 1796 I need the onload for body as I need to load parts of the page after the initial load. Please help me solve this problem. View this message in context: Re: Error: too much recursion for Date Widget Sent from the Wicket - User forum at Nabble.com. - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Auto extend webpage for plain html file ?
Hi all, Wicket provide very good page inheritance, and it's perfect for page layout.However, as far as I know, to apply layout to static, logicless page, we still need to create a blank page class: public class MyStaticPage extends MyBaseLayoutPage { //does nothing}body wicket:extend MyStaticPage content... /wicket:extend /bodyIs it possible we can skip such blank class ? how about configure specific directory and automatically apply Parent page ?in WebAppliction: autoExtend( somePackage, MyBaseLayoutPage.class );or just write parent class in template:body wicket:extend parent=com.example.MyBaseLayoutPage MyStaticPage content... /wicket:extend /body -- Ingram ChenJava [EMAIL PROTECTED]Institue of BioMedical Sciences Academia Sinica Taiwanblog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Auto extend webpage for plain html file ?
Actually I like this Page/Panel/Border class - markup enforcement because it means there is no magic, it is a very simple rule, it is very easy to understand. But this of course is my own opinion. If you come up with an implemention which can be added to wicket-extension, than it is fine by me. What that means however is that is must not require any changes to core (such as additional settings etc.) but be based on existing core hooks. I don't mind adding additional hooks if required though. Juergen On 9/7/06, Ingram Chen [EMAIL PROTECTED] wrote: Hi all, Wicket provide very good page inheritance, and it's perfect for page layout. However, as far as I know, to apply layout to static, logicless page, we still need to create a blank page class: public class MyStaticPage extends MyBaseLayoutPage { //does nothing } body wicket:extend MyStaticPage content... /wicket:extend /body Is it possible we can skip such blank class ? how about configure specific directory and automatically apply Parent page ? in WebAppliction: autoExtend( somePackage, MyBaseLayoutPage.class ); or just write parent class in template: body wicket:extend parent=com.example.MyBaseLayoutPage MyStaticPage content... /wicket:extend /body -- Ingram Chen Java [EMAIL PROTECTED] Institue of BioMedical Sciences Academia Sinica Taiwan blog: http://www.javaworld.com.tw/roller/page/ingramchen - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Using Tomcat but need to do more? Need to support web services, security? Get stuff done quickly with pre-integrated technology to make your job easier Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo http://sel.as-us.falkag.net/sel?cmd=lnkkid=120709bid=263057dat=121642 ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user