[Wicket-user] How to close ModalWindow?
Look like I need a AjaxRequestTarget, but how can I get it? Or I can just create one? http://wicketframework.org/wicket-extensions/apidocs/wicket/extensions/ajax/markup/html/modal/ModalWindow.html#close(wicket.ajax.AjaxRequestTarget) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How to close ModalWindow?
Sorry, I get it, I have to create some ajax button or link to work with this On 1/24/07, Carfield Yim [EMAIL PROTECTED] wrote: Look like I need a AjaxRequestTarget, but how can I get it? Or I can just create one? http://wicketframework.org/wicket-extensions/apidocs/wicket/extensions/ajax/markup/html/modal/ModalWindow.html#close(wicket.ajax.AjaxRequestTarget) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DatePicker and ModalWindow
Well use this in ur css file: .calendar, .calendar table{ z-index: 10[ or suitable value]; } This will make your datepicker appear in front of the modal window. --- Scott Swank [EMAIL PROTECTED] wrote: Note to self: must learn css better. Thanks. On 1/23/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you have to use css to set a higher zvalue for the datepicker popup -igor On 1/23/07, Scott Swank [EMAIL PROTECTED] wrote: I put a DatePicker in a form that is in a ModalWindow. The DatePicker rendered below the ModalWindow (z height) and was not active because only the modal window was active. Is this anything like a known issue? I search the history of this list and the wiki without success. Thanks, Scott -- Scott Swank reformed mathematician - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Scott Swank reformed mathematician - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. http://mobile.yahoo.com/mail - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] how to abort the xmlhttprequest
How to use that in a wicket. Can u explain it a bit more. --- Nino Wael [EMAIL PROTECTED] wrote: Why not use a worker thread? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Prashant Khanal Sent: 23. januar 2007 04:41 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] how to abort the xmlhttprequest Ok the main problem is that i want to include some timeout mechanism for ajax operation and to abort the request in case it takes considerable time. As can be done with XMLHttpRequest using setTimeOut, is there any way that i can achive this in wicket. So the main reason to cancel is for those ajax operation that takes awful long time. --- Nino Wael [EMAIL PROTECTED] wrote: Why do you need to cancel it? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Prashant Khanal Sent: 22. januar 2007 12:09 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] how to abort the xmlhttprequest Hello all, Is there any way to abort the xmlhttprequest in wicket. As XMLHttpRequest object has got abort() method to abort the request. Can it be used in wicket. We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. http://tv.yahoo.com/collections/265 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user Don't get soaked. Take a quick peak at the forecast with the Yahoo! Search weather shortcut. http://tools.search.yahoo.com/shortcuts/#loc_weather - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] Listing of the data
Hello All, I need to be able to have a generic component which I can use to list the data row by row. Now there is a trick number of columns can vary every time and I do not want to define a new html document for every time(number of columns in my table is data driven coming out of the db). THank you Gennadiy - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] No Page found for component
Hi, I have a page based on wicket.extensions.wizard. When the formValidator identifies an invalid field, I call error(a message) on that Component. At that point the following exception is thrown. java.lang.IllegalStateException: No Page found for component [MarkupContainer [Component id = status, page = No Page, path = view:status.DropDownChoice]] at wicket.Component.getPage(Component.java:1044) at wicket.Component.error(Component.java:680) at myapp.gui.wizards.EditDetailsWizardStep.init(EditDetailsWizardStep.jav a:109) ... ... Can anyone shed any light on this problem? I though all components would be able to find the containing page? Thanks, Tim The Information contained in this e-mail message is intended only for the individuals named above. If you are not the intended recipient, you should be aware that any dissemination, distribution, forwarding or other duplication of this communication is strictly prohibited. The views expressed in this e-mail are those of the individual author and not necessarily those of LINK Interchange Network Ltd. Prior to taking any action based upon this e-mail message you should seek appropriate confirmation of its authenticity. If you have received this e-mail in error, please notify the sender immediately. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Issues with Validators
private class ExistingUserValidator extends StringValidator{ public void onValidate(FormComponent formComponent, String string) { //lookup database //if username taken // error(formComponent) } protected String resourceKey(FormComponent formComponent) { return ExistingUserValidator ; } } ?? is it On 1/24/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: What are proper ways to build custom validators, i seem to loose touch when i checked IValidator doc and i saw THIS IS NOT PART OF PUBLIC API and then I looked at CustomValidator and every thing in deprecated. Is there any newest approach for writing a custom validator For instance I want to validate against a database for a uniqueContraint situation. Any latest tips? thanks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] how to abort the xmlhttprequest
and how to really abort the thing on the serverside. On 1/23/07, Igor Vaynberg [EMAIL PROTECTED] wrote: no it is not supported right now, but it can be built. open up a new feature request in our jira and we will look into it. also outline how you would like the api to look, how are you going to wire it in your javascript. do you want to basically just set the timeout? or be able to cancel on a click, etc. -igor On 1/22/07, Prashant Khanal [EMAIL PROTECTED] wrote: Ok the main problem is that i want to include some timeout mechanism for ajax operation and to abort the request in case it takes considerable time. As can be done with XMLHttpRequest using setTimeOut, is there any way that i can achive this in wicket. So the main reason to cancel is for those ajax operation that takes awful long time. --- Nino Wael [EMAIL PROTECTED] wrote: Why do you need to cancel it? -Original Message- From: [EMAIL PROTECTED] [mailto: [EMAIL PROTECTED] On Behalf Of Prashant Khanal Sent: 22. januar 2007 12:09 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] how to abort the xmlhttprequest Hello all, Is there any way to abort the xmlhttprequest in wicket. As XMLHttpRequest object has got abort() method to abort the request. Can it be used in wicket. We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. http://tv.yahoo.com/collections/265 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user Don't get soaked. Take a quick peak at the forecast with the Yahoo! Search weather shortcut. http://tools.search.yahoo.com/shortcuts/#loc_weather - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] how to abort the xmlhttprequest
just fire off a new thread or runnable (using a threadpool) and then connect that thread to a session so that you can poll for it when it is finished. Then you also can say, this takes to long and set a boolean so that the worker thread does do a terminate as soon as possible johan On 1/24/07, Prashant Khanal [EMAIL PROTECTED] wrote: How to use that in a wicket. Can u explain it a bit more. --- Nino Wael [EMAIL PROTECTED] wrote: Why not use a worker thread? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Prashant Khanal Sent: 23. januar 2007 04:41 To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] how to abort the xmlhttprequest Ok the main problem is that i want to include some timeout mechanism for ajax operation and to abort the request in case it takes considerable time. As can be done with XMLHttpRequest using setTimeOut, is there any way that i can achive this in wicket. So the main reason to cancel is for those ajax operation that takes awful long time. --- Nino Wael [EMAIL PROTECTED] wrote: Why do you need to cancel it? -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Prashant Khanal Sent: 22. januar 2007 12:09 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] how to abort the xmlhttprequest Hello all, Is there any way to abort the xmlhttprequest in wicket. As XMLHttpRequest object has got abort() method to abort the request. Can it be used in wicket. We won't tell. Get more on shows you hate to love (and love to hate): Yahoo! TV's Guilty Pleasures list. http://tv.yahoo.com/collections/265 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user Don't get soaked. Take a quick peak at the forecast with the Yahoo! Search weather shortcut. http://tools.search.yahoo.com/shortcuts/#loc_weather - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user Never miss an email again! Yahoo! Toolbar alerts you the instant new Mail arrives. http://tools.search.yahoo.com/toolbar/features/mail/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash.
Re: [Wicket-user] No Page found for component
i see that you are in an init (constructor call) of your page: myapp.gui.wizards.EditDetailsWizardStep.init(EditDetailsWizardStep.java :109) So why does validator run on that? Thats a new component and those don't have yet (in 1.3) a parent page johan On 1/24/07, Tim Squires [EMAIL PROTECTED] wrote: Hi, I have a page based on wicket.extensions.wizard. When the formValidator identifies an invalid field, I call error(a message) on that Component. At that point the following exception is thrown. java.lang.IllegalStateException: No Page found for component [MarkupContainer [Component id = status, page = No Page, path = view:status.DropDownChoice]] at wicket.Component.getPage(Component.java:1044) at wicket.Component.error(Component.java:680) at myapp.gui.wizards.EditDetailsWizardStep.init(EditDetailsWizardStep.jav a:109) ... ... Can anyone shed any light on this problem? I though all components would be able to find the containing page? Thanks, Tim The Information contained in this e-mail message is intended only for the individuals named above. If you are not the intended recipient, you should be aware that any dissemination, distribution, forwarding or other duplication of this communication is strictly prohibited. The views expressed in this e-mail are those of the individual author and not necessarily those of LINK Interchange Network Ltd. Prior to taking any action based upon this e-mail message you should seek appropriate confirmation of its authenticity. If you have received this e-mail in error, please notify the sender immediately. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Multiple sessions from one client
Ok, I went with the no-cookies-but-jsession-id-in-url approach and it works just fine. Here's a link to a site that helped me with the Jetty configuration: http://www.mojavelinux.com/blog/archives/2006/11/disabling_session_cookies_in_jetty/ or - somewhat ugly - in the code: WebAppContext webAppContext = new WebAppContext(); ... ((HashSessionManager) (webAppContext.getSessionHandler().getSessionManager())).setUsingCookies(false); But there is one pitfall: When you switch to not using cookies for the session id and a browser still HAS a session cookie, that session cookie is - of course - sent as part of the request when you access the webapplication again. That causes Wicket to show the session timeout page with everything you do (because that session is invalid and the cookie is never updated...). So what I did is to set the session cookie name to something different than the default JSESSIONID. That doesn't keep the browser from still sending the old session cookie as part of the request, but Jetty ignores it because it doesn't have the name Jetty is looking for. In code the workaround looks like this: ((HashSessionManager) (webAppContext.getSessionHandler().getSessionManager())).setSessionCookie(SOMETHING_OTHER_THAN_JSESSIONID); Now I can have multiple different sessions in the same browser. Works like a charm! Thank you guys for your help. - Johannes Matej Knopp wrote: Erik van Oosten wrote: Short answer: NO. Long answer: mostly no, but it strongly depends on the browser. Solution: do not use the session (is against Wicket matra anyway) but maintain state in the Wicket components. Make sure that your components are versioned (defaults to on). Yeah, but this is not a solution always (if you have to for example allow two different users to be logged in for some reason). Only thing I can think of that could work is to disable session cookies (if the container allows it) and use jsessionid in url only. This way you can have different session in every browser window. -Matej Regards, Erik. Johannes Fahrenkrug wrote: Is it possible to have multiple sessions from the same client? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] wicket:head with page
In the wiki, there is a gotcha that look like this : Adding wicket:head to a Page wicket:head is intended for panels and borders only. Do not add this to a page. The problem is : it is exactly what I wanted to do. I got a child class that need to add some css/javascript to the header of the page. Is it because our design is too pour or just that this is not true anymore or what else? I wanted to have a little more detailed about that. Thanks Marc P.S. : I'll make sure to copy the details into the wiki after :) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Custom exception page
There is always the classic : getApplicationSettings ().setInternalErrorPage (MyCustomErrorPage.class); But that will not give you the exception thrown. On 1/24/07, Apaar Trivedi [EMAIL PROTECTED] wrote: Hi all, I am trying to make a custom exception page. I have created a class which overrides the onRuntimeException method in RequestCycle and wicket does not seem to be using. Do I need to tell it to use this class, somehow? Is there anything else I can do? Basically I need a custom error page which can display the exception being thrown. Thanks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Dreamweaver
Just like what I said, I can't find any usecase to make a Dreamweaver extensions for Wicket. Who from your team do you expect will use Dreamweaver? The page authors, right? Page authors who are working with the markup concerns only the wicket:id attribute and some wicket tags. Databinder or something? Wicket is not JSF or JSP. The good thing about wicket is that it's so easy to insert wicket components into the markup by putting only the wicket:id and some few wicket tags into the wicket markups that make it so Dreamweaver-friendly and page authors-friendly. Just my 2 centavos. On 24/01/07, nilo.de.roock [EMAIL PROTECTED] wrote: I was just checking if someone has been doing some DW work. It seems no one has. Just thinking out loud whether I should develop something myself ... ( ... ) I agree that a Dreamweaver extension for Wicket may seem useless or overkill if you are a Java developer. Developers prefer vi over DW, I suppose. But then ( Java ) developers usually don't excel in designing websites ( have a look at http://www.csszengarden.com/ to see what designers can do without even touching html, let alone if you give them the freedom to change html as well ). The explanation is probably that designers are better in communicating with end-users than developers are. I strongly propose seperating design ( including coding html and css ) and technical work from architectural design to coding Java. But I am getting off-topic, to the point: a Dreanweaver extension for Wicket. I am thinking of... ( in order of increasing complexity ) #1 The tool should communicate clearly which components the Wicket framework has to offer, what they do and how they should be used. #2 The tool should take care of coding wicket:id attributes everywhere, either real-time or as a sort of pre-compile before handing over to the Java team. #3 The tool should validate code and naming style. #4 There should be an option to temporarily replace data components with dummy data. #5 A utility to wicket-ize existing sites. It should be possible to automatically generate the .html part of an existing ( data driven ) website. I am always open to other ideas... I am currently studying Wicket / Databinder as a follow-up of a selection project. The product of my study will be a small site including a set of ( customized ) how to's for developing wicket pages. I'll try to develop a Dreamweaver extension as well covering #1, #2 and if time permits #3 and / or #4. I have to dive into DW but if I remember well there is similar stuff for PHP templating so it shouldn't be too hard. I'll let you know when I have to something which I can show. - nilo de roock Otan wrote: Yeah, Wicket made it possible for us to use dreamweaver again for componentized webpages. Based from my experience, I can't find any usecase to make a Dreamweaver extensions for Wicket. On 24/01/07, nilo.de.roock [EMAIL PROTECTED] wrote: Wicket makes coding fun again! I don't have a Mac but I do have Dreamweaver 8. It has been a while since I have been using Dreamweaver so I almost forgot what a superb program it still is. - ( I hope it is not against Wicket ethics to discuss commercial tool$. ) I would like to ask if anyone else is on this list is using Dreamweaver to develop and communicate gui designs to users? If so, has anyone customized and / or extended Dreamweaver to develop and validate Wicket html? -- View this message in context: http://www.nabble.com/-Wicket-user--Dreamweaver-tf3070690.html#a8535117 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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-user--Dreamweaver-tf3070690.html#a8559297 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll
[Wicket-user] [wicket-user] change content of modalwindow
Hi, I want to change the content of a modalwindow, to do this I use the method setContent. But the strange thing is that a new window appears in front of the old one. I don't understand why is that. I create a modalwindow on a page, set the content with the setContent method and open it with an ajaxlink. I pass the modalWindow to the new panel via the contructor. The new panel has also an ajaxlink where I set the new content. When I click that link a new modalWindow appears in de the screen in front of the first. Maybe this isn't the right way to do it. Can somebody help me with this problem? Thnx Paul - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket:head with page
The following works for me: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd; html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket= http://www.wicketframework.org; head title~/title wicket:head script language=javascript type=text/javascript alert('Content of the wicket:head gets contributed into the final page.'); /script /wicket:head /head body wicket:extend This is a child markup and here is its content. Notice that I have a wicket:head above. /wicket:extend /body /html On 25/01/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: In the wiki, there is a gotcha that look like this : Adding wicket:head to a Page wicket:head is intended for panels and borders only. Do not add this to a page. The problem is : it is exactly what I wanted to do. I got a child class that need to add some css/javascript to the header of the page. Is it because our design is too pour or just that this is not true anymore or what else? I wanted to have a little more detailed about that. Thanks Marc P.S. : I'll make sure to copy the details into the wiki after :) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket:head with page
Yeah, I know, I also implemented something and It work. But since it is in the gotcha part of the wiki, this mean that we should not do this. But since it work, I don't know why... Marc On 1/24/07, Otan [EMAIL PROTECTED] wrote: The following works for me: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket= http://www.wicketframework.org; head title~/title wicket:head script language=javascript type=text/javascript alert(' Content of the wicket:head gets contributed into the final page.'); /script /wicket:head /head body wicket:extend This is a child markup and here is its content. Notice that I have a wicket:head above. /wicket:extend /body /html On 25/01/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: In the wiki, there is a gotcha that look like this : Adding wicket:head to a Page wicket:head is intended for panels and borders only. Do not add this to a page. The problem is : it is exactly what I wanted to do. I got a child class that need to add some css/javascript to the header of the page. Is it because our design is too pour or just that this is not true anymore or what else? I wanted to have a little more detailed about that. Thanks Marc P.S. : I'll make sure to copy the details into the wiki after :) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket:head with page
On Wed, 24 Jan 2007, Marc-Andre Houle wrote: In the wiki, there is a gotcha that look like this : Adding wicket:head to a Page wicket:head is intended for panels and borders only. Do not add this to a page. The problem is : it is exactly what I wanted to do. I got a child class that need to add some css/javascript to the header of the page. Is it because our design is too pour or just that this is not true anymore or what else? I wanted to have a little more detailed about that. I think that it might be outdated, I take that you mean http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html And here there seems to be the same issue http://cwiki.apache.org/WICKET/consistent-page-layout-using-borders.html Maybe there should be the same point about markup inheritance as here: http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg17430.html P.S. : I'll make sure to copy the details into the wiki after :) Is it publicly editable? -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Custom exception page
Thank you for that but I also need to be able to display the original exception being thrown, so this method did not work for me. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc-Andre Houle Sent: Wednesday, January 24, 2007 10:02 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Custom exception page There is always the classic : getApplicationSettings ().setInternalErrorPage (MyCustomErrorPage.class); But that will not give you the exception thrown. On 1/24/07, Apaar Trivedi [EMAIL PROTECTED] wrote: Hi all, I am trying to make a custom exception page. I have created a class which overrides the onRuntimeException method in RequestCycle and wicket does not seem to be using. Do I need to tell it to use this class, somehow? Is there anything else I can do? Basically I need a custom error page which can display the exception being thrown. Thanks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDE V ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Listing of the data
see DataTable in wicket-extensions there is an example in wicket-examples under repeaters -igor On 1/24/07, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello All, I need to be able to have a generic component which I can use to list the data row by row. Now there is a trick number of columns can vary every time and I do not want to define a new html document for every time(number of columns in my table is data driven coming out of the db). THank you Gennadiy - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket:head with page
Wiki : Yes it is if you create an account. The comment of igor in the mailling list archive is directly related to what I want to do. What I want to know is : Why is it not in the wiki, should I update the wiki? I don't want to disturb developer because they surely have something else to do, but I would like to clear this thing out in my head... Marc On 1/24/07, Timo Rantalaiho [EMAIL PROTECTED] wrote: On Wed, 24 Jan 2007, Marc-Andre Houle wrote: In the wiki, there is a gotcha that look like this : Adding wicket:head to a Page wicket:head is intended for panels and borders only. Do not add this to a page. The problem is : it is exactly what I wanted to do. I got a child class that need to add some css/javascript to the header of the page. Is it because our design is too pour or just that this is not true anymore or what else? I wanted to have a little more detailed about that. I think that it might be outdated, I take that you mean http://cwiki.apache.org/WICKET/best-practices-and-gotchas.html And here there seems to be the same issue http://cwiki.apache.org/WICKET/consistent-page-layout-using-borders.html Maybe there should be the same point about markup inheritance as here: http://www.mail-archive.com/wicket-user@lists.sourceforge.net/msg17430.html P.S. : I'll make sure to copy the details into the wiki after :) Is it publicly editable? -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Issues with Validators
yep, that will do it -igor On 1/24/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: private class ExistingUserValidator extends StringValidator{ public void onValidate(FormComponent formComponent, String string) { //lookup database //if username taken // error(formComponent) } protected String resourceKey(FormComponent formComponent) { return ExistingUserValidator ; } } ?? is it On 1/24/07, Ayodeji Aladejebi [EMAIL PROTECTED] wrote: What are proper ways to build custom validators, i seem to loose touch when i checked IValidator doc and i saw THIS IS NOT PART OF PUBLIC API and then I looked at CustomValidator and every thing in deprecated. Is there any newest approach for writing a custom validator For instance I want to validate against a database for a uniqueContraint situation. Any latest tips? thanks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Custom exception page
Thank you, I am working on this and making some progress. I am having trouble implementing the methods for getProcessor(), newClientInfo() and redirectTo() when I extend the RequestCycle. What should getProcessor and newClientInfo be returning? Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: Wednesday, January 24, 2007 10:23 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Custom exception page Override WebApplication#getDefaultRequestCycleFactory and provide the factory to create your custom request cycle. For instance: public class MyApplication extends WebApplication implements IRequestCycleFactory { protected IRequestCycleFactory getDefaultRequestCycleFactory() { return this; } public RequestCycle newRequestCycle(Session session, Request request, Response response) { return new MyRequestCycle(session, request, response); } ... where you let your application class be the factory. Eelco On 1/24/07, Apaar Trivedi [EMAIL PROTECTED] wrote: Hi all, I am trying to make a custom exception page. I have created a class which overrides the onRuntimeException method in RequestCycle and wicket does not seem to be using. Do I need to tell it to use this class, somehow? Is there anything else I can do? Basically I need a custom error page which can display the exception being thrown. Thanks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDE V ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDE V ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Custom exception page
That's where your custom request cycle comes in: override onRuntimeException in it and return the page you want, doing anything with the passed in exception you like. Eelco On 1/24/07, Apaar Trivedi [EMAIL PROTECTED] wrote: Thank you for that but I also need to be able to display the original exception being thrown, so this method did not work for me. From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Marc-Andre Houle Sent: Wednesday, January 24, 2007 10:02 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Custom exception page There is always the classic : getApplicationSettings ().setInternalErrorPage (MyCustomErrorPage.class); But that will not give you the exception thrown. On 1/24/07, Apaar Trivedi [EMAIL PROTECTED] wrote: Hi all, I am trying to make a custom exception page. I have created a class which overrides the onRuntimeException method in RequestCycle and wicket does not seem to be using. Do I need to tell it to use this class, somehow? Is there anything else I can do? Basically I need a custom error page which can display the exception being thrown. Thanks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [wicket-user] change content of modalwindow
how about some code, sounds like you are maybe opening another modal window with one already open? -igor On 1/24/07, Paul Maarschalkerweerd [EMAIL PROTECTED] wrote: Hi, I want to change the content of a modalwindow, to do this I use the method setContent. But the strange thing is that a new window appears in front of the old one. I don't understand why is that. I create a modalwindow on a page, set the content with the setContent method and open it with an ajaxlink. I pass the modalWindow to the new panel via the contructor. The new panel has also an ajaxlink where I set the new content. When I click that link a new modalWindow appears in de the screen in front of the first. Maybe this isn't the right way to do it. Can somebody help me with this problem? Thnx Paul - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket:head with page
I changed the WIKI entry. Thanks for finding. Eelco - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket:head with page
On 1/24/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: In the wiki, there is a gotcha that look like this : Adding wicket:head to a Page wicket:head is intended for panels and borders only. Do not add this to a page. The problem is : it is exactly what I wanted to do. I got a child class that need to add some css/javascript to the header of the page. Is it because our design is too pour or just that this is not true anymore or what else? I wanted to have a little more detailed about that. Thanks The WIKI entry was wrong or at least outdated. I changed it. Note that can can use add(HeaderContributor.forJavaScript(..)) etc for the same thing. Eelco - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Custom exception page
You should extend WebRequestCycle rather than RequestCycle. Eelco On 1/24/07, Apaar Trivedi [EMAIL PROTECTED] wrote: Thank you, I am working on this and making some progress. I am having trouble implementing the methods for getProcessor(), newClientInfo() and redirectTo() when I extend the RequestCycle. What should getProcessor and newClientInfo be returning? Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: Wednesday, January 24, 2007 10:23 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Custom exception page Override WebApplication#getDefaultRequestCycleFactory and provide the factory to create your custom request cycle. For instance: public class MyApplication extends WebApplication implements IRequestCycleFactory { protected IRequestCycleFactory getDefaultRequestCycleFactory() { return this; } public RequestCycle newRequestCycle(Session session, Request request, Response response) { return new MyRequestCycle(session, request, response); } ... where you let your application class be the factory. Eelco On 1/24/07, Apaar Trivedi [EMAIL PROTECTED] wrote: Hi all, I am trying to make a custom exception page. I have created a class which overrides the onRuntimeException method in RequestCycle and wicket does not seem to be using. Do I need to tell it to use this class, somehow? Is there anything else I can do? Basically I need a custom error page which can display the exception being thrown. Thanks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDE V ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDE V ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket:head with page
Yeah, but when you have big chunk and everything, you don't necessary want this to be in the Java world. At least, that what I think since I want all my decoration in html and all my logic in java... On 1/24/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On 1/24/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: In the wiki, there is a gotcha that look like this : Adding wicket:head to a Page wicket:head is intended for panels and borders only. Do not add this to a page. The problem is : it is exactly what I wanted to do. I got a child class that need to add some css/javascript to the header of the page. Is it because our design is too pour or just that this is not true anymore or what else? I wanted to have a little more detailed about that. Thanks The WIKI entry was wrong or at least outdated. I changed it. Note that can can use add(HeaderContributor.forJavaScript(..)) etc for the same thing. Eelco - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] how to use GridView in wicket 2.0 snapshot?
hi, it's always complains that Markup with path 'check' not found in fragment: roleList table tr wicket:id=roleList td align=center wicket:id=cols input type=checkbox wicket:id=check / span wicket:id=role/span/td /tr /tableGridViewString gridView = new GridViewString(roles, roleList, dataProvider) { protected void populateItem(ItemString item) { new CheckString(item, check, item.getModel()); new Label(item, role, (String) item.getModelObject()); } @Override protected void populateEmptyItem(Item arg0) { // TODO Auto-generated method stub } }; I write these code follow the example of 1.2 version. and I also find the gridview is disappear in the current one snapshot of wicket 2.0. Is there anyone can help me ? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] how to use GridView in wicket 2.0 snapshot?
gridview has moved from extensions to core, but doesnt yet work with the 2.0snapshots -igor On 1/24/07, tooy li(Gmail) [EMAIL PROTECTED] wrote: hi, it's always complains that Markup with path 'check' not found in fragment: roleList table tr wicket:id=roleList td align=center wicket:id=cols input type=checkbox wicket:id=check / span wicket:id=role/span/td /tr /tableGridViewString gridView = new GridViewString(roles, roleList, dataProvider) { protected void populateItem(ItemString item) { new CheckString(item, check, item.getModel()); new Label(item, role, (String) item.getModelObject()); } @Override protected void populateEmptyItem(Item arg0) { // TODO Auto-generated method stub } }; I write these code follow the example of 1.2 version. and I also find the gridview is disappear in the current one snapshot of wicket 2.0. Is there anyone can help me ? - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket:head with page
Sure. Just wanted to point out that there is an alternative way, which is not better or worse, just different :) Eelco On 1/24/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Yeah, but when you have big chunk and everything, you don't necessary want this to be in the Java world. At least, that what I think since I want all my decoration in html and all my logic in java... On 1/24/07, Eelco Hillenius [EMAIL PROTECTED] wrote: On 1/24/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: In the wiki, there is a gotcha that look like this : Adding wicket:head to a Page wicket:head is intended for panels and borders only. Do not add this to a page. The problem is : it is exactly what I wanted to do. I got a child class that need to add some css/javascript to the header of the page. Is it because our design is too pour or just that this is not true anymore or what else? I wanted to have a little more detailed about that. Thanks The WIKI entry was wrong or at least outdated. I changed it. Note that can can use add(HeaderContributor.forJavaScript(..)) etc for the same thing. Eelco - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Custom exception page
When I do this, does my application still need to implement IRequestCycleFactory? If so, how do I return my extended WebRequestCycle though I must be implementing newWebRequestCycle? If I sound confused on this, I certainly am, so thanks for your patience. What I have right now is extending WebRequestCycle and using that to override onRuntimeException. And in my extended application I am implementing IRequestCycleFactory. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: Wednesday, January 24, 2007 11:06 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Custom exception page You should extend WebRequestCycle rather than RequestCycle. Eelco On 1/24/07, Apaar Trivedi [EMAIL PROTECTED] wrote: Thank you, I am working on this and making some progress. I am having trouble implementing the methods for getProcessor(), newClientInfo() and redirectTo() when I extend the RequestCycle. What should getProcessor and newClientInfo be returning? Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: Wednesday, January 24, 2007 10:23 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Custom exception page Override WebApplication#getDefaultRequestCycleFactory and provide the factory to create your custom request cycle. For instance: public class MyApplication extends WebApplication implements IRequestCycleFactory { protected IRequestCycleFactory getDefaultRequestCycleFactory() { return this; } public RequestCycle newRequestCycle(Session session, Request request, Response response) { return new MyRequestCycle(session, request, response); } ... where you let your application class be the factory. Eelco On 1/24/07, Apaar Trivedi [EMAIL PROTECTED] wrote: Hi all, I am trying to make a custom exception page. I have created a class which overrides the onRuntimeException method in RequestCycle and wicket does not seem to be using. Do I need to tell it to use this class, somehow? Is there anything else I can do? Basically I need a custom error page which can display the exception being thrown. Thanks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDE V ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDE V ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDE V ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDE V ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Custom exception page
What you do is let your application provide a request cycle *factory*. You do this by overriding method getDefaultRequestCycleFactory from Application. That method returns an instance of IRequestCycleFactory, which produces the custom request cycle. Now, to make life a little bit easier and avoid creating a separate class for this, we can just let your application class implement the IRequestCycleFactory interface, return itself in method getDefaultRequestCycleFactory. The newRequestCycle method is the factory method to create the custom request cycle instances. It will be called automatically if you follow this pattern. Eelco On 1/24/07, Apaar Trivedi [EMAIL PROTECTED] wrote: When I do this, does my application still need to implement IRequestCycleFactory? If so, how do I return my extended WebRequestCycle though I must be implementing newWebRequestCycle? If I sound confused on this, I certainly am, so thanks for your patience. What I have right now is extending WebRequestCycle and using that to override onRuntimeException. And in my extended application I am implementing IRequestCycleFactory. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: Wednesday, January 24, 2007 11:06 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Custom exception page You should extend WebRequestCycle rather than RequestCycle. Eelco On 1/24/07, Apaar Trivedi [EMAIL PROTECTED] wrote: Thank you, I am working on this and making some progress. I am having trouble implementing the methods for getProcessor(), newClientInfo() and redirectTo() when I extend the RequestCycle. What should getProcessor and newClientInfo be returning? Thanks -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eelco Hillenius Sent: Wednesday, January 24, 2007 10:23 AM To: wicket-user@lists.sourceforge.net Subject: Re: [Wicket-user] Custom exception page Override WebApplication#getDefaultRequestCycleFactory and provide the factory to create your custom request cycle. For instance: public class MyApplication extends WebApplication implements IRequestCycleFactory { protected IRequestCycleFactory getDefaultRequestCycleFactory() { return this; } public RequestCycle newRequestCycle(Session session, Request request, Response response) { return new MyRequestCycle(session, request, response); } ... where you let your application class be the factory. Eelco On 1/24/07, Apaar Trivedi [EMAIL PROTECTED] wrote: Hi all, I am trying to make a custom exception page. I have created a class which overrides the onRuntimeException method in RequestCycle and wicket does not seem to be using. Do I need to tell it to use this class, somehow? Is there anything else I can do? Basically I need a custom error page which can display the exception being thrown. Thanks - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDE V ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDE V ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDE V ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash
Re: [Wicket-user] wicket:head with page
On Wed, 24 Jan 2007, Eelco Hillenius wrote: I changed the WIKI entry. Thanks for finding. This remains Note: the use of wicket:head should not even be necessary at all in a Page, since everything in the head of a Page is already contributed to the output. The development team is currently considering throwing an exception if wicket:head is used in a Page component. http://cwiki.apache.org/WICKET/consistent-page-layout-using-borders.html or should the entire page be removed? In the top it says Markup inheritance is much more convenient to use than Borders. Everything below is more complicated than necessary. :) -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] error on the faq
There is a typo in the faq -- which hit one our Wicket test driver developers. The last FAQ How can I hide markup and/or components? should have tr wicket:id=wicket-hideme instead of tr id=wicket-hideme Also, there are CDATA tags wrapping each of the code examples. Cheers, Scott ![CDATA[ WebMarkupContainer hideme = new WebMarkupContainer(hideme); hideme.setVisible(false); html body table tr id = wicket-hideme tdthis row will be hidden/td /tr tr tdthis row will not be hidden/td /tr /table /body /html ]] -- Scott Swank reformed mathematician - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] DatePicker and ModalWindow
Now you're just going to make me lazier. :) Thanks. On 1/24/07, Prashant Khanal [EMAIL PROTECTED] wrote: Well use this in ur css file: .calendar, .calendar table{ z-index: 10[ or suitable value]; } This will make your datepicker appear in front of the modal window. --- Scott Swank [EMAIL PROTECTED] wrote: Note to self: must learn css better. Thanks. On 1/23/07, Igor Vaynberg [EMAIL PROTECTED] wrote: you have to use css to set a higher zvalue for the datepicker popup -igor On 1/23/07, Scott Swank [EMAIL PROTECTED] wrote: I put a DatePicker in a form that is in a ModalWindow. The DatePicker rendered below the ModalWindow (z height) and was not active because only the modal window was active. Is this anything like a known issue? I search the history of this list and the wiki without success. Thanks, Scott -- Scott Swank reformed mathematician - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Scott Swank reformed mathematician - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user No need to miss a message. Get email on-the-go with Yahoo! Mail for Mobile. Get started. http://mobile.yahoo.com/mail - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Scott Swank reformed mathematician - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tracking session expire exception
Is anything new about this? I also want to know how it is about this issue : https://issues.apache.org/jira/browse/WICKET-206 Thanks. Marc On 1/22/07, Johan Compagner [EMAIL PROTECTED] wrote: yes i see it, will look it at asap On 1/22/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: I think the mail didn't pass through sf.net. So, I try again. Marc On 1/16/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Here is the example. Open two tabs with the same page, in each one of them, click on page 2, and see the page map being the same :) Marc P.S. : I included only the source directory since it would be too big to include everything! Just change the src directory of a quickstart project. On 1/16/07, Johan Compagner [EMAIL PROTECTED] wrote: Now, the output look like this : I access the index page first time : index Page map is :null correct. I access the index page from another tab : index Page map is :null index Page map is :wicket-0 correct. First is rendered in default pagemap. Then we detect a new window and do a bookmarkable redirect to a wicket generated pagemap. (wicket-0) I access Page2 from the whatever link (I mean, the two tabs have the same result : Page 2 map is :null When you click on the link in the window that has wicket=0 pagemap It should give you that pagemap there. If that is not the case can you make a quickstart app? johan - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] [wicket-user] change content of modalwindow
the basepage: http://webical.svn.sourceforge.net/viewvc/webical/trunk/src/main/java/org/webical/web/components/CalendarDayViewPanel.java?view=markup and the panels: http://webical.svn.sourceforge.net/viewvc/webical/trunk/src/main/java/org/webical/web/components/EditAllOrOneEventDecisionPanel.java?view=markup http://webical.svn.sourceforge.net/viewvc/webical/trunk/src/main/java/org/webical/web/components/EventAddEditPanel.java?view=markup Here are the snipplets: This is the panel where the user clicks on an event, the details are shown in the modalwindow if(!event.isAllDay() event.getDtStart() != null event.getDtEnd() != null){ YUICalendarEvent yuiCalendarEvent = new YUICalendarEvent(DAY_VIEW_YUI_EVENT_OBJECT){ private static final long serialVersionUID = 1L; @Override public void onEventClicked(AjaxRequestTarget target) { eventSelectionListener.eventSelected(event, false, EventSelectionListener.DEFAULT_ALL_EVENTS, gregorianCalendar,target, modalWindow); } }; this is the eventSelected method from the basepage public void eventSelected(Event event, boolean edit, int editAmount, GregorianCalendar calendar, AjaxRequestTarget target, ModalWindow modalWindow) { modalWindow.setContent(new EditAllOrOneEventDecisionPanel(modalWindow.getContentId(), event, getEventSelectionListener(), getPanelChangeLister(), calendar, modalWindow)); modalWindow.show(target); } this is the part from the Panel where the content should be changed : ... AjaxLink editOnlyThisEventLink = new AjaxLink(EVENT_EDIT_ONLY_THIS_INSTANCE_MARKUP_ID){ private static final long serialVersionUID = 1L; @Override public void onClick(AjaxRequestTarget target) { eventSelectionListener.eventSelected(event, true, EventSelectionListener.EDIT_ONE_EVENT, calendar, target, modalWindow); } }; ... and back on the basepage an event is selected an shown in a edit panel : public void eventSelected(Event event, boolean edit, int editAmount, GregorianCalendar calendar, AjaxRequestTarget target, ModalWindow modalWindow) { ... modalWindow.setContent(new EventAddEditPanel( modalWindow.getContentId(), getAddEditFormListener(get( modalWindow.getContentId())),event, ((WebicalSession)BasePage.this.getSession()).getUser(), false, new GregorianCalendar(), getEventSelectionListener())); modalWindow.show(target); ... } Hope this is useful! Paul On 1/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote: how about some code, sounds like you are maybe opening another modal window with one already open? -igor On 1/24/07, Paul Maarschalkerweerd [EMAIL PROTECTED] wrote: Hi, I want to change the content of a modalwindow, to do this I use the method setContent. But the strange thing is that a new window appears in front of the old one. I don't understand why is that. I create a modalwindow on a page, set the content with the setContent method and open it with an ajaxlink. I pass the modalWindow to the new panel via the contructor. The new panel has also an ajaxlink where I set the new content. When I click that link a new modalWindow appears in de the screen in front of the first. Maybe this isn't the right way to do it. Can somebody help me with this problem? Thnx Paul - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___
[Wicket-user] Dojo contrib: WicketServlet cannot be changed once it is set
Hi, I added wicket-contrib-dojo 0.3.1 to app and when it's redeployed I get... java.lang.IllegalStateException: WicketServlet cannot be changed once it is set wicket.protocol.http.WebApplication.setWicketServlet(WebApplication.java :400) wicket.protocol.http.WicketServlet.init(WicketServlet.java:283) javax.servlet.GenericServlet.init(GenericServlet.java:211) org.apache.catalina.authenticator.AuthenticatorBase.invoke(Authenticator Base.java:524) org.apache.catalina.valves.ErrorReportValve.invoke(ErrorReportValve.java :105) org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAdapter.java:1 48) org.apache.coyote.http11.Http11Processor.process(Http11Processor.java:86 9) org.apache.coyote.http11.Http11BaseProtocol$Http11ConnectionHandler.proc essConnection(Http11BaseProtocol.java:664) org.apache.tomcat.util.net.PoolTcpEndpoint.processSocket(PoolTcpEndpoint .java:527) org.apache.tomcat.util.net.LeaderFollowerWorkerThread.runIt(LeaderFollow erWorkerThread.java:80) org.apache.tomcat.util.threads.ThreadPool$ControlRunnable.run(ThreadPool .java:684) java.lang.Thread.run(Thread.java:595) It does not even need to reference any of the contrib-dojo classes to break it. The app uses tomcat form based auth (via NTLM) then forwards to the wicket servlet, it's after the user is authenicated that the exception is thrown. Remove the wicket-contrib-dojo jar from the classpath and everything works again. Any ideas where I could start looking for the problem? I'm actually just after FXFeedbackIndicator - are there any other alternatives that people are using? Wicket: 1.2.4 Wicket-contrib-dojo 0.3.1 Tomcat 5.5.20 Java: 1.5 Thanks for your time, Tim The Information contained in this e-mail message is intended only for the individuals named above. If you are not the intended recipient, you should be aware that any dissemination, distribution, forwarding or other duplication of this communication is strictly prohibited. The views expressed in this e-mail are those of the individual author and not necessarily those of LINK Interchange Network Ltd. Prior to taking any action based upon this e-mail message you should seek appropriate confirmation of its authenticity. If you have received this e-mail in error, please notify the sender immediately. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket:head with page
Changed it, thanks, Eelco On 1/24/07, Timo Rantalaiho [EMAIL PROTECTED] wrote: On Wed, 24 Jan 2007, Eelco Hillenius wrote: I changed the WIKI entry. Thanks for finding. This remains Note: the use of wicket:head should not even be necessary at all in a Page, since everything in the head of a Page is already contributed to the output. The development team is currently considering throwing an exception if wicket:head is used in a Page component. http://cwiki.apache.org/WICKET/consistent-page-layout-using-borders.html or should the entire page be removed? In the top it says Markup inheritance is much more convenient to use than Borders. Everything below is more complicated than necessary. :) -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] error on the faq
Anyone coming across such typos/ small errors that are obvious, please feel free to fix them right away. Eelco On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote: There is a typo in the faq -- which hit one our Wicket test driver developers. The last FAQ How can I hide markup and/or components? should have tr wicket:id=wicket-hideme instead of tr id=wicket-hideme Also, there are CDATA tags wrapping each of the code examples. Cheers, Scott ![CDATA[ WebMarkupContainer hideme = new WebMarkupContainer(hideme); hideme.setVisible(false); html body table tr id = wicket-hideme tdthis row will be hidden/td /tr tr tdthis row will not be hidden/td /tr /table /body /html ]] -- Scott Swank reformed mathematician - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] error on the faq
Oh, that is a bit difficult on the public site :) Eelco On 1/24/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Anyone coming across such typos/ small errors that are obvious, please feel free to fix them right away. Eelco On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote: There is a typo in the faq -- which hit one our Wicket test driver developers. The last FAQ How can I hide markup and/or components? should have tr wicket:id=wicket-hideme instead of tr id=wicket-hideme Also, there are CDATA tags wrapping each of the code examples. Cheers, Scott ![CDATA[ WebMarkupContainer hideme = new WebMarkupContainer(hideme); hideme.setVisible(false); html body table tr id = wicket-hideme tdthis row will be hidden/td /tr tr tdthis row will not be hidden/td /tr /table /body /html ]] -- Scott Swank reformed mathematician - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] error on the faq
http://issues.apache.org/jira/browse/WICKET-235 On 1/24/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Oh, that is a bit difficult on the public site :) Eelco On 1/24/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Anyone coming across such typos/ small errors that are obvious, please feel free to fix them right away. Eelco On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote: There is a typo in the faq -- which hit one our Wicket test driver developers. The last FAQ How can I hide markup and/or components? should have tr wicket:id=wicket-hideme instead of tr id=wicket-hideme Also, there are CDATA tags wrapping each of the code examples. Cheers, Scott ![CDATA[ WebMarkupContainer hideme = new WebMarkupContainer(hideme); hideme.setVisible(false); html body table tr id = wicket-hideme tdthis row will be hidden/td /tr tr tdthis row will not be hidden/td /tr /table /body /html ]] -- Scott Swank reformed mathematician - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] error on the faq
kinda :) On 1/24/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Oh, that is a bit difficult on the public site :) Eelco On 1/24/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Anyone coming across such typos/ small errors that are obvious, please feel free to fix them right away. Eelco On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote: There is a typo in the faq -- which hit one our Wicket test driver developers. The last FAQ How can I hide markup and/or components? should have tr wicket:id=wicket-hideme instead of tr id=wicket-hideme Also, there are CDATA tags wrapping each of the code examples. Cheers, Scott ![CDATA[ WebMarkupContainer hideme = new WebMarkupContainer(hideme); hideme.setVisible(false); html body table tr id = wicket-hideme tdthis row will be hidden/td /tr tr tdthis row will not be hidden/td /tr /table /body /html ]] -- Scott Swank reformed mathematician - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Scott Swank reformed mathematician - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Strategy to avoid new instances of pages and panels
The application I'm building must always have bookmarkable URLs which contain all page parameters needed to reconstruct the page. Achieved this currently by letting all page events update state/model, then redirect to a new URL based on that state, so that the URL includes the new state. But this has the downside of generating a new page every time, so I was trying to find a way to remove the old pages which I know I don't need, since the application is all bookmarkable URLs anyway. I realize we are killing Wicket back button support, but since our entire app has bookmarkable URLs anyway, I think we'll be fine. We don't need a whole lot of state preserved from one page to the next, and where we do we'll implement the flow with ajax anyway, probably, all on a single page. Still not sure if my approach makes sense, this is just what I've worked out so far. If anyone has any tips on how better to approach this, I'd love to hear them. I'm getting a sense that Wicket is built more to support stateful flows managed entirely by Wicket than to support a whole slew of bookmarkable URLs. If there is a way I can keep using the wicket event framework such that it posts page parameters in the URL somehow against bookmarkable URLs, it would be much easier than having to do it myself. -Jason igor.vaynberg wrote: you do realize that by doing this you are completely killing the back button support in your app -igor On 1/23/07, dukejansen [EMAIL PROTECTED] wrote: Eelco Hillenius wrote: Well, every user (session) will use memory, correct. But only to a certain limit. Wicket 1.2 holds a couple of page/ versions in a session, and Wicket 2.0 by default only holds the current one. So the creation of a fresh instance (e.g. a bookmarkable page) will replace another one. Hence, how much memory you'll need is a simple function of the number of concurrent sessions times the size of your session and page(s) in it. How can I instruct Wicket not to maintain the multiple versions of a given page within the session? I've tried the following but when I dump the session contents I still see multiple page versions: getSessionSettings().setMaxPageMaps(1); getPageSettings().setMaxPageVersions(1); Am I missing the boat on this entirely? -Jason -- View this message in context: http://www.nabble.com/Strategy-to-avoid-new-instances-of-pages-and-panels-tf2566413.html#a8553452 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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/Strategy-to-avoid-new-instances-of-pages-and-panels-tf2566413.html#a8570548 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Strategy to avoid new instances of pages and panels
I think the current method name makes sense, but what is unclear is whether the CURRENT page is taking up one of the positions. I would think setting the max to 1 would ensure that the pagemap contains the current page and no others. If in fact the current page doesn't need room in the page map, then I guess 0 would make more sense. I think adding detail to the javadoc should be sufficient to clear up this ambiguity. Johan Compagner wrote: set the max to 0 then the change list of the version manager will really not contain anything this is the test: (after the new one is added to the list) // If stack is overfull, remove oldest entry if (getVersions() maxVersions) { expireOldestVersion(); } What is logical? max versions is that also counting the current one? What is the best English for this?? should we better express it like: setMaxPageUndoBuffer() ?? johan On 1/24/07, dukejansen [EMAIL PROTECTED] wrote: Eelco Hillenius wrote: Well, every user (session) will use memory, correct. But only to a certain limit. Wicket 1.2 holds a couple of page/ versions in a session, and Wicket 2.0 by default only holds the current one. So the creation of a fresh instance (e.g. a bookmarkable page) will replace another one. Hence, how much memory you'll need is a simple function of the number of concurrent sessions times the size of your session and page(s) in it. How can I instruct Wicket not to maintain the multiple versions of a given page within the session? I've tried the following but when I dump the session contents I still see multiple page versions: getSessionSettings().setMaxPageMaps(1); getPageSettings().setMaxPageVersions(1); Am I missing the boat on this entirely? -Jason -- View this message in context: http://www.nabble.com/Strategy-to-avoid-new-instances-of-pages-and-panels-tf2566413.html#a8553452 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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/Strategy-to-avoid-new-instances-of-pages-and-panels-tf2566413.html#a8570594 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tracking session expire exception
Ok, I got news about the first page expired problem. Problems with page map that I said before and in the JIRA issue are still there, but the page expire is gone. Here is why : In the pop up, I created a bookmarkable page link like this : String parentPageMap = wicket:default; if(pp != null) { parentPageMap = (String)pp.get (parent_page_map); } Class pageClass = SomePage.class; BookmarkablePageLink bpl = new BookmarkablePageLink(link, pageClass); bpl.setPageMap (PageMap.forName (parentPageMap)); bpl.add(new SimpleAttributeModifier(target, parentPageMap)); add(bpl); The problem with this, it is that it create a new page map. So, because there is a new pagemap, the session expire when I try to access things from the session. I posted because it is pratical to have an archive that describe solutions found! :) It was entirely my fault, but, anyway! On 1/24/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Is anything new about this? I also want to know how it is about this issue : https://issues.apache.org/jira/browse/WICKET-206 Thanks. Marc On 1/22/07, Johan Compagner [EMAIL PROTECTED] wrote: yes i see it, will look it at asap On 1/22/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: I think the mail didn't pass through sf.net. So, I try again. Marc On 1/16/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Here is the example. Open two tabs with the same page, in each one of them, click on page 2, and see the page map being the same :) Marc P.S. : I included only the source directory since it would be too big to include everything! Just change the src directory of a quickstart project. On 1/16/07, Johan Compagner [EMAIL PROTECTED] wrote: Now, the output look like this : I access the index page first time : index Page map is :null correct. I access the index page from another tab : index Page map is :null index Page map is :wicket-0 correct. First is rendered in default pagemap. Then we detect a new window and do a bookmarkable redirect to a wicket generated pagemap. (wicket-0) I access Page2 from the whatever link (I mean, the two tabs have the same result : Page 2 map is :null When you click on the link in the window that has wicket=0 pagemap It should give you that pagemap there. If that is not the case can you make a quickstart app? johan - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Client-side form validation in Wicket 1.2 or 1.3
Hi, We make some client-side validation (not also client-side but with ajax) in Wicket-Contrib-Dojo. But it is not as powerfull as we expected for the moment because we do not have time to do that for the moment. You can see a live demo here : http://www.demay-fr.net:8080/WCD13/app : it is the last wicket-contrib-dojo sample from sourceforge svn. You can checkout src from the repo. Your contributions are welcome -- Vincent Eelco Hillenius a écrit : It is actually pretty easy to build with Wicket if you want. Like Igor said, there is a project for this in wicket-stuff, but as the javascript project died and I (who set up the project) don't want to support it much as I never actually used it for anything real. Imo Ajax is a lot more powerful. However, contributions are more than welcome, and you could try to rally to get a few people working on this in the form of a wicket-stuff project. Eelco On 1/23/07, Sean Sullivan [EMAIL PROTECTED] wrote: Tapestry does a very good job with client-side form validation. Perhaps there is code in the Tapestry repository that could be using in Wicket? BTW, these are the things that I like about form validation in Tapestry 4.1 1) client-side form validation 2) CSS class for invalid fields fieldInvalid 3) CSS class for missing fields: fieldMissing Sean On 1/23/07, Igor Vaynberg [EMAIL PROTECTED] wrote: no, wicket doesnt provide this out of the box. there have been some attempts to provide such functionality, i think there was a project that integrated fvalidate js lib with wicket in wicket-stuff somewhere. -igor - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Strategy to avoid new instances of pages and panels
But i was talking about the settings maxpageversions. thats not the same thing as how many there can be in the pagemap That depends on the page map that is used (in 1.3 or 2.0) AccessStackPageMap uses by default 5 because that is EvictionStrategy: private IPageMapEvictionStrategy pageMapEvictionStrategy = new LeastRecentlyAccessedEvictionStrategy(5); The PageMap of the secondlevelcache only has one active in the session. But you are making an app where all the urls are again bookmarkable and you don't use forms anywhere? or if you use for (with wicket 1.2) you handle the post in the constructor of the page itself? Thats not really where wicket is made for, your throw away pretty much 90% of what makes wicket. johan On 1/24/07, dukejansen [EMAIL PROTECTED] wrote: I think the current method name makes sense, but what is unclear is whether the CURRENT page is taking up one of the positions. I would think setting the max to 1 would ensure that the pagemap contains the current page and no others. If in fact the current page doesn't need room in the page map, then I guess 0 would make more sense. I think adding detail to the javadoc should be sufficient to clear up this ambiguity. Johan Compagner wrote: set the max to 0 then the change list of the version manager will really not ntain anything this is the test: (after the new one is added to the list) // If stack is overfull, remove oldest entry if (getVersions() maxVersions) { expireOldestVersion(); } What is logical? max versions is that also counting the current one? What is the best English for this?? should we better express it like: setMaxPageUndoBuffer() ?? johan On 1/24/07, dukejansen [EMAIL PROTECTED] wrote: Eelco Hillenius wrote: Well, every user (session) will use memory, correct. But only to a certain limit. Wicket 1.2 holds a couple of page/ versions in a session, and Wicket 2.0 by default only holds the current one. So the creation of a fresh instance (e.g. a bookmarkable page) will replace another one. Hence, how much memory you'll need is a simple function of the number of concurrent sessions times the size of your session and page(s) in it. How can I instruct Wicket not to maintain the multiple versions of a given page within the session? I've tried the following but when I dump the session contents I still see multiple page versions: getSessionSettings().setMaxPageMaps(1); getPageSettings().setMaxPageVersions(1); Am I missing the boat on this entirely? -Jason -- View this message in context: http://www.nabble.com/Strategy-to-avoid-new-instances-of-pages-and-panels-tf2566413.html#a8553452 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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/Strategy-to-avoid-new-instances-of-pages-and-panels-tf2566413.html#a8570594 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net
Re: [Wicket-user] Tracking session expire exception
On 1/24/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Ok, I got news about the first page expired problem. Problems with page map that I said before and in the JIRA issue are still there, but the page expire is gone. Here is why : In the pop up, I created a bookmarkable page link like this : String parentPageMap = wicket:default; if(pp != null) { parentPageMap = (String)pp.get (parent_page_map); } Class pageClass = SomePage.class; BookmarkablePageLink bpl = new BookmarkablePageLink(link, pageClass); bpl.setPageMap (PageMap.forName (parentPageMap)); bpl.add(new SimpleAttributeModifier(target, parentPageMap)); add(bpl); The problem with this, it is that it create a new page map. So, because there is a new pagemap, the session expire when I try to access things from the session. i am lost with that last sentence, what do you mean with this? When does the session expire? and what is this code: if(pp != null) { parentPageMap = (String)pp.get (parent_page_map); } johan - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Tracking session expire exception
pp refer to page parameters that I get in the pop up Here is the context : The bookmarkable page link will be open in the window that open the pop up. This code is in the pop-up. The problem is when I have done that : bpl.setPageMap (PageMap.forName (parentPageMap)); It will create a new page map wicket:default. This will lead the main window to reload correctly with the correct page class, but it will be linked with the new page map named : wicket:default. So, the correct way of doing this, it is that when the pagemap name is null, fetch the pagemap using null, but window.name value will be wicket:default, so, we have to set the target value to something else than the pagemap name which is null. It is hard to explain the why of that, but that is the problem I got. Sorry for being unclear. Marc On 1/24/07, Johan Compagner [EMAIL PROTECTED] wrote: On 1/24/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Ok, I got news about the first page expired problem. Problems with page map that I said before and in the JIRA issue are still there, but the page expire is gone. Here is why : In the pop up, I created a bookmarkable page link like this : String parentPageMap = wicket:default; if(pp != null) { parentPageMap = (String)pp.get (parent_page_map ); } Class pageClass = SomePage.class; BookmarkablePageLink bpl = new BookmarkablePageLink(link, pageClass); bpl.setPageMap (PageMap.forName (parentPageMap)); bpl.add(new SimpleAttributeModifier(target, parentPageMap)); add(bpl); The problem with this, it is that it create a new page map. So, because there is a new pagemap, the session expire when I try to access things from the session. i am lost with that last sentence, what do you mean with this? When does the session expire? and what is this code: if(pp != null) { parentPageMap = ( String)pp.get (parent_page_map); } johan - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Strategy to avoid new instances of pages and panels
Sorry, guess I misunderstood. Still trying to wrap my head around these concepts. We have an app that is all bookmarkable pages so far, but we may encounter cases without them further down the road. But even for our bookmarkable pages, they may have lots of activity on them which is ajax actions which update the model behind the scenes. The way wicket wires components to their models is still very beneficial, as is the markup inheritance and java-centric development model, etc. As an example, we currently have a search results page which must always include all search criteria in the URL. So right now we have multiple panels with various search criteria. When the user updates the form elements and clicks search, we let wicket update all the backing models for us, then we assemble a new URL based on the updated models, and redirect to the new URL. This is instead of what might be a more familiar web model where the form data is simply submitted TO the new URL -- instead, we are submitting to wicket, letting wicket do all the updates to our backing state, and then we just construct a new URL to represent the new criteria and redirect to it. I won't deny that this is a bit wacky, but it was the only way I could find to ensure that my search criteria are included in the URL, but we still get wicket's free behavior of updating all model data. The trick is that we are abandoning the updated model data and redirecting to a new page... Not sure how well I've explained this. If there was a way to get wicket to simply use bookmarkable URLs when it does the form submission, I'd be happy to fall back on wicket. Also, FYI, we are using a lot of the Wicket ajax behavior for updating state which does NOT need to be in the URL. -Jason Johan Compagner wrote: But i was talking about the settings maxpageversions. thats not the same thing as how many there can be in the pagemap That depends on the page map that is used (in 1.3 or 2.0) AccessStackPageMap uses by default 5 because that is EvictionStrategy: private IPageMapEvictionStrategy pageMapEvictionStrategy = new LeastRecentlyAccessedEvictionStrategy(5); The PageMap of the secondlevelcache only has one active in the session. But you are making an app where all the urls are again bookmarkable and you don't use forms anywhere? or if you use for (with wicket 1.2) you handle the post in the constructor of the page itself? Thats not really where wicket is made for, your throw away pretty much 90% of what makes wicket. johan On 1/24/07, dukejansen [EMAIL PROTECTED] wrote: I think the current method name makes sense, but what is unclear is whether the CURRENT page is taking up one of the positions. I would think setting the max to 1 would ensure that the pagemap contains the current page and no others. If in fact the current page doesn't need room in the page map, then I guess 0 would make more sense. I think adding detail to the javadoc should be sufficient to clear up this ambiguity. Johan Compagner wrote: set the max to 0 then the change list of the version manager will really not ntain anything this is the test: (after the new one is added to the list) // If stack is overfull, remove oldest entry if (getVersions() maxVersions) { expireOldestVersion(); } What is logical? max versions is that also counting the current one? What is the best English for this?? should we better express it like: setMaxPageUndoBuffer() ?? johan On 1/24/07, dukejansen [EMAIL PROTECTED] wrote: Eelco Hillenius wrote: Well, every user (session) will use memory, correct. But only to a certain limit. Wicket 1.2 holds a couple of page/ versions in a session, and Wicket 2.0 by default only holds the current one. So the creation of a fresh instance (e.g. a bookmarkable page) will replace another one. Hence, how much memory you'll need is a simple function of the number of concurrent sessions times the size of your session and page(s) in it. How can I instruct Wicket not to maintain the multiple versions of a given page within the session? I've tried the following but when I dump the session contents I still see multiple page versions: getSessionSettings().setMaxPageMaps(1); getPageSettings().setMaxPageVersions(1); Am I missing the boat on this entirely? -Jason -- View this message in context: http://www.nabble.com/Strategy-to-avoid-new-instances-of-pages-and-panels-tf2566413.html#a8553452 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash
[Wicket-user] Images problem
Hi all, I'm developing a web application which basically shows lots of pictures. Pictures are stored in a database. I want that the same picture always has the same value of the src attribute no matter where it is displayed. As I understand it is possible only if the image resource is shared. In other words when using setImageResoruceReference the src attribute is always the same for the same resource but when using setImageResource src attribute depends on the current location of the image component. Problem with shared resources is that they are cached. Wicket keeps all shared resources in the SharedResources class No matter how light I make my DynamicImageResource subclass I really don't won't to have thousands of those objects in the cache. Does anyone have any idea how to solve this problem? -- Regards, Predrag Spasojevic - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Strategy to avoid new instances of pages and panels
Ahh so you are using pages with state. (you use ajax) You just don't want to version them? Because for navigation you only use bookmarkable pages Just have one base page that does serVersioned(false) then all your pages are unversioned. johan On 1/24/07, dukejansen [EMAIL PROTECTED] wrote: Sorry, guess I misunderstood. Still trying to wrap my head around these concepts. We have an app that is all bookmarkable pages so far, but we may encounter cases without them further down the road. But even for our bookmarkable pages, they may have lots of activity on them which is ajax actions which update the model behind the scenes. The way wicket wires components to their models is still very beneficial, as is the markup inheritance and java-centric development model, etc. As an example, we currently have a search results page which must always include all search criteria in the URL. So right now we have multiple panels with various search criteria. When the user updates the form elements and clicks search, we let wicket update all the backing models for us, then we assemble a new URL based on the updated models, and redirect to the new URL. This is instead of what might be a more familiar web model where the form data is simply submitted TO the new URL -- instead, we are submitting to wicket, letting wicket do all the updates to our backing state, and then we just construct a new URL to represent the new criteria and redirect to it. I won't deny that this is a bit wacky, but it was the only way I could find to ensure that my search criteria are included in the URL, but we still get wicket's free behavior of updating all model data. The trick is that we are abandoning the updated model data and redirecting to a new page... Not sure how well I've explained this. If there was a way to get wicket to simply use bookmarkable URLs when it does the form submission, I'd be happy to fall back on wicket. Also, FYI, we are using a lot of the Wicket ajax behavior for updating state which does NOT need to be in the URL. -Jason Johan Compagner wrote: But i was talking about the settings maxpageversions. thats not the same thing as how many there can be in the pagemap That depends on the page map that is used (in 1.3 or 2.0) AccessStackPageMap uses by default 5 because that is EvictionStrategy: private IPageMapEvictionStrategy pageMapEvictionStrategy = new LeastRecentlyAccessedEvictionStrategy(5); The PageMap of the secondlevelcache only has one active in the session. But you are making an app where all the urls are again bookmarkable and you don't use forms anywhere? or if you use for (with wicket 1.2) you handle the post in the constructor of the page itself? Thats not really where wicket is made for, your throw away pretty much 90% of what makes wicket. johan On 1/24/07, dukejansen [EMAIL PROTECTED] wrote: I think the current method name makes sense, but what is unclear is whether the CURRENT page is taking up one of the positions. I would think setting the max to 1 would ensure that the pagemap contains the current page and no others. If in fact the current page doesn't need room in the page map, then I guess 0 would make more sense. I think adding detail to the javadoc should be sufficient to clear up this ambiguity. Johan Compagner wrote: set the max to 0 then the change list of the version manager will really not ntain anything this is the test: (after the new one is added to the list) // If stack is overfull, remove oldest entry if (getVersions() maxVersions) { expireOldestVersion(); } What is logical? max versions is that also counting the current one? What is the best English for this?? should we better express it like: setMaxPageUndoBuffer() ?? johan On 1/24/07, dukejansen [EMAIL PROTECTED] wrote: Eelco Hillenius wrote: Well, every user (session) will use memory, correct. But only to a certain limit. Wicket 1.2 holds a couple of page/ versions in a session, and Wicket 2.0 by default only holds the current one. So the creation of a fresh instance (e.g. a bookmarkable page) will replace another one. Hence, how much memory you'll need is a simple function of the number of concurrent sessions times the size of your session and page(s) in it. How can I instruct Wicket not to maintain the multiple versions of a given page within the session? I've tried the following but when I dump the session contents I still see multiple page versions: getSessionSettings().setMaxPageMaps(1); getPageSettings().setMaxPageVersions(1); Am I missing the boat on this entirely? -Jason -- View this message in context: http://www.nabble.com/Strategy-to-avoid-new-instances-of-pages-and-panels-tf2566413.html#a8553452 Sent from the Wicket - User mailing list archive at Nabble.com.
Re: [Wicket-user] Tracking session expire exception
Why not do it a bit more reliable? for example when you go back use a piece of javascript: window.opener.location.href = bookmarkable url or get the window name from the window.opener.name? (in the popup or when you open the popup) and use that as the target. The only problem that could be is that the pagemap name of the generated bookmarkable url must use the pagemap of the opener page, instead of the current popup page. Then it should work fine. johan On 1/24/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: pp refer to page parameters that I get in the pop up Here is the context : The bookmarkable page link will be open in the window that open the pop up. This code is in the pop-up. The problem is when I have done that : bpl.setPageMap (PageMap.forName (parentPageMap)); It will create a new page map wicket:default. This will lead the main window to reload correctly with the correct page class, but it will be linked with the new page map named : wicket:default. So, the correct way of doing this, it is that when the pagemap name is null, fetch the pagemap using null, but window.name value will be wicket:default, so, we have to set the target value to something else than the pagemap name which is null. It is hard to explain the why of that, but that is the problem I got. Sorry for being unclear. Marc On 1/24/07, Johan Compagner [EMAIL PROTECTED] wrote: On 1/24/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: Ok, I got news about the first page expired problem. Problems with page map that I said before and in the JIRA issue are still there, but the page expire is gone. Here is why : In the pop up, I created a bookmarkable page link like this : String parentPageMap = wicket:default; if(pp != null) { parentPageMap = (String)pp.get (parent_page_map ); } Class pageClass = SomePage.class; BookmarkablePageLink bpl = new BookmarkablePageLink(link, pageClass); bpl.setPageMap (PageMap.forName (parentPageMap)); bpl.add(new SimpleAttributeModifier(target, parentPageMap)); add(bpl); The problem with this, it is that it create a new page map. So, because there is a new pagemap, the session expire when I try to access things from the session. i am lost with that last sentence, what do you mean with this? When does the session expire? and what is this code: if(pp != null ) { parentPageMap = ( String)pp.get (parent_page_map); } johan - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Images problem
create a single dynamicimageresource that can load different images based on the id passed in from the url then you just do urlfor(myresource)+id=+id; to build the url there is an article on the wiki that shows how to do this -igor On 1/24/07, Predrag Spasojevic [EMAIL PROTECTED] wrote: Hi all, I'm developing a web application which basically shows lots of pictures. Pictures are stored in a database. I want that the same picture always has the same value of the src attribute no matter where it is displayed. As I understand it is possible only if the image resource is shared. In other words when using setImageResoruceReference the src attribute is always the same for the same resource but when using setImageResource src attribute depends on the current location of the image component. Problem with shared resources is that they are cached. Wicket keeps all shared resources in the SharedResources class No matter how light I make my DynamicImageResource subclass I really don't won't to have thousands of those objects in the cache. Does anyone have any idea how to solve this problem? -- Regards, Predrag Spasojevic - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] Strategy to avoid new instances of pages and panels
ajax requests shouldnt create versions anyways! did you fix that in 2.0 yet? -igor On 1/24/07, Johan Compagner [EMAIL PROTECTED] wrote: Ahh so you are using pages with state. (you use ajax) You just don't want to version them? Because for navigation you only use bookmarkable pages Just have one base page that does serVersioned(false) then all your pages are unversioned. johan On 1/24/07, dukejansen [EMAIL PROTECTED] wrote: Sorry, guess I misunderstood. Still trying to wrap my head around these concepts. We have an app that is all bookmarkable pages so far, but we may encounter cases without them further down the road. But even for our bookmarkable pages, they may have lots of activity on them which is ajax actions which update the model behind the scenes. The way wicket wires components to their models is still very beneficial, as is the markup inheritance and java-centric development model, etc. As an example, we currently have a search results page which must always include all search criteria in the URL. So right now we have multiple panels with various search criteria. When the user updates the form elements and clicks search, we let wicket update all the backing models for us, then we assemble a new URL based on the updated models, and redirect to the new URL. This is instead of what might be a more familiar web model where the form data is simply submitted TO the new URL -- instead, we are submitting to wicket, letting wicket do all the updates to our backing state, and then we just construct a new URL to represent the new criteria and redirect to it. I won't deny that this is a bit wacky, but it was the only way I could find to ensure that my search criteria are included in the URL, but we still get wicket's free behavior of updating all model data. The trick is that we are abandoning the updated model data and redirecting to a new page... Not sure how well I've explained this. If there was a way to get wicket to simply use bookmarkable URLs when it does the form submission, I'd be happy to fall back on wicket. Also, FYI, we are using a lot of the Wicket ajax behavior for updating state which does NOT need to be in the URL. -Jason Johan Compagner wrote: But i was talking about the settings maxpageversions. thats not the same thing as how many there can be in the pagemap That depends on the page map that is used (in 1.3 or 2.0) AccessStackPageMap uses by default 5 because that is EvictionStrategy: private IPageMapEvictionStrategy pageMapEvictionStrategy = new LeastRecentlyAccessedEvictionStrategy(5); The PageMap of the secondlevelcache only has one active in the session. But you are making an app where all the urls are again bookmarkable and you don't use forms anywhere? or if you use for (with wicket 1.2) you handle the post in the constructor of the page itself? Thats not really where wicket is made for, your throw away pretty much 90% of what makes wicket. johan On 1/24/07, dukejansen [EMAIL PROTECTED] wrote: I think the current method name makes sense, but what is unclear is whether the CURRENT page is taking up one of the positions. I would think setting the max to 1 would ensure that the pagemap contains the current page and no others. If in fact the current page doesn't need room in the page map, then I guess 0 would make more sense. I think adding detail to the javadoc should be sufficient to clear up this ambiguity. Johan Compagner wrote: set the max to 0 then the change list of the version manager will really not ntain anything this is the test: (after the new one is added to the list) // If stack is overfull, remove oldest entry if (getVersions() maxVersions) { expireOldestVersion(); } What is logical? max versions is that also counting the current one? What is the best English for this?? should we better express it like: setMaxPageUndoBuffer() ?? johan On 1/24/07, dukejansen [EMAIL PROTECTED] wrote: Eelco Hillenius wrote: Well, every user (session) will use memory, correct. But only to a certain limit. Wicket 1.2 holds a couple of page/ versions in a session, and Wicket 2.0 by default only holds the current one. So the creation of a fresh instance (e.g. a bookmarkable page) will replace another one. Hence, how much memory you'll need is a simple function of the number of concurrent sessions times the size of your session and page(s) in it. How can I instruct Wicket not to maintain the multiple versions of a given page within the session? I've tried the following but when I dump the session contents I still see multiple page versions: getSessionSettings().setMaxPageMaps(1); getPageSettings().setMaxPageVersions(1); Am I missing the boat on
Re: [Wicket-user] Strategy to avoid new instances of pages and panels
Did not know about that functionality. Sounds perfect. Then for pages which must always have bookmarkable URL, we can always extend a base class that sets itself to unversioned, and for other non-bookmarkable pages we can still rely on the standard behavior with back button support. Thanks! -Jason Johan Compagner wrote: Ahh so you are using pages with state. (you use ajax) You just don't want to version them? Because for navigation you only use bookmarkable pages Just have one base page that does serVersioned(false) then all your pages are unversioned. johan On 1/24/07, dukejansen [EMAIL PROTECTED] wrote: Sorry, guess I misunderstood. Still trying to wrap my head around these concepts. We have an app that is all bookmarkable pages so far, but we may encounter cases without them further down the road. But even for our bookmarkable pages, they may have lots of activity on them which is ajax actions which update the model behind the scenes. The way wicket wires components to their models is still very beneficial, as is the markup inheritance and java-centric development model, etc. As an example, we currently have a search results page which must always include all search criteria in the URL. So right now we have multiple panels with various search criteria. When the user updates the form elements and clicks search, we let wicket update all the backing models for us, then we assemble a new URL based on the updated models, and redirect to the new URL. This is instead of what might be a more familiar web model where the form data is simply submitted TO the new URL -- instead, we are submitting to wicket, letting wicket do all the updates to our backing state, and then we just construct a new URL to represent the new criteria and redirect to it. I won't deny that this is a bit wacky, but it was the only way I could find to ensure that my search criteria are included in the URL, but we still get wicket's free behavior of updating all model data. The trick is that we are abandoning the updated model data and redirecting to a new page... Not sure how well I've explained this. If there was a way to get wicket to simply use bookmarkable URLs when it does the form submission, I'd be happy to fall back on wicket. Also, FYI, we are using a lot of the Wicket ajax behavior for updating state which does NOT need to be in the URL. -Jason Johan Compagner wrote: But i was talking about the settings maxpageversions. thats not the same thing as how many there can be in the pagemap That depends on the page map that is used (in 1.3 or 2.0) AccessStackPageMap uses by default 5 because that is EvictionStrategy: private IPageMapEvictionStrategy pageMapEvictionStrategy = new LeastRecentlyAccessedEvictionStrategy(5); The PageMap of the secondlevelcache only has one active in the session. But you are making an app where all the urls are again bookmarkable and you don't use forms anywhere? or if you use for (with wicket 1.2) you handle the post in the constructor of the page itself? Thats not really where wicket is made for, your throw away pretty much 90% of what makes wicket. johan On 1/24/07, dukejansen [EMAIL PROTECTED] wrote: I think the current method name makes sense, but what is unclear is whether the CURRENT page is taking up one of the positions. I would think setting the max to 1 would ensure that the pagemap contains the current page and no others. If in fact the current page doesn't need room in the page map, then I guess 0 would make more sense. I think adding detail to the javadoc should be sufficient to clear up this ambiguity. Johan Compagner wrote: set the max to 0 then the change list of the version manager will really not ntain anything this is the test: (after the new one is added to the list) // If stack is overfull, remove oldest entry if (getVersions() maxVersions) { expireOldestVersion(); } What is logical? max versions is that also counting the current one? What is the best English for this?? should we better express it like: setMaxPageUndoBuffer() ?? johan On 1/24/07, dukejansen [EMAIL PROTECTED] wrote: Eelco Hillenius wrote: Well, every user (session) will use memory, correct. But only to a certain limit. Wicket 1.2 holds a couple of page/ versions in a session, and Wicket 2.0 by default only holds the current one. So the creation of a fresh instance (e.g. a bookmarkable page) will replace another one. Hence, how much memory you'll need is a simple function of the number of concurrent sessions times the size of your session and page(s) in it. How can I instruct Wicket not to maintain the multiple versions of a given page within the session? I've tried the following but when I
[Wicket-user] flourish right-wing
If you plan on using this content for any purpose, you should review this disclaimer and copyright notice. Kirwan were on holiday in England when she died but according to family members, They were never called to properly identify the body but did admit, a close family friend did identify the body. Mutual Fund FAQsHaving run the About. One of the family members is grabbed by an alien, and the family fights back, shooting at the invaders. If you could really just up and drop a half day of work with I'm Cutting Down My Stress Level as the reason anytime you wanted, chances are, most would. It was dark outside and a little cloudy, smoke coming out of the industry. Hopefully, he will find UFOs and film them. It was, if not relaxing, enlightening. They were arranged in a diamond shape. I have the job responsibility of moving aircraft under there own power from gate to gate or the hangar complex for maintenance. Retired Pilot Snaps Photo of UFO Retired Air Force pilot Col. Actually, I thought it was quite hilarious. AboutThis entry, Fantasy Sports Lawsuit Reply Brief, is part of the Tech Law Advisor weblog and was posted by in the Internet Regulation Category. Brokerages and funds took the full brunt of regulatory attacks by former NY Attorney General Eliot Spitzer and the SEC since the laws were more clearly defined for those industries. Latest UFO Sighting ReportsHey, everyone, we have a lot of good UFO reports to look over this week, so let's get started. Today, Barsaatu, whose name translates to rain in Hindi, indulges in more than three servings of mud on a daily basis. There are a lot of statements in the Bible which hold metaphorical and figurative meanings. They took a picture of it, and getting home and looking at the photos of the day, they saw something strange in the right hand corner. In the midst of these reports, there have also been several reports from Argentina where eyewitnesses have reported a number of UFOs, with one of the unknown objects believed to have crashed. We could not hear any engine sound. It was a very bright orange, and soon, shot straight upward and was gone. Today, Barsaatu, whose name translates to rain in Hindi, indulges in more than three servings of mud on a daily basis. publishing.gif Description: GIF image - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How do you load an external image?
When I use the above StaticImage Wicket looks for the image url in the path of the relevant component like so: com/vegas/cart/wicket/components/scroll/http:/cache.vegas.com/resorts/thehotel/mandalaybaynew.jpg Do I need to add a WebPageResourceStreamLocator or some such thing? The full log output is below. Thank you as always. 1/24 15:02:14 WARN | PackageResource.getResourceStream(553): Unable to find package resource [path = com/vegas/cart/wicket/components/scroll/http:/cache.vegas.com/resorts/thehotel/mandalaybaynew.jpg, style = null, locale = en_US] 1/24 15:02:14 ERROR| AjaxRequestTarget.respond(379): Error while responding to an AJAX request: [EMAIL PROTECTED] markupIdToComponent [{scrollPopup=[MarkupContainer [Component id = scrollPopup, page = com.vegas.cart.wicket.pages.Index, path = 7:scrollPopup.ModalWindow, isVisible = true, isVersioned = false]]}], prependJavascript [[]], appendJavascript [[var element = document.getElementById (scrollPopup_content); var settings = new Object(); settings.minWidth=200; settings.minHeight=200; settings.className=w_blue; settings.width=800; settings.height=400; settings.resizable=true; settings.element = element; settings.cookieId=modal-window-18936477; settings.title=Deathmatch Scrolling View; settings.mask=semi-transparent; settings.onClose = function() { var wcall=wicketAjaxGet('/wicketapp/app?wicket:interface=:7:scrollPopup::IBehaviorListenerwicket:behaviorId=1', function() { }, function() { }); }; Wicket.Window.create(settings).show(); ]] wicket.protocol.http.servlet.AbortWithWebErrorCodeException at wicket.markup.html.PackageResource.getResourceStream( PackageResource.java:556) at wicket.markup.html.PackageResource.init(PackageResource.java:502) at wicket.markup.html.PackageResource.get(PackageResource.java:424) at wicket.markup.html.image.resource.LocalizedImageResource$1.newResource( LocalizedImageResource.java:361) at wicket.ResourceReference.bind(ResourceReference.java:149) at wicket.markup.html.image.resource.LocalizedImageResource.bind( LocalizedImageResource.java:180) at wicket.markup.html.image.resource.LocalizedImageResource.loadStaticImage( LocalizedImageResource.java:368) at wicket.markup.html.image.resource.LocalizedImageResource.setSrcAttribute( LocalizedImageResource.java:283) at wicket.markup.html.image.Image.onComponentTag(Image.java:225) at wicket.Component.renderComponent(Component.java:1688) at wicket.markup.html.WebComponent.onRender(WebComponent.java:61) at wicket.Component.render(Component.java:1533) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1334) at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java :982) at wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java :571) at wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:108) at wicket.Component.renderComponent(Component.java:1719) at wicket.MarkupContainer.onRender(MarkupContainer.java:927) at wicket.Component.render(Component.java:1533) at wicket.MarkupContainer.renderNext(MarkupContainer.java:1334) at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java :982) at wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java :571) at wicket.markup.html.panel.Panel.onComponentTagBody(Panel.java:108) at wicket.Component.renderComponent(Component.java:1719) at wicket.MarkupContainer.onRender(MarkupContainer.java:927) at wicket.Component.render(Component.java:1533) at wicket.Component.renderComponent(Component.java:1657) at wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java :474) at wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:361) at wicket.request.compound.DefaultResponseStrategy.respond( DefaultResponseStrategy.java:49) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond (AbstractCompoundRequestCycleProcessor.java:66) at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java:902) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:934) at wicket.RequestCycle.step(RequestCycle.java:1010) at wicket.RequestCycle.steps(RequestCycle.java:1084) at wicket.RequestCycle.request(RequestCycle.java:454) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) at javax.servlet.http.HttpServlet.service(HttpServlet.java:810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter( ReplyHeaderFilter.java:81) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter( ApplicationFilterChain.java:202) at org.apache.catalina.core.ApplicationFilterChain.doFilter( ApplicationFilterChain.java:173) at
Re: [Wicket-user] How do you load an external image?
how are you creating the static image? -igor On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote: When I use the above StaticImage Wicket looks for the image url in the path of the relevant component like so: com/vegas/cart/wicket/components/scroll/http:/cache.vegas.com/resorts/thehotel/mandalaybaynew.jpg Do I need to add a WebPageResourceStreamLocator or some such thing? The full log output is below. Thank you as always. 1/24 15:02:14 WARN | PackageResource.getResourceStream(553): Unable to find package resource [path = com/vegas/cart/wicket/components/scroll/http:/cache.vegas.com/resorts/thehotel/mandalaybaynew.jpg, style = null, locale = en_US] 1/24 15:02:14 ERROR| AjaxRequestTarget.respond(379): Error while responding to an AJAX request: [EMAIL PROTECTED] markupIdToComponent [{scrollPopup=[MarkupContainer [Component id = scrollPopup, page = com.vegas.cart.wicket.pages.Index , path = 7:scrollPopup.ModalWindow, isVisible = true, isVersioned = false]]}], prependJavascript [[]], appendJavascript [[var element = document.getElementById(scrollPopup_content); var settings = new Object(); settings.minWidth=200; settings.minHeight=200; settings.className=w_blue; settings.width=800; settings.height=400; settings.resizable=true; settings.element = element; settings.cookieId=modal-window-18936477; settings.title=Deathmatch Scrolling View; settings.mask=semi-transparent; settings.onClose = function() { var wcall=wicketAjaxGet('/wicketapp/app?wicket:interface=:7:scrollPopup::IBehaviorListenerwicket:behaviorId=1', function() { }, function() { }); }; Wicket.Window.create(settings).show(); ]] wicket.protocol.http.servlet.AbortWithWebErrorCodeException at wicket.markup.html.PackageResource.getResourceStream(PackageResource.java:556) at wicket.markup.html.PackageResource .init(PackageResource.java:502) at wicket.markup.html.PackageResource.get(PackageResource.java:424) at wicket.markup.html.image.resource.LocalizedImageResource$1.newResource(LocalizedImageResource.java :361) at wicket.ResourceReference.bind(ResourceReference.java:149) at wicket.markup.html.image.resource.LocalizedImageResource.bind(LocalizedImageResource.java:180) at wicket.markup.html.image.resource.LocalizedImageResource.loadStaticImage (LocalizedImageResource.java:368) at wicket.markup.html.image.resource.LocalizedImageResource.setSrcAttribute(LocalizedImageResource.java:283) at wicket.markup.html.image.Image.onComponentTag(Image.java:225) at wicket.Component.renderComponent(Component.java:1688) at wicket.markup.html.WebComponent.onRender(WebComponent.java:61) at wicket.Component.render(Component.java:1533) at wicket.MarkupContainer.renderNext (MarkupContainer.java:1334) at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:982) at wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:571) at wicket.markup.html.panel.Panel.onComponentTagBody (Panel.java:108) at wicket.Component.renderComponent(Component.java:1719) at wicket.MarkupContainer.onRender(MarkupContainer.java:927) at wicket.Component.render(Component.java:1533) at wicket.MarkupContainer.renderNext (MarkupContainer.java:1334) at wicket.MarkupContainer.renderComponentTagBody(MarkupContainer.java:982) at wicket.MarkupContainer.renderAssociatedMarkup(MarkupContainer.java:571) at wicket.markup.html.panel.Panel.onComponentTagBody (Panel.java:108) at wicket.Component.renderComponent(Component.java:1719) at wicket.MarkupContainer.onRender(MarkupContainer.java:927) at wicket.Component.render(Component.java:1533) at wicket.Component.renderComponent (Component.java:1657) at wicket.ajax.AjaxRequestTarget.respondComponent(AjaxRequestTarget.java:474) at wicket.ajax.AjaxRequestTarget.respond(AjaxRequestTarget.java:361) at wicket.request.compound.DefaultResponseStrategy.respond (DefaultResponseStrategy.java:49) at wicket.request.compound.AbstractCompoundRequestCycleProcessor.respond(AbstractCompoundRequestCycleProcessor.java:66) at wicket.RequestCycle.doProcessEventsAndRespond(RequestCycle.java :902) at wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:934) at wicket.RequestCycle.step(RequestCycle.java:1010) at wicket.RequestCycle.steps(RequestCycle.java:1084) at wicket.RequestCycle.request (RequestCycle.java:454) at wicket.protocol.http.WicketServlet.doGet(WicketServlet.java:219) at javax.servlet.http.HttpServlet.service(HttpServlet.java:697) at javax.servlet.http.HttpServlet.service(HttpServlet.java :810) at org.apache.catalina.core.ApplicationFilterChain.internalDoFilter(ApplicationFilterChain.java:252) at org.apache.catalina.core.ApplicationFilterChain.doFilter(ApplicationFilterChain.java:173) at org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:81)
Re: [Wicket-user] error on the faq
That is a typo, but you actually meant to say: tr wicket:id=hideme not: tr wicket:id=wicket-hideme because it's: WebMarkupContainer hideme = new WebMarkupContainer(hideme); not WebMarkupContainer hideme = new WebMarkupContainer(wicket-hideme); Scott Swank wrote: There is a typo in the faq -- which hit one our Wicket test driver developers. The last FAQ How can I hide markup and/or components? should have tr wicket:id=wicket-hideme instead of tr id=wicket-hideme Also, there are CDATA tags wrapping each of the code examples. Cheers, Scott ![CDATA[ WebMarkupContainer hideme = new WebMarkupContainer(hideme); hideme.setVisible(false); html body table tr id = wicket-hideme tdthis row will be hidden/td /tr tr tdthis row will not be hidden/td /tr /table /body /html ]] -- Scott Swank reformed mathematician - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ 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-user--error-on-the-faq-tf3083739.html#a8584536 Sent from the Wicket - User mailing list archive at Nabble.com. - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How do you load an external image?
The image is added to the panel like so: add(new StaticImage(productImage, http://cache.vegas.com/resorts/thehotel/mandalaybaynew.jpg;)); And that uses a convenience constructor I added to the original StaticImage: package com.vegas.wicket; import wicket.markup.ComponentTag; import wicket.markup.html.WebComponent; import wicket.model.IModel; import wicket.model.Model; public class StaticImage extends WebComponent { private static final long serialVersionUID = -7600332611457262341L; public StaticImage(String id, IModel model) { super(id, model); } public StaticImage(String id, String url) { this(id, new Model(url)); } protected void onComponentTag(ComponentTag tag) { checkComponentTag(tag, img); tag.put(src, getModelObjectAsString()); } } - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How do you load an external image?
And the html tag is simply: img wicket:id=productImage / Thank you. On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote: The image is added to the panel like so: add(new StaticImage(productImage, http://cache.vegas.com/resorts/thehotel/mandalaybaynew.jpg )); And that uses a convenience constructor I added to the original StaticImage: package com.vegas.wicket; import wicket.markup.ComponentTag; import wicket.markup.html.WebComponent; import wicket.model.IModel; import wicket.model.Model; public class StaticImage extends WebComponent { private static final long serialVersionUID = -7600332611457262341L; public StaticImage(String id, IModel model) { super(id, model); } public StaticImage(String id, String url) { this(id, new Model(url)); } protected void onComponentTag(ComponentTag tag) { checkComponentTag(tag, img); tag.put(src, getModelObjectAsString()); } } -- Scott Swank reformed mathematician - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] error on the faq
Indeed. On 1/24/07, Jonathan Locke [EMAIL PROTECTED] wrote: That is a typo, but you actually meant to say: tr wicket:id=hideme not: tr wicket:id=wicket-hideme because it's: WebMarkupContainer hideme = new WebMarkupContainer(hideme); not WebMarkupContainer hideme = new WebMarkupContainer(wicket-hideme); - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How do you load an external image?
that is very peculiar, i dont see a reason for it to look for a packaged resource, what does the produced markup look like? -igor On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote: And the html tag is simply: img wicket:id=productImage / Thank you. On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote: The image is added to the panel like so: add(new StaticImage(productImage, http://cache.vegas.com/resorts/thehotel/mandalaybaynew.jpg )); And that uses a convenience constructor I added to the original StaticImage: package com.vegas.wicket; import wicket.markup.ComponentTag; import wicket.markup.html.WebComponent; import wicket.model.IModel; import wicket.model.Model; public class StaticImage extends WebComponent { private static final long serialVersionUID = -7600332611457262341L; public StaticImage(String id, IModel model) { super(id, model); } public StaticImage(String id, String url) { this(id, new Model(url)); } protected void onComponentTag(ComponentTag tag) { checkComponentTag(tag, img); tag.put(src, getModelObjectAsString()); } } -- Scott Swank reformed mathematician - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How do you load an external image?
We have added a new ResourceStreamLocator to let us put html files off in a separate directory for our UI team. From our WebApplication: protected void init() { super.init(); CompoundResourceStreamLocator locator = (CompoundResourceStreamLocator)getResourceSettings().getResourceStreamLocator(); WebApplicationPath resourceFinder = (WebApplicationPath) getResourceSettings().getResourceFinder(); resourceFinder.add(/dev/uiproto/wicketapp/content); //this path should be changed resourceFinder.add(/dev/workspace/wicketapp/content); //this path should be changed locator.add(0, new WebPageResourceStreamLocator(resourceFinder)); } Is that potentially the culprit? On 1/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote: that is very peculiar, i dont see a reason for it to look for a packaged resource, what does the produced markup look like? -igor On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote: And the html tag is simply: img wicket:id=productImage / Thank you. On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote: The image is added to the panel like so: add(new StaticImage(productImage, http://cache.vegas.com/resorts/thehotel/mandalaybaynew.jpg )); And that uses a convenience constructor I added to the original StaticImage: package com.vegas.wicket; import wicket.markup.ComponentTag; import wicket.markup.html.WebComponent; import wicket.model.IModel; import wicket.model.Model; public class StaticImage extends WebComponent { private static final long serialVersionUID = -7600332611457262341L; public StaticImage(String id, IModel model) { super(id, model); } public StaticImage(String id, String url) { this(id, new Model(url)); } protected void onComponentTag(ComponentTag tag) { checkComponentTag(tag, img); tag.put(src, getModelObjectAsString()); } } -- Scott Swank reformed mathematician - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Scott Swank reformed mathematician - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How do you load an external image?
No markup is produced. It's in a ModalWindow. Here's the dump from the Ajax debug window: *INFO: * Initiating Ajax GET request on /wicketapp/app?wicket:interface=:1:openScroll::IBehaviorListenerwicket:behaviorId=0random= 0.46680841416499696 *INFO: *Invoking pre-call handler(s)... *ERROR: *Received Ajax response with code: 500 *INFO: *Invoking post-call handler(s)... *INFO: *Invoking failure handler(s)... On 1/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote: that is very peculiar, i dont see a reason for it to look for a packaged resource, what does the produced markup look like? -igor On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote: And the html tag is simply: img wicket:id=productImage / Thank you. On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote: The image is added to the panel like so: add(new StaticImage(productImage, http://cache.vegas.com/resorts/thehotel/mandalaybaynew.jpg )); And that uses a convenience constructor I added to the original StaticImage: package com.vegas.wicket; import wicket.markup.ComponentTag; import wicket.markup.html.WebComponent; import wicket.model.IModel; import wicket.model.Model; public class StaticImage extends WebComponent { private static final long serialVersionUID = -7600332611457262341L; public StaticImage(String id, IModel model) { super(id, model); } public StaticImage(String id, String url) { this(id, new Model(url)); } protected void onComponentTag(ComponentTag tag) { checkComponentTag(tag, img); tag.put(src, getModelObjectAsString()); } } -- Scott Swank reformed mathematician - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Scott Swank reformed mathematician - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How do you load an external image?
i have no idea why you would have that weird stuff in the src attribute, its not in the model. -igor On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote: No markup is produced. It's in a ModalWindow. Here's the dump from the Ajax debug window: INFO: Initiating Ajax GET request on /wicketapp/app?wicket:interface=:1:openScroll::IBehaviorListenerwicket:behaviorId=0random=0.46680841416499696 INFO: Invoking pre-call handler(s)... ERROR: Received Ajax response with code: 500 INFO: Invoking post-call handler(s)... INFO: Invoking failure handler(s)... On 1/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote: that is very peculiar, i dont see a reason for it to look for a packaged resource, what does the produced markup look like? -igor On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote: And the html tag is simply: img wicket:id=productImage / Thank you. On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote: The image is added to the panel like so: add(new StaticImage(productImage, http://cache.vegas.com/resorts/thehotel/mandalaybaynew.jpg )); And that uses a convenience constructor I added to the original StaticImage: package com.vegas.wicket; import wicket.markup.ComponentTag; import wicket.markup.html.WebComponent; import wicket.model.IModel; import wicket.model.Model; public class StaticImage extends WebComponent { private static final long serialVersionUID = -7600332611457262341L; public StaticImage(String id, IModel model) { super(id, model); } public StaticImage(String id, String url) { this(id, new Model(url)); } protected void onComponentTag(ComponentTag tag) { checkComponentTag(tag, img); tag.put(src, getModelObjectAsString()); } } -- Scott Swank reformed mathematician - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Scott Swank reformed mathematician - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] How do you load an external image?
ah, so the image doesnt even render, i see. i thought that url you showed was in the image's src. so this thread doesnt have anything to do with the staticimage component itself??? -igor On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote: No markup is produced. It's in a ModalWindow. Here's the dump from the Ajax debug window: INFO: Initiating Ajax GET request on /wicketapp/app?wicket:interface=:1:openScroll::IBehaviorListenerwicket:behaviorId=0random=0.46680841416499696 INFO: Invoking pre-call handler(s)... ERROR: Received Ajax response with code: 500 INFO: Invoking post-call handler(s)... INFO: Invoking failure handler(s)... On 1/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote: that is very peculiar, i dont see a reason for it to look for a packaged resource, what does the produced markup look like? -igor On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote: And the html tag is simply: img wicket:id=productImage / Thank you. On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote: The image is added to the panel like so: add(new StaticImage(productImage, http://cache.vegas.com/resorts/thehotel/mandalaybaynew.jpg )); And that uses a convenience constructor I added to the original StaticImage: package com.vegas.wicket; import wicket.markup.ComponentTag; import wicket.markup.html.WebComponent; import wicket.model.IModel; import wicket.model.Model; public class StaticImage extends WebComponent { private static final long serialVersionUID = -7600332611457262341L; public StaticImage(String id, IModel model) { super(id, model); } public StaticImage(String id, String url) { this(id, new Model(url)); } protected void onComponentTag(ComponentTag tag) { checkComponentTag(tag, img); tag.put(src, getModelObjectAsString()); } } -- Scott Swank reformed mathematician - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user -- Scott Swank reformed mathematician - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] wicket:head with page
Oops! Let me correct my previous post. Based on the new Wiki, wicket:head is not necessary for a child markup if it is a page; the html head is enough to be contributed to the final head of the markup. On 25/01/07, Otan [EMAIL PROTECTED] wrote: The following works for me: !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional//EN http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd html xmlns=http://www.w3.org/1999/xhtml; xmlns:wicket= http://www.wicketframework.org; head title~/title wicket:head script language=javascript type=text/javascript alert(' Content of the wicket:head gets contributed into the final page.'); /script /wicket:head /head body wicket:extend This is a child markup and here is its content. Notice that I have a wicket:head above. /wicket:extend /body /html On 25/01/07, Marc-Andre Houle [EMAIL PROTECTED] wrote: In the wiki, there is a gotcha that look like this : Adding wicket:head to a Page wicket:head is intended for panels and borders only. Do not add this to a page. The problem is : it is exactly what I wanted to do. I got a child class that need to add some css/javascript to the header of the page. Is it because our design is too pour or just that this is not true anymore or what else? I wanted to have a little more detailed about that. Thanks Marc P.S. : I'll make sure to copy the details into the wiki after :) - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] where's wicket stuff gmap
Is the gmap component gone, or temporarily unavailable? Thank you, Scott -- Scott Swank reformed mathematician - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
Re: [Wicket-user] where's wicket stuff gmap
http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/trunk/wicket-contrib-gmap/ http://wicket-stuff.svn.sourceforge.net/viewvc/wicket-stuff/trunk/wicket-contrib-gmap-examples/ -igor On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote: Is the gmap component gone, or temporarily unavailable? Thank you, Scott -- Scott Swank reformed mathematician - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user
[Wicket-user] wicket 2.0
Is wicket 2.0 released. Where can i find its source code and api? Food fight? Enjoy some healthy debate in the Yahoo! Answers Food Drink QA. http://answers.yahoo.com/dir/?link=listsid=396545367 - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.phpp=sourceforgeCID=DEVDEV ___ Wicket-user mailing list Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user