Re: Hi, had anyone tried to read the source code?
Hi, I also want to get some suggestion. 2008/8/29, shrimpywu <[EMAIL PROTECTED]>: > > > Hi, had anyone tried to read the source code? > > i am very interesting with play around with wicket, > so i really want to know how wicket do things > > but one thing i am stuck with is that, i check out the src code from svn, i > don`t know how to start or where to start to read the code. > > can any body give me some hint how to have a clear mind of the project, and > how to read the code? > -- > View this message in context: > http://www.nabble.com/Hi%2C-had-anyone-tried-to-read-the-source-code--tp19211288p19211288.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: Discussion on "Wicket Interface Speed-Up"
That's not true. this settings will generate urls like: /resources/[package+class]/javascript.js?lm=[lastmodified] read it again : "add Last Modified Time To Resource Reference Url" getApplication ().getResourceSettings ().setAddLastModifiedTimeToResourceReferenceUrl(true)?? It will not sent the "LastModified" header as you think. So whenever the resource changes the url changes, too. Try it out and see :-) I did test it in Firefox. There will be no "IfModified" requests from the browser. Everything will be completely cached in the browser until the resource has changed. Cheers Peter Am 29.08.2008 um 08:17 schrieb Stefan Fußenegger: honestly, no, I didn't. however, using last modified times still results in an HTTP request and a "304 Not Modified" reply. better than nothing, but client-side caching is still preferable. regards Peter Ertl wrote: @stefan: did you take into account getApplication ().getResourceSettings ().setAddLastModifiedTimeToResourceReferenceUrl(true)?? Cheers Peter Am 28.08.2008 um 18:20 schrieb Igor Vaynberg: sfussenegger now has access to wicketstuff... i dont know which parts should go into wicket itself, i can tell you that the part where you merge the files by listing them out upfront is probably not going to make it in because it breaks encapsulation... -igor On Thu, Aug 28, 2008 at 2:59 AM, Stefan Fußenegger <[EMAIL PROTECTED]> wrote: I just finished the 4th and last entry of my series "Wicket Interface Speed-Up" on my blog. To give a short summary: I investigated one of my apps with YSlow and started optimizing it's interface rendering speed [1]. Especially Wicket's way of handling resources, i.e. JS and CSS files, causes interfaces to load rather slowly. In my articles, I explain how to modify the cache interval [2], how to mount resources with a version (e.g. /css/all-1234.css) in order to use aggressive client-side caching (e.g. resources expire after a year) [3]. Finally, I show how to merge resources at application startup (using a class classed MergedResourceStream) to reduce the number of resources a client has to download [4], including code). I was able to increase interface loading times considerably, so it's surely worth a look. I feel that it would also be worth to discuss, whether this work could be part of upcoming Wicket versions. For the time being I'd like to make the code attached to [4] a wicketstuff project - sfussenegger needs commit access ;) - and wait for your feedback. The links: [1] http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up.html Wicket Interface Speed-Up [2] http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up-modifying.html Wicket Interface Speed-Up: Modifying Expires and Cache-Control Headers [3] http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up-caching.html Wicket Interface Speed-Up: Caching Resources Forever [4] http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up-merging.html Wicket Interface Speed-Up: Merging Resources for Fewer HTTP Requests - --- Stefan Fußenegger http://talk-on-tech.blogspot.com // looking for a nicer domain ;) -- View this message in context: http://www.nabble.com/Discussion-on-%22Wicket-Interface-Speed-Up%22-tp19197540p19197540.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - --- Stefan Fußenegger http://talk-on-tech.blogspot.com // looking for a nicer domain ;) -- View this message in context: http://www.nabble.com/Discussion-on-%22Wicket-Interface-Speed-Up%22-tp19197540p19214276.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with placeholder in string resource model (1.3.4)
Hello, I've just upgraded to wicket 1.3.4 from 1.3.1. Now, I have a problem with the string resource model. I've a code like this: Object[] parameters = new String[]{"param1", "param2", "param3", "param4"}; IModel model = new StringResourceModel("thekey", aComponent, null, parameters); The resource is: Blabla {0} blibli {1} bloblo {2} bleble {3} And now, only the first parameter is rendered... Others stays with no substitution. The rendered string is : "Blabla param1 blibli {1} bloblo {2} bleble {3}" Do I do something wrong? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Discussion on "Wicket Interface Speed-Up"
you're right with the encapsulation, but i feel that resource versioning (and aggressive client side caching) could be a nice addition to wicket. but maybe sombody can think of another way to reduce (merge) resources without breaking encapsulation ... btw, resource versioning also works with wicket-ajax.js and wicket-event.js: protected void init() { final String version = getFrameworkSettings().getVersion(); final String suffix = ("n/a".equals(version) ? "" : "-" + version) + ".js"; getSharedResources().add(WicketAjaxReference.INSTANCE.getName(), getResourceReference(WicketAjaxReference.class, "wicket-ajax.js").getResource()); mountSharedResourceWithCaching("/scripts/wicket-ajax" + suffix, WicketAjaxReference.INSTANCE.getSharedResourceKey()); getSharedResources().add(WicketEventReference.INSTANCE.getName(), getResourceReference(WicketEventReference.class, "wicket-event.js").getResource()); mountSharedResourceWithCaching("/scripts/wicket-event" + suffix, WicketEventReference.INSTANCE.getSharedResourceKey()); } // it's getting dirty ... protected void mountSharedResourceWithCaching(final String path, final String resourceKey) { mount(new SharedResourceRequestTargetUrlCodingStrategy(path, resourceKey) { public IRequestTarget decode(final RequestParameters requestParameters) { final SharedResourceRequestTarget t = (SharedResourceRequestTarget) super.decode(requestParameters); if (t != null) { // wrap target return new IRequestTarget() { public void detach(final RequestCycle requestCycle) {t.detach(requestCycle);} public void respond(final RequestCycle requestCycle) { t.respond(requestCycle); final WebResponse response = (WebResponse) requestCycle.getResponse(); response.setDateHeader("Expires", System.currentTimeMillis() + CACHE_DURATION * 1000L); response.setHeader("Cache-Control", "max-age=" + CACHE_DURATION); } }; } else { return null; } } }); } regards igor.vaynberg wrote: > > sfussenegger now has access to wicketstuff... > > i dont know which parts should go into wicket itself, i can tell you > that the part where you merge the files by listing them out upfront is > probably not going to make it in because it breaks encapsulation... > > -igor > > On Thu, Aug 28, 2008 at 2:59 AM, Stefan Fußenegger > <[EMAIL PROTECTED]> wrote: >> >> I just finished the 4th and last entry of my series "Wicket Interface >> Speed-Up" on my blog. To give a short summary: I investigated one of my >> apps >> with YSlow and started optimizing it's interface rendering speed [1]. >> Especially Wicket's way of handling resources, i.e. JS and CSS files, >> causes >> interfaces to load rather slowly. In my articles, I explain how to modify >> the cache interval [2], how to mount resources with a version (e.g. >> /css/all-1234.css) in order to use aggressive client-side caching (e.g. >> resources expire after a year) [3]. Finally, I show how to merge >> resources >> at application startup (using a class classed MergedResourceStream) to >> reduce the number of resources a client has to download [4], including >> code). I was able to increase interface loading times considerably, so >> it's >> surely worth a look. >> >> I feel that it would also be worth to discuss, whether this work could be >> part of upcoming Wicket versions. For the time being I'd like to make the >> code attached to [4] a wicketstuff project - sfussenegger needs commit >> access ;) - and wait for your feedback. >> >> The links: >> [1] >> http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up.html >> Wicket Interface Speed-Up >> [2] >> http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up-modifying.html >> Wicket Interface Speed-Up: Modifying Expires and Cache-Control Headers >> [3] >> http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up-caching.html >> Wicket Interface Speed-Up: Caching Resources Forever >> [4] >> http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up-merging.html >> Wicket Interface Speed-Up: Merging Resources for Fewer HTTP Requests >> >> - >> --- >> Stefan Fußenegger >> http://talk-on-tech.blogspot.com // looking for a nicer domain ;) >> -- >> View this message in context: >> http://www.nabble.com/Discussion-on-%22Wicket-Interface-Speed-Up%22-tp19197540p19197540.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - --- Stefan Fußenegger http://talk-on-tech.blogspot.com // looking for a nicer domain ;) -- View this message in context
Re: Assert that all models are detached at the end of the request?
you could extend the serializerchecker to check for underached models. We did something similar checking for non-transient Entity objects. Iirc the code is either on my blog or Eelco's blog. Martijn On 8/28/08, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > no, there is no easy way to "assert" that any model has been detached, > because they do not keep a flag. > > in 1.5 we will implement it so that all fields of a component that > implement idetachable are detached in the end of request via > reflection, so that should help somewhat. > > -igor > > On Thu, Aug 28, 2008 at 1:57 PM, Kaspar Fischer <[EMAIL PROTECTED]> > wrote: >> Is there an easy way to assert that all models are detached at the end of >> the >> request? >> >> It does not look so easy to check this as models do not have common base >> class >> where one could register them for a check... >> >> I often use an additional model in a component and store it as a member >> field; >> if I forgot to detach() this model in the onDetach() handler, I would have >> a >> "dangling" model. That caused me quite some trouble once and I want to >> avoid >> it in the future. >> >> Thanks, >> Kaspar >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.4 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Discussion on "Wicket Interface Speed-Up"
honestly, no, I didn't. however, using last modified times still results in an HTTP request and a "304 Not Modified" reply. better than nothing, but client-side caching is still preferable. regards Peter Ertl wrote: > > @stefan: did you take into account > > > getApplication > ().getResourceSettings > ().setAddLastModifiedTimeToResourceReferenceUrl(true)?? > > Cheers > Peter > > > Am 28.08.2008 um 18:20 schrieb Igor Vaynberg: > >> sfussenegger now has access to wicketstuff... >> >> i dont know which parts should go into wicket itself, i can tell you >> that the part where you merge the files by listing them out upfront is >> probably not going to make it in because it breaks encapsulation... >> >> -igor >> >> On Thu, Aug 28, 2008 at 2:59 AM, Stefan Fußenegger >> <[EMAIL PROTECTED]> wrote: >>> >>> I just finished the 4th and last entry of my series "Wicket Interface >>> Speed-Up" on my blog. To give a short summary: I investigated one >>> of my apps >>> with YSlow and started optimizing it's interface rendering speed [1]. >>> Especially Wicket's way of handling resources, i.e. JS and CSS >>> files, causes >>> interfaces to load rather slowly. In my articles, I explain how to >>> modify >>> the cache interval [2], how to mount resources with a version (e.g. >>> /css/all-1234.css) in order to use aggressive client-side caching >>> (e.g. >>> resources expire after a year) [3]. Finally, I show how to merge >>> resources >>> at application startup (using a class classed MergedResourceStream) >>> to >>> reduce the number of resources a client has to download [4], >>> including >>> code). I was able to increase interface loading times considerably, >>> so it's >>> surely worth a look. >>> >>> I feel that it would also be worth to discuss, whether this work >>> could be >>> part of upcoming Wicket versions. For the time being I'd like to >>> make the >>> code attached to [4] a wicketstuff project - sfussenegger needs >>> commit >>> access ;) - and wait for your feedback. >>> >>> The links: >>> [1] >>> http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up.html >>> Wicket Interface Speed-Up >>> [2] >>> http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up-modifying.html >>> Wicket Interface Speed-Up: Modifying Expires and Cache-Control >>> Headers >>> [3] >>> http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up-caching.html >>> Wicket Interface Speed-Up: Caching Resources Forever >>> [4] >>> http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up-merging.html >>> Wicket Interface Speed-Up: Merging Resources for Fewer HTTP Requests >>> >>> - >>> --- >>> Stefan Fußenegger >>> http://talk-on-tech.blogspot.com // looking for a nicer domain ;) >>> -- >>> View this message in context: >>> http://www.nabble.com/Discussion-on-%22Wicket-Interface-Speed-Up%22-tp19197540p19197540.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - --- Stefan Fußenegger http://talk-on-tech.blogspot.com // looking for a nicer domain ;) -- View this message in context: http://www.nabble.com/Discussion-on-%22Wicket-Interface-Speed-Up%22-tp19197540p19214276.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Discussion on "Wicket Interface Speed-Up"
nice we are also taking efforts in optimizing the webapp as we serve the resources (images/css/js) using 3rd content provider, our approach is different from your wicket-focus turning; but it indeeds give me some insight, thanks we also want to "merge" the css/js files, but after thinking carefully, it can't work for us because we are using "header contribution" at different panels, it is very flexible for the designers to split the css/js files according to the panel and they like it very much for the flexibility, maintainability and reusability however, since a panel can hide/show dynamically for the same url in different times (though not common, but we can't avoid that), that means we can't simply "merge" different css/js files from different panels for the given page Stefan Fußenegger wrote: > > I just finished the 4th and last entry of my series "Wicket Interface > Speed-Up" on my blog. To give a short summary: I investigated one of my > apps with YSlow and started optimizing it's interface rendering speed [1]. > Especially Wicket's way of handling resources, i.e. JS and CSS files, > causes interfaces to load rather slowly. In my articles, I explain how to > modify the cache interval [2], how to mount resources with a version (e.g. > /css/all-1234.css) in order to use aggressive client-side caching (e.g. > resources expire after a year) [3]. Finally, I show how to merge resources > at application startup (using a class classed MergedResourceStream) to > reduce the number of resources a client has to download [4], including > code). I was able to increase interface loading times considerably, so > it's surely worth a look. > > I feel that it would also be worth to discuss, whether this work could be > part of upcoming Wicket versions. For the time being I'd like to make the > code attached to [4] a wicketstuff project - sfussenegger needs commit > access ;) - and wait for your feedback. > > The links: > [1] > http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up.html > Wicket Interface Speed-Up > [2] > http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up-modifying.html > Wicket Interface Speed-Up: Modifying Expires and Cache-Control Headers > [3] > http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up-caching.html > Wicket Interface Speed-Up: Caching Resources Forever > [4] > http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up-merging.html > Wicket Interface Speed-Up: Merging Resources for Fewer HTTP Requests > -- View this message in context: http://www.nabble.com/Discussion-on-%22Wicket-Interface-Speed-Up%22-tp19197540p19212465.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with multiple browser windows and locked page maps
Only if multi window support is on (which is off by default with secondlevelcachesessionstore). The multiwindow support is more or less a hack, because HTTP doesn't really provide any means to detect browser windows/tabs. -Matej On Fri, Aug 29, 2008 at 2:28 AM, Jan Stette <[EMAIL PROTECTED]> wrote: > I agree, that's a better long-term fix. Even so, isn't it wrong that the > request from a new window is locked waiting on the other window's page map - > I would have thought the new window should have ended up with its own page > map? > > Regards, > Jan > > > 2008/8/29 Matej Knopp <[EMAIL PROTECTED]> > >> Hi, >> >> the long running process should be executed in separate thread. You >> can make wicket periodically poll for result (via ajax). It is >> generally not a good idea to run action that potentially can take long >> time to complete from a request thread. >> >> -Matej >> >> On Thu, Aug 28, 2008 at 8:42 PM, Jan Stette <[EMAIL PROTECTED]> wrote: >> > I'm having a problem with the following scenario: >> > >> > 1. A user logs into our Wicket application and starts using it. >> > 2. The user clicks on a link which kicks off a potentially long-running >> > operation. >> > 3. While getting bored with waiting for this to complete, the user >> copies >> > the URL from her browser into another tab or window. >> > >> > Unfortunately, at this stage, the second window is locked and times out >> with >> > a message "pagemap is still locked after one minute". >> > Should this work? Stepping through the second request in the debugger, >> it >> > appears that it this request has a page map name = null, as has the >> previous >> > request ( in the long running thread). So they seem to pick up the same >> > page map. Presumably this is wrong; multiple windows should each have >> their >> > unique page map? Or does the magic that detects new windows hence new >> page >> > maps to be created break down in cases like this? >> > >> > Regards, >> > Jan >> > >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with multiple browser windows and locked page maps
I agree, that's a better long-term fix. Even so, isn't it wrong that the request from a new window is locked waiting on the other window's page map - I would have thought the new window should have ended up with its own page map? Regards, Jan 2008/8/29 Matej Knopp <[EMAIL PROTECTED]> > Hi, > > the long running process should be executed in separate thread. You > can make wicket periodically poll for result (via ajax). It is > generally not a good idea to run action that potentially can take long > time to complete from a request thread. > > -Matej > > On Thu, Aug 28, 2008 at 8:42 PM, Jan Stette <[EMAIL PROTECTED]> wrote: > > I'm having a problem with the following scenario: > > > > 1. A user logs into our Wicket application and starts using it. > > 2. The user clicks on a link which kicks off a potentially long-running > > operation. > > 3. While getting bored with waiting for this to complete, the user > copies > > the URL from her browser into another tab or window. > > > > Unfortunately, at this stage, the second window is locked and times out > with > > a message "pagemap is still locked after one minute". > > Should this work? Stepping through the second request in the debugger, > it > > appears that it this request has a page map name = null, as has the > previous > > request ( in the long running thread). So they seem to pick up the same > > page map. Presumably this is wrong; multiple windows should each have > their > > unique page map? Or does the magic that detects new windows hence new > page > > maps to be created break down in cases like this? > > > > Regards, > > Jan > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Hi, had anyone tried to read the source code?
Hi, had anyone tried to read the source code? i am very interesting with play around with wicket, so i really want to know how wicket do things but one thing i am stuck with is that, i check out the src code from svn, i don`t know how to start or where to start to read the code. can any body give me some hint how to have a clear mind of the project, and how to read the code? -- View this message in context: http://www.nabble.com/Hi%2C-had-anyone-tried-to-read-the-source-code--tp19211288p19211288.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with multiple browser windows and locked page maps
Hi, the long running process should be executed in separate thread. You can make wicket periodically poll for result (via ajax). It is generally not a good idea to run action that potentially can take long time to complete from a request thread. -Matej On Thu, Aug 28, 2008 at 8:42 PM, Jan Stette <[EMAIL PROTECTED]> wrote: > I'm having a problem with the following scenario: > > 1. A user logs into our Wicket application and starts using it. > 2. The user clicks on a link which kicks off a potentially long-running > operation. > 3. While getting bored with waiting for this to complete, the user copies > the URL from her browser into another tab or window. > > Unfortunately, at this stage, the second window is locked and times out with > a message "pagemap is still locked after one minute". > Should this work? Stepping through the second request in the debugger, it > appears that it this request has a page map name = null, as has the previous > request ( in the long running thread). So they seem to pick up the same > page map. Presumably this is wrong; multiple windows should each have their > unique page map? Or does the magic that detects new windows hence new page > maps to be created break down in cases like this? > > Regards, > Jan > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Nested forms and IndicatingAjaxSubmitButton - multiple issues
Anyone? Ritesh Trivedi wrote: > > Hi, > > I have IndicatingAjaxButton in a form within a panel, panel itself is > inside another wrapper form on the enclosing page. Seems like I get really > weird behavior based on how many forms I have on the page - even though > the ajaxsubmit button's form hierarchy doesnt really change. > > Condition 1: > When there are 2 forms - indicatingajaxbutton -> form -> panel -> form -> > page > > In both IE and FF onSubmit() of the indicatingajaxbutton gets called > correctly - but entire page gets reloaded instead of just updating the > targets added to the ajaxtarget. Even though the containing page in the > above hierarchy is bookmarkable page In IE the url changes to > wicket:interface::10:2 etc. > > Condition 2: > When there are atleast 3 forms - indicatingajaxbutton -> form -> panel -> > form1, form2 (at the same level) -> page > > In FF most of the time it works correctly - although every now and then I > do see the loadabledetachable model load method not even called for the > updating components > > In IE 7 - Dont get a call to onSubmit() for indicatingajaxbutton at all > but the page reloads and again even though the page is bookmarkable - > wicket:interface url shows with the bumped version number > > Can someone think of any work arounds while this gets looked at? > > > -- View this message in context: http://www.nabble.com/Nested-forms-and-IndicatingAjaxSubmitButton---multiple-issues-tp19190442p19209963.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Assert that all models are detached at the end of the request?
no, there is no easy way to "assert" that any model has been detached, because they do not keep a flag. in 1.5 we will implement it so that all fields of a component that implement idetachable are detached in the end of request via reflection, so that should help somewhat. -igor On Thu, Aug 28, 2008 at 1:57 PM, Kaspar Fischer <[EMAIL PROTECTED]> wrote: > Is there an easy way to assert that all models are detached at the end of > the > request? > > It does not look so easy to check this as models do not have common base > class > where one could register them for a check... > > I often use an additional model in a component and store it as a member > field; > if I forgot to detach() this model in the onDetach() handler, I would have a > "dangling" model. That caused me quite some trouble once and I want to avoid > it in the future. > > Thanks, > Kaspar > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Assert that all models are detached at the end of the request?
Is there an easy way to assert that all models are detached at the end of the request? It does not look so easy to check this as models do not have common base class where one could register them for a check... I often use an additional model in a component and store it as a member field; if I forgot to detach() this model in the onDetach() handler, I would have a "dangling" model. That caused me quite some trouble once and I want to avoid it in the future. Thanks, Kaspar - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
FREE test www.yfrindia.com
http://www.yfrindia.com/ Take FREE online TEST, read FREE articles, download FREE presentation, use FREE source code, useful links, competition updates, free ONLINE TEST TESTS, http://www.yfrindia.com/resources/Tests free APTITUDE TEST, English Test, Computer Test, Mechanical Test, Electronics Test, Electrical Test, GATE preparation, CAT preparation, Job preparation, resume. http://www.yfrindia.com/ -- View this message in context: http://www.nabble.com/FREE-test-www.yfrindia.com-tp19207992p19207992.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Palette bind to attribute with value NULL
I have some problem with usin Palette, because my backend bean collection attributes sometimes is null. I have some client logic bind to this attribute a I need that it will be null. I understand that is not so good when Pallete creates some List impl. But I thought about it and I see solution in Palette's method for example called: protected List getDefaultList(). Everyone who need to have bean attribute null and if also need use this attribute for Palette component can override this method a return default the List impl, which need. Can you please think about it? Thanks you very much! Dave -- View this message in context: http://www.nabble.com/Palette-bind-to-attribute-with-value-NULL-tp19207763p19207763.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax testing with Selenium
OK, I've raised WICKET-1808 to track it. If anyone's interested, the following seems to work. Define the following script on your page: wicketAjaxBusy = function() { for (var c in Wicket.channelManager.channels) { if (Wicket.channelManager.channels[c].busy) { Wicket.Log.info("Channel " + c + " is busy"); return true; } } Wicket.Log.info("No channels are busy"); return false; } To wait for any AJAX calls to return, invoke the following Selenium API: selenium.waitForCondition("!selenium.browserbot.getCurrentWindow().wicketAjaxBusy()", "1"); jk On Thu, Aug 28, 2008 at 06:26:09PM +0200, Matej Knopp wrote: > Probably not for 1.3/1.4. We could have something like that for 1.5 > (where the ajax pipeline is completely new). > > -Matej > > On Thu, Aug 28, 2008 at 6:23 PM, John Krasnay <[EMAIL PROTECTED]> wrote: > > I'm testing some Ajax-y Wicket pages with Selenium. One challenge I'm > > having is finding a good expression to use in Selenium's > > waitForCondition. Right now I wait for the results of the Ajax call, > > e.g. an appropriate element appearing, but it's sometimes difficult to > > get this right, e.g. if a component is being replaced. > > > > I think an ideal approach would be to hook into Wicket's Ajax channels > > and wait for them to be empty before proceeding. I've looked into > > wicket-ajax.js and it looks like I should be able to loop through > > Wicket.channelManager.channels and check the busy slot on each. > > > > Has anyone else tried this? Does it sound like a good approach? Would it > > be a good idea for wicket-ajax.js to provide a method for checking this? > > > > jk > > > > - > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Problem with multiple browser windows and locked page maps
I'm having a problem with the following scenario: 1. A user logs into our Wicket application and starts using it. 2. The user clicks on a link which kicks off a potentially long-running operation. 3. While getting bored with waiting for this to complete, the user copies the URL from her browser into another tab or window. Unfortunately, at this stage, the second window is locked and times out with a message "pagemap is still locked after one minute". Should this work? Stepping through the second request in the debugger, it appears that it this request has a page map name = null, as has the previous request ( in the long running thread). So they seem to pick up the same page map. Presumably this is wrong; multiple windows should each have their unique page map? Or does the magic that detects new windows hence new page maps to be created break down in cases like this? Regards, Jan
Reading Wicket properties file WITH substitutions
Hi there, I'm looking for suggestions as how best to read a Wicket .properties file AND include the text substitutions. Specifically I've overriden certain validation error messages in a properties file e.g StringValidator.range=${label} must be between ${minimum} and ${maximum} characters long As expected, this works fine from the front end. However, when I try to access the value FROM A TEST using... props = (PropertyResourceBundle)ResourceBundle.getBundle("my.props.file.here"); props.getString(key); I get the literal string i.e. with the ${xxx} entries instead of the actual values. I understand that this is also as expected as its just grabbing the property. However I'm wondering how best to invoke the wicket pre-processing? Thanks, Neil. -- View this message in context: http://www.nabble.com/Reading-Wicket-properties-file-WITH-substitutions-tp19205222p19205222.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Discussion on "Wicket Interface Speed-Up"
@stefan: did you take into account getApplication ().getResourceSettings ().setAddLastModifiedTimeToResourceReferenceUrl(true)?? Cheers Peter Am 28.08.2008 um 18:20 schrieb Igor Vaynberg: sfussenegger now has access to wicketstuff... i dont know which parts should go into wicket itself, i can tell you that the part where you merge the files by listing them out upfront is probably not going to make it in because it breaks encapsulation... -igor On Thu, Aug 28, 2008 at 2:59 AM, Stefan Fußenegger <[EMAIL PROTECTED]> wrote: I just finished the 4th and last entry of my series "Wicket Interface Speed-Up" on my blog. To give a short summary: I investigated one of my apps with YSlow and started optimizing it's interface rendering speed [1]. Especially Wicket's way of handling resources, i.e. JS and CSS files, causes interfaces to load rather slowly. In my articles, I explain how to modify the cache interval [2], how to mount resources with a version (e.g. /css/all-1234.css) in order to use aggressive client-side caching (e.g. resources expire after a year) [3]. Finally, I show how to merge resources at application startup (using a class classed MergedResourceStream) to reduce the number of resources a client has to download [4], including code). I was able to increase interface loading times considerably, so it's surely worth a look. I feel that it would also be worth to discuss, whether this work could be part of upcoming Wicket versions. For the time being I'd like to make the code attached to [4] a wicketstuff project - sfussenegger needs commit access ;) - and wait for your feedback. The links: [1] http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up.html Wicket Interface Speed-Up [2] http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up-modifying.html Wicket Interface Speed-Up: Modifying Expires and Cache-Control Headers [3] http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up-caching.html Wicket Interface Speed-Up: Caching Resources Forever [4] http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up-merging.html Wicket Interface Speed-Up: Merging Resources for Fewer HTTP Requests - --- Stefan Fußenegger http://talk-on-tech.blogspot.com // looking for a nicer domain ;) -- View this message in context: http://www.nabble.com/Discussion-on-%22Wicket-Interface-Speed-Up%22-tp19197540p19197540.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getDefaultModel
i dont think the problem is as big as you think the reason why we had to do it this way and introduce getdefaultmodel was because you cannot override a typed method eg if component has setmodel(imodel model) in a subclass you cannot have setmodel(imodel model) if you look at wicket-1.3 code it all makes good sense. unfortunately generics have undesired sideeffects, and what happened in 1.4 seems to be one of them. -igor On Thu, Aug 28, 2008 at 9:31 AM, jWeekend <[EMAIL PROTECTED]> wrote: > > Igor, > > I wonder if this may actually be an indication that Component is in fact > being used as a convenience for implementation inheritance rather than as a > clean, cohesive abstraction and true super type? And, maybe the name is not > exactly representative of what Component currently is. But, it is so well > accepted and ingrained that it may be hard to think of things being > different at such a fundamental level. > > Maybe in 1.5 we can have 2 (I think) interfaces that "Component"s that do > have models implement; one for components that have models because they use > them and a second for components that just carry a model around for their > children eg as a CPM for the kids (CPM is a indeed a nice convenience to > reduce code but these conveniences/shortcuts for application developers are > probably one of the root causes of some uncomfortable design decisions). > Some components may implement both interfaces. The level at which these > interfaces are introduced into the hierarchy would be the interesting > question in such a design (even architectural) refactoring. > > Clearly this all would need to be properly thought through and it could > potentially break quite a lot of stuff, but not necessarily if the right > bits are pulled out of Component (or whatever it becomes called), up or > sideways, and introduced high enough above "concrete" components. Do you > think it makes any sense? > > Regards - Cemal > http://jWeekend.co.uk > > igor.vaynberg wrote: >> >> all components have a "default" model slot. this model is not used by >> the component, it is just a container that is provided that provides >> convinience such as detaching, etc. >> >> compare a webmarkupcontainer to a formcomponent: >> >> webmarkupcontainer does nothing with the model, but it is convinient >> to still have a slot so users can easily set a model used by >> subclasses or other usecases. >> >> formcomponents actually use their model, eg they do not work without >> it, thus they have a get/setmodel methods (in addition to >> get/setdefaultmodel). in a formcomponent get/setmodel, however, are >> generified because that information is known and useful. >> >> in an ideal world we would not have the default model slot. you would >> simply create an imodel field for a component if it needed a model, >> but because of the way our compound models work this is a bit >> tricky...something to think about for 1.5. >> >> -igor >> >> On Thu, Aug 28, 2008 at 7:30 AM, jWeekend <[EMAIL PROTECTED]> >> wrote: >>> >>> In Wicket 1.4m3, what does the "Default" in Component's new >>> getDefaultModel() >>> method mean. >>> I don't want to reignite the generics debate; this is just a question >>> about >>> good naming. This name makes it sound like all components are initialised >>> with a "default" model in place, or it could possibly be >>> taken/interpreted >>> in other, misleading/confusing ways. >>> >>> Regards - Cemal >>> http://jWeekend.co.uk http://jWeekend.co.uk >>> -- >>> View this message in context: >>> http://www.nabble.com/getDefaultModel-tp19201841p19201841.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> > > -- > View this message in context: > http://www.nabble.com/getDefaultModel-tp19201841p19204284.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: application context in links
see ContextImage for an example -igor On Thu, Aug 28, 2008 at 9:23 AM, jnesbitt <[EMAIL PROTECTED]> wrote: > > I'd like to link to static documents in the same web app that are named in > the database. Currently I'm using ExternalLink but that obviously doesn't > use the application context in it's path. This would be a nice to have for > development purposes. > > Is there a way for me to get the application context path so that I don't > have to hard code it? Am I using the right type of link to do this? > > Thanks > > Jason > -- > View this message in context: > http://www.nabble.com/application-context-in-links-tp19204109p19204109.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getDefaultModel
Igor, I wonder if this may actually be an indication that Component is in fact being used as a convenience for implementation inheritance rather than as a clean, cohesive abstraction and true super type? And, maybe the name is not exactly representative of what Component currently is. But, it is so well accepted and ingrained that it may be hard to think of things being different at such a fundamental level. Maybe in 1.5 we can have 2 (I think) interfaces that "Component"s that do have models implement; one for components that have models because they use them and a second for components that just carry a model around for their children eg as a CPM for the kids (CPM is a indeed a nice convenience to reduce code but these conveniences/shortcuts for application developers are probably one of the root causes of some uncomfortable design decisions). Some components may implement both interfaces. The level at which these interfaces are introduced into the hierarchy would be the interesting question in such a design (even architectural) refactoring. Clearly this all would need to be properly thought through and it could potentially break quite a lot of stuff, but not necessarily if the right bits are pulled out of Component (or whatever it becomes called), up or sideways, and introduced high enough above "concrete" components. Do you think it makes any sense? Regards - Cemal http://jWeekend.co.uk igor.vaynberg wrote: > > all components have a "default" model slot. this model is not used by > the component, it is just a container that is provided that provides > convinience such as detaching, etc. > > compare a webmarkupcontainer to a formcomponent: > > webmarkupcontainer does nothing with the model, but it is convinient > to still have a slot so users can easily set a model used by > subclasses or other usecases. > > formcomponents actually use their model, eg they do not work without > it, thus they have a get/setmodel methods (in addition to > get/setdefaultmodel). in a formcomponent get/setmodel, however, are > generified because that information is known and useful. > > in an ideal world we would not have the default model slot. you would > simply create an imodel field for a component if it needed a model, > but because of the way our compound models work this is a bit > tricky...something to think about for 1.5. > > -igor > > On Thu, Aug 28, 2008 at 7:30 AM, jWeekend <[EMAIL PROTECTED]> > wrote: >> >> In Wicket 1.4m3, what does the "Default" in Component's new >> getDefaultModel() >> method mean. >> I don't want to reignite the generics debate; this is just a question >> about >> good naming. This name makes it sound like all components are initialised >> with a "default" model in place, or it could possibly be >> taken/interpreted >> in other, misleading/confusing ways. >> >> Regards - Cemal >> http://jWeekend.co.uk http://jWeekend.co.uk >> -- >> View this message in context: >> http://www.nabble.com/getDefaultModel-tp19201841p19201841.html >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > -- View this message in context: http://www.nabble.com/getDefaultModel-tp19201841p19204284.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax testing with Selenium
Probably not for 1.3/1.4. We could have something like that for 1.5 (where the ajax pipeline is completely new). -Matej On Thu, Aug 28, 2008 at 6:23 PM, John Krasnay <[EMAIL PROTECTED]> wrote: > I'm testing some Ajax-y Wicket pages with Selenium. One challenge I'm > having is finding a good expression to use in Selenium's > waitForCondition. Right now I wait for the results of the Ajax call, > e.g. an appropriate element appearing, but it's sometimes difficult to > get this right, e.g. if a component is being replaced. > > I think an ideal approach would be to hook into Wicket's Ajax channels > and wait for them to be empty before proceeding. I've looked into > wicket-ajax.js and it looks like I should be able to loop through > Wicket.channelManager.channels and check the busy slot on each. > > Has anyone else tried this? Does it sound like a good approach? Would it > be a good idea for wicket-ajax.js to provide a method for checking this? > > jk > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Ajax testing with Selenium
I'm testing some Ajax-y Wicket pages with Selenium. One challenge I'm having is finding a good expression to use in Selenium's waitForCondition. Right now I wait for the results of the Ajax call, e.g. an appropriate element appearing, but it's sometimes difficult to get this right, e.g. if a component is being replaced. I think an ideal approach would be to hook into Wicket's Ajax channels and wait for them to be empty before proceeding. I've looked into wicket-ajax.js and it looks like I should be able to loop through Wicket.channelManager.channels and check the busy slot on each. Has anyone else tried this? Does it sound like a good approach? Would it be a good idea for wicket-ajax.js to provide a method for checking this? jk - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
application context in links
I'd like to link to static documents in the same web app that are named in the database. Currently I'm using ExternalLink but that obviously doesn't use the application context in it's path. This would be a nice to have for development purposes. Is there a way for me to get the application context path so that I don't have to hard code it? Am I using the right type of link to do this? Thanks Jason -- View this message in context: http://www.nabble.com/application-context-in-links-tp19204109p19204109.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Discussion on "Wicket Interface Speed-Up"
sfussenegger now has access to wicketstuff... i dont know which parts should go into wicket itself, i can tell you that the part where you merge the files by listing them out upfront is probably not going to make it in because it breaks encapsulation... -igor On Thu, Aug 28, 2008 at 2:59 AM, Stefan Fußenegger <[EMAIL PROTECTED]> wrote: > > I just finished the 4th and last entry of my series "Wicket Interface > Speed-Up" on my blog. To give a short summary: I investigated one of my apps > with YSlow and started optimizing it's interface rendering speed [1]. > Especially Wicket's way of handling resources, i.e. JS and CSS files, causes > interfaces to load rather slowly. In my articles, I explain how to modify > the cache interval [2], how to mount resources with a version (e.g. > /css/all-1234.css) in order to use aggressive client-side caching (e.g. > resources expire after a year) [3]. Finally, I show how to merge resources > at application startup (using a class classed MergedResourceStream) to > reduce the number of resources a client has to download [4], including > code). I was able to increase interface loading times considerably, so it's > surely worth a look. > > I feel that it would also be worth to discuss, whether this work could be > part of upcoming Wicket versions. For the time being I'd like to make the > code attached to [4] a wicketstuff project - sfussenegger needs commit > access ;) - and wait for your feedback. > > The links: > [1] http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up.html > Wicket Interface Speed-Up > [2] > http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up-modifying.html > Wicket Interface Speed-Up: Modifying Expires and Cache-Control Headers > [3] > http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up-caching.html > Wicket Interface Speed-Up: Caching Resources Forever > [4] > http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up-merging.html > Wicket Interface Speed-Up: Merging Resources for Fewer HTTP Requests > > - > --- > Stefan Fußenegger > http://talk-on-tech.blogspot.com // looking for a nicer domain ;) > -- > View this message in context: > http://www.nabble.com/Discussion-on-%22Wicket-Interface-Speed-Up%22-tp19197540p19197540.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat crashes out of memory
be that as it may, these two lines tell you that wicket is not processing the request... org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:246) at -igor On Thu, Aug 28, 2008 at 8:59 AM, Serkan Camurcuoglu <[EMAIL PROTECTED]> wrote: > in my experience it's not possible to determine the cause of an outofmemory > error by looking at the stack trace.. you should use a profiler and find out > where the memory leak is.. > > > Igor Vaynberg wrote: >> >> this is not caused by wicket as is clear from the stacktrace... >> >> -igor >> >> On Thu, Aug 28, 2008 at 8:39 AM, Mathias P.W Nilsson >> <[EMAIL PROTECTED]> wrote: >> >>> >>> Hi! >>> >>> My tomcat crashes with out of memory error. >>> >>> I have set this in my startup.bat file >>> set JAVA_OPTS=-Xms1024m -Xmx1024m -XX:MaxPermSize=256m >>> >>> Any other pointers? here is some logging >>> >>> 2008-aug-28 17:26:18 org.apache.catalina.core.StandardWrapperValve invoke >>> ALLVARLIG: Servlet.service() for servlet ItemResourceServlet threw >>> exception >>> java.lang.OutOfMemoryError >>> at java.util.zip.Deflater.init(Native Method) >>> at java.util.zip.Deflater.(Deflater.java:123) >>> at java.util.zip.GZIPOutputStream.(GZIPOutputStream.java:46) >>> at java.util.zip.GZIPOutputStream.(GZIPOutputStream.java:58) >>> at >>> >>> se.edgesoft.hairless.web.optimization.GZIPResponseStream.(GZIPResponseStream.java:23) >>> at >>> >>> se.edgesoft.hairless.web.optimization.GZIPResponseWrapper.createOutputStream(GZIPResponseWrapper.java:26) >>> at >>> >>> se.edgesoft.hairless.web.optimization.GZIPResponseWrapper.getOutputStream(GZIPResponseWrapper.java:48) >>> at >>> >>> se.edgesoft.hairless.web.resource.ItemResourceServlet.writeResource(ItemResourceServlet.java:96) >>> at >>> >>> se.edgesoft.hairless.web.resource.ItemResourceServlet.doGet(ItemResourceServlet.java:82) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) >>> at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) >>> at >>> >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >>> at >>> >>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>> at >>> >>> org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:246) >>> at >>> >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >>> at >>> >>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>> at >>> >>> org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:111) >>> at >>> >>> org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) >>> at >>> >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >>> at >>> >>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>> at >>> >>> se.edgesoft.hairless.web.optimization.GZIPFilter.doFilter(GZIPFilter.java:34) >>> at >>> >>> org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >>> at >>> >>> org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >>> at >>> >>> org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >>> at >>> >>> org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) >>> at >>> >>> org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) >>> at >>> >>> org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) >>> at >>> >>> org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >>> at >>> >>> org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >>> at >>> >>> org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) >>> at >>> >>> org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) >>> at >>> >>> org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) >>> at >>> org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) >>> at java.lang.Thread.run(Thread.java:619) >>> -- >>> View this message in context: >>> http://www.nabble.com/Tomcat-crashes-out-of-memory-tp19203247p19203247.html >>> Sent from the Wicket - User mailing list archive at Nabble.com. >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> --
Re: Tomcat crashes out of memory
in my experience it's not possible to determine the cause of an outofmemory error by looking at the stack trace.. you should use a profiler and find out where the memory leak is.. Igor Vaynberg wrote: this is not caused by wicket as is clear from the stacktrace... -igor On Thu, Aug 28, 2008 at 8:39 AM, Mathias P.W Nilsson <[EMAIL PROTECTED]> wrote: Hi! My tomcat crashes with out of memory error. I have set this in my startup.bat file set JAVA_OPTS=-Xms1024m -Xmx1024m -XX:MaxPermSize=256m Any other pointers? here is some logging 2008-aug-28 17:26:18 org.apache.catalina.core.StandardWrapperValve invoke ALLVARLIG: Servlet.service() for servlet ItemResourceServlet threw exception java.lang.OutOfMemoryError at java.util.zip.Deflater.init(Native Method) at java.util.zip.Deflater.(Deflater.java:123) at java.util.zip.GZIPOutputStream.(GZIPOutputStream.java:46) at java.util.zip.GZIPOutputStream.(GZIPOutputStream.java:58) at se.edgesoft.hairless.web.optimization.GZIPResponseStream.(GZIPResponseStream.java:23) at se.edgesoft.hairless.web.optimization.GZIPResponseWrapper.createOutputStream(GZIPResponseWrapper.java:26) at se.edgesoft.hairless.web.optimization.GZIPResponseWrapper.getOutputStream(GZIPResponseWrapper.java:48) at se.edgesoft.hairless.web.resource.ItemResourceServlet.writeResource(ItemResourceServlet.java:96) at se.edgesoft.hairless.web.resource.ItemResourceServlet.doGet(ItemResourceServlet.java:82) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:246) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:111) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at se.edgesoft.hairless.web.optimization.GZIPFilter.doFilter(GZIPFilter.java:34) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) -- View this message in context: http://www.nabble.com/Tomcat-crashes-out-of-memory-tp19203247p19203247.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Tomcat crashes out of memory
this is not caused by wicket as is clear from the stacktrace... -igor On Thu, Aug 28, 2008 at 8:39 AM, Mathias P.W Nilsson <[EMAIL PROTECTED]> wrote: > > Hi! > > My tomcat crashes with out of memory error. > > I have set this in my startup.bat file > set JAVA_OPTS=-Xms1024m -Xmx1024m -XX:MaxPermSize=256m > > Any other pointers? here is some logging > > 2008-aug-28 17:26:18 org.apache.catalina.core.StandardWrapperValve invoke > ALLVARLIG: Servlet.service() for servlet ItemResourceServlet threw exception > java.lang.OutOfMemoryError >at java.util.zip.Deflater.init(Native Method) >at java.util.zip.Deflater.(Deflater.java:123) >at java.util.zip.GZIPOutputStream.(GZIPOutputStream.java:46) >at java.util.zip.GZIPOutputStream.(GZIPOutputStream.java:58) >at > se.edgesoft.hairless.web.optimization.GZIPResponseStream.(GZIPResponseStream.java:23) >at > se.edgesoft.hairless.web.optimization.GZIPResponseWrapper.createOutputStream(GZIPResponseWrapper.java:26) >at > se.edgesoft.hairless.web.optimization.GZIPResponseWrapper.getOutputStream(GZIPResponseWrapper.java:48) >at > se.edgesoft.hairless.web.resource.ItemResourceServlet.writeResource(ItemResourceServlet.java:96) >at > se.edgesoft.hairless.web.resource.ItemResourceServlet.doGet(ItemResourceServlet.java:82) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) >at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) >at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) >at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >at > org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:246) >at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >at > org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:111) >at > org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) >at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >at > se.edgesoft.hairless.web.optimization.GZIPFilter.doFilter(GZIPFilter.java:34) >at > org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) >at > org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) >at > org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) >at > org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) >at > org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) >at > org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) >at > org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) >at > org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) >at > org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) >at > org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) >at > org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) >at > org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) >at java.lang.Thread.run(Thread.java:619) > -- > View this message in context: > http://www.nabble.com/Tomcat-crashes-out-of-memory-tp19203247p19203247.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: getDefaultModel
all components have a "default" model slot. this model is not used by the component, it is just a container that is provided that provides convinience such as detaching, etc. compare a webmarkupcontainer to a formcomponent: webmarkupcontainer does nothing with the model, but it is convinient to still have a slot so users can easily set a model used by subclasses or other usecases. formcomponents actually use their model, eg they do not work without it, thus they have a get/setmodel methods (in addition to get/setdefaultmodel). in a formcomponent get/setmodel, however, are generified because that information is known and useful. in an ideal world we would not have the default model slot. you would simply create an imodel field for a component if it needed a model, but because of the way our compound models work this is a bit tricky...something to think about for 1.5. -igor On Thu, Aug 28, 2008 at 7:30 AM, jWeekend <[EMAIL PROTECTED]> wrote: > > In Wicket 1.4m3, what does the "Default" in Component's new getDefaultModel() > method mean. > I don't want to reignite the generics debate; this is just a question about > good naming. This name makes it sound like all components are initialised > with a "default" model in place, or it could possibly be taken/interpreted > in other, misleading/confusing ways. > > Regards - Cemal > http://jWeekend.co.uk http://jWeekend.co.uk > -- > View this message in context: > http://www.nabble.com/getDefaultModel-tp19201841p19201841.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Tomcat crashes out of memory
Hi! My tomcat crashes with out of memory error. I have set this in my startup.bat file set JAVA_OPTS=-Xms1024m -Xmx1024m -XX:MaxPermSize=256m Any other pointers? here is some logging 2008-aug-28 17:26:18 org.apache.catalina.core.StandardWrapperValve invoke ALLVARLIG: Servlet.service() for servlet ItemResourceServlet threw exception java.lang.OutOfMemoryError at java.util.zip.Deflater.init(Native Method) at java.util.zip.Deflater.(Deflater.java:123) at java.util.zip.GZIPOutputStream.(GZIPOutputStream.java:46) at java.util.zip.GZIPOutputStream.(GZIPOutputStream.java:58) at se.edgesoft.hairless.web.optimization.GZIPResponseStream.(GZIPResponseStream.java:23) at se.edgesoft.hairless.web.optimization.GZIPResponseWrapper.createOutputStream(GZIPResponseWrapper.java:26) at se.edgesoft.hairless.web.optimization.GZIPResponseWrapper.getOutputStream(GZIPResponseWrapper.java:48) at se.edgesoft.hairless.web.resource.ItemResourceServlet.writeResource(ItemResourceServlet.java:96) at se.edgesoft.hairless.web.resource.ItemResourceServlet.doGet(ItemResourceServlet.java:82) at javax.servlet.http.HttpServlet.service(HttpServlet.java:690) at javax.servlet.http.HttpServlet.service(HttpServlet.java:803) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:290) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:246) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.springframework.orm.jpa.support.OpenEntityManagerInViewFilter.doFilterInternal(OpenEntityManagerInViewFilter.java:111) at org.springframework.web.filter.OncePerRequestFilter.doFilter(OncePerRequestFilter.java:75) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at se.edgesoft.hairless.web.optimization.GZIPFilter.doFilter(GZIPFilter.java:34) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:235) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:206) at org.apache.catalina.core.StandardWrapperValve.invoke(StandardWrapperValve.java:233) at org.apache.catalina.core.StandardContextValve.invoke(StandardContextValve.java:175) at org.apache.catalina.authenticator.AuthenticatorBase.invoke(AuthenticatorBase.java:525) at org.apache.catalina.core.StandardHostValve.invoke(StandardHostValve.java:128) at org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java:102) at org.apache.catalina.core.StandardEngineValve.invoke(StandardEngineValve.java:109) at org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:286) at org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:844) at org.apache.coyote.http11.Http11Protocol$Http11ConnectionHandler.process(Http11Protocol.java:583) at org.apache.tomcat.util.net.JIoEndpoint$Worker.run(JIoEndpoint.java:447) at java.lang.Thread.run(Thread.java:619) -- View this message in context: http://www.nabble.com/Tomcat-crashes-out-of-memory-tp19203247p19203247.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EJB usage in ResourceLoader
it will only work for subclasses of component if you want to inject something else you have to do it manually via injectorholder.getinjector().inject(this) in the constructor -igor On Thu, Aug 28, 2008 at 5:10 AM, btakacs <[EMAIL PROTECTED]> wrote: > > I used addComponentInstantiationListener(new JavaEEComponentInjector(this)); > in the Application init method. Why doesn't it work for a ResourceLoader? > > > btakacs wrote: >> >> Hi >> >> I started to use wicket-contrib-javaee, and it is working for pages and >> models (I injected the listener into the Application file). But I would >> like to use EJB in a ResourceLoader too. >> >> In the project home page i did not found anything about that. >> http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-javaee >> >> Do I need to lookup manually are there any more elegant solution for that? >> >> Any Tips? >> >> Thanks: >>Bence >> > > -- > View this message in context: > http://www.nabble.com/EJB-usage-in-ResourceLoader-tp19198798p19199250.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket-event added twice problem
Yes. You have to use header contributor otherwise wicket won't filter the duplicate javacsript. -Matej On Thu, Aug 28, 2008 at 4:07 PM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > I don't think wicket scans the html.. Correct way would be to add it via > header contributer > > Tomasz Prus wrote: >> >> html >> >> >> 2008/8/28 Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> >> >> >>> >>> The other component, did you write the reference to wicket-event in html >>> or >>> via and header contributer..? >>> >>> >>> Tomasz Prus wrote: >>> >>> I have inluded gmap component which adds wicket-event and i have other component with: >>> src="/resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js"> Wicket.Event.add(window, "domready", function() { var gallery = new iCarousel("gallery_content", { idPrevious: "gallery_previous", idNext: "gallery_next", idToggle: "undefined", item: { klass: "gallery_item", size: 284 }, animation: { type: "fadeNscroll", duration: 600, amount: 1 } }); var i = 0; while($("thumb" + i) != false) { $("thumb" + i).addEvent("click", function(event){ new Event(event).stop(); gallery.goTo(this.id.replace(/thumb/,'')); }); i++; } }); and i think that wicket event object is recreated. Please give me some advise? 2008/8/28 Tomasz Prus <[EMAIL PROTECTED]> > > In which Wicket version should be filtered? > > > 2008/8/28 Tomasz Prus <[EMAIL PROTECTED]> > > > > >> >> Heh :) Lightbox, not livebox >> >> 2008/8/28 Tomasz Prus <[EMAIL PROTECTED]> >> >> Wicket 1.3.4 >> >> >> >>> >>> When i add livebox JS script and google maps then livebox doesn't >>> work >>> properly because wicket-event is added twice. >>> >>> 2008/8/27 Matej Knopp <[EMAIL PROTECTED]> >>> >>> What wicket version? This should be filtered by wicket. >>> >>> >>> -Matej On Wed, Aug 27, 2008 at 4:13 PM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > > show us some code..:) > > Tomasz Prus wrote: > > > >> >> Hi >> >> I have problem because wicket-event.js is added twice and couse >> >> >> > > error. > > > (each > >> >> component with wicket-event.js adds it) >> >> Please help, how can i add it only one? >> >> Similar problem is with css files >> >> Best regards, >> Tomek >> >> >> >> >> > > -- > -Wicket for love > > Nino Martinez Wael > Java Specialist @ Jayway DK > http://www.jayway.dk > +45 2936 7684 > > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> -- >>> -Wicket for love >>> >>> Nino Martinez Wael >>> Java Specialist @ Jayway DK >>> http://www.jayway.dk >>> +45 2936 7684 >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >> >> > > -- > -Wicket for love > > Nino Martinez Wael > Java Specialist @ Jayway DK > http://www.jayway.dk > +45 2936 7684 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
getDefaultModel
In Wicket 1.4m3, what does the "Default" in Component's new getDefaultModel() method mean. I don't want to reignite the generics debate; this is just a question about good naming. This name makes it sound like all components are initialised with a "default" model in place, or it could possibly be taken/interpreted in other, misleading/confusing ways. Regards - Cemal http://jWeekend.co.uk http://jWeekend.co.uk -- View this message in context: http://www.nabble.com/getDefaultModel-tp19201841p19201841.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: London Wicket Event - October 1st, @Google
The schedule for our next London Wicket Event (October 1st, @Google ) is now taking shape. I'm pleased to announce that Ari Zilka, the founder of http://terracottatech.com/ Terracotta , is coming over from San Francisco to give us a talk on Terracotta. * Cemal Bayramoglu: Welcome/Introduction * Al Maw: Wicket Code Jam * Ari Zilka (founder of Terracotta): About Terracotta * Carl Azoury: TBC * Cemal Bayramoglu: Wicket AJAX Components (TBC) * Richard Wilkinson: "Warp"ed Wicket Full details are at the usual http://jweekend.com/dev/LWUGReg/ place - we're expecting another big turnout so register early (and don't forget to confirm/cancel your place using the link in the automated response). Regards - Cemal http://www.jWeekend.co.uk http://jWeekend.co.uk jWeekend wrote: > > This is to confirm our next London Wicket Event (kindly hosted by Google) > will be on October 1st. > > Just mark your diary for now, the sign up page will be updated in the next > few days (so you can register then) by which time I should have some more > interesting presentations to tell you about, on top of something from both > Al and I. > > Regards - Cemal > http://www.jWeekend.co.uk http://jWeekend.co.uk > -- View this message in context: http://www.nabble.com/London-Wicket-Event---October-1st%2C-%40Google-tp19076264p19201582.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket-event added twice problem
I don't think wicket scans the html.. Correct way would be to add it via header contributer Tomasz Prus wrote: html 2008/8/28 Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> The other component, did you write the reference to wicket-event in html or via and header contributer..? Tomasz Prus wrote: I have inluded gmap component which adds wicket-event and i have other component with: Wicket.Event.add(window, "domready", function() { var gallery = new iCarousel("gallery_content", { idPrevious: "gallery_previous", idNext: "gallery_next", idToggle: "undefined", item: { klass: "gallery_item", size: 284 }, animation: { type: "fadeNscroll", duration: 600, amount: 1 } }); var i = 0; while($("thumb" + i) != false) { $("thumb" + i).addEvent("click", function(event){ new Event(event).stop(); gallery.goTo(this.id.replace(/thumb/,'')); }); i++; } }); and i think that wicket event object is recreated. Please give me some advise? 2008/8/28 Tomasz Prus <[EMAIL PROTECTED]> In which Wicket version should be filtered? 2008/8/28 Tomasz Prus <[EMAIL PROTECTED]> Heh :) Lightbox, not livebox 2008/8/28 Tomasz Prus <[EMAIL PROTECTED]> Wicket 1.3.4 When i add livebox JS script and google maps then livebox doesn't work properly because wicket-event is added twice. 2008/8/27 Matej Knopp <[EMAIL PROTECTED]> What wicket version? This should be filtered by wicket. -Matej On Wed, Aug 27, 2008 at 4:13 PM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: show us some code..:) Tomasz Prus wrote: Hi I have problem because wicket-event.js is added twice and couse error. (each component with wicket-event.js adds it) Please help, how can i add it only one? Similar problem is with css files Best regards, Tomek -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Discussion on "Wicket Interface Speed-Up"
Again, great work Stefan! The basics already work fine, allowing me to keep a maintenance friendly style of development while heavily optimizing frontend performance. The biggest isse now is the public API: I have to duplicate a lot of information in the application and the page/component classes. Eventually something like this could remove the duplication while making it very easy to add new components and resources: @HeaderContribution( scripts={"jquery.js", "Example.js"}, stylesheets={"theme.js", "Example.css"} ) public class Example { public Example() { HeaderContribution.addResources(this); } } With something similar to wicketstuff-annotation in the Application#init method: new AnnotatedResourcesMountScanner().scanPackage("my.package").mount(this); A small issue, but still important: Please consider setting JDK 5 as the goal for the project. JDK 6 is still unavailable on most OSX installations and the one or two new methods aren't worth the trouble. If you don't have plans to support JDK 1.4, it would be nice to replace the various array-arguments with (generic) varargs/collections. Jörn On Thu, Aug 28, 2008 at 11:59 AM, Stefan Fußenegger <[EMAIL PROTECTED]> wrote: > > I just finished the 4th and last entry of my series "Wicket Interface > Speed-Up" on my blog. To give a short summary: I investigated one of my apps > with YSlow and started optimizing it's interface rendering speed [1]. > Especially Wicket's way of handling resources, i.e. JS and CSS files, causes > interfaces to load rather slowly. In my articles, I explain how to modify > the cache interval [2], how to mount resources with a version (e.g. > /css/all-1234.css) in order to use aggressive client-side caching (e.g. > resources expire after a year) [3]. Finally, I show how to merge resources > at application startup (using a class classed MergedResourceStream) to > reduce the number of resources a client has to download [4], including > code). I was able to increase interface loading times considerably, so it's > surely worth a look. > > I feel that it would also be worth to discuss, whether this work could be > part of upcoming Wicket versions. For the time being I'd like to make the > code attached to [4] a wicketstuff project - sfussenegger needs commit > access ;) - and wait for your feedback. > > The links: > [1] http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up.html > Wicket Interface Speed-Up > [2] > http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up-modifying.html > Wicket Interface Speed-Up: Modifying Expires and Cache-Control Headers > [3] > http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up-caching.html > Wicket Interface Speed-Up: Caching Resources Forever > [4] > http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up-merging.html > Wicket Interface Speed-Up: Merging Resources for Fewer HTTP Requests > > - > --- > Stefan Fußenegger > http://talk-on-tech.blogspot.com // looking for a nicer domain ;) > -- > View this message in context: > http://www.nabble.com/Discussion-on-%22Wicket-Interface-Speed-Up%22-tp19197540p19197540.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Re: DropDownChoice - required, one item so preselection?
How are the items in the DDC changing? On Thu, Aug 28, 2008 at 9:02 AM, John <[EMAIL PROTECTED]> wrote: > hi, thanks for your response. i know i can set the model manually at > point of component creation but as i understand it that code won't be > executed if the page is redisplayed and the items in the > DropDownChoice have changed and it would need to be duplicated each > time i need this functionality. it seems to me that this > functionality should be in my custom extension of the component. i > could put such code in the constructor of my component but again it > would not be executed when the component is redisplayed. > > apologies... maybe i have got the wrong end of the stick here... > > maybe should this code only be executed once, and not again? > > john > > > > On Thu, Aug 28, 2008 at 11:37 AM, Nino Saturnino Martinez Vazquez Wael > <[EMAIL PROTECTED]> wrote: >> just set the model to what you want selected:) >> >> John wrote: >>> >>> hi, when using a DropDownChoice is there a way to have the value >>> preselected if there is only one available and the field is required? >>> >>> i have looked through the code but cannot see any settings that might >>> control this, and am stumped trying to work out how to extend the >>> control in this way. >>> >>> john > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DropDownChoice - required, one item so preselection?
hi, thanks for your response. i know i can set the model manually at point of component creation but as i understand it that code won't be executed if the page is redisplayed and the items in the DropDownChoice have changed and it would need to be duplicated each time i need this functionality. it seems to me that this functionality should be in my custom extension of the component. i could put such code in the constructor of my component but again it would not be executed when the component is redisplayed. apologies... maybe i have got the wrong end of the stick here... maybe should this code only be executed once, and not again? john On Thu, Aug 28, 2008 at 11:37 AM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > just set the model to what you want selected:) > > John wrote: >> >> hi, when using a DropDownChoice is there a way to have the value >> preselected if there is only one available and the field is required? >> >> i have looked through the code but cannot see any settings that might >> control this, and am stumped trying to work out how to extend the >> control in this way. >> >> john - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket Cart: open-source e-commerce wicket app
I have another idea for brix.. I believe that a portlet which displays these brix tiles as portlets would be incredibly useful for portal developers, because WYSIWYG content editing in portals is a very handy feature, and it's missing in Jetspeed AFAIK.. For example, one could add an instance of this portlet to a portal page, and in the edit (or edit-defaults) mode of the portlet, he/she would select the tile that should be displayed by this portlet fragment, and in the view mode the portlet would display the tile content.. Patrick Angeles wrote: James, If you need any CMS functionality at all for your cart project, please have a look at: http://brix-cms.googlecode.com/ For example, you could incorporate your cart panels as "tiles" inside of Brix. msc65jap wrote: Is anyone interested in contributing to an open-source e-commerce wicket engine? I was thinking of calling it WicketCart. I have written a primitive version which serves as a good foundation to build upon. I have a new client, a royal college, requiring an e-commerce web app so just pondering the idea of WicketCart. If other developers are interested in contributing then I will make it open-source. I have written it so far using Spring and Hibernate but very open for it to additionally be implemented for other frameworks. If anyone wants specific details or wants to discuss it a bit more, then feel free to email me. Best, James. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket Cart: open-source e-commerce wicket app
Yep i'd love to contribute :-) James Perry wrote: Is anyone interested in contributing to an open-source e-commerce wicket engine? I was thinking of calling it WicketCart. I have written a primitive version which serves as a good foundation to build upon. I have a new client, a royal college, requiring an e-commerce web app so just pondering the idea of WicketCart. If other developers are interested in contributing then I will make it open-source. I have written it so far using Spring and Hibernate but very open for it to additionally be implemented for other frameworks. If anyone wants specific details or wants to discuss it a bit more, then feel free to email me. Best, James. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: strange ajax hang-up problem at IE6, windows 98
Hi, You can create a jira issue for it, unfortunately I don't think I'll be able to try to reproduce it as I don't have any machine with W98 + IE6 around. Who does use that anyway? Last time I checked it was 2008... (Anyway, even for Windows 98 there are bunch of browsers available that are way better than IE6) -Matej On Thu, Aug 28, 2008 at 2:03 PM, ywtsang <[EMAIL PROTECTED]> wrote: > > at windows 98 , IE6, > > when i click an ajax link, it can fire the request to server, and server has > processed and completed sending the request > > but the browser still "hang" up or waiting, until i click somewhere at the > page, then the wicket ajax action will then proceed > > it happens only at windows 98 +IE6; we have no problem in other combination > of browsers and "new-er" windows > > also, it happens only at the ajax link, but not other ajax event like on > change of "select box" > > we suspect that some "handlers" at the "steps" "hang" up, but can't solve > that > > > > here is the log from the wicket debug window: > > >> INFO: Response parsed. Now invoking steps... >> >> >> >> INFO: Response processed successfully. >> INFO: Invoking post-call handler(s)... >> INFO: last focus id was not set >> > > -- > View this message in context: > http://www.nabble.com/strange-ajax-hang-up-problem-at-IE6%2C-windows-98-tp19199143p19199143.html > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: EJB usage in ResourceLoader
I used addComponentInstantiationListener(new JavaEEComponentInjector(this)); in the Application init method. Why doesn't it work for a ResourceLoader? btakacs wrote: > > Hi > > I started to use wicket-contrib-javaee, and it is working for pages and > models (I injected the listener into the Application file). But I would > like to use EJB in a ResourceLoader too. > > In the project home page i did not found anything about that. > http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-javaee > > Do I need to lookup manually are there any more elegant solution for that? > > Any Tips? > > Thanks: >Bence > -- View this message in context: http://www.nabble.com/EJB-usage-in-ResourceLoader-tp19198798p19199250.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
strange ajax hang-up problem at IE6, windows 98
at windows 98 , IE6, when i click an ajax link, it can fire the request to server, and server has processed and completed sending the request but the browser still "hang" up or waiting, until i click somewhere at the page, then the wicket ajax action will then proceed it happens only at windows 98 +IE6; we have no problem in other combination of browsers and "new-er" windows also, it happens only at the ajax link, but not other ajax event like on change of "select box" we suspect that some "handlers" at the "steps" "hang" up, but can't solve that here is the log from the wicket debug window: > INFO: Response parsed. Now invoking steps... > > > > INFO: Response processed successfully. > INFO: Invoking post-call handler(s)... > INFO: last focus id was not set > -- View this message in context: http://www.nabble.com/strange-ajax-hang-up-problem-at-IE6%2C-windows-98-tp19199143p19199143.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
EJB usage in ResourceLoader
Hi I started to use wicket-contrib-javaee, and it is working for pages and models (I injected the listener into the Application file). But I would like to use EJB in a ResourceLoader too. In the project home page i did not found anything about that. http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-javaee Do I need to lookup manually are there any more elegant solution for that? Any Tips? Thanks: Bence -- View this message in context: http://www.nabble.com/EJB-usage-in-ResourceLoader-tp19198798p19198798.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DropDownChoice - required, one item so preselection?
The DDC is bound to a model, so make sure that the model has that value (if it's bound to a property on an object, set that property to what you want pre-selected). On Thu, Aug 28, 2008 at 6:34 AM, John <[EMAIL PROTECTED]> wrote: > hi, when using a DropDownChoice is there a way to have the value > preselected if there is only one available and the field is required? > > i have looked through the code but cannot see any settings that might > control this, and am stumped trying to work out how to extend the > control in this way. > > john > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: DropDownChoice - required, one item so preselection?
just set the model to what you want selected:) John wrote: hi, when using a DropDownChoice is there a way to have the value preselected if there is only one available and the field is required? i have looked through the code but cannot see any settings that might control this, and am stumped trying to work out how to extend the control in this way. john - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
DropDownChoice - required, one item so preselection?
hi, when using a DropDownChoice is there a way to have the value preselected if there is only one available and the field is required? i have looked through the code but cannot see any settings that might control this, and am stumped trying to work out how to extend the control in this way. john - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: When to use detachable models?
If you're not worried about optimistic locking (unless let the form set the version numbers on the domain entities), then it should be fine to use detachable models. Of course, if you're writing a "wizard", it might be wise to keep the object around (or another object in its place) to hold all of the edits until the wizard is finished. On Thu, Aug 28, 2008 at 6:22 AM, Markus Strickler <[EMAIL PROTECTED]> wrote: > Hi- > > while the advanteages of using detachable models for read only list view pages > are quite clear, I'm wondering if you should also use detachabel models in the > case of pages where you actually edit a domain object? > > -markus > > > > > This message was sent using IMP, the Internet Messaging Program. > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
When to use detachable models?
Hi- while the advanteages of using detachable models for read only list view pages are quite clear, I'm wondering if you should also use detachabel models in the case of pages where you actually edit a domain object? -markus This message was sent using IMP, the Internet Messaging Program. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket-event added twice problem
html 2008/8/28 Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> > The other component, did you write the reference to wicket-event in html or > via and header contributer..? > > > Tomasz Prus wrote: > >> I have inluded gmap component which adds wicket-event and i have other >> component with: >> >> > >> src="/resources/org.apache.wicket.markup.html.WicketEventReference/wicket-event.js"> >> >>Wicket.Event.add(window, "domready", function() { >>var gallery = new iCarousel("gallery_content", { >>idPrevious: "gallery_previous", >>idNext: "gallery_next", >>idToggle: "undefined", >>item: { >>klass: "gallery_item", >>size: 284 >>}, >>animation: { >>type: "fadeNscroll", >>duration: 600, >>amount: 1 >>} >>}); >>var i = 0; >>while($("thumb" + i) != false) { >> $("thumb" + i).addEvent("click", function(event){ new >> Event(event).stop(); gallery.goTo(this.id.replace(/thumb/,'')); }); >> i++; >>} >> }); >> >> >> and i think that wicket event object is recreated. Please give me some >> advise? >> >> 2008/8/28 Tomasz Prus <[EMAIL PROTECTED]> >> >> >> >>> In which Wicket version should be filtered? >>> >>> >>> 2008/8/28 Tomasz Prus <[EMAIL PROTECTED]> >>> >>> >>> Heh :) Lightbox, not livebox 2008/8/28 Tomasz Prus <[EMAIL PROTECTED]> Wicket 1.3.4 > When i add livebox JS script and google maps then livebox doesn't work > properly because wicket-event is added twice. > > 2008/8/27 Matej Knopp <[EMAIL PROTECTED]> > > What wicket version? This should be filtered by wicket. > > >> -Matej >> >> On Wed, Aug 27, 2008 at 4:13 PM, Nino Saturnino Martinez Vazquez Wael >> <[EMAIL PROTECTED]> wrote: >> >> >>> show us some code..:) >>> >>> Tomasz Prus wrote: >>> >>> Hi I have problem because wicket-event.js is added twice and couse >>> error. >> >> >>> (each component with wicket-event.js adds it) Please help, how can i add it only one? Similar problem is with css files Best regards, Tomek >>> -- >>> -Wicket for love >>> >>> Nino Martinez Wael >>> Java Specialist @ Jayway DK >>> http://www.jayway.dk >>> +45 2936 7684 >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >>> >>> >>> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> >> >> >> > >> >> > > -- > -Wicket for love > > Nino Martinez Wael > Java Specialist @ Jayway DK > http://www.jayway.dk > +45 2936 7684 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
Discussion on "Wicket Interface Speed-Up"
I just finished the 4th and last entry of my series "Wicket Interface Speed-Up" on my blog. To give a short summary: I investigated one of my apps with YSlow and started optimizing it's interface rendering speed [1]. Especially Wicket's way of handling resources, i.e. JS and CSS files, causes interfaces to load rather slowly. In my articles, I explain how to modify the cache interval [2], how to mount resources with a version (e.g. /css/all-1234.css) in order to use aggressive client-side caching (e.g. resources expire after a year) [3]. Finally, I show how to merge resources at application startup (using a class classed MergedResourceStream) to reduce the number of resources a client has to download [4], including code). I was able to increase interface loading times considerably, so it's surely worth a look. I feel that it would also be worth to discuss, whether this work could be part of upcoming Wicket versions. For the time being I'd like to make the code attached to [4] a wicketstuff project - sfussenegger needs commit access ;) - and wait for your feedback. The links: [1] http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up.html Wicket Interface Speed-Up [2] http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up-modifying.html Wicket Interface Speed-Up: Modifying Expires and Cache-Control Headers [3] http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up-caching.html Wicket Interface Speed-Up: Caching Resources Forever [4] http://talk-on-tech.blogspot.com/2008/08/wicket-interface-speed-up-merging.html Wicket Interface Speed-Up: Merging Resources for Fewer HTTP Requests - --- Stefan Fußenegger http://talk-on-tech.blogspot.com // looking for a nicer domain ;) -- View this message in context: http://www.nabble.com/Discussion-on-%22Wicket-Interface-Speed-Up%22-tp19197540p19197540.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket-event added twice problem
The other component, did you write the reference to wicket-event in html or via and header contributer..? Tomasz Prus wrote: I have inluded gmap component which adds wicket-event and i have other component with: Wicket.Event.add(window, "domready", function() { var gallery = new iCarousel("gallery_content", { idPrevious: "gallery_previous", idNext: "gallery_next", idToggle: "undefined", item: { klass: "gallery_item", size: 284 }, animation: { type: "fadeNscroll", duration: 600, amount: 1 } }); var i = 0; while($("thumb" + i) != false) { $("thumb" + i).addEvent("click", function(event){ new Event(event).stop(); gallery.goTo(this.id.replace(/thumb/,'')); }); i++; } }); and i think that wicket event object is recreated. Please give me some advise? 2008/8/28 Tomasz Prus <[EMAIL PROTECTED]> In which Wicket version should be filtered? 2008/8/28 Tomasz Prus <[EMAIL PROTECTED]> Heh :) Lightbox, not livebox 2008/8/28 Tomasz Prus <[EMAIL PROTECTED]> Wicket 1.3.4 When i add livebox JS script and google maps then livebox doesn't work properly because wicket-event is added twice. 2008/8/27 Matej Knopp <[EMAIL PROTECTED]> What wicket version? This should be filtered by wicket. -Matej On Wed, Aug 27, 2008 at 4:13 PM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: show us some code..:) Tomasz Prus wrote: Hi I have problem because wicket-event.js is added twice and couse error. (each component with wicket-event.js adds it) Please help, how can i add it only one? Similar problem is with css files Best regards, Tomek -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- -Wicket for love Nino Martinez Wael Java Specialist @ Jayway DK http://www.jayway.dk +45 2936 7684 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
AW: Question regarding [WICKET-1420] - Allow to change charset in St ringRequestTarget
You are right, the BufferedOutputStream from response.getOutputStream() is UTF-8. But StringRequestTarget creates its own StringBufferResourceStream. This stream is copied to the BufferedOutputStream. Unfortunately the CharSet of the StringBufferResourceStream is null until you call AbstractResourceStream.setCharSet(). If you don't call setCharSet(), the CharSet of the data (as it goes over the wire) is the same as the CharSet defined by the "file.encoding" system property. In short: if your system encoding is not UTF-8, you copy a non-UTF-8 stream to into an UTF-8 stream and get garbage. Btw, there seems to be a mixup of "content type" and "mime type": /** * Constructor. * * @param contentType *The mime type of this resource, such as "image/jpeg" or "text/html" */ public AbstractStringResourceStream(final String contentType) { ... } Niels -Ursprüngliche Nachricht- Von: Johan Compagner [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 28. August 2008 10:27 An: users@wicket.apache.org Betreff: Re: Question regarding [WICKET-1420] - Allow to change charset in St ringRequestTarget Is the output stream really set to cp1252? How is that possible? Because we set as far as we know the encoding to UTF-8 (by default) or what you have set in the settings And StringRequestTarget gets the Wicket response.getOutputStream() which really should be be configured in the WicketFilter johan On Wed, Aug 27, 2008 at 1:44 PM, <[EMAIL PROTECTED]> wrote: > Hi, > > we ran into trouble with the StringRequestTarget on Wicket 1.4-m3, when our > system file.encoding was different from the encoding used for the > communication between Wicket and the web browser. In short, we use UTF-8 > for > our web pages and JSON. Java uses Cp1252 as file encoding on one of our > machines, so the CharSet of the OutputStream used by StringRequestTarget is > set to Cp1252 as well. > > The StringRequestTarget sets the content type to "text/charset=utf-8" by > default (possibly because the request is encoded in UTF-8 ?). > Setting a the content type parameter of the StringRequestTarget to > "application/json; charset=UTF-8" does not change the charset used by the > OutputStream, so you will send corrupt data. I don't think that the content > type should be set to "...;charset:cp1252" - if the web pages and the > request are UTF-8, the response should be UTF-8 as well. > > Right now we are overloading StringResourceTarget (= cutting and pasting > the > whole class, then applying our changes), so that we have a new constructor: > > public MyStringRequestTarget(String mimeType, String string, Charset > charset) { ... } > > The charset is stored in a member variable and used in in onResponse(): > > > MyStringRequestTarget.onResponse() > > { > > ... > > stream.setCharset(charset); > > response.setContentType(mimeType + ";charset=" + charset.name()); > > ... > > } > > Could these changes be applied to Wicket / trunk 1.4? > Or am I missing something obvious? > > Niels > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket-event added twice problem
I have inluded gmap component which adds wicket-event and i have other component with: Wicket.Event.add(window, "domready", function() { var gallery = new iCarousel("gallery_content", { idPrevious: "gallery_previous", idNext: "gallery_next", idToggle: "undefined", item: { klass: "gallery_item", size: 284 }, animation: { type: "fadeNscroll", duration: 600, amount: 1 } }); var i = 0; while($("thumb" + i) != false) { $("thumb" + i).addEvent("click", function(event){ new Event(event).stop(); gallery.goTo(this.id.replace(/thumb/,'')); }); i++; } }); and i think that wicket event object is recreated. Please give me some advise? 2008/8/28 Tomasz Prus <[EMAIL PROTECTED]> > In which Wicket version should be filtered? > > > 2008/8/28 Tomasz Prus <[EMAIL PROTECTED]> > >> Heh :) Lightbox, not livebox >> >> 2008/8/28 Tomasz Prus <[EMAIL PROTECTED]> >> >> Wicket 1.3.4 >>> >>> When i add livebox JS script and google maps then livebox doesn't work >>> properly because wicket-event is added twice. >>> >>> 2008/8/27 Matej Knopp <[EMAIL PROTECTED]> >>> >>> What wicket version? This should be filtered by wicket. -Matej On Wed, Aug 27, 2008 at 4:13 PM, Nino Saturnino Martinez Vazquez Wael <[EMAIL PROTECTED]> wrote: > show us some code..:) > > Tomasz Prus wrote: >> >> Hi >> >> I have problem because wicket-event.js is added twice and couse error. >> (each >> component with wicket-event.js adds it) >> >> Please help, how can i add it only one? >> >> Similar problem is with css files >> >> Best regards, >> Tomek >> >> > > -- > -Wicket for love > > Nino Martinez Wael > Java Specialist @ Jayway DK > http://www.jayway.dk > +45 2936 7684 > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >
Re: Question regarding [WICKET-1420] - Allow to change charset in St ringRequestTarget
Is the output stream really set to cp1252? How is that possible? Because we set as far as we know the encoding to UTF-8 (by default) or what you have set in the settings And StringRequestTarget gets the Wicket response.getOutputStream() which really should be be configured in the WicketFilter johan On Wed, Aug 27, 2008 at 1:44 PM, <[EMAIL PROTECTED]> wrote: > Hi, > > we ran into trouble with the StringRequestTarget on Wicket 1.4-m3, when our > system file.encoding was different from the encoding used for the > communication between Wicket and the web browser. In short, we use UTF-8 > for > our web pages and JSON. Java uses Cp1252 as file encoding on one of our > machines, so the CharSet of the OutputStream used by StringRequestTarget is > set to Cp1252 as well. > > The StringRequestTarget sets the content type to "text/charset=utf-8" by > default (possibly because the request is encoded in UTF-8 ?). > Setting a the content type parameter of the StringRequestTarget to > "application/json; charset=UTF-8" does not change the charset used by the > OutputStream, so you will send corrupt data. I don't think that the content > type should be set to "...;charset:cp1252" - if the web pages and the > request are UTF-8, the response should be UTF-8 as well. > > Right now we are overloading StringResourceTarget (= cutting and pasting > the > whole class, then applying our changes), so that we have a new constructor: > > public MyStringRequestTarget(String mimeType, String string, Charset > charset) { ... } > > The charset is stored in a member variable and used in in onResponse(): > > > MyStringRequestTarget.onResponse() > > { > > ... > > stream.setCharset(charset); > > response.setContentType(mimeType + ";charset=" + charset.name()); > > ... > > } > > Could these changes be applied to Wicket / trunk 1.4? > Or am I missing something obvious? > > Niels > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > >
AW: Question regarding [WICKET-1420] - Allow to change charset in St ringRequestTarget
Done, see https://issues.apache.org/jira/browse/WICKET-1805 Thanks, Niels -Ursprüngliche Nachricht- Von: Igor Vaynberg [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 27. August 2008 17:19 An: users@wicket.apache.org Betreff: Re: Question regarding [WICKET-1420] - Allow to change charset in St ringRequestTarget open a jira issue and create a patch -igor On Wed, Aug 27, 2008 at 4:44 AM, <[EMAIL PROTECTED]> wrote: > Hi, > > we ran into trouble with the StringRequestTarget on Wicket 1.4-m3, when our > system file.encoding was different from the encoding used for the > communication between Wicket and the web browser. In short, we use UTF-8 for > our web pages and JSON. Java uses Cp1252 as file encoding on one of our > machines, so the CharSet of the OutputStream used by StringRequestTarget is > set to Cp1252 as well. > > The StringRequestTarget sets the content type to "text/charset=utf-8" by > default (possibly because the request is encoded in UTF-8 ?). > Setting a the content type parameter of the StringRequestTarget to > "application/json; charset=UTF-8" does not change the charset used by the > OutputStream, so you will send corrupt data. I don't think that the content > type should be set to "...;charset:cp1252" - if the web pages and the > request are UTF-8, the response should be UTF-8 as well. > > Right now we are overloading StringResourceTarget (= cutting and pasting the > whole class, then applying our changes), so that we have a new constructor: >> public MyStringRequestTarget(String mimeType, String string, Charset > charset) { ... } > > The charset is stored in a member variable and used in in onResponse(): > >> MyStringRequestTarget.onResponse() >> { >> ... >> stream.setCharset(charset); >> response.setContentType(mimeType + ";charset=" + charset.name()); >> ... >> } > > Could these changes be applied to Wicket / trunk 1.4? > Or am I missing something obvious? > > Niels > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: controlling number with wicket?
[td wicket:id="cell"][a wicket:id="link"]Foo[/a][/td] WebMarkupContainer cell = new WebMarkupContainer("cell"); cell.add(new AttributeModifier("colspan", true, new Model("2"))); cell.add(new Link("link) { /* snip */}); ... might be some typos in it but something like that should do the trick regards, Michael Sami-18 wrote: > > Thanks for the reply, but is there an example for AttributeAppender? > I checked the java Doc but still can't figure out how to use it inside a > ListView > it just appends it inside the list view container: > > > > if I put s wicket:id inside the i get an error because > of the after it , I get: > > Expected close tag for '' Possible > attempt to embed component(s) ' # ' in > the body of this component which discards its body > > Sami > > > Vit Rozkovec wrote: >> Hallo, >> you can do with AttributeModifier or AttributeAppender. >> >> Vitek >> >> Sami wrote: >>> Hello, >>> I have been trying to control the colspan in a table but no luck :( >>> >>> any one has an example of how to do it? >>> >>> code: >>> - >>> >>> # > wicket:id="categoryName">[Category] >>> >>>> wicket:id="Info">[Info] >>>> wicket:id="Type">[Type] >>>> wicket:id="Date">[Date] >>> >>> >>> - >>> >>> I want to control the number in the colspan markup? >>> I tried but didnt work. >>> >>> Many thanks >>> Sami >>> >>> >>> - >>> To unsubscribe, e-mail: [EMAIL PROTECTED] >>> For additional commands, e-mail: [EMAIL PROTECTED] >>> >> >> >> - >> To unsubscribe, e-mail: [EMAIL PROTECTED] >> For additional commands, e-mail: [EMAIL PROTECTED] >> > > > - > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > - Michael Sparer http://talk-on-tech.blogspot.com -- View this message in context: http://www.nabble.com/controlling-%3Ctd-colspan%3D%22-%22%3E-number-with-wicket--tp19188521p19196122.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]