[Wicket-user] Browser not caching my images
I recently upgraded to wicket 1.2.6 and although this time my application path is /* and i realized for each page refresh or event, the same sets of images seems to be loading all over again making loading appear slow what could be the cause of this? thanks - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] localhost/wicketApp works fine, PC_NAME/wicketApp throws page expire.
Tomcat, ie7, safari, and firefox. and wicket 1.3 beta 2. On 7/20/07, Sean Sullivan <[EMAIL PROTECTED]> wrote: > > Which web browser? Which version of wicket? Which app server? > > > > On 7/20/07, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]> > wrote: > > > > Hi has anyone has had this problem before? > > > > I have a page and everything works fine. but when I click on a link at > the > > home page only works (goes to the page) if I am at localhost:// etc. > even > > on > > my own computer. > > > > > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] localhost/wicketApp works fine, PC_NAME/wicketApp throws page expire.
Which web browser? Which version of wicket? Which app server? On 7/20/07, Francisco Diaz Trepat - gmail <[EMAIL PROTECTED]> wrote: > > Hi has anyone has had this problem before? > > I have a page and everything works fine. but when I click on a link at the > home page only works (goes to the page) if I am at localhost:// etc. even > on > my own computer. > > - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] WicketTester and mocking up next page rendered.
Tim, And how are you overriding the "goToPageB" method in the test? Using WicketTester you never actually create an instance of PageB, that is you as the developer. -Craig Timo Rantalaiho wrote: > > On Tue, 17 Jul 2007, Ingram Chen wrote: > >> We also suffer the same issues here. But due to unmanaged nature of >> Wicket, >> there is no chance to intercept construction of page B unless you build >> your >> own factory for page. >> >> class Page A { >> MyFactory myFactory ; >> public Page A { >>add(new Link("toBPage") { >> setResponsePage(myFactory.newBPage()); >>}); >> } >> } > > I might do > > class PageA extends Page { > public PageA() { > add(new Link("toBPage") { > @Override > public void onLinkClicked() { > goToPageB(); > } > ); > } > > protected goToPageB() { > ... > > and overriding goToPageB() in the test. > > This technique has even a fancy name in the excellent > _Working Effectively with Legacy Code_ by Michael Feathers, > so maybe it's a kludge to use it in non-legacy code. But > it's simple and it works. > > - Timo > > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/WicketTester-and-mocking-up-next-page-rendered.-tf4093923.html#a11715824 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Palette and FormTester
It's hackish but this modified selectMultiple works for me: public void selectMultiple(String formComponentId, int[] indexes) { checkClosed(); // This is a hack to get Palette selection working with FormTester. // Note we can't reference the palette class directly since FormTester // is in wicket and Palette is in wicket-extensions so we need to do // some acrobatics to deal with this. Component c = (Component) workingForm.get(formComponentId); if (!(c instanceof FormComponent)) { // Palette is not a FormComponent FormComponent recorder = (FormComponent) workingForm.get(formComponentId + ":recorder"); String recorderValue = recorder.getValue(); IChoiceRenderer renderer = (IChoiceRenderer)callGetter(c, "getChoiceRenderer"); Collection choices = (Collection)callGetter(c, "getChoices"); List choiceList = new ArrayList(choices); for (int i = 0; i < indexes.length; i++) { int j = indexes[i]; Object value = choiceList.get(j); String val = renderer.getIdValue(value, j); recorderValue += val; if (i + 1 < indexes.length) { recorderValue += ","; } } setFormComponentValue(recorder, recorderValue); return; } FormComponent fc = (FormComponent) c; ChoiceSelector choiceSelector = choiceSelectorFactory.createForMultiple(fc); for (int i = 0; i < indexes.length; i++) { choiceSelector.doSelect(indexes[i]); } } private Object callGetter(Object self, String method) { try { Method m = self.getClass().getMethod(method, null); return m.invoke(self, null); } catch (Exception e) { throw new RuntimeException(e); } } mperham wrote: > > Does anyone have a version of FormTester that works with the Palette > extension? I'd like to get the selectMultiple() method working with > Palette so we can adequately test our pages which have this component. > > mike > -- View this message in context: http://www.nabble.com/Palette-and-FormTester-tf4117814.html#a11715188 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] WicketTester and mocking up next page rendered.
I've come up with a possible solution to this issue or at least a start that can be discussed a bit more. My solution is to implement my own implementation of wicket's IPageFactory. This implementation is really just a wrapper around the default one since the default one is final. I then created a simple singleton class that allows developers to call mockPage(MyPage.class) within their unit tests. The singleton just keeps a map of page classes that should be mocked up. One thing you need to remember is to provide a way to clear the map after a test runs. I then created a Page object called MockPage that takes the class of the page being mocked and a corresponding .html that contains no markup. private final Class mockedPageClass; public MockPage(Class mockedPageClass) { this.mockedPageClass = mockedPageClass; } Then within the IPageFactory methods I check if the pageClass parameter is mockable given the singleton and return an instance of MockPage if it is, if not then I just delegate to the default factory. Then finally I created an extension to WicketTester and overrode the assertRenderedPage method to first check if the last page rendered is an instance of MockPage and if so then compare the pageClass parameter to the mockedPageClass that was set on the MockPage. If the last page rendered is not of instance MockPage then simply delegate to your parent method. The only other thing you need to do is to set the new IPageFactory up in the application being used my your WicketTester. Thoughts? -Craig Ingram Chen-2 wrote: > > We also suffer the same issues here. But due to unmanaged nature of > Wicket, > there is no chance to intercept construction of page B unless you build > your > own factory for page. > > class Page A { > MyFactory myFactory ; > public Page A { > add(new Link("toBPage") { > setResponsePage(myFactory.newBPage()); > }); > } > } > > and swapping mock MyFactory while testing. > > But such extra indirection make code slight complex and MyFactory is still > hard to test, either. > > > On 7/17/07, Craig Lenzen <[EMAIL PROTECTED]> wrote: >> >> >> I'm looking for some feedback as to an issue I'm having with the >> WicketTester. To start I'd like to point out that I'm using Spring and >> injecting my pages / components via the wicket spring project's component >> injector. >> >> Here is the situation, I have page A that has a link to page B. In the >> test >> of page A I test that the click in fact goes to page B. This is fine but >> the problem is, is that page B relies on a Spring service during its >> construction and the fact that the WicketTester actually tries to render >> page B which calls the service. The easy fix to this is to simply create >> a >> mock implementation of that service and set it in the mock context when >> testing page A, and don't forget you need to also setup the expected >> calls >> >> and returns. >> >> The problem here is that fact that I'm only testing page A, I don't care >> about the functionality of page B nor which services it might call. So >> is >> there a better way? Is there a way that you can mock the rendering of >> page >> B? Has anyone else ran into this issue and or questioned it, or has >> someone came up with a solution? >> >> To get a little more advanced you could also say that when testing a Page >> that added a number of panels I don't want those panels to render during >> the >> testing of the page, I only want to know the panels where added to the >> page. >> >> Thanks for everyone's help, >> Craig >> -- >> View this message in context: >> http://www.nabble.com/WicketTester-and-mocking-up-next-page-rendered.-tf4093923.html#a11641094 >> Sent from the Wicket - User mailing list archive at Nabble.com. >> >> >> - >> This SF.net email is sponsored by DB2 Express >> Download DB2 Express C - the FREE version of DB2 express and take >> control of your XML. No limits. Just data. Click to get it now. >> http://sourceforge.net/powerbar/db2/ >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > > > > -- > Ingram Chen > online share order: http://dinbendon.net > blog: http://www.javaworld.com.tw/roller/page/ingramchen > > - > This SF.net email is sponsored by DB2 Express > Download DB2 Express C - the FREE version of DB2 express and take > control of your XML. No limits. Just data. Click to get it now. > http://sourceforge.net/powerbar/db2/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/WicketTester-and-mocking-up-next-page-
[Wicket-user] localhost/wicketApp works fine, PC_NAME/wicketApp throws page expire.
Hi has anyone has had this problem before? I have a page and everything works fine. but when I click on a link at the home page only works (goes to the page) if I am at localhost:// etc. even on my own computer. f(t) - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] execute long running ajax task after page is loaded
The wicket ajax link examples are great. The functionality I need is very similar to the third link example here: http://www.wicket-library.com/wicket-examples/ajax?wicket:bookmarkablePage=:wicket.examples.ajax.builtin.LinksPage ( ajax link with a busy indicator. the server will deliberately pause for five seconds) The only difference between my code and that example is that I substituted my actual long running task for the example's Thread.sleep(5000). Everything is working great but I have two questions: 1) I don't really want it to be a link. I really just want my long running task to be executed after the page is loaded and I want it to update some label when it finishes. Any hints on how I can do this? 2) Right now my long running task is executed in the link's onClick(AjaxRequestTarget target) method just like the example. Should this be executed on a separate thread? Thank you -- View this message in context: http://www.nabble.com/execute-long-running-ajax-task-after-page-is-loaded-tf4118823.html#a11713572 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Repaint single cell of DataTable, where cell is a Fragment
svn update and your quickstart will work -igor On 7/20/07, ChuckDeal <[EMAIL PROTECTED]> wrote: > > > I am attempting to work around the problem I described here: > http://www.nabble.com/Repaint-single-row-of-a-DataTable-tf4111859.html > > As a result, now instead of adding the row to the target, I add each > formComponent WITHIN the row. The cells of my DataTable are Fragments > that > represent a FormComponent (TextField, etc). I declare the > > in my Panel which contains the DataTable. DataTable has its own > associated > markup, which means that when MarkupFragmentFinder attempts to find the > markup for my components, it fails because the > "parentWithAssociatedMarkup" > is the DataTable that contains the Component (the Fragment) not the Panel > that defined the fragment. > > So, this means that I can't repaint a DataTable by row and I also can't > repaint individual cell Components if they are Fragments. > > Do you think that it is possible to resolve these shortcomings with > DataTable or should I attempt to make my own impl of something like a > DataTable? Obviously, I lose the magic of the DataTable, but if neither > of > the two issues can be resolved, I guess I have no other choice. > > Chuck > -- > View this message in context: > http://www.nabble.com/Repaint-single-cell-of-DataTable%2C-where-cell-is-a-Fragment-tf4118377.html#a11712104 > Sent from the Wicket - User mailing list archive at Nabble.com. > > > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Replace a component with another component by adding a Behaviour
> in the end it will be the panel-solution I think. > but is there a way to diable the check? Not really for those components. Though if you take a look at their sources, they are not real difficult components. TextArea for instance: public class TextArea extends AbstractTextComponent { public TextArea(final String id) { super(id); } public TextArea(final String id, final IModel model) { super(id, model); } protected final void onComponentTagBody(final MarkupStream markupStream, final ComponentTag openTag) { checkComponentTag(openTag, "textarea"); replaceComponentTagBody(markupStream, openTag, getValue()); } } If you just create your own class based on this, and remove the checkComponentTag line, you have what you want. Or you could even do something like this: public class TextAreaOrHiddenField extends AbstractTextComponent { private boolean isHiddenField; public TextAreaOrHiddenField(final String id, final IModel model) { super(id, model); } @Override protected void onComponentTag(ComponentTag tag) { if (!isHiddenField) { tag.setName("textarea"); } else { tag.setName("input"); tag.put("type", "hidden"); tag.put("value", getValue()); } super.onComponentTag(tag); } protected final void onComponentTagBody(final MarkupStream markupStream, final ComponentTag tag) { if (!isHiddenField) { replaceComponentTagBody(markupStream, tag, getValue()); } else { super.onComponentTagBody(markupStream, tag); } } } Eelco - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Repaint single cell of DataTable, where cell is a Fragment
I am attempting to work around the problem I described here: http://www.nabble.com/Repaint-single-row-of-a-DataTable-tf4111859.html As a result, now instead of adding the row to the target, I add each formComponent WITHIN the row. The cells of my DataTable are Fragments that represent a FormComponent (TextField, etc). I declare the in my Panel which contains the DataTable. DataTable has its own associated markup, which means that when MarkupFragmentFinder attempts to find the markup for my components, it fails because the "parentWithAssociatedMarkup" is the DataTable that contains the Component (the Fragment) not the Panel that defined the fragment. So, this means that I can't repaint a DataTable by row and I also can't repaint individual cell Components if they are Fragments. Do you think that it is possible to resolve these shortcomings with DataTable or should I attempt to make my own impl of something like a DataTable? Obviously, I lose the magic of the DataTable, but if neither of the two issues can be resolved, I guess I have no other choice. Chuck -- View this message in context: http://www.nabble.com/Repaint-single-cell-of-DataTable%2C-where-cell-is-a-Fragment-tf4118377.html#a11712104 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Odd Refresh Page Behavior
> SOmeone is losing quite a bit of sleep! You bet. Though more over that friggin' book than over the mailing list. :) Eelco - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Getting hold of the servlet request in a wicket WebPage
brilliant, thanks On 7/20/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > ((webrequest)getrequest()).gethttpservletrequest() > > -igor > > > On 7/20/07, Robert Young <[EMAIL PROTECTED]> wrote: > > > > Hi, > > > > I have a servlet filter which analyses the servlet request and then > > sets a variable to it, I need access to this inside a wicket web page. > > How can I get hold of the HttpServletRequest object (or attributes set > > in it) from a wicket page? > > > > Thanks > > Rob > > > > - > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > > ___ > > Wicket-user mailing list > > Wicket-user@lists.sourceforge.net > > https://lists.sourceforge.net/lists/listinfo/wicket-user > > > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] (no subject)
- This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Getting hold of the servlet request in a wicket WebPage
((webrequest)getrequest()).gethttpservletrequest() -igor On 7/20/07, Robert Young <[EMAIL PROTECTED]> wrote: > > Hi, > > I have a servlet filter which analyses the servlet request and then > sets a variable to it, I need access to this inside a wicket web page. > How can I get hold of the HttpServletRequest object (or attributes set > in it) from a wicket page? > > Thanks > Rob > > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Palette and FormTester
Does anyone have a version of FormTester that works with the Palette extension? I'd like to get the selectMultiple() method working with Palette so we can adequately test our pages which have this component. mike -- View this message in context: http://www.nabble.com/Palette-and-FormTester-tf4117814.html#a11710344 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Wicket URLs in javascript
This looks to be exactly what I need. I've added the following code to my home page class: public void renderHead(IHeaderResponse response) { response.renderOnLoadJavascript("mainUrl = '" + RequestCycle.get().urlFor(new MainPageClass()) + "'; openJSWindow()"); } Unfortunately, I'm now getting and invalid character error from wicket-event.js. When I inspect the file being served up from the app, it's full of garbage. Almost like it's being sent in some binary format. I've used renderOnLoadJavascript() before in a different project without issue, so it looks like there's something specific with this project which is causing this error. Since there's something else I need to work on today, I probably won't get around to investigating this further until next week. Joel igor.vaynberg wrote: > > RequestCycle.urlFor(Page) will do what you want > > -igor > > > On 7/19/07, Joel Hill <[EMAIL PROTECTED]> wrote: >> >> My app's home page is nothing more than a blank page which has an onload >> script which opens a new browser window and loads my app's "main" page >> into it. I'm having trouble figuring out how to get it to work in >> wicket. I don't want to make the page bookmarkable if at all possible, >> but I have to figure out how to get a url into my javascript call which >> will access my wicket page. I know how to get wicket to dynamically >> create javascript using IHeaderContributor, but not how to get a url >> which will load a non-bookmarkable wicket page. I looked into >> Component#urlFor, but the javadocs say that will make the page >> bookmarkable; and I really want to force all access to the app to go >> through the home page. Any suggestions would be much appreciated. >> Thanks. >> >> Joel >> >> - >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/Wicket-URLs-in-javascript-tf4113835.html#a11709841 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Odd Refresh Page Behavior
It is a problem I think. I will open up a JIRA on it. I completely understand the "lost email". I am always amazed at the quantity and quality of responses on the mailing list. SOmeone is losing quite a bit of sleep! Eelco Hillenius wrote: > >> I have successfully deployed and verified that the behavior still seems >> to be >> in error. I have not actually run the phonebook application but was using >> it >> as a pattern. > > One of the forgotten emails I'm afraid... > > Did you make any progress on this, or is it still a problem? If it is, > would you mind opening up a JIRA issue for it please? > > Eelco > > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > > -- View this message in context: http://www.nabble.com/Odd-Refresh-Page-Behavior-tf3986136.html#a11709380 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Wicket Job Opportunity
Our team is developing a new application Using the following technologies/frameworks: Wicket Spring Hibernate Compass/Lucene Unfortunately we have a small gap in knowledge when it comes to Wicket. We're learning quickly but we need to hire someone who can step in and be immediately productive in that environment. The individual could be based in the US or India. Our primary offices are in Needham(Boston), MA-US and Pune-India, however the person who fills this position would not necessarily be required to be work from either of those cities. Our company is PTC (http://www.ptc.com) and the product is a Learning Management System. The opportunity is currently for a contract position, however, if you are seeking long term employment and have a compatible skill set, we would still like to hear from you. We need an experienced developer with significant technical expertise (especially when it comes to Wicket) for this position. If this is something you might be interested in, please contact me at mwelch -at- ptc -dot- com and I will provide further details. Matt -- View this message in context: http://www.nabble.com/Wicket-Job-Opportunity-tf4117471.html#a11709323 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AttributeModifier on DropDownChoice option element
Thanks Igor, I copied SelectOptions and created a CustomSelectOptions where onBeforeRender contains . SelectOption option = new SimpleSelectOption("option", model, text); option.add(new AttributeAppender("class", new Model(renderer.getGroupValue(value)), " ")); row.add(option); . Also extended IOptionRenderer to add getGroupValue(). What i'm trying to do here is to create dynamic selects based on this recipe http://www.bobbyvandersluis.com/articles/unobtrusivedynamicselect.php I was actually trying to achieve the same thing using optgroup but I had no success. http://www.lshift.net/blog/2007/02/21/improved-unobtrusive-linked-select-boxes I'm still trying to see the wicket light. It is still very dark where I'm currently at. THanks Huy > on selectoption, not directly on select > > -igor > > > On 7/20/07, Huy Do <[EMAIL PROTECTED]> wrote: > >> Hi, >> >> Is it possible to use an AttributeModifier on the DropDownChoice or >> Select option element ? i.e >> Thanks, >> >> Huy >> >> - >> This SF.net email is sponsored by: Microsoft >> Defy all challenges. Microsoft(R) Visual Studio 2005. >> http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ >> ___ >> Wicket-user mailing list >> Wicket-user@lists.sourceforge.net >> https://lists.sourceforge.net/lists/listinfo/wicket-user >> >> > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Replace a component with another component by adding a Behaviour
thank you eelco, in the end it will be the panel-solution I think. but is there a way to diable the check? renders the added hidden field then a complete html-tag when it replaces textarea? -- View this message in context: http://www.nabble.com/Replace-a-component-with-another-component-by-adding-a-Behaviour-tf4067951.html#a11708284 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] regarding e-mail client using wicket
Hello, I am the newbie of wicket, i have sample core e-mail client available. Any body have e-mail client using wicket. Or give me your suggestion. It's more helpful to me. Thanking You. Regards, Durai -- View this message in context: http://www.nabble.com/regarding-e-mail-client-using-wicket-tf4116998.html#a11707967 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Modal Window and "Page Expired" - SOLVED
Problem is that we evict it also on refresh. But then you still can go to the page B. Anyway, there are more problems then this with HttpSessionStore. I think that upgrade to 1.3 is really recommended, as the default SecondLevelCacheSessionStore doesn't suffer from this problem any more. -Matej On 7/20/07, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > On 7/19/07, Laurent Brucher <[EMAIL PROTECTED]> wrote: > > > > Ok, my bad... > > Cutting out the details, the page that included a ref to the modal window > > had a piece of javascript, which generated an tag with a src > > attribute > > starting with a '#' (this is some code ported from a JSF version of the > > application). The browser was then trying to fetch the page again looking > > for the (inexistent) bookmark, hence the double hit to the page. > > > > Now, I'm wondering if it is normal that the framework evicts the page when > > removing one of the 2 versions of that page from the access stack since > > the > > other version is still there and may be referenced again. But I don't know > > wicket enough to make a valid statement on this. > > > well, the idea here is that we can evict it because it is no longer > reachable via the browser. for example you go to page A then go to page B, > then click back and go to page C. you can no longer access page B via the > browser, so wicket evicts it from pagemap since at that point its just > wasting space. however when you have the kinds of problems you have it > becomes a pita to figure out whats going on. > > -igor > > > > > > Many thanks for the helps here and there though. > > Laurent. > > > > > > > > _ > > > > From: [EMAIL PROTECTED] > > [mailto:[EMAIL PROTECTED] On Behalf Of Laurent > > Brucher > > Sent: vendredi 13 juillet 2007 22:42 > > To: wicket-user@lists.sourceforge.net > > Subject: [Wicket-user] Modal Window and "Page Expired". > > > > > > Hi all, > > > > There was a post last December about the same problem that I'm facing > > right > > now, which is getting a page expired error page after I close a modal > > window. > > The post was called "Firefox and ModalWindow" and seemed to talk about the > > issue for FF only. > > I've encountered the problem first with FF (2.0.0.4). After reading the > > post, I tried with IE7 and it worked ok (that was this afternoon). > > This evening, neither IE7 or FF work anymore. Darn! Clearing cookies and > > stuff don't change a thing. > > Oh, and of course, the Ajax ModalWindow example works just fine (my code > > is > > heavily inspired from that example)... > > I'm using Wicket 1.2.6, Tomcat 5.5.20, Jdk1.6u2. > > > > Have you guys shed any light on this issue at all? > > I've tried to trace the code, but as I'm rather new to Wicket, I couldn't > > really figure out what's going on... > > > > Anything I can do to help address this? > > Below is the code I use, just in case. > > > > Reagrds, > > Laurent. > > > > > > // Page containing the modal window > > public class MainPage extends WebPage { > > public MainPage() > > { > > ... > > add( new PreferredStationsDialog("prefStationsDialog") ); > > ... > > } > > } > > > > // The modal window impl. > > public class PreferredStationsDialog extends ModalWindow { > > public PreferredStationsDialog(String id) > > { > > super(id); > > > > setTitle("xyz"); > > setCookieName("prefStationsDialog"); > > setPageMapName("prefStationsDialogPageMap"); > > setPageCreator( new ModalWindow.PageCreator() { > > @Override > > public Page createPage() { > > return new > > PreferredStationsDialogPage(PreferredStationsDialog.this); > > } > > }); > > > > setCloseButtonCallback(new ModalWindow.CloseButtonCallback() { > > public boolean onCloseButtonClicked(AjaxRequestTarget target) > > { > > return true; > > } > > }); > > } > > } > > > > // The content of the modal window, as a Page > > public class PreferredStationsDialogPage extends WebPage > > { > > public PreferredStationsDialogPage( final PreferredStationsDialog > > dialog > > ) > > { > > super(); > > > > add( new AjaxLink("button.save") { > > @Override > > public void onClick(AjaxRequestTarget target) { > > dialog.close(target); > > } > > }.add( new Label("text", "Save")) ); > > > > add( new AjaxLink("button.cancel") { > > @Override > > public void onClick(AjaxRequestTarget target) { > > dialog.close(target); > > } > > }.add( new Label("text", "Cancel")) ); > > } > > } > > > > - > > This SF.net email is sponsored by: Microsoft > > Defy all challenges. Microsoft(R) Visual Studio 2005. > > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/
Re: [Wicket-user] Wicket 1.3beta2, Ajax & Google Checkout & CSS help
This is addressed to people who have asked for or are interested in a heavily discounted promotional rate for our new Wicket 1.3 course this weekend. In short, we've put much care and hard work into preparation and are just about ready to go now, JIT! We have places still available so we have decided to offer those remaining places on our first "Introduction To Apache Wicket 1.3" course this weekend, at 50% of the price. If you would like come, you should book online ( http://jWeekend.co.uk jWeekend.co.uk ) by 22:30 BST today. I hope it's not too late for a few of you to take advantage of this (and it's looking decidedly like "the weather's too nice" is not going to be a valid excuse). And now in more detail if you're still interested... Al Maw and I have been finishing off and reviewing the material - there really is a lot of high quality stuff to cover; the course will be quite intensive and the labs should be fairly challenging, even for those who have experience with Wicket. There should be plenty to learn for just about everyone. But, we do start on day 1, right at the very beginning (building, configuring and running a 1.3 quickstart Eclipse project from the beta2 distribution, components, models, forms, validation, conversion, markup inheritance, panels, listviews, Ajax ...) but quickly move up through the gears up to material as deep and as broad as people wish to take us on day 2 with Al (including behaviours, custom components, security, performance, i18n, more Ajax, testing and plenty more). The sample app those attending will build in the labs will also be quite impressive and functionally quite rich and illustrative. If you cannot make both days (we realise this is short notice), as this is our first course, we will accept people coming just on the Sunday to enjoy a full day of Al, or if you want to formally review the basics or are new to Wicket, just come on Saturday, but we prefer people to be there for both days. We will be sticking rigorously to the schedule set out on our site (we have put a lot of careful thought into the structure and appropriate and interesting labs) and there will be plenty of opportunity to get the low-down from Al on any other Wicket matters we can fit in. The class this weekend will be held in London, NW6 4HY (search for this postcode at maps.google.co.uk). 4 train stations, 3 tube stations, all sorts of buses and the A5 are all within 1-10 minutes walking distance. The courses will run from 09:30 to circa 18:00 on both days (the last session on each day is a lab so those who really must can leave a bit earlier and finish the last lab in their own time - and look at the worked example solutions too). If you have some time this weekend, on one or both days, and would like to take up this introductory discount, good for roughly another 11 hours, please make sure you enter the promotion code: 20070721 into the booking form and let our "built on Wicket" web app calculate the discount (you will see your 50% discount applied after you hit the Google Checkout button, on their billing page). Those who are on this last minute discount rate are encouraged to bring along a laptop if at all possible, with JDK1.5+ and Eclipse installed and in good working order. Hope you can make it. Cemal jweekend wrote: > > If you'd like to see some subtle yet effective Ajax with Wicket, in a real > world (albeit simple), application have a look at our course booking page > at http://jWeekend.co.uk jWeekend.co.uk . > We are porting the site to Wicket 1.3beta2 and the booking page went live > early yesterday AM. > We were aiming for an uncomplicated UI that's nice and easy to use. It > must be OK functionally because we'd already had an online booking by > yesterday PM. > I hope to write something up about how I integrated Google Checkout into > this Wicket app (with a few time-saving tips from Matej), maybe even for > this weekend's course. If there's enough interest, I'll write an article > about this. > Regarding the "simple" look of the site, if anyone (preferably in London > or Brighton) with good CSS and Wicket skills, a healthy imagination and > some time on their hands wants to get involved by helping us with the > site's general look (whilst keeping it clean and simple), please contact > us at the site with your ideas and estimates. > Finally, regarding our Wicket course this weekend; since much of the > interest we have had is from continental Europe, if you are looking to fix > accommodation first before confirming attendance, the local Marriott > Hotel, (Maida Vale) about 350m away still has some rooms. Just go to > maps.google.co.uk and type in "London NW6 hotel" (without the quotes). > For those of you thinking of coming along (mainly to to see Al Maw in > action I imagine) who know each other or from the same company, make sure > you book together (in the same session/checkout) to get the appropriate > discount. > Cemal > -- View this message in context: h
[Wicket-user] Getting hold of the servlet request in a wicket WebPage
Hi, I have a servlet filter which analyses the servlet request and then sets a variable to it, I need access to this inside a wicket web page. How can I get hold of the HttpServletRequest object (or attributes set in it) from a wicket page? Thanks Rob - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] AttributeModifier on DropDownChoice option element
on selectoption, not directly on select -igor On 7/20/07, Huy Do <[EMAIL PROTECTED]> wrote: > > Hi, > > Is it possible to use an AttributeModifier on the DropDownChoice or > Select option element ? i.e > Thanks, > > Huy > > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Modal Window and "Page Expired" - SOLVED
On 7/19/07, Laurent Brucher <[EMAIL PROTECTED]> wrote: > > Ok, my bad... > Cutting out the details, the page that included a ref to the modal window > had a piece of javascript, which generated an tag with a src > attribute > starting with a '#' (this is some code ported from a JSF version of the > application). The browser was then trying to fetch the page again looking > for the (inexistent) bookmark, hence the double hit to the page. > > Now, I'm wondering if it is normal that the framework evicts the page when > removing one of the 2 versions of that page from the access stack since > the > other version is still there and may be referenced again. But I don't know > wicket enough to make a valid statement on this. well, the idea here is that we can evict it because it is no longer reachable via the browser. for example you go to page A then go to page B, then click back and go to page C. you can no longer access page B via the browser, so wicket evicts it from pagemap since at that point its just wasting space. however when you have the kinds of problems you have it becomes a pita to figure out whats going on. -igor Many thanks for the helps here and there though. > Laurent. > > > > _ > > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of Laurent > Brucher > Sent: vendredi 13 juillet 2007 22:42 > To: wicket-user@lists.sourceforge.net > Subject: [Wicket-user] Modal Window and "Page Expired". > > > Hi all, > > There was a post last December about the same problem that I'm facing > right > now, which is getting a page expired error page after I close a modal > window. > The post was called "Firefox and ModalWindow" and seemed to talk about the > issue for FF only. > I've encountered the problem first with FF (2.0.0.4). After reading the > post, I tried with IE7 and it worked ok (that was this afternoon). > This evening, neither IE7 or FF work anymore. Darn! Clearing cookies and > stuff don't change a thing. > Oh, and of course, the Ajax ModalWindow example works just fine (my code > is > heavily inspired from that example)... > I'm using Wicket 1.2.6, Tomcat 5.5.20, Jdk1.6u2. > > Have you guys shed any light on this issue at all? > I've tried to trace the code, but as I'm rather new to Wicket, I couldn't > really figure out what's going on... > > Anything I can do to help address this? > Below is the code I use, just in case. > > Reagrds, > Laurent. > > > // Page containing the modal window > public class MainPage extends WebPage { > public MainPage() > { > ... > add( new PreferredStationsDialog("prefStationsDialog") ); > ... > } > } > > // The modal window impl. > public class PreferredStationsDialog extends ModalWindow { > public PreferredStationsDialog(String id) > { > super(id); > > setTitle("xyz"); > setCookieName("prefStationsDialog"); > setPageMapName("prefStationsDialogPageMap"); > setPageCreator( new ModalWindow.PageCreator() { > @Override > public Page createPage() { > return new > PreferredStationsDialogPage(PreferredStationsDialog.this); > } > }); > > setCloseButtonCallback(new ModalWindow.CloseButtonCallback() { > public boolean onCloseButtonClicked(AjaxRequestTarget target) > { > return true; > } > }); > } > } > > // The content of the modal window, as a Page > public class PreferredStationsDialogPage extends WebPage > { > public PreferredStationsDialogPage( final PreferredStationsDialog > dialog > ) > { > super(); > > add( new AjaxLink("button.save") { > @Override > public void onClick(AjaxRequestTarget target) { > dialog.close(target); > } > }.add( new Label("text", "Save")) ); > > add( new AjaxLink("button.cancel") { > @Override > public void onClick(AjaxRequestTarget target) { > dialog.close(target); > } > }.add( new Label("text", "Cancel")) ); > } > } > > - > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2005. > http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ > ___ > Wicket-user mailing list > Wicket-user@lists.sourceforge.net > https://lists.sourceforge.net/lists/listinfo/wicket-user > - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] .properties encoding
igor.vaynberg wrote: > > The problem here is specifying the charset, properties factory is global > so > you might encode your files one way but a jar you use with components > might > have them encoded in another charset - so we cannot really have a global > charset specified. i think the proper thing to do is use xml properties > format where you specify charset/file > I agree with you, Igor. I just didn't know about Java's ability to load properties from .xml files. I guess this functionality was added to Wicket 1.3, but I use Wicket 1.2.6 in my current project and that's why I still need to use my patch. Now I've modified my CustomPropertiesFactory in the following way to accept .xml properties: package wicket.resource; ... public class CustomPropertiesFactory extends PropertiesFactory { ... public CustomPropertiesFactory() { } ... public Properties get(final Application application, final Class clazz, final String style, final Locale locale) { ... if ((props == null) && (getCache().containsKey(key) == false)) { final IResourceStream resource = application.getResourceSettings() .getResourceStreamLocator().locate(clazz, clazz.getName().replace('.', '/'), style, locale, "xml"); ... } private synchronized Properties loadPropertiesFile(final String key, final IResourceStream resourceStream, final Class componentClass, final String style, final Locale locale) { ... properties.loadFromXML( new BufferedInputStream( resourceStream.getInputStream())); // properties.load(new BufferedInputStream(resourceStream // .getInputStream())); ... } } And its registration looks like this: public class EcoApplication extends SpringWebApplication { ... @Override public final void init() { // this line is important // for spring-injection through annotations addComponentInstantiationListener(new SpringComponentInjector(this)); // here is the attachment getSettings().setPropertiesFactory(new CustomPropertiesFactory()); } } -- View this message in context: http://www.nabble.com/.properties-encoding-tf4110226.html#a11703594 Sent from the Wicket - User mailing list archive at Nabble.com. - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] AttributeModifier on DropDownChoice option element
Hi, Is it possible to use an AttributeModifier on the DropDownChoice or Select option element ? i.e Thanks, Huy - This SF.net email is sponsored by: Microsoft Defy all challenges. Microsoft(R) Visual Studio 2005. http://clk.atdmt.com/MRT/go/vse012070mrt/direct/01/ ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user