Re: How to open a popup in onSubmit() of a Form
Hi again. I found a solution, but it isn't very nice: First I implemented a AjaxForm like the AjaxButton is implemented (why isn't there a AjaxForm delivered with Wicket?): public abstract class AjaxForm extends Form { public AjaxForm(String id) { super(id); add(new AjaxFormSubmitBehavior(this, onsubmit) { private static final long serialVersionUID = 1L; protected void onSubmit(AjaxRequestTarget target) { AjaxForm.this.onSubmit(target); } protected void onError(AjaxRequestTarget target) { AjaxForm.this.onError(target); } protected CharSequence getEventHandler() { return new AppendingStringBuffer(super.getEventHandler()).append(; return false;); } protected IAjaxCallDecorator getAjaxCallDecorator() { return AjaxForm.this.getAjaxCallDecorator(); } }); } protected IAjaxCallDecorator getAjaxCallDecorator() { return null; } protected void onError(AjaxRequestTarget target) { } protected abstract void onSubmit(AjaxRequestTarget target); } Now I can do: AjaxForm form = new AjaxForm(form) { private static final long serialVersionUID = 1L; protected void onSubmit(AjaxRequestTarget target) { PopupSettings popupSettings = new PopupSettings(PageMap.forName(id_ + textField.getConvertedInput()), PopupSettings.RESIZABLE).setHeight(768).setWidth(1024); PageParameters tmpParameters = new PageParameters(); tmpParameters.add(id, (String) partnerSearchTextField.getConvertedInput()); popupSettings.setTarget(' + urlFor(PrBrsPage.class, tmpParameters).toString() + '); final String orgPopupString = popupSettings.getPopupJavaScript(); int i = orgPopupString.indexOf(return false;); String popupString = popupSettings.getPopupJavaScript().substring(0, i-1); if (target != null) { target.appendJavascript(popupString); // focusComponent(null) to prevent that the main window regains focus target.focusComponent(null); } } }; But I don't really like this solution. If someone has an idea how to make this nicer, please speak ;) regards Thomas -- View this message in context: http://www.nabble.com/How-to-open-a-popup-in-onSubmit%28%29-of-a-Form-tp14435932p14452239.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]
WebApplication's newSession()
Hello, I'm new to Wicket and to Java in general. I'm trying to configure a Swarm+Acegi-driven security for my application. Since I need more Spring in future, MyWebApplication extends SpringWebApplication and implements WaspApplication. To make things work, I have to use WaspSession instead of regular Session, but when I try to override newSession() method in MyWebApplication, my IDE says this method is declared final in WebApplication class. This is 1.3-RC2 version of Wicket, Swarm Wasp are second betas. I assume I have to use my own SessionFactory somehow to put WaspSession in use. I just thought that the introduction of newSession() method was something done in 1.3 specifically to avoid using of SessioFactory just to use cusom Session. Please, tell me if I'm missing something here. Thanks. -- sp
Re: AjaxEditableLabel not saving
Try to change Content-Type of Page to text/html; charset=iso-8859-1. 2007/12/21, TahitianGabriel [EMAIL PROTECTED]: I've downgraded to RC1 also, but the accented characters are not handled correctly neither in RC1 or RC2... By the way I'm using Tomcat... Azarias Tomás wrote: I 've downgrade to wicket-extensions 1.3.0-rc1, and it's working. AT 2007/12/20, TahitianGabriel [EMAIL PROTECTED]: I have the same problem with wicket RC2 and tomcat 6. Where can I find RC3 to try it as it has not been release yet? Also when I enter accented characters in the editable label (like 'é', 'è', 'à', ...) they are turn into stange unreadable characters (I've tried with both rc1 ans rc2)... Any Idea? -- View this message in context: http://www.nabble.com/AjaxEditableLabel-not-saving-tp14413223p14451264.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] -- AT(R)
Ajax compatible url strategies?
Hello, Our client is really into Ajax /and/ bookmarkable URLs. What would be the best way to intercept and interpret anchor parameters (e.g. after the '#' in the URL)? Do I have to write my own UrlCodingStrategy? What would be the best way to change the URL when an Ajax link was clicked? Is there a way to do this all automatically? Would a BookmarkableAjaxFallbackLink make sense? Regards, Erik. -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: WebApplication's newSession()
On 21/12/2007, Martijn Dashorst [EMAIL PROTECTED] wrote: There is no need to extend the SpringWebApplication anymore: addComponentInstantiationListener(new SpringComponentInjector(this)); You can read more here: http://cwiki.apache.org/WICKET/spring.html Thanks for the tip, but I don't think I can use this I'm tied to JDK1.4 which I assume doesn't support annotations of this kind. So I have to stick to SpringWebApplication-based approach. -- sp
Re: WebApplication's newSession()
There is no need to extend the SpringWebApplication anymore: class MyApplication extends WebApplication { public void init() { super.init(); addComponentInstantiationListener(new SpringComponentInjector(this)); } } You can read more here: http://cwiki.apache.org/WICKET/spring.html Martijn On Dec 21, 2007 10:13 AM, sp [EMAIL PROTECTED] wrote: Hello, I'm new to Wicket and to Java in general. I'm trying to configure a Swarm+Acegi-driven security for my application. Since I need more Spring in future, MyWebApplication extends SpringWebApplication and implements WaspApplication. To make things work, I have to use WaspSession instead of regular Session, but when I try to override newSession() method in MyWebApplication, my IDE says this method is declared final in WebApplication class. This is 1.3-RC2 version of Wicket, Swarm Wasp are second betas. I assume I have to use my own SessionFactory somehow to put WaspSession in use. I just thought that the introduction of newSession() method was something done in 1.3 specifically to avoid using of SessioFactory just to use cusom Session. Please, tell me if I'm missing something here. Thanks. -- sp -- Buy Wicket in Action: http://manning.com/dashorst Apache Wicket 1.3.0-rc2 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-rc1/
Re: PageParameter backed models?
Hi, We have been happy with the below suggestion for keeping our search criteria in the URL: onsubmit() { setresponsepage(searchpage.class, crit.topageparameterrs()); }; Now we are beginning to experience the downsides: non-parameter backed models on the page (how many rows to display per page for example) get lost in this cycle. Could you guys suggest some in-between approach, where part of the state is stored in the URL, but the rest is kept in the components (models)? Thanks: Gabor Szokoli On Nov 28, 2007 9:46 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: why not just class searchpage extends webpage { private PageParameters params; private criteria crit=new criteria(); public searchpage(pageparameters params) { this.params=params; add(new dataview(results, new dataprovider()) {... }); form form=new form(form, new compoundproperty(new propertymodel(this, crit))) { onsubmit() { setresponsepage(searchpage.class, crit.topageparameterrs()); }; add(form); form.add(new textfield(name)); } private class dataprovider implements idataprovider { public iterator iterator(...) { return dao.search(params); } public int size() { return dao.size(params); } } done -igor On Nov 28, 2007 12:34 PM, Gabor Szokoli [EMAIL PROTECTED] wrote: Hi there, I'd like to have a search form, which keeps the last submitted search parameters in PageParameters in a bookmarkable fashion. I am wondering about the wicket way of doing this, and I keep coming back to an imaginary LoadableDetachableModel variant which would store a unique key, and load/store its object value from/to the PageParameters. I'd appreciate some advice: What would be the nicest way to get hold of the pageparameters in the current request from a model, and to set one in the next response? Or Is there some better way to achieve bookmarkable (partial) form state? Thanks in advance: Gabor Szokoli - 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: How to open a popup in onSubmit() of a Form
Do you know about org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow? It seems to do almost what you want, or at least you can look at the source. Cheers, Thomas On Dec 21, 2007 9:56 AM, thomas jaeckle [EMAIL PROTECTED] wrote: Hi again. I found a solution, but it isn't very nice: First I implemented a AjaxForm like the AjaxButton is implemented (why isn't there a AjaxForm delivered with Wicket?): public abstract class AjaxForm extends Form { public AjaxForm(String id) { super(id); add(new AjaxFormSubmitBehavior(this, onsubmit) { private static final long serialVersionUID = 1L; protected void onSubmit(AjaxRequestTarget target) { AjaxForm.this.onSubmit(target); } protected void onError(AjaxRequestTarget target) { AjaxForm.this.onError(target); } protected CharSequence getEventHandler() { return new AppendingStringBuffer(super.getEventHandler()).append(; return false;); } protected IAjaxCallDecorator getAjaxCallDecorator() { return AjaxForm.this.getAjaxCallDecorator(); } }); } protected IAjaxCallDecorator getAjaxCallDecorator() { return null; } protected void onError(AjaxRequestTarget target) { } protected abstract void onSubmit(AjaxRequestTarget target); } Now I can do: AjaxForm form = new AjaxForm(form) { private static final long serialVersionUID = 1L; protected void onSubmit(AjaxRequestTarget target) { PopupSettings popupSettings = new PopupSettings(PageMap.forName(id_ + textField.getConvertedInput()), PopupSettings.RESIZABLE).setHeight(768).setWidth(1024); PageParameters tmpParameters = new PageParameters(); tmpParameters.add(id, (String) partnerSearchTextField.getConvertedInput()); popupSettings.setTarget(' + urlFor(PrBrsPage.class, tmpParameters).toString() + '); final String orgPopupString = popupSettings.getPopupJavaScript(); int i = orgPopupString.indexOf(return false;); String popupString = popupSettings.getPopupJavaScript().substring(0, i-1); if (target != null) { target.appendJavascript(popupString); // focusComponent(null) to prevent that the main window regains focus target.focusComponent(null); } } }; But I don't really like this solution. If someone has an idea how to make this nicer, please speak ;) regards Thomas -- View this message in context: http://www.nabble.com/How-to-open-a-popup-in-onSubmit%28%29-of-a-Form-tp14435932p14452239.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]
Turbine and Wicket co-existence while migrating frameworks
About 3 1/2 yrs ago we chose Turbine as our web application framework. It has served us well and we've grown an application using it. Last summer we evaluated our options and have decided to give wicket a try. Given the complexity of our app it's not very desirable to make a clean switch - we'd really like to find a way to make the two frameworks co-exist to some degree or another. We envision invoking Turbine from within Wicket and somehow keep track of session for both. Has someone, or is someone out there considering this? Any experiences, etc. would be appreciated! Jay -- View this message in context: http://www.nabble.com/Turbine-and-Wicket-co-existence-while-migrating-frameworks-tp14453878p14453878.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: PageParameter backed models?
On Dec 21, 2007 1:09 PM, Johan Compagner [EMAIL PROTECTED] wrote: maybe you could do setResponsePage(new MyPage()) and use HyrbidUrlEncoding for a nice redirect url.. I am unable to find any reference to HyrbidUrlEncoding, could you help me out a notch more with a pointer? Also, we use the class-based setResponsePage variant because we need to set a few page parameters to store some of the state in the URL. Thanks! Gabor Szokoli - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax compatible url strategies?
Hi, sorry, it's not possible to do. The part after # (hash) never gets to the server. It's client only. Unless you e.g. use xmlhttprequest to post it to server after the page has been loaded. And the only way that change url on client without reloading the page is changing window.location.hash (the part after # which doesn't get to server on normal request). -Matej On Dec 21, 2007 11:38 AM, Erik van Oosten [EMAIL PROTECTED] wrote: Hello, Our client is really into Ajax /and/ bookmarkable URLs. What would be the best way to intercept and interpret anchor parameters (e.g. after the '#' in the URL)? Do I have to write my own UrlCodingStrategy? What would be the best way to change the URL when an Ajax link was clicked? Is there a way to do this all automatically? Would a BookmarkableAjaxFallbackLink make sense? Regards, Erik. -- Erik van Oosten http://day-to-day-stuff.blogspot.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: PageParameter backed models?
On Dec 21, 2007 2:03 PM, Johan Compagner [EMAIL PROTECTED] wrote: Look at HybridUrlCodingStrategy and mount the pages with that. Found that one, thank you! We'll look at it in detail. I guess you want them on the url so that the user can bookmark it right? Exactly. (You can look at my original-original message multi-quoted on the bottom of my first mail from today...) Gabor Szokoli - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Problem with JavaScript when using Wicket AJAX Components
Sorry, it's onRendered in AbstractBehavior. -Matej On Dec 21, 2007 8:13 AM, thomas jaeckle [EMAIL PROTECTED] wrote: Matej Knopp-2 wrote: Try this (it's a bit hacky though): datatable.add(new AbstractBehavior() { public final void afterRender(final Component component) { AjaxRequestTaget target = AjaxRequestTarget.get(); if (target !- null) { target.appendJavascript(your javascript to initialize the tooltips); } } }); -Matej Overriding a final method? I try to find another place to put the appendJavascript .. Thanks so far. -- View this message in context: http://www.nabble.com/Problem-with-JavaScript-when-using-Wicket-AJAX-Components-tp14432037p14451288.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: Minor Announcement: wicket-googlecharts
Hi Daniel, Last week I did exactly the same as you did here and was also planing to release it as wicketstuff project ... i think this could be called bad timing ;) Maybe we could collaborate on this in the future (I'll have a closer look after Christmas and maybe merge my stuff with yours) Regards, Stefan Daniel Spiewak wrote: Just a minor sidebar, at Johan's suggestion I've released wicket-googlecharts into the wicket-stuff project. I played with the build system a bit to make it work with maven and I think I did it right, but my maven experience is limited. License is currently discretionary, though if I really had to pick one I'd probably go with either ASL2 or BSD. Warning: anything that isn't tested by the test page in the project is completely theoretical and untested. This means things like scatter plots, color fills, etc are all up in the air. I'll probably get around to stabilizing functionality eventually, but for now it can just float. Hopefully someone will find this useful! Daniel (original article: http://www.codecommit.com/blog/java/a-wicket-api-for-google-charts) - --- Stefan Fußenegger http://talk-on-tech.blogspot.com // looking for a nicer domain ;) -- View this message in context: http://www.nabble.com/Minor-Announcement%3A-wicket-googlecharts-tp14442165p14454946.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]
Ottawa Wicket Meetup
I just added to the Wiki pages ... thought I would drop a note to the list If you're in Ottawa and are interested in meeting up to discuss Wicket, etc., give me a shout. Jay -- View this message in context: http://www.nabble.com/Ottawa-Wicket-Meetup-tp14454416p14454416.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: How to open a popup in onSubmit() of a Form
Thomas Kappler-2 wrote: Do you know about org.apache.wicket.extensions.ajax.markup.html.modal.ModalWindow? It seems to do almost what you want, or at least you can look at the source. Cheers, Thomas Thanks for the tip. But at this place I don't want a ModalWindow, a want a normal popup. And my problem would also remain with a ModalWindow: how can I open a new ModalWindow in onSubmit() of a form? Thomas -- View this message in context: http://www.nabble.com/How-to-open-a-popup-in-onSubmit%28%29-of-a-Form-tp14435932p14454415.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: Strange wicket bug in DataView?
Maybe, just maybe, we could look at the accept header, before rendering the page... -Matej On Dec 21, 2007 6:42 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: that is actually in our gotchas wiki page - images with src= cause a request to the page... -igor On Dec 20, 2007 6:54 PM, Tauren Mills [EMAIL PROTECTED] wrote: I think this problem is caused by the browser. Using Firebug, it looks like the browser is actually requesting the page a second time. Both requests go to: http://localhost:8080/db/app/?wicket:interface=:15 Here are the request headers from the first request: Host: localhost:8080 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://localhost:8080/db/app/?wicket:interface=:2 Cookie: JSESSIONID=1hndka1no7ub6; styleswitcher_style=small The browser then makes a second request: Host: localhost:8080 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 Accept: image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://localhost:8080/db/app/?wicket:interface=:3 Cookie: JSESSIONID=1hndka1no7ub6; styleswitcher_style=small Cache-Control: max-age=0 Note that the second request has a different Accept (images only?) and a Cache-Control. This seems to only be happening to me when the image source is empty. Even having any text in there works. The following wicket output causes the problem: img wicket:id=image1 src=/ So it looks like if there is an image on the page without a source (not just a broken image), that Firefox requests the page URL again. And by doing so, causes my DataView to refresh. But it doesn't refresh the DOM on the 2nd request, only images. Thus the links are no longer valid. To solve this problem, I just need to make sure that my image src is never an empty string. Here is a simple hack that I did to my StaticImage class: public class StaticImage extends WebComponent { private static final long serialVersionUID = 1L; public StaticImage(String id, IModel model) { super(id, model); } protected void onComponentTag(ComponentTag tag) { checkComponentTag(tag, img); String src = getModelObjectAsString(); tag.put(src, (!src.equals()?src:no_image) ); } } With this, img src=no_image in the markup. It doesn't render of course, but it also doesn't cause a 2nd page refresh. One last thing. If I just add img src=/ to my page's HTML, it appears that it is rewritten by wicket to be this: img src=..//. So maybe this is a problem that was already discovered and solved. But when I made a custom component that alters the src, I lost that solution. I guess in the end, this isn't a wicket problem. It isn't really even a problem with my application, although I can solve it in my application. I don't know enough about why Firefox is doing this, so it might not even be a browser problem. Who knows... I hope this helps someone else who runs into a similar issue. Tauren On Dec 20, 2007 4:16 PM, Tauren Mills [EMAIL PROTECTED] wrote: Gwyn, Thanks for the guidance! The DataProvider.iterator was being executed twice. I put a breakpoint in iterator() and it would pause when the page first started to load. Then I'd continue running the code, and the breakpoint was hit again. At that time, the full page was rendered except for some images on the page, and the browser was paused loading again because of the breakpoint. When I continued running the code, the page would finish loading. The images that weren't loaded are URLs stored in my DB. I found that when I had image URLs in the DB, everything worked fine. But when I had NULL entries for the images, then I'd get this exception and the iterator would run twice. So when the iterator would run twice, the component hierarchy would change, causing the link URLs to no longer be valid. I'm still tracking it down to figure out exactly what is going on. But you got me on the right track. And now I'm thinking it is more of a problem in my application or database than in wicket itself. Which is what I was hoping was the case anyway! :) Tauren On Dec 20, 2007 7:43 AM, Gwyn Evans [EMAIL PROTECTED] wrote: No real idea, but I'd be tempted to stick in some diagnostic logging to log the calls to the DataProvider the details of
Re: PageParameter backed models?
maybe you could do setResponsePage(new MyPage()) and use HyrbidUrlEncoding for a nice redirect url.. johan On Dec 21, 2007 12:26 PM, Gabor Szokoli [EMAIL PROTECTED] wrote: Hi, We have been happy with the below suggestion for keeping our search criteria in the URL: onsubmit() { setresponsepage(searchpage.class, crit.topageparameterrs()); }; Now we are beginning to experience the downsides: non-parameter backed models on the page (how many rows to display per page for example) get lost in this cycle. Could you guys suggest some in-between approach, where part of the state is stored in the URL, but the rest is kept in the components (models)? Thanks: Gabor Szokoli On Nov 28, 2007 9:46 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: why not just class searchpage extends webpage { private PageParameters params; private criteria crit=new criteria(); public searchpage(pageparameters params) { this.params=params; add(new dataview(results, new dataprovider()) {... }); form form=new form(form, new compoundproperty(new propertymodel(this, crit))) { onsubmit() { setresponsepage(searchpage.class, crit.topageparameterrs()); }; add(form); form.add(new textfield(name)); } private class dataprovider implements idataprovider { public iterator iterator(...) { return dao.search(params); } public int size() { return dao.size(params); } } done -igor On Nov 28, 2007 12:34 PM, Gabor Szokoli [EMAIL PROTECTED] wrote: Hi there, I'd like to have a search form, which keeps the last submitted search parameters in PageParameters in a bookmarkable fashion. I am wondering about the wicket way of doing this, and I keep coming back to an imaginary LoadableDetachableModel variant which would store a unique key, and load/store its object value from/to the PageParameters. I'd appreciate some advice: What would be the nicest way to get hold of the pageparameters in the current request from a model, and to set one in the next response? Or Is there some better way to achieve bookmarkable (partial) form state? Thanks in advance: Gabor Szokoli - 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]
Job Opportunity for Developers, Java Web at Fredhopper
TOP SOFTWARE PRODUCT COMPANY OFFERS TALENTED JAVA WEB DEVELOPERS A UNIQUE OPPORTUNITY TO BUILD LARGE SCALE WEB APPLICATIONS Company: Fredhopper, Location: Amsterdam or Sofia, Position: Full-time Do you have a talent for seeing a problem and immediately contemplating the likely solution? Are you passionate about making great ideas reality? Do you thrive within a fast-paced and engineering-driven environment? At Fredhopper we look for talented engineers with web technology experience to join our team of engineers that develop our next generation search engine. Fredhopper developers tackle interesting large scale challenges, build product innovations and work on the breadth of the entire product, crafting solutions from idea to implementation. We use short release cycles to continually add novel features, so you will immediately see the impact of your efforts. Fredhopper is the № 1 provider of site search solutions for online business in Europe and behind the scenes of many of the largest online businesses. Customers include many leading international companies such as Philips Electronics, Karstadt-Quelle, Kingfisher, Littlewoods-Shopdirect, 3 Suisses, Okaidi, Thomas Cook, Wolters Kluwer and Woolworths. Fredhopper has product development centers in Amsterdam and Sofia. The nature of the issues we’re working on require a development team that yields both excellent analytical and engineering skills. We prioritise talent over experience. Qualifications University degree in Computer Science or equivalent (last year students will also be considered) Strong programming skills, preferably in Java or other OO language Excellent understanding of Web-standards, such as JS, HTML, XML Self-thinking and having hands-on approach Good knowledge of English language Experience with web-based user interfaces such as JSF, Wicket, Tapestry is a plus Applications Interested? Then send your CV to [EMAIL PROTECTED], or contact Vasil Kokareshkov at [EMAIL PROTECTED] www.fredhopper.com We are looking to fill positions immediately, therefore apply today! -- View this message in context: http://www.nabble.com/Job-Opportunity-for-Developers%2C-Java-Web-at-Fredhopper-tp14456583p14456583.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: PageParameter backed models?
Look at HybridUrlCodingStrategy and mount the pages with that. I guess you want them on the url so that the user can bookmark it right? johan On Dec 21, 2007 1:49 PM, Gabor Szokoli [EMAIL PROTECTED] wrote: On Dec 21, 2007 1:09 PM, Johan Compagner [EMAIL PROTECTED] wrote: maybe you could do setResponsePage(new MyPage()) and use HyrbidUrlEncoding for a nice redirect url.. I am unable to find any reference to HyrbidUrlEncoding, could you help me out a notch more with a pointer? Also, we use the class-based setResponsePage variant because we need to set a few page parameters to store some of the state in the URL. Thanks! Gabor Szokoli - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Wicket: Deliver Your Webapp On Time
http://www.alphacsp.com/Events/JavaEdge-2007/Presentations/wicket-deliver-your-webapp-on-time.pdf - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Ajax compatible url strategies?
Hi, The part after # (hash) never gets to the server...Unless you e.g. use xmlhttprequest Ah. Didn't know that. But I can live with that. So I'll have to add a handler on each page to detect # parameters and do a new (perhaps Ajax) submit. Of course the handler should only fire upon a reload or initial load. the only way that change url on client without reloading the page is changing window.location.hash That I knew. I was thinking of doing this as a part of an ajax response. Not sure how yet, but I think I can do this. So there are ways to do this. What I am most curious at is how to cleanly add support for this in a Wicket application. Here is rough idea, please shoot at it. When the BookmarkableAjaxFallbackLink does its thing without Ajax it will behave like a BookmarkableLink and encode the parameters according to the linked BookmarkablePage. With Ajax, it will add the same parameters with the same url coding rules, but after the '#' (client side). Any page that can be reached by a BookmarkableAjaxFallbackLink should detect a reload with '#' parameters and do a redirect to the same page but with everything after the '#' converted to normal parameters (e.g. after the '?'). How does this sound? Regards, Erik. Matej Knopp wrote: Hi, sorry, it's not possible to do. The part after # (hash) never gets to the server. It's client only. Unless you e.g. use xmlhttprequest to post it to server after the page has been loaded. And the only way that change url on client without reloading the page is changing window.location.hash (the part after # which doesn't get to server on normal request). -Matej On Dec 21, 2007 11:38 AM, Erik van Oosten [EMAIL PROTECTED] wrote: Hello, Our client is really into Ajax /and/ bookmarkable URLs. What would be the best way to intercept and interpret anchor parameters (e.g. after the '#' in the URL)? Do I have to write my own UrlCodingStrategy? What would be the best way to change the URL when an Ajax link was clicked? Is there a way to do this all automatically? Would a BookmarkableAjaxFallbackLink make sense? Regards, Erik. -- Erik van Oosten http://day-to-day-stuff.blogspot.com/ - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: wicket-datetime-rc2 javascript error in generated event.js
Answering myself. The problem does not occur anymore in yesterday's snapshot. Thanks to whoever fixed it, Wilko Hische -- View this message in context: http://www.nabble.com/wicket-datetime-rc2-javascript-error-in-generated-event.js-tp14438031p14457168.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: AjaxEditableLabel not saving
did somebody made a jira issue for this with a small test case then? so that we do fix this for the final On Dec 21, 2007 7:58 AM, TahitianGabriel [EMAIL PROTECTED] wrote: I've downgraded to RC1 also, but the accented characters are not handled correctly neither in RC1 or RC2... By the way I'm using Tomcat... Azarias Tomás wrote: I 've downgrade to wicket-extensions 1.3.0-rc1, and it's working. AT 2007/12/20, TahitianGabriel [EMAIL PROTECTED]: I have the same problem with wicket RC2 and tomcat 6. Where can I find RC3 to try it as it has not been release yet? Also when I enter accented characters in the editable label (like 'é', 'è', 'à', ...) they are turn into stange unreadable characters (I've tried with both rc1 ans rc2)... Any Idea? -- View this message in context: http://www.nabble.com/AjaxEditableLabel-not-saving-tp14413223p14451264.html Sent from the Wicket - User mailing list archive at Nabble.comhttp://nabble.com/ . - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: AjaxEditableLabel not saving
Johan Compagner wrote: did somebody made a jira issue for this with a small test case then? so that we do fix this for the final I did. https://issues.apache.org/jira/browse/WICKET-1239 Artur -- View this message in context: http://www.nabble.com/AjaxEditableLabel-not-saving-tp14413223p14455821.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: Strange wicket bug in DataView?
do all browsers send it? -igor On 12/21/07, Matej Knopp [EMAIL PROTECTED] wrote: Maybe, just maybe, we could look at the accept header, before rendering the page... -Matej On Dec 21, 2007 6:42 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: that is actually in our gotchas wiki page - images with src= cause a request to the page... -igor On Dec 20, 2007 6:54 PM, Tauren Mills [EMAIL PROTECTED] wrote: I think this problem is caused by the browser. Using Firebug, it looks like the browser is actually requesting the page a second time. Both requests go to: http://localhost:8080/db/app/?wicket:interface=:15 Here are the request headers from the first request: Host: localhost:8080 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://localhost:8080/db/app/?wicket:interface=:2 Cookie: JSESSIONID=1hndka1no7ub6; styleswitcher_style=small The browser then makes a second request: Host: localhost:8080 User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.11) Gecko/20071127 Firefox/2.0.0.11 Accept: image/png,*/*;q=0.5 Accept-Language: en-us,en;q=0.5 Accept-Encoding: gzip,deflate Accept-Charset: ISO-8859-1,utf-8;q=0.7,*;q=0.7 Keep-Alive: 300 Connection: keep-alive Referer: http://localhost:8080/db/app/?wicket:interface=:3 Cookie: JSESSIONID=1hndka1no7ub6; styleswitcher_style=small Cache-Control: max-age=0 Note that the second request has a different Accept (images only?) and a Cache-Control. This seems to only be happening to me when the image source is empty. Even having any text in there works. The following wicket output causes the problem: img wicket:id=image1 src=/ So it looks like if there is an image on the page without a source (not just a broken image), that Firefox requests the page URL again. And by doing so, causes my DataView to refresh. But it doesn't refresh the DOM on the 2nd request, only images. Thus the links are no longer valid. To solve this problem, I just need to make sure that my image src is never an empty string. Here is a simple hack that I did to my StaticImage class: public class StaticImage extends WebComponent { private static final long serialVersionUID = 1L; public StaticImage(String id, IModel model) { super(id, model); } protected void onComponentTag(ComponentTag tag) { checkComponentTag(tag, img); String src = getModelObjectAsString(); tag.put(src, (!src.equals()?src:no_image) ); } } With this, img src=no_image in the markup. It doesn't render of course, but it also doesn't cause a 2nd page refresh. One last thing. If I just add img src=/ to my page's HTML, it appears that it is rewritten by wicket to be this: img src=..//. So maybe this is a problem that was already discovered and solved. But when I made a custom component that alters the src, I lost that solution. I guess in the end, this isn't a wicket problem. It isn't really even a problem with my application, although I can solve it in my application. I don't know enough about why Firefox is doing this, so it might not even be a browser problem. Who knows... I hope this helps someone else who runs into a similar issue. Tauren On Dec 20, 2007 4:16 PM, Tauren Mills [EMAIL PROTECTED] wrote: Gwyn, Thanks for the guidance! The DataProvider.iterator was being executed twice. I put a breakpoint in iterator() and it would pause when the page first started to load. Then I'd continue running the code, and the breakpoint was hit again. At that time, the full page was rendered except for some images on the page, and the browser was paused loading again because of the breakpoint. When I continued running the code, the page would finish loading. The images that weren't loaded are URLs stored in my DB. I found that when I had image URLs in the DB, everything worked fine. But when I had NULL entries for the images, then I'd get this exception and the iterator would run twice. So when the iterator would run twice, the component hierarchy would change, causing the link URLs to no longer be valid. I'm still tracking it down to figure out exactly what is going on. But you got me on the right track. And now I'm thinking it is more of a problem in my application or database than in wicket itself. Which is what I was hoping was the case anyway! :)
Reusable search form - help w/ detail...
Hello Wicketeers... I've got a series of pages that all have the same search form and use the same input class, the only thing different about them is where they redirect (since every page is different.) I need a second set of eyes...how do I make this form reusable? The form captures the search input and redirects the page back to itself...so I need a way of parameterizing where it redirects (unless there's a better approach that I'm unaware of.) Here's the page that my search pages will derive from, which is already using markup inheritance (i.e. BasePage, which derives from WebPage): public class SearchListPage extends BasePage { private static class SearchForm extends Form { public SearchForm(String name, SearchInput input, WebPage redirectPage) { super(name, new CompoundPropertyModel(input)); add(new TextField(searchText) .setRequired(true) .add(StringValidator.lengthBetween(2, 100))); add(new Button(searchButton) { public void onSubmit() { try { //save form values, redirect SearchInput input = (SearchInput)getParent().getModelObject(); redirectPage. //WHAT DO TO HERE?? setResponsePage(new WebPage(input.getSearchText())); //WRONG! } catch (Exception exp) { info(exp.getMessage()); } } }); } } } As you can see, I've gotten as far as trying to figure out what I can do w/ the WebPage param, if anything...any ideas? Thanks! -- View this message in context: http://www.nabble.com/Reusable-search-form---help-w--detail...-tp14457665p14457665.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: suggesting alternative to IndicatingAjaxFallbackLink-class for just changing pointer/cursor
Unfortunately the approach below seems not to work reliably on IE7; for certain kind of changes, the OnSuccess or OnFailure never gets called and so the cursor gets stuck in Busy mode. That stinks! On Dec 18, 2007 11:29 AM, Kirk Israel [EMAIL PROTECTED] wrote: I guess I prefer the convention of changing the mouse pointer to busy rather than putting a little throbber by the link for two reasons: 1. the throbber risks messing with the layout of the page 2. Changing the cursor has a much longer history as a UI convention for computer busyness Now Firefox was already changing the cursor for Ajax operations for some cases, but it was inconsistent, I think this small class deals with that: /** * AjaxFallbackLink that changes mouse pointer to progress (i.e. busy) during Ajax operations * for the link itself (in case the pointer is still hovering over it) and the whole document * (if the pointer has been moved) * */ public abstract class ProgressPointerAjaxFallbackLink extends AjaxFallbackLink { public ProgressPointerAjaxFallbackLink(final String id) { this(id, null); } public ProgressPointerAjaxFallbackLink(final String id, final IModel model){ super(id, model); } @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxCallDecorator(){ private static final long serialVersionUID = 1L; public CharSequence decorateScript(CharSequence pScript) { return this.style.cursor='progress';document.body.style.cursor='progress';+pScript; } public CharSequence decorateOnSuccessScript(CharSequence pScript) { return this.style.cursor='pointer';document.body.style.cursor='auto';+pScript; } public CharSequence decorateOnFailureScript(CharSequence pScript) { return this.style.cursor='pointer';document.body.style.cursor='auto';+pScript; } }; } } ProgressPointerAjaxFallbackLink is more concise but probably less readable than my coworker's suggestion BusyCursorAjaxFallbackLink. Actually I might switch to the latter. Feedback to this approach and/or implementation welcome. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: suggesting alternative to IndicatingAjaxFallbackLink-class for just changing pointer/cursor
The onSuccess script seem to work on http://wicketstuff.org/wicket13/ajax/links example. However the onFailure doesn't, because now we redirect to internalErrorPage. Which doesn't work in IE7, which is kinda weird, will look at it later today. -Matej On Dec 21, 2007 5:14 PM, Kirk Israel [EMAIL PROTECTED] wrote: Unfortunately the approach below seems not to work reliably on IE7; for certain kind of changes, the OnSuccess or OnFailure never gets called and so the cursor gets stuck in Busy mode. That stinks! On Dec 18, 2007 11:29 AM, Kirk Israel [EMAIL PROTECTED] wrote: I guess I prefer the convention of changing the mouse pointer to busy rather than putting a little throbber by the link for two reasons: 1. the throbber risks messing with the layout of the page 2. Changing the cursor has a much longer history as a UI convention for computer busyness Now Firefox was already changing the cursor for Ajax operations for some cases, but it was inconsistent, I think this small class deals with that: /** * AjaxFallbackLink that changes mouse pointer to progress (i.e. busy) during Ajax operations * for the link itself (in case the pointer is still hovering over it) and the whole document * (if the pointer has been moved) * */ public abstract class ProgressPointerAjaxFallbackLink extends AjaxFallbackLink { public ProgressPointerAjaxFallbackLink(final String id) { this(id, null); } public ProgressPointerAjaxFallbackLink(final String id, final IModel model){ super(id, model); } @Override protected IAjaxCallDecorator getAjaxCallDecorator() { return new AjaxCallDecorator(){ private static final long serialVersionUID = 1L; public CharSequence decorateScript(CharSequence pScript) { return this.style.cursor='progress';document.body.style.cursor='progress';+pScript; } public CharSequence decorateOnSuccessScript(CharSequence pScript) { return this.style.cursor='pointer';document.body.style.cursor='auto';+pScript; } public CharSequence decorateOnFailureScript(CharSequence pScript) { return this.style.cursor='pointer';document.body.style.cursor='auto';+pScript; } }; } } ProgressPointerAjaxFallbackLink is more concise but probably less readable than my coworker's suggestion BusyCursorAjaxFallbackLink. Actually I might switch to the latter. Feedback to this approach and/or implementation welcome. - 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 really dumb? Converting to amp; in password fields?
-- View this message in context: http://www.nabble.com/Wicket-really-dumb--Converting---to--amp--in-password-fields--tp14460118p14460165.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]
Wicket really dumb? Converting to amp; in password fields?
I've been debugging a (hopefully) unrelated problem when I came across this... Someone submits passwrd as a password in my login form and the back-end gets it as passwamp;amp;rd Are you kidding me? Why would that be happening? -- View this message in context: http://www.nabble.com/Wicket-really-dumb--Converting---to--amp--in-password-fields--tp14460118p14460118.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: Deliver Your Webapp On Time
Nice. You mind adding that reference to the WIKI? Eelco On Dec 21, 2007 4:20 AM, William Hoover [EMAIL PROTECTED] wrote: http://www.alphacsp.com/Events/JavaEdge-2007/Presentations/wicket-deliver-your-webapp-on-time.pdf - 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]
Wickettester and session?
Hi There seems to be a problem with wicket tester and the session created (I use my own custom session). I create the wicket tester like this: final ApplicationContext context = new ClassPathXmlApplicationContext( applicationContext.xml); IDBDao base = (IDBDao) context.getBean(dBDao); dbProvider = base; base.generateDummyData(); // 2. setup mock injection environment AnnotApplicationContextMock appctx = new AnnotApplicationContextMock(); appctx.putBean(dBDao, dbProvider); wicketTester = new WicketTester(ZeuzGroupApplication.class); WebApplication app = wicketTester.getApplication(); app.addComponentInstantiationListener(new SpringComponentInjector(app, appctx)); The application works fine without testing. But I get a class cast exception when testing, since the session arent my custom one, heres how I instantiate new sessions in my webapplication: @Override public Session newSession(Request request, Response response) { ZeuzSession zeuzSession = new ZeuzSession(this, request); return zeuzSession; } -regards Nino -- 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: Wicket really dumb? Converting to amp; in password fields?
I love the way Wicket community handles such offences :). -- sp
Re: How to flush the markup stream in getMarkupResourceStream() method
Thanks Igor, I tired by returning null in getCacheKey() method and is working great. Even 'Matthijs Wensveen' replied to my mail with the same explanation. Thanks, Venkat igor.vaynberg wrote: public class DisplayPage extends WebPage implements IMarkupResourceStreamProvider, **IMarkupCacheKeyProvider** {...} -igor On Dec 19, 2007 11:34 PM, Gabor Szokoli [EMAIL PROTECTED] wrote: Me Too! Well, not exactly, but similar issue: We read markup files from the file systems, and consider implementing a JMX trigger for reloading them, but what should the triggered method actually do? (In the mean time I realised the solution to my problem is probably different from vekys, but I assume mine resembles flush more, so dibs on his subject line! :-) ) Gabor Szokoli On Dec 19, 2007 9:26 PM, venky221 [EMAIL PROTECTED] wrote: If I restart my tomcat between the two requests, it works fine but I can not flush the markup content that I was getting from getMarkupResourceStream() method if I am making the two requests without restarting my server. - 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/How-to-flush-the-markup-stream-in-getMarkupResourceStream%28%29-method-tp14424660p14460441.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: Minor Announcement: wicket-googlecharts
Stefan, Collaboration would be great! I imagine my design is not what it could be... :-) Sounds like merging with your stuff might cover the bases where mine is weak. Looking forward to it! Daniel Stefan Fußenegger wrote: Hi Daniel, Last week I did exactly the same as you did here and was also planing to release it as wicketstuff project ... i think this could be called bad timing ;) Maybe we could collaborate on this in the future (I'll have a closer look after Christmas and maybe merge my stuff with yours) Regards, Stefan Daniel Spiewak wrote: Just a minor sidebar, at Johan's suggestion I've released wicket-googlecharts into the wicket-stuff project. I played with the build system a bit to make it work with maven and I think I did it right, but my maven experience is limited. License is currently discretionary, though if I really had to pick one I'd probably go with either ASL2 or BSD. Warning: anything that isn't tested by the test page in the project is completely theoretical and untested. This means things like scatter plots, color fills, etc are all up in the air. I'll probably get around to stabilizing functionality eventually, but for now it can just float. Hopefully someone will find this useful! Daniel (original article: http://www.codecommit.com/blog/java/a-wicket-api-for-google-charts) -- View this message in context: http://www.nabble.com/Minor-Announcement%3A-wicket-googlecharts-tp14442165p14460459.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 really dumb? Converting to amp; in password fields?
what version of this dumb framework are you using? -igor On Dec 21, 2007 10:23 AM, fattymelt [EMAIL PROTECTED] wrote: I've been debugging a (hopefully) unrelated problem when I came across this... Someone submits passwrd as a password in my login form and the back-end gets it as passwamp;amp;rd Are you kidding me? Why would that be happening? -- View this message in context: http://www.nabble.com/Wicket-really-dumb--Converting---to--amp--in-password-fields--tp14460118p14460118.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: Reusable search form - help w/ detail...
public abstract class SearchForm { . protected abstract void onSearch(SearchInput input); ... add(new Button(searchButton) { public void onSubmit() { try { //save form values, redirect SearchInput input = (SearchInput)getParent().getModelObject(); redirectPage. //WHAT DO TO HERE?? onSearch(input); } then just then just add(new SearchForm(form) { protected void onSearch(SearchInput si) { setResponsePage(new MyWebPage(si)); }} -igor On Dec 21, 2007 7:53 AM, V. Jenks [EMAIL PROTECTED] wrote: Hello Wicketeers... I've got a series of pages that all have the same search form and use the same input class, the only thing different about them is where they redirect (since every page is different.) I need a second set of eyes...how do I make this form reusable? The form captures the search input and redirects the page back to itself...so I need a way of parameterizing where it redirects (unless there's a better approach that I'm unaware of.) Here's the page that my search pages will derive from, which is already using markup inheritance (i.e. BasePage, which derives from WebPage): public class SearchListPage extends BasePage { private static class SearchForm extends Form { public SearchForm(String name, SearchInput input, WebPage redirectPage) { super(name, new CompoundPropertyModel(input)); add(new TextField(searchText) .setRequired(true) .add(StringValidator.lengthBetween(2, 100))); add(new Button(searchButton) { public void onSubmit() { try { //save form values, redirect SearchInput input = (SearchInput)getParent().getModelObject(); redirectPage. //WHAT DO TO HERE?? setResponsePage(new WebPage(input.getSearchText())); //WRONG! } catch (Exception exp) { info(exp.getMessage()); } } }); } } } As you can see, I've gotten as far as trying to figure out what I can do w/ the WebPage param, if anything...any ideas? Thanks! -- View this message in context: http://www.nabble.com/Reusable-search-form---help-w--detail...-tp14457665p14457665.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 really dumb? Converting to amp; in password fields?
pretty hard to misunderstand Wicket really dumb? :) -igor On Dec 21, 2007 10:49 AM, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Misunderstandings happen eventually, but Wicket RULEZ, and its community too. :-) my2cents, f(t) On Dec 21, 2007 3:40 PM, Sergey Podatelev [EMAIL PROTECTED] wrote: I love the way Wicket community handles such offences :). -- sp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket really dumb? Converting to amp; in password fields?
Wow. Sorry to have angered the masses. I didn't mean it was a dumb framework overall, I meant that it seemed to be acting dumb in this particular instance. At my place of business we call code dumb all the time when it doesn't do what is typically expected. So, I certainly wasn't trying to insult wicket as a project. Anyway, I was surprised to see that wicket was automatically HTML escaping my post parameters. This seemed very strange. I don't typically right bug tickets until I get some sort of verification that it is a bug, and not something I am missing (sometime I am dumb, too). I'm using wicket 1.2.6, but this problem may be specific to the wicket-auth-roles package which is also 1.2.6. I changed the sign-in code that came with that package from password.getModelObjectAsString() to password.getInput() and all seems well now. Matej Knopp-2 wrote: Wicket replaces with amp; on any place in markup it produces. That's how markup document works. is a beginning of entity and must be escaped. In your case the escaping seems to be done twice. That might mean a bug in wicket. In that case the proper thing would be creating a jira issue instead of calling the framework dumb. And I doubt anyone would bother to be kidding you. -Matej On Dec 21, 2007 7:23 PM, fattymelt [EMAIL PROTECTED] wrote: I've been debugging a (hopefully) unrelated problem when I came across this... Someone submits passwrd as a password in my login form and the back-end gets it as passwamp;amp;rd Are you kidding me? Why would that be happening? -- View this message in context: http://www.nabble.com/Wicket-really-dumb--Converting---to--amp--in-password-fields--tp14460118p14460118.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/Wicket-really-dumb--Converting---to--amp--in-password-fields--tp14460118p14460460.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]
[OT] Merry Christmas to the wicket community
I had alot fun with you this year. Wicket seems to become a real important framework (Maybe it is already :-). I'm new to web-development and i tried a bit with jsf, jsp, and and and. But since i found wicket, it's realy fun to create webapplications. All i want to say is - thanks to everyone who helped us out from the wood. This project is one of the best managed and supported one i saw until now. I hope you all have a busy santa and a happy new year. CU next year Per - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket really dumb? Converting to amp; in password fields?
Misunderstandings happen eventually, but Wicket RULEZ, and its community too. :-) my2cents, f(t) On Dec 21, 2007 3:40 PM, Sergey Podatelev [EMAIL PROTECTED] wrote: I love the way Wicket community handles such offences :). -- sp
Re: Wicket really dumb? Converting to amp; in password fields?
I'm using the wicket-auth-roles package. I see the code that returns the password is password.getModelObjectAsString() perhaps that is mucking with it? fattymelt wrote: I've been debugging a (hopefully) unrelated problem when I came across this... Someone submits passwrd as a password in my login form and the back-end gets it as passwamp;amp;rd Are you kidding me? Why would that be happening? -- View this message in context: http://www.nabble.com/Wicket-really-dumb--Converting---to--amp--in-password-fields--tp14460118p14460170.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 really dumb? Converting to amp; in password fields?
Hmm, strange tone to get an answer for. Cheers Per - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket really dumb? Converting to amp; in password fields?
right On Dec 21, 2007 3:36 PM, Per Newgro [EMAIL PROTECTED] wrote: Hmm, strange tone to get an answer for. Cheers Per - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: Wicket really dumb? Converting to amp; in password fields?
Although I think you didn't angered the masses. We don't like to miss the oportunity to support Wicket and its community of users and developers. :-) Any oportunity ;-) f(t) On Dec 21, 2007 3:54 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: pretty hard to misunderstand Wicket really dumb? :) -igor On Dec 21, 2007 10:49 AM, Francisco Diaz Trepat - gmail [EMAIL PROTECTED] wrote: Misunderstandings happen eventually, but Wicket RULEZ, and its community too. :-) my2cents, f(t) On Dec 21, 2007 3:40 PM, Sergey Podatelev [EMAIL PROTECTED] wrote: I love the way Wicket community handles such offences :). -- sp - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
IE7, loose.dtd, and the default Wicket error pages
So IE7 seems to choke on the default Wicket error pages (such as time out) because it doesn't like the --s inside of http://www.w3.org/TR/html4/loose.dtd Our work around was to override the pages on a case per case basis: getApplicationSettings().setPageExpiredErrorPage(TimeoutPage.class); I don't know if there's fingerpointing of IE7 vs w3.org about this. Being a pragmatic developer with street roots, I greatly dislike a decent error page with a link to the front of the site being replaced with an ugly can't parse the XML page, so I was wondering who will bend first, IE7, w3.org, or Wicket? And is there another more generalized solution to this problem? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
RE: Wicket: Deliver Your Webapp On Time
Done: http://cwiki.apache.org/confluence/x/wAUB (JavaEdge) -Original Message- From: Eelco Hillenius [mailto:[EMAIL PROTECTED] Sent: Friday, December 21, 2007 1:07 PM To: users@wicket.apache.org Subject: Re: Wicket: Deliver Your Webapp On Time Nice. You mind adding that reference to the WIKI? Eelco On Dec 21, 2007 4:20 AM, William Hoover [EMAIL PROTECTED] wrote: http://www.alphacsp.com/Events/JavaEdge-2007/Presentations/wicket-deliver-your-webapp-on-time.pdf - 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]
How can i present a busy component
Hi *, i have a page with some panels. On one panel there is a button. If this is clicked a long running task is executed. The problem is that the cursor is still a pointer and the browser seems to do nothing. This happens until the long running task is ended. Then the panel components will be refreshed. I would like at least to bring the little clock icon to my pointer. But how should i do that? Another much better solution would be if i could overlay the panel with a grey fog. I experimented already with this but couldn't find a usable solution. Maybe someone can give me a hint where i can start to search. Thanks Per - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How can i present a busy component
hi, depending on what you consider useful, maybe this[0] helps. notice: currently doesn't work for IE. look at the _syncMask function in [1] to see how to make it work. hth, gerolf [0] http://papernapkin.org/pastebin/view/16170/ [1] http://com3.devnet.re3.yahoo.com/yui/docs/CalendarNavigator.js.html On Dec 21, 2007 10:40 PM, Per Newgro [EMAIL PROTECTED] wrote: Hi *, i have a page with some panels. On one panel there is a button. If this is clicked a long running task is executed. The problem is that the cursor is still a pointer and the browser seems to do nothing. This happens until the long running task is ended. Then the panel components will be refreshed. I would like at least to bring the little clock icon to my pointer. But how should i do that? Another much better solution would be if i could overlay the panel with a grey fog. I experimented already with this but couldn't find a usable solution. Maybe someone can give me a hint where i can start to search. Thanks Per - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: How to call the clear() method on MarkupCache class from my webpage
Sounds like you should look at the CustomResourceLoadingApplication example, particularly at PageWithCustomLoading. Eelco On Dec 19, 2007 3:15 PM, venky221 [EMAIL PROTECTED] wrote: Hi, I am trying to clear the markupstream as my markup content will keep changing but the container remains same. How can I get the handle to this MarkupCache class to call the clear() method in my webpage. Thanks, Venky -- View this message in context: http://www.nabble.com/How-to-call-the-clear%28%29-method-on-MarkupCache-class-from-my-webpage-tp14427528p14427528.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: [OT] Merry Christmas to the wicket community
Yes have all a few good days last days this year and let 2008 be another super wicket year. I wont be around very much from now on until the 20 of jan. So matej will fix all the bugs for you guys in that time. I will be on a vacation without a laptop... (south africa) Johan On 12/21/07, Per Newgro [EMAIL PROTECTED] wrote: I had alot fun with you this year. Wicket seems to become a real important framework (Maybe it is already :-). I'm new to web-development and i tried a bit with jsf, jsp, and and and. But since i found wicket, it's realy fun to create webapplications. All i want to say is - thanks to everyone who helped us out from the wood. This project is one of the best managed and supported one i saw until now. I hope you all have a busy santa and a happy new year. CU next year Per - 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: [OT] Merry Christmas to the wicket community
You're welcome. Newgro wrote: I had alot fun with you this year. Wicket seems to become a real important framework (Maybe it is already :-). I'm new to web-development and i tried a bit with jsf, jsp, and and and. But since i found wicket, it's realy fun to create webapplications. All i want to say is - thanks to everyone who helped us out from the wood. This project is one of the best managed and supported one i saw until now. I hope you all have a busy santa and a happy new year. CU next year Per - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] -- View this message in context: http://www.nabble.com/-OT--Merry-Christmas-to-the-wicket-community-tp14460734p14466988.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: AjaxEditableLabel not saving
I'm already using the iso-8859-1 in a meta tag in my html file. I have also try in the setHeader function and it's not working. Do you have a correct behavior with accented character? Azarias Tomás wrote: Try to change Content-Type of Page to text/html; charset=iso-8859-1. -- View this message in context: http://www.nabble.com/AjaxEditableLabel-not-saving-tp14413223p14467161.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]