Re: Feedback message isn't displayed
OK, I created an issue: https://issues.apache.org/jira/browse/WICKET-2121 https://issues.apache.org/jira/browse/WICKET-2121 Timo Rantalaiho wrote: On Wed, 18 Feb 2009, Jakub Srba wrote: Here is a simpler example that doesn't work for me either: ... Component-targetted feedback message was left unrendered. This could be because you are missing a FeedbackPanel on the page. Message: [FeedbackMessage message = this error message is NOT displayed, reporter = 0, level = ERROR] That sounds strange. Could you wrap your code in a quickstart, make a Jira issue and attach it? Best wishes, Timo -- Timo Rantalaiho Reaktor Innovations OyURL: http://www.ri.fi/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Feedback-message-isn%27t-displayed-tp22056824p22157094.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: request: make GuiceProxyTargetLocator public
Guice will not always return a proxy. You should not rely on this behavior. Dhanji. On Sat, Feb 21, 2009 at 10:48 PM, Andreas Petersson andr...@petersson.at wrote: Hello! (this post went to the guice + the wicket mailing list) I would really like GuiceProxyTargetLocator to have a public constructor. Currently it is package-access. Furthermore findBindingAnnotation should be made public static I had to create a org.apache.wicket.guice.GuiceProxyTargetLocator2.cheat class + method in my codebase for to get around the limitation. My usecase: I still had problems using guice-injected members in serializable classes. Matej Knopp gave me some helpful hints on how to handle this. i have somewhat solved it, using GuiceProxyTargetLocator . AdminDao just a two - method interface of which happens to be implemented by a handful of DAOs. It is injected in factories, which in turn construct the Iterator. (not using @Inject in this case) public CommonIterator(AdminDao dao) { final Class? type = dao.getClass().getSuperclass(); this.dao = (AdminDao) LazyInitProxyFactory.createProxy(type, GuiceProxyTargetLocator2.cheat(type,null)); } Since i am not using a BindingAnnotation in this specific case, its ok to pass null. Otherwise, i would be forced to re-implement findBindingAnnotation - this could be made public static as well. getSuperclass() is used to determine the true Type of the Class, because initially it is wrapped in a Guice Proxy object. is there maybe a better - guicy- way of obtaining this information from the dao instance? Is it true that Guice will always return a proxy- if not i will end up with a ClassObject instance, which will break createProxy. --- using my approach its impossible to use CommonIterator outside of a wicket application ( Batch jobs) - since there i do not have a WicketApplication initialized. So i'm not too happy about the solution. This all feels messy, so i thought of how i think it could work - a more robust approach would be the following: When Guice injectes into serializable Classes and a Wicket Application is present, modify Guice in a way that it returns LazyInitProxyFactory.createProxy instances, so that i do not have to worry about this. I think this would be a serious change to the guice api, a sort of instantiationChain in the injector, in which the wicket app could register itself. Or is there already a mechanism in place that allows me to hook into the instantiation and obtian the information where the object is being injected into? --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups google-guice group. To post to this group, send email to google-gu...@googlegroups.com To unsubscribe from this group, send email to google-guice+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/google-guice?hl=en -~--~~~~--~~--~--~--- - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Storing user entity in session?
Jumping in here part way through the thread, so apologies if you've covered this already. What we do is simply store a key that represents the user (and maybe a small amount of data that is accessed about the user on every page). In general we find that our persistence is much more reliable if we don't try to optimize it before we know that we need to. Most operation only really require the user key to get or update data as the user authentication data doesn't change all that much (it's all the data attached to the user that does). In general I can't image you need to store a whole user object transient or not. Hope that helps, - Brill On 23-Feb-09, at 2:42 AM, Martijn Dashorst wrote: Storing the user in a field of Session is wrong. Didn't you read the concurrency caveats I posted earlier? When users click fast enough, you'll get Hibernate exceptions pretty soon. Entity instances can't be shared between multiple threads. Putting them in the Session exposes them to that threat. Putting transient before the field doesn't mitigate that, neither does synchronized. Martijn On Fri, Feb 20, 2009 at 11:25 PM, Tauren Mills tau...@groovee.com wrote: Nino and Martijn, Thanks for the help. Last night I was looking through the elephas code and found a solution that I think will work for me. It doesn't store an LDM in the session, but stores an identifier and a *transient* instance of User. This seems like an effective solution to me. I tried it out and haven't had problems yet. Here's the elephas session so you can see for yourself: http://code.google.com/p/elephas/source/browse/trunk/src/main/java/org/elephas/webapp/application/ElephasSession.java?r=87 Then on my page, I just do something like this: setDefaultModel(new DetachableUserModel(getSession().getUser(),userDao)); Please let me know your thoughts on this. Thanks, Tauren On Fri, Feb 20, 2009 at 2:05 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi Tauren I've done something similar.. Have no trouble with.. Disclaimer, below code are really ugly and I need to clean it up... - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Feedback message isn't displayed
I'm reposting the answer from JIRA: Igor Vaynberg - 23/Feb/09 12:15 AM the load method of your model can be called after the feedback panel has already rendered - thus it will not pick it up. it is simply a bad idea to call any feedback related messages from your model's get methods because you have no idea when they are called. So I had to change the logic when loading data. Fortunately, it's more understandable now. Thanks for help. Jakub Srba wrote: OK, I created an issue: https://issues.apache.org/jira/browse/WICKET-2121 https://issues.apache.org/jira/browse/WICKET-2121 -- View this message in context: http://www.nabble.com/Feedback-message-isn%27t-displayed-tp22056824p22157840.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [OT] Framework for managing task
That seems to be it! Thanks a lot, Pierre. Kaspar On 23.02.2009, at 00:39, Pierre Goupil wrote: Maybe Quartz is what you want : http://www.opensymphony.com/quartz/ Regards, Pierre On Sun, Feb 22, 2009 at 11:26 PM, Kaspar Fischer fisch...@inf.ethz.chwrote: My Wicket app needs to run tasks in the background and I am looking for a Java framework to persist tasks in the sense that I can submit a task and the framework would ensure that once submitted (transactions?), the task will be run, even if the server is shut down in between and the task needs to be restarted. Also, tasks that support cancellation (à la java.util.concurrent.ExecutorService) should be cancelled when the system stops. Do you know of anything similar? Whatever tool I'll end up with I will document the integration with Wicket on the wiki. Thanks a lot, Kaspar - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Sans amis était le grand maître des mondes, Eprouvait manque, ce pour quoi il créa les esprits, Miroirs bienveillants de sa béatitude. Mais au vrai, il ne trouva aucun égal, Du calice du royaume total des âmes Ecume jusqu'à lui l'infinité. (Schiller, l'amitié) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Datatable Internationalization
Hi all, I have a question about Wicket Datatable Component Internationalization. In the datatable, in don't find how to change the text Showing 1 to 10 of N in the navigation toolbar. The Datatable component is associated to a NavigatorToolBar component, wich is associated to a NavigatorLabel. I've found this code in the NavigatorLabel.java file : new StringResourceModel(NavigatorLabel, this, new ModelLabelModelObject(new LabelModelObject(table)), Showing ${from} to ${to} of ${of}) I've tried to redefine NavigatorLabel in my properties files, but it does'nt work, the text the Showing 1 to 10 of N does'nt change. I've tried this : NavigatorLabel = Lignes ${from} à ${to} sur ${of} and NavigatorLabel = Lignes ${0} à ${1} sur ${2} Do anyone knows how to make this work? Thanks a lot -- Loïc Descotte 9 rue Sébastien Gryphe 69007 Lyon 06 23 23 36 80
Re: Storing user entity in session?
Having access to the complete user object, comes in handy if you use compound models.. Like the CompundPropertyModel... But I see your point.. But it's also sort of what the LDM does, store some kind of identifier and then looks up the user if its not already loaded.. 2009/2/23 Brill Pappin br...@pappin.ca Jumping in here part way through the thread, so apologies if you've covered this already. What we do is simply store a key that represents the user (and maybe a small amount of data that is accessed about the user on every page). In general we find that our persistence is much more reliable if we don't try to optimize it before we know that we need to. Most operation only really require the user key to get or update data as the user authentication data doesn't change all that much (it's all the data attached to the user that does). In general I can't image you need to store a whole user object transient or not. Hope that helps, - Brill On 23-Feb-09, at 2:42 AM, Martijn Dashorst wrote: Storing the user in a field of Session is wrong. Didn't you read the concurrency caveats I posted earlier? When users click fast enough, you'll get Hibernate exceptions pretty soon. Entity instances can't be shared between multiple threads. Putting them in the Session exposes them to that threat. Putting transient before the field doesn't mitigate that, neither does synchronized. Martijn On Fri, Feb 20, 2009 at 11:25 PM, Tauren Mills tau...@groovee.com wrote: Nino and Martijn, Thanks for the help. Last night I was looking through the elephas code and found a solution that I think will work for me. It doesn't store an LDM in the session, but stores an identifier and a *transient* instance of User. This seems like an effective solution to me. I tried it out and haven't had problems yet. Here's the elephas session so you can see for yourself: http://code.google.com/p/elephas/source/browse/trunk/src/main/java/org/elephas/webapp/application/ElephasSession.java?r=87 Then on my page, I just do something like this: setDefaultModel(new DetachableUserModel(getSession().getUser(),userDao)); Please let me know your thoughts on this. Thanks, Tauren On Fri, Feb 20, 2009 at 2:05 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi Tauren I've done something similar.. Have no trouble with.. Disclaimer, below code are really ugly and I need to clean it up... - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [OT] Framework for managing task
Kaspar Fischer schrieb: the task will be run, even if the server is shut down in between and the task needs to be restarted. Also, tasks that support cancellation (à la java.util.concurrent.ExecutorService) should be cancelled when the system stops. sounds like JMS. I´d recommend ActiveMQ. If tasks should be scheduled, then i´d go for Quartz, too. cu uwe -- THOMAS DAILY GmbH Adlerstraße 19 79098 Freiburg Deutschland T + 49 761 3 85 59 0 F + 49 761 3 85 59 550 E schae...@thomas-daily.de www.thomas-daily.de Geschäftsführer/Managing Directors: Wendy Thomas, Susanne Larbig Handelsregister Freiburg i.Br., HRB 3947 Registrieren Sie sich unter http://morningnews.thomas-daily.de für die kostenfreien TD Morning News, eine Auswahl aktueller Themen des Tages morgens um 9:00 in Ihrer Mailbox. Hinweis: Der Redaktionsschluss für unsere TD Morning News ist täglich um 8:30 Uhr. Es werden vorrangig Informationen berücksichtigt, die nach 16:00 Uhr des Vortages eingegangen sind. Die Email-Adresse unserer Redaktion lautet redakt...@thomas-daily.de. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [OT] Framework for managing task
IMHO, you might want to look at the Spring framework as it provides a nice API on top of the asynchronous JEE features you need. Best, James. On Sun, Feb 22, 2009 at 10:26 PM, Kaspar Fischer fisch...@inf.ethz.chwrote: My Wicket app needs to run tasks in the background and I am looking for a Java framework to persist tasks in the sense that I can submit a task and the framework would ensure that once submitted (transactions?), the task will be run, even if the server is shut down in between and the task needs to be restarted. Also, tasks that support cancellation (à la java.util.concurrent.ExecutorService) should be cancelled when the system stops. Do you know of anything similar? Whatever tool I'll end up with I will document the integration with Wicket on the wiki. Thanks a lot, Kaspar - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: DropDownChoice without preselection and without 'Please choose one'
Hi Johan, hi Martin, Just for the sake of completeness: Having select.null= select.nullValid= as string resources, an empty option is displayed as first item if nullValid is true. If it is false, there is still the 'Please choose one' option. Anyway, I'll stick to the ListMultipleChoice solution I have described before, it might not be the most elegant one, but I think the code is more comprehensive this way. Thanks again for your input on this. Martin Makundi wrote: DId you try setting the componentId.null - property value? If null is valid then try componentId.nullValid , see -- View this message in context: http://www.nabble.com/DropDownChoice-without-preselection-and-without-%27Please-choose-one%27-tp22120191p22159080.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [OT] Simple file repository?
Hi Kaspar, just to save you some pain: in case of Jackrabbit don't use TransientRepository but RepositoryImpl instead and make it launch in the init() of you app and go down on the onDestroy() (in case you want to bundle it with your app). Transient has some bad behaviour and currently makes problem (1.5.2) when shutting it down using the repo.shutdown() as not all resources are 100% released in case you have still some connections (e.g. over RMI). Also make sure you safely de-register any exports first, then shutdown the repo using repo.shutdown() to prevent any locks. Also don't share Session over longer runs or threads as Session is not thread-safe. To see whats in your jackrabbit repo its best to connect via RMI, so you only depend on your real config, not any fancy (especially this also saves you from pain by having tools depending on different JR version than you are on!). A good way to dig in is using the JCRBRowser (either eclipse plugin or standalone) from http://sourceforge.net/projects/jcrbrowser . Also a good tool pool is under: http://dev.day.com/microsling/content/blogs/main/jcrtools.html - a JCR Tools roundup, bit older (2007) but still worth looking at; Under http://wiki.apache.org/jackrabbit/FrontPage you'll also find good info (the Jackrabbit page itself and its doc can be best described as useless nightmare). Also a side-start-point might be the DAY CRX Developer edition from http://www.day.com/content/day/en/products/crx/download/registration.html as this is practically a jackrabbit + tools thing. Its good to start and understand the idea and behaviour behind JCR, even the prices are Enterprise only you are free to use them for developement purposes only. Hope this one helps you get started. Best, Korbinian PS: you also might want to have a look at Brix-CMS http://code.google.com/p/brix-cms/ and checkout the latest src to see how they implemented and used it (latest is on JR 1.5.2 IMHO)! Kaspar Fischer schrieb: Thank you all very much for your advice. I will take a look at JackRabitt and Alfresco. Kaspar On 16.02.2009, at 01:45, Fabrizio Giudici wrote: Kaspar Fischer wrote: User's of my application will upload, edit, and delete files. For this, I'd like to have a simple file repository with the following features: - Files are stored on the file system. - Files are distributed over several folders (to avoid a single folder with 10,000 files, say). - Support for transactions Does anybody know of a simple Java library that satisfies these requirements? For example: a Hibernate database with a relation Files holding tuples (DocId, FilePath), and a service with: - id store(stream): creates from the stream a new file on the file system and inserts a new tuple into the relation, returns id - stream edit(id): returns a stream to a temporary copy of the file with the given id; updates the corresponding tuple to point to the temp file - void remove(id): removes the corresponding tuple form the relation ... and a background job which deletes dangling files. I suggest you something implemented on the top of JackRabbit (Java Content Repository). You might have a look at Brix, which is a CMS based on Wicket and JackRabbit. -- Fabrizio Giudici - Java Architect, Project Manager Tidalwave s.a.s. - We make Java work. Everywhere. weblogs.java.net/blog/fabriziogiudici - www.tidalwave.it/blog fabrizio.giud...@tidalwave.it - mobile: +39 348.150.6941 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket meetup in Switzerland?
maradona hint no working anymore? Is that a sign I'm beginning to get old? I'm in Buenos Aires, Argentina. f(t) On Sun, Feb 22, 2009 at 6:02 PM, Nino Martinez nino.martinez.w...@gmail.com wrote: Francisco Diaz Trepat - gmail wrote: First of all, could this be the coolest list ever? May be because Nino is on it. I would love to be in driving distance but Bs. As. is too far... Though starting to beg my boss for a quick trip (as we work for a Zürich based company)... We could have one here Wheres here? But Im really thinking that either apache con or WUG in UK could be the place for an annual WUG meetup..? I might be able to persuade my boss to let me go for something like it.. , and extend our invitation to all, specially Nino, Igor, Elco, Johan, and many more. Could make an Azado (as we are as widely known for our good meat as maradona, tango and other semi-cultural references about my country). Anyways nagging will continue, f(t) On Fri, Feb 20, 2009 at 1:23 PM, Johan Compagner jcompag...@gmail.com wrote: that was the whole idea, now you spoiled it! ;( On Fri, Feb 20, 2009 at 17:09, Jeremy Thomerson jer...@wickettraining.comwrote: I've seen plenty of programming language flame wars, but it looks like Johan is starting a REAL language flamewar. :) On Fri, Feb 20, 2009 at 9:41 AM, Johan Compagner jcompag...@gmail.com wrote: if you would do it in a time that i am in the swiss then i could also attend But that is now and then +/- 1 time in 2 months.. (this week i am in Bern) I dont have a problem if it was in real german, but it cant be in that swiss german (which has i my eyes nothing to do with german anyway) because that i really cant follow at all. its complete garbage.. ;) johan On Fri, Feb 20, 2009 at 12:17, Thomas Mäder thomas.mae...@devotek-it.ch wrote: Whoa! The silence is deafening! Since I've had one answer in a week, I guess there is just no interest. Oh well... Thomas On Mon, Feb 16, 2009 at 12:04 PM, Thomas Mäder thomas.mae...@devotek-it.chwrote: Hi Folks, I would be willing to organize a Wicket meetup in Switzerland if there is enough interest. I propose a meeting somewhere in Zürich. The format I imagine is that participants could (don't have to) shortly (15-20min.) present their work with Wicket (demos are always nice). That would be followed by general mingling with drinks snacks. For the date, I would shoot for the week starting March 16, 17:30-20:30h. Would you be interested in participating in/hosting/sponsoring such a thing? Either reply here or to me privately, and if there is enough interest, I'll set up a thing on the wiki. Thomas -- Thomas Mäder Wicket Eclipse Consulting www.devotek-it.ch -- Wicket Eclipse Consulting www.devotek-it.ch thomasmaeder.blogspot.com -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Uploading A File
Adding the model worked. http://www.wicket-library.com/wicket-examples/upload/single This link is the one that had the problem, when you try to upload a file it gives a page that says internal error. Jeremy Thomerson-5 wrote: Yes - it works well. You didn't provide the error, so of course that means that we can't help you debug it. Even short of that, I'd suspect that if you are running a recent (RC1 / RC2) release of Wicket 1.4, that you need to pass your FileUploadField a model when you instantiate it. FileUploadField fuf = new FileUploadField(file, new Model()); this used to work without the model, but it doesn't now. Please provide more information if this doesn't fix it. -- Jeremy Thomerson http://www.wickettraining.com On Thu, Feb 19, 2009 at 2:20 PM, walnutmon justin.m.boy...@gmail.comwrote: I'm not sure exactly where this belongs, but I need to upload a file, after checking the example I noticed that it throws an internal error whenever I try to use it... That's not the behavior I hope to emulate... Does anyone have an easy way to get a file upload through wicket? Thanks! Justin -- View this message in context: http://www.nabble.com/Uploading-A-File-tp22108849p22108849.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Uploading-A-File-tp22108849p22161089.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: 1.4 RC Stylesheet Reference Issue
Thanks. Is there any way to work around it? Something on my page that is triggering it to place a _en_US at the end of the stylesheet that I am referencing? igor.vaynberg wrote: see WICKET-1868, should be fixed in rc2 -igor On Fri, Feb 20, 2009 at 11:18 AM, walnutmon justin.m.boy...@gmail.com wrote: One of my pages, for a reason unknown by me, has a different stylesheet reference, which causes the page to have a screwed up display (no css)... I haven't been able to find any workaround to this issue, nor can I even really figure out what is causing it, but the closest I've been able to find is this year old JIRA issue... [jira] Commented: (WICKET-1307) autolinked resources have locale appended basically what should be style.css is in this particular page style_en_US.css, which does not exist on my server. Thanks! Justin -- View this message in context: http://www.nabble.com/1.4-RC-Stylesheet-Reference-Issue-tp22126040p22126040.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/1.4-RC-Stylesheet-Reference-Issue-tp22126040p22161156.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: LDM with Generics for DropDownChoice
Just to make sure I'm understanding this; yuo're saying I have to create a variable and then assign the variable instead of just being able to pass new AllUsersModel() to the DropDownChoice constructor? That just seems odd. Jeremy Thomerson-5 wrote: IIRC, DropDownChoice requires a declaration like such: IModelList? extends Foo So, this should work: IModelList? extends Foo choices = new AllUserModel(); I've been meaning to ask on the dev list why that is. Being forced to declare the ? extends User for a model like yours seems to add complexity, and force a local variable. I haven't looked at it that much, but I know that every time I've had to declare one, I always think that's weird. On Sun, Feb 22, 2009 at 10:55 PM, Matt Welch matt...@welchkin.net wrote: I'm sure I should know this but I can't seem to get it right. I have a LoadableDetachableModel as follows: private class AllUserModel extends LoadableDetachableModelListUser{ protected ListUser load() { return userService().findAllUsers(); } } I'm trying to use this as the Choices model in a DropDownChoice, but no luck. I'm sure I'm missing an E or a T or a? somewhere but I at a lost as to what the exact problem is. I've been a consumer of generics forever, but actually being on the creation side is a bit new to me. -- View this message in context: http://www.nabble.com/LDM-with-Generics-for-DropDownChoice-tp22155211p22155211.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeremy Thomerson http://www.wickettraining.com -- View this message in context: http://www.nabble.com/LDM-with-Generics-for-DropDownChoice-tp22155211p22161940.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket meetup in Switzerland?
Ahhh.. :) 2009/2/23 Francisco Diaz Trepat - gmail francisco.diaztre...@gmail.com maradona hint no working anymore? Is that a sign I'm beginning to get old? I'm in Buenos Aires, Argentina. f(t) On Sun, Feb 22, 2009 at 6:02 PM, Nino Martinez nino.martinez.w...@gmail.com wrote: Francisco Diaz Trepat - gmail wrote: First of all, could this be the coolest list ever? May be because Nino is on it. I would love to be in driving distance but Bs. As. is too far... Though starting to beg my boss for a quick trip (as we work for a Zürich based company)... We could have one here Wheres here? But Im really thinking that either apache con or WUG in UK could be the place for an annual WUG meetup..? I might be able to persuade my boss to let me go for something like it.. , and extend our invitation to all, specially Nino, Igor, Elco, Johan, and many more. Could make an Azado (as we are as widely known for our good meat as maradona, tango and other semi-cultural references about my country). Anyways nagging will continue, f(t) On Fri, Feb 20, 2009 at 1:23 PM, Johan Compagner jcompag...@gmail.com wrote: that was the whole idea, now you spoiled it! ;( On Fri, Feb 20, 2009 at 17:09, Jeremy Thomerson jer...@wickettraining.comwrote: I've seen plenty of programming language flame wars, but it looks like Johan is starting a REAL language flamewar. :) On Fri, Feb 20, 2009 at 9:41 AM, Johan Compagner jcompag...@gmail.com wrote: if you would do it in a time that i am in the swiss then i could also attend But that is now and then +/- 1 time in 2 months.. (this week i am in Bern) I dont have a problem if it was in real german, but it cant be in that swiss german (which has i my eyes nothing to do with german anyway) because that i really cant follow at all. its complete garbage.. ;) johan On Fri, Feb 20, 2009 at 12:17, Thomas Mäder thomas.mae...@devotek-it.ch wrote: Whoa! The silence is deafening! Since I've had one answer in a week, I guess there is just no interest. Oh well... Thomas On Mon, Feb 16, 2009 at 12:04 PM, Thomas Mäder thomas.mae...@devotek-it.chwrote: Hi Folks, I would be willing to organize a Wicket meetup in Switzerland if there is enough interest. I propose a meeting somewhere in Zürich. The format I imagine is that participants could (don't have to) shortly (15-20min.) present their work with Wicket (demos are always nice). That would be followed by general mingling with drinks snacks. For the date, I would shoot for the week starting March 16, 17:30-20:30h. Would you be interested in participating in/hosting/sponsoring such a thing? Either reply here or to me privately, and if there is enough interest, I'll set up a thing on the wiki. Thomas -- Thomas Mäder Wicket Eclipse Consulting www.devotek-it.ch -- Wicket Eclipse Consulting www.devotek-it.ch thomasmaeder.blogspot.com -- Jeremy Thomerson http://www.wickettraining.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: LDM with Generics for DropDownChoice
On Mon, Feb 23, 2009 at 2:55 PM, Matt Welch matt...@welchkin.net wrote: Just to make sure I'm understanding this; yuo're saying I have to create a variable and then assign the variable instead of just being able to pass new AllUsersModel() to the DropDownChoice constructor? Nope, just change your model supertype from ListFoo to List? extends Foo That just seems odd. Welcome to Java generics... Martijn -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: LDM with Generics for DropDownChoice
Martijn Dashorst wrote: Just to make sure I'm understanding this; yuo're saying I have to create a variable and then assign the variable instead of just being able to pass new AllUsersModel() to the DropDownChoice constructor? Nope, just change your model supertype from ListFoo to List? extends Foo That just seems odd. Welcome to Java generics... Thanks. It's working now. private class AllUsersModel extends LoadableDetachableModelList? extends User{ protected ListUser load() { return userService.findAllUsers(); } } -- View this message in context: http://www.nabble.com/LDM-with-Generics-for-DropDownChoice-tp22155211p22164005.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Flash Chart Display problem
I found the problem. I had to remove the mountBookmarkablePages() for the page and the chart worked fine! -- View this message in context: http://www.nabble.com/Flash-Chart-Display-problem-tp22121552p22164078.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
subdomains and setting up WebSession
Hi, I need to be able to map urls like: foo.myapp.com foo2.myapp.com woo.myapp.com etc.. and be able to have a parameter in my session (say a String) set to either foo, foo2, woo, etc These subdomains are database driven and therefore I don't want to add any subdomains hardcoded to web.xml or apache . I was thinking about doing a mod rewrite in apache and either appending an extra parameter or mapping to something like: /webappurl/foo /webappurl/foo2 /webappurl/woo and then (by majic!) be able to pick this up in the wicket session. Anyone got any idea's on how I could go about this? I did think about adding another servlet filter and setting some threadlocal variable, but this doesn't feel right. many thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: subdomains and setting up WebSession
I think you can see the request ulr root by calling ((WebRequest)RequestCycle.get().getRequest()).getRequestURL() Is that what you want? ** Martin 2009/2/23 Wayne Pope waynemailingli...@googlemail.com: Hi, I need to be able to map urls like: foo.myapp.com foo2.myapp.com woo.myapp.com etc.. and be able to have a parameter in my session (say a String) set to either foo, foo2, woo, etc These subdomains are database driven and therefore I don't want to add any subdomains hardcoded to web.xml or apache . I was thinking about doing a mod rewrite in apache and either appending an extra parameter or mapping to something like: /webappurl/foo /webappurl/foo2 /webappurl/woo and then (by majic!) be able to pick this up in the wicket session. Anyone got any idea's on how I could go about this? I did think about adding another servlet filter and setting some threadlocal variable, but this doesn't feel right. many thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: subdomains and setting up WebSession
Hi Martin, basically I need subdomains to map to a context within the application. For example if you have a application that has several customers, I want to have a separate subdomain for each customer: william.myapp.com jo.myapp.com sarah.myapp.com I'd like 'william' to always see his URLS like: http://william.myapp.com/?wicket:interface=:4 However in the application I need to figure out that I'm in the 'william' context, so i can serve williams content only. On Mon, Feb 23, 2009 at 5:00 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: I think you can see the request ulr root by calling ((WebRequest)RequestCycle.get().getRequest()).getRequestURL() Is that what you want? ** Martin 2009/2/23 Wayne Pope waynemailingli...@googlemail.com: Hi, I need to be able to map urls like: foo.myapp.com foo2.myapp.com woo.myapp.com etc.. and be able to have a parameter in my session (say a String) set to either foo, foo2, woo, etc These subdomains are database driven and therefore I don't want to add any subdomains hardcoded to web.xml or apache . I was thinking about doing a mod rewrite in apache and either appending an extra parameter or mapping to something like: /webappurl/foo /webappurl/foo2 /webappurl/woo and then (by majic!) be able to pick this up in the wicket session. Anyone got any idea's on how I could go about this? I did think about adding another servlet filter and setting some threadlocal variable, but this doesn't feel right. many thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: subdomains and setting up WebSession
Hi Wayne Thats exactly what I've done with my traningslog.dk and exerciselog.eu , both are pointing at the same app...I just used apache http to append a special cookie containing the domain.. There are several ways of doing this with apache http.. I did this since I am running several apps on the same tomcat so I need some logic in front of tomcat anyhow.. regards Nino Wayne Pope wrote: Hi Martin, basically I need subdomains to map to a context within the application. For example if you have a application that has several customers, I want to have a separate subdomain for each customer: william.myapp.com jo.myapp.com sarah.myapp.com I'd like 'william' to always see his URLS like: http://william.myapp.com/?wicket:interface=:4 However in the application I need to figure out that I'm in the 'william' context, so i can serve williams content only. On Mon, Feb 23, 2009 at 5:00 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: I think you can see the request ulr root by calling ((WebRequest)RequestCycle.get().getRequest()).getRequestURL() Is that what you want? ** Martin 2009/2/23 Wayne Pope waynemailingli...@googlemail.com: Hi, I need to be able to map urls like: foo.myapp.com foo2.myapp.com woo.myapp.com etc.. and be able to have a parameter in my session (say a String) set to either foo, foo2, woo, etc These subdomains are database driven and therefore I don't want to add any subdomains hardcoded to web.xml or apache . I was thinking about doing a mod rewrite in apache and either appending an extra parameter or mapping to something like: /webappurl/foo /webappurl/foo2 /webappurl/woo and then (by majic!) be able to pick this up in the wicket session. Anyone got any idea's on how I could go about this? I did think about adding another servlet filter and setting some threadlocal variable, but this doesn't feel right. many thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket meetup in Switzerland?
We have had a little bit of both languages. Most swedes are resonable proficent in english so we have used that when not all attendes know swedish. If you have some business planned in Stockholm you are more than welcome! // Daniel jalbum.net On 2009-02-22, at 22:03, Nino Martinez wrote: What language are it in? Swedish? Or English? regards Nino Daniel Frisk wrote: I can't complain, our meetings in Stockholm/Sweden have always been attended by usually 20-30 people or so. We have had some really great presentations and very intresting discussions. If you want to get notified of the upcoming meetings (one might be coming soon it's long overdue) sign up at our google group at http://wicket.jalbum.net // Daniel jalbum.net On 2009-02-22, at 12:45, Nino Martinez wrote: Yeah We have trouble here in Denmark too, all our events has only been max 5 people... So Cemal if you know of anyone who could be interested in a WUG DK please tell.. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: subdomains and setting up WebSession
Hi Nino, thanks for that. I wasn't aware that I can get apache to append a cookie. I've done things in the past using mod-rewrite like: Redirect subdomain.example.org/path to www.example.org/subdomain/path Which directive are you using? On Mon, Feb 23, 2009 at 5:17 PM, Nino Martinez nino.martinez.w...@gmail.com wrote: Hi Wayne Thats exactly what I've done with my traningslog.dk and exerciselog.eu , both are pointing at the same app...I just used apache http to append a special cookie containing the domain.. There are several ways of doing this with apache http.. I did this since I am running several apps on the same tomcat so I need some logic in front of tomcat anyhow.. regards Nino Wayne Pope wrote: Hi Martin, basically I need subdomains to map to a context within the application. For example if you have a application that has several customers, I want to have a separate subdomain for each customer: william.myapp.com jo.myapp.com sarah.myapp.com I'd like 'william' to always see his URLS like: http://william.myapp.com/?wicket:interface=:4 However in the application I need to figure out that I'm in the 'william' context, so i can serve williams content only. On Mon, Feb 23, 2009 at 5:00 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: I think you can see the request ulr root by calling ((WebRequest)RequestCycle.get().getRequest()).getRequestURL() Is that what you want? ** Martin 2009/2/23 Wayne Pope waynemailingli...@googlemail.com: Hi, I need to be able to map urls like: foo.myapp.com foo2.myapp.com woo.myapp.com etc.. and be able to have a parameter in my session (say a String) set to either foo, foo2, woo, etc These subdomains are database driven and therefore I don't want to add any subdomains hardcoded to web.xml or apache . I was thinking about doing a mod rewrite in apache and either appending an extra parameter or mapping to something like: /webappurl/foo /webappurl/foo2 /webappurl/woo and then (by majic!) be able to pick this up in the wicket session. Anyone got any idea's on how I could go about this? I did think about adding another servlet filter and setting some threadlocal variable, but this doesn't feel right. many thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: subdomains and setting up WebSession
((WebRequest)RequestCycle.get().getRequest()).getRequestURL() should work for you. ** Martin 2009/2/23 Wayne Pope waynemailingli...@googlemail.com: Hi Martin, basically I need subdomains to map to a context within the application. For example if you have a application that has several customers, I want to have a separate subdomain for each customer: william.myapp.com jo.myapp.com sarah.myapp.com I'd like 'william' to always see his URLS like: http://william.myapp.com/?wicket:interface=:4 However in the application I need to figure out that I'm in the 'william' context, so i can serve williams content only. On Mon, Feb 23, 2009 at 5:00 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: I think you can see the request ulr root by calling ((WebRequest)RequestCycle.get().getRequest()).getRequestURL() Is that what you want? ** Martin 2009/2/23 Wayne Pope waynemailingli...@googlemail.com: Hi, I need to be able to map urls like: foo.myapp.com foo2.myapp.com woo.myapp.com etc.. and be able to have a parameter in my session (say a String) set to either foo, foo2, woo, etc These subdomains are database driven and therefore I don't want to add any subdomains hardcoded to web.xml or apache . I was thinking about doing a mod rewrite in apache and either appending an extra parameter or mapping to something like: /webappurl/foo /webappurl/foo2 /webappurl/woo and then (by majic!) be able to pick this up in the wicket session. Anyone got any idea's on how I could go about this? I did think about adding another servlet filter and setting some threadlocal variable, but this doesn't feel right. many thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: subdomains and setting up WebSession
ok thanks Martin, I'll give it a go On Mon, Feb 23, 2009 at 5:27 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: ((WebRequest)RequestCycle.get().getRequest()).getRequestURL() should work for you. ** Martin 2009/2/23 Wayne Pope waynemailingli...@googlemail.com: Hi Martin, basically I need subdomains to map to a context within the application. For example if you have a application that has several customers, I want to have a separate subdomain for each customer: william.myapp.com jo.myapp.com sarah.myapp.com I'd like 'william' to always see his URLS like: http://william.myapp.com/?wicket:interface=:4 However in the application I need to figure out that I'm in the 'william' context, so i can serve williams content only. On Mon, Feb 23, 2009 at 5:00 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: I think you can see the request ulr root by calling ((WebRequest)RequestCycle.get().getRequest()).getRequestURL() Is that what you want? ** Martin 2009/2/23 Wayne Pope waynemailingli...@googlemail.com: Hi, I need to be able to map urls like: foo.myapp.com foo2.myapp.com woo.myapp.com etc.. and be able to have a parameter in my session (say a String) set to either foo, foo2, woo, etc These subdomains are database driven and therefore I don't want to add any subdomains hardcoded to web.xml or apache . I was thinking about doing a mod rewrite in apache and either appending an extra parameter or mapping to something like: /webappurl/foo /webappurl/foo2 /webappurl/woo and then (by majic!) be able to pick this up in the wicket session. Anyone got any idea's on how I could go about this? I did think about adding another servlet filter and setting some threadlocal variable, but this doesn't feel right. many thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Wicket Focus Policy
Hi, had somebody implement a focuspolicy in wicket such as swings focustraversalpolicy? the policy should be analyzed in browser by default(a sorted list of wicket-ids) because of performance. In some cases we need business-code to evaluate next component. in this case we pass the determination via ajax-callback (getNextWicketComponentID) to server-business code Had somebody implemented this? Are ther some tips, how to implement this policy myself? thanks a lot alex -- View this message in context: http://www.nabble.com/Wicket-Focus-Policy-tp22165578p22165578.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Focus Policy
Do yu mean really focus or html tabindex? ** Martin 2009/2/23 alexander.elsholz alexander.elsh...@widas.de: Hi, had somebody implement a focuspolicy in wicket such as swings focustraversalpolicy? the policy should be analyzed in browser by default(a sorted list of wicket-ids) because of performance. In some cases we need business-code to evaluate next component. in this case we pass the determination via ajax-callback (getNextWicketComponentID) to server-business code Had somebody implemented this? Are ther some tips, how to implement this policy myself? thanks a lot alex -- View this message in context: http://www.nabble.com/Wicket-Focus-Policy-tp22165578p22165578.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Using AjaxLink onClick method to retrieve and alter components
Hello, I have been trying for some time to figure this out but no luck. Some other posts suggest using a submit rather than an AjaxLink, but that will not work for me. Here is my scenario: I have two ListChoice objects on my page, one with several items in it and the other blank. I have an AjaxLink button that is visible only when the user selects one item from the populated ListChoice. When the user clicks an item and the AjaxLink becomes visible, I want them to be able to click on the AjaxLink and have the item removed from one ListChoice and inserted as an option in the second ListChoice. However, I am not having any luck in the onClick, method of the AjaxLink when I try to retrieve the selected item from the original ListChoice. In fact, I am not able to access any items on my page I do not want to submit my page or do a post, I simply want to have the AjaxLink's onClick do all the work. Is this possible? If so, how can I retrieve the selected option of a ListChoice called selectBox from within the onClick in my AjaxLink? Every time I attempt to retrieve and cast the ListChoice object I get a null value. -- View this message in context: http://www.nabble.com/Using-AjaxLink-onClick-method-to-retrieve-and-alter-components-tp22165850p22165850.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: subdomains and setting up WebSession
I did not do what I said.. :( Apparently I have to seperate virtual sites for it.. In the exerciselog one I set: RequestHeader set domain exerciselog.eu I had to turn of : ProxyPreserveHost Off, cant remember why, but there was a reason to it...Could be because I share cookies or something cant remember.. There is a mod cookie, but request header is better I think.. Wayne Pope wrote: Hi Nino, thanks for that. I wasn't aware that I can get apache to append a cookie. I've done things in the past using mod-rewrite like: Redirect subdomain.example.org/path to www.example.org/subdomain/path Which directive are you using? On Mon, Feb 23, 2009 at 5:17 PM, Nino Martinez nino.martinez.w...@gmail.com wrote: Hi Wayne Thats exactly what I've done with my traningslog.dk and exerciselog.eu , both are pointing at the same app...I just used apache http to append a special cookie containing the domain.. There are several ways of doing this with apache http.. I did this since I am running several apps on the same tomcat so I need some logic in front of tomcat anyhow.. regards Nino Wayne Pope wrote: Hi Martin, basically I need subdomains to map to a context within the application. For example if you have a application that has several customers, I want to have a separate subdomain for each customer: william.myapp.com jo.myapp.com sarah.myapp.com I'd like 'william' to always see his URLS like: http://william.myapp.com/?wicket:interface=:4 However in the application I need to figure out that I'm in the 'william' context, so i can serve williams content only. On Mon, Feb 23, 2009 at 5:00 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: I think you can see the request ulr root by calling ((WebRequest)RequestCycle.get().getRequest()).getRequestURL() Is that what you want? ** Martin 2009/2/23 Wayne Pope waynemailingli...@googlemail.com: Hi, I need to be able to map urls like: foo.myapp.com foo2.myapp.com woo.myapp.com etc.. and be able to have a parameter in my session (say a String) set to either foo, foo2, woo, etc These subdomains are database driven and therefore I don't want to add any subdomains hardcoded to web.xml or apache . I was thinking about doing a mod rewrite in apache and either appending an extra parameter or mapping to something like: /webappurl/foo /webappurl/foo2 /webappurl/woo and then (by majic!) be able to pick this up in the wicket session. Anyone got any idea's on how I could go about this? I did think about adding another servlet filter and setting some threadlocal variable, but this doesn't feel right. many thanks - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Dojo Tooltip JS Error
If you dont get it to work you can always try mootips or prototips from wicket extensions TH Lim wrote: Hi, I am using Dojo Tooltip to show multi lines tooltips when the user moves the mouse over my radio button label. On the initial load, there were 2 already Dojo errors report on the browser (IE7 IE8) page 1. FATAL exception raised: Could not load 'dojo.debug.console'; last tried '__package__.js' 2. FATAL exception raised: Could not load 'dojo.widget.Tooltip'; last tried '__package__.js' and the tooltip was not displayed when I move my mouse over the text. When I refresh (F5) the page, the error message were gone and the tooltip worked perfectly i.e. no FATAL exceptions and the tooltip was shown. Anybody know why the errors occurred on 1st load? Thanks /lim/ I have included both HTML and source here. import org.apache.wicket.markup.html.WebPage; import org.apache.wicket.markup.html.basic.Label; import org.apache.wicket.markup.html.form.Radio; import org.apache.wicket.markup.html.form.RadioGroup; import org.apache.wicket.model.Model; import org.wicketstuff.dojo.markup.html.tooltip.DojoTooltip; public class TooltipPage extends WebPage { public TooltipPage() { RadioGroup radioGroup = new RadioGroup(radioGroup); add(radioGroup); final Radio channel = new Radio(radio, new Model()); Label channelName = new Label(name, Click my radio button, please...); String tooltip = Hi I am a tool tip.br/And this is my downline.; DojoTooltip channelTip = new DojoTooltip(tip, channel); channelTip.add(new Label(label, tooltip).setEscapeModelStrings(false)); radioGroup.add(channel); radioGroup.add(channelName); radioGroup.add(channelTip); } } - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Focus Policy
hi, where is the difference? yes, the html attribute tabindex helps to define a focus-policy. so i can define a default policy and update the attribute with an ajax behavior. i think a problem is the amount of updated components, when tabindices changed because of business logic. her i could play with the index range 0-32767. i try to implement a panel-based strategy and present the result in this list. thanks alex Martin Makundi wrote: Do yu mean really focus or html tabindex? ** Martin 2009/2/23 alexander.elsholz alexander.elsh...@widas.de: Hi, had somebody implement a focuspolicy in wicket such as swings focustraversalpolicy? the policy should be analyzed in browser by default(a sorted list of wicket-ids) because of performance. In some cases we need business-code to evaluate next component. in this case we pass the determination via ajax-callback (getNextWicketComponentID) to server-business code Had somebody implemented this? Are ther some tips, how to implement this policy myself? thanks a lot alex -- View this message in context: http://www.nabble.com/Wicket-Focus-Policy-tp22165578p22165578.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Wicket-Focus-Policy-tp22165578p22166754.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket Focus Policy
Here are some more scientific thoughts about it: http://www.mail-archive.com/wicket-u...@lists.sourceforge.net/msg26372.html 2009/2/23 alexander.elsholz alexander.elsh...@widas.de: hi, where is the difference? yes, the html attribute tabindex helps to define a focus-policy. so i can define a default policy and update the attribute with an ajax behavior. i think a problem is the amount of updated components, when tabindices changed because of business logic. her i could play with the index range 0-32767. i try to implement a panel-based strategy and present the result in this list. thanks alex Martin Makundi wrote: Do yu mean really focus or html tabindex? ** Martin 2009/2/23 alexander.elsholz alexander.elsh...@widas.de: Hi, had somebody implement a focuspolicy in wicket such as swings focustraversalpolicy? the policy should be analyzed in browser by default(a sorted list of wicket-ids) because of performance. In some cases we need business-code to evaluate next component. in this case we pass the determination via ajax-callback (getNextWicketComponentID) to server-business code Had somebody implemented this? Are ther some tips, how to implement this policy myself? thanks a lot alex -- View this message in context: http://www.nabble.com/Wicket-Focus-Policy-tp22165578p22165578.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Wicket-Focus-Policy-tp22165578p22166754.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Wicket meetup in Switzerland?
Thanks for the invitation. Chances are slim (im not at jayway anymore) but you never know :) Regards Nino Daniel Frisk wrote: We have had a little bit of both languages. Most swedes are resonable proficent in english so we have used that when not all attendes know swedish. If you have some business planned in Stockholm you are more than welcome! // Daniel jalbum.net On 2009-02-22, at 22:03, Nino Martinez wrote: What language are it in? Swedish? Or English? regards Nino Daniel Frisk wrote: I can't complain, our meetings in Stockholm/Sweden have always been attended by usually 20-30 people or so. We have had some really great presentations and very intresting discussions. If you want to get notified of the upcoming meetings (one might be coming soon it's long overdue) sign up at our google group at http://wicket.jalbum.net // Daniel jalbum.net On 2009-02-22, at 12:45, Nino Martinez wrote: Yeah We have trouble here in Denmark too, all our events has only been max 5 people... So Cemal if you know of anyone who could be interested in a WUG DK please tell.. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: How exactly does RestartResponseAtInterceptPageException work?
I think from just playing with it :) On Wed, Feb 18, 2009 at 11:59 PM, David Leangen wic...@leangen.net wrote: Jeremy, Thank you for this. To my knowledge, the onClick will not be rerun. Thank you. I was not able to find any doc about this anywhere, and I'm not sure what the designer's intentions were. How were you able to find this out? I would do getPage() in that onClick and send them to the page (passing the getPage()) that does something, then send them back after doing some work. When they click on the link again, in theory, token shouldn't be null again... Thanks for the suggestion. That won't exactly work with the flow of my processes (the example code I gave was very much simplified), but at least you confirmed that the onClick() does not get rerun, so I can adjust accordingly. Thank you! =David - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeremy Levy See my location in real-time: http://seemywhere.com/jeremy
What IDE best fits with Wicket?
Hello guys, I don't want to generate a flame war but I want to know your opinion about what IDE best fits with Wicket? The basic requirements are: free and the set of plug-ins free too. Thanks, Eduardo S. Nunes - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: What IDE best fits with Wicket?
Eclipse or NetBeans. I like netbeans. Use what your most productive in.. On Mon, Feb 23, 2009 at 2:19 PM, Eduardo Nunes esnu...@gmail.com wrote: Hello guys, I don't want to generate a flame war but I want to know your opinion about what IDE best fits with Wicket? The basic requirements are: free and the set of plug-ins free too. Thanks, Eduardo S. Nunes - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeremy Levy See my location in real-time: http://seemywhere.com/jeremy
column width ajustable table
Are there any adjustable tables in the sense adjust width of the column, provided by wicket, an example is Sonatype Nexus Repository manager -- View this message in context: http://www.nabble.com/column-width-ajustable-table-tp22168813p22168813.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: What IDE best fits with Wicket?
Do you use some plug-in? I like netbeans too. On Mon, Feb 23, 2009 at 4:55 PM, Jeremy Levy jel...@gmail.com wrote: Eclipse or NetBeans. I like netbeans. Use what your most productive in.. On Mon, Feb 23, 2009 at 2:19 PM, Eduardo Nunes esnu...@gmail.com wrote: Hello guys, I don't want to generate a flame war but I want to know your opinion about what IDE best fits with Wicket? The basic requirements are: free and the set of plug-ins free too. Thanks, Eduardo S. Nunes - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeremy Levy See my location in real-time: http://seemywhere.com/jeremy - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: What IDE best fits with Wicket?
There is a Wicket plugin in the Netbeans plugins center, but I prefer to configure it as a library. If you use Maven based projects, adding the references to the pom should be enough I guess. Hth, Daniel Eduardo Nunes wrote: Do you use some plug-in? I like netbeans too. -- View this message in context: http://www.nabble.com/What-IDE-best-fits-with-Wicket--tp22168133p22169788.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: What IDE best fits with Wicket?
your choices are pretty limited based on criteria... however I'm an Eclipse fan. I use Eclipse with maven2... - Brill On 23-Feb-09, at 2:19 PM, Eduardo Nunes wrote: Hello guys, I don't want to generate a flame war but I want to know your opinion about what IDE best fits with Wicket? The basic requirements are: free and the set of plug-ins free too. Thanks, Eduardo S. Nunes - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: What IDE best fits with Wicket?
This is my choice, too, but the most concrete reason I have is I like it and it works well *for me*. Find one that fits those criteria for you, and you'll be happy :) On Mon, Feb 23, 2009 at 2:48 PM, Brill Pappin br...@pappin.ca wrote: your choices are pretty limited based on criteria... however I'm an Eclipse fan. I use Eclipse with maven2... - Brill On 23-Feb-09, at 2:19 PM, Eduardo Nunes wrote: Hello guys, I don't want to generate a flame war but I want to know your opinion about what IDE best fits with Wicket? The basic requirements are: free and the set of plug-ins free too. Thanks, Eduardo S. Nunes - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeremy Thomerson http://www.wickettraining.com
Re: What IDE best fits with Wicket?
Hi, I use Eclipse with Wicket Bench plugin and it works very fine. On Mon, Feb 23, 2009 at 9:57 PM, Jeremy Thomerson jer...@wickettraining.com wrote: This is my choice, too, but the most concrete reason I have is I like it and it works well *for me*. Find one that fits those criteria for you, and you'll be happy :) On Mon, Feb 23, 2009 at 2:48 PM, Brill Pappin br...@pappin.ca wrote: your choices are pretty limited based on criteria... however I'm an Eclipse fan. I use Eclipse with maven2... - Brill On 23-Feb-09, at 2:19 PM, Eduardo Nunes wrote: Hello guys, I don't want to generate a flame war but I want to know your opinion about what IDE best fits with Wicket? The basic requirements are: free and the set of plug-ins free too. Thanks, Eduardo S. Nunes - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Jeremy Thomerson http://www.wickettraining.com -- Loïc Descotte 9 rue Sébastien Gryphe 69007 Lyon 06 23 23 36 80
Re: Using AjaxLink onClick method to retrieve and alter components
If you're using the AjaxLink - it is doing a round trip to the server. The problem is, the round trip does not include the form values - because it was a link - not a form submission. So, you have two options: 1 - don't use an ajax link - just use a webmarkupcontainer as your a tag and add the onclick yourself, using javascript like you would on a plain html page 2 - use an ajaxsubmitlink and do the processing server side I'd use #2. Why didn't you want to submit the form? The user won't be able to tell the form was submitted - especially if you skip validation by setDefaultFormProcessing(false) on your ajaxsubmitlink -- Jeremy Thomerson http://www.wickettraining.com On Mon, Feb 23, 2009 at 11:17 AM, mallet ryanlahue...@gmail.com wrote: Hello, I have been trying for some time to figure this out but no luck. Some other posts suggest using a submit rather than an AjaxLink, but that will not work for me. Here is my scenario: I have two ListChoice objects on my page, one with several items in it and the other blank. I have an AjaxLink button that is visible only when the user selects one item from the populated ListChoice. When the user clicks an item and the AjaxLink becomes visible, I want them to be able to click on the AjaxLink and have the item removed from one ListChoice and inserted as an option in the second ListChoice. However, I am not having any luck in the onClick, method of the AjaxLink when I try to retrieve the selected item from the original ListChoice. In fact, I am not able to access any items on my page I do not want to submit my page or do a post, I simply want to have the AjaxLink's onClick do all the work. Is this possible? If so, how can I retrieve the selected option of a ListChoice called selectBox from within the onClick in my AjaxLink? Every time I attempt to retrieve and cast the ListChoice object I get a null value. -- View this message in context: http://www.nabble.com/Using-AjaxLink-onClick-method-to-retrieve-and-alter-components-tp22165850p22165850.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: how to give static pages consistant look with wicket - partial repeat
Hi, The following code worked very nicely with the text in the HTML file, but it's not working with the embedded images in the HTML file. I have verified that wicket can find the images (so it's not the path issue for the images). It's as if wicket can find the images but not able to render them. :( Any ideas? Thanks. igor.vaynberg wrote: all you have to do is this: mount(new indexedparamcodingstrategy(/static, StaticPage.class)); class staticpage extends MyBasePageWithDecoratingMarkup { private final String resource; public staticpage(PageParameters params) { resource=params.get(0); add(new Label(content, new PropertyModel(this, content)).setEscapeModelStrings(false)); } public String getContent() { // load the resource content however you want InputStream is=new FileInputStream(basePath+/+resource); try { return Streams.readIntoString(is); } finally { is.close(); } } } static.page.html: [wicket:extend][wicket:container wicket:id=content]content will be here[/wicket:container][/wicket:extend] then if you go to /static/myfile.html the contents of myfile.html will be shown within your decorated page -igor On Wed, Feb 11, 2009 at 8:45 AM, Vika victoria.elin...@nasa.gov wrote: I am looking at wicket trying to decide if i would want to use it for my project. Currently I am struggling trying to give static and dynamic pages consistent look with wicket without using sitemesh. I was able to get wicket application to direct all static page requests to my wicket StaticPage that would read the content of a file and add it to the page as MultiLineLabel. However my problem is that i don't want to add whole html file. I need to extract the content of title, body and meta tags and add these separately. Is there anything in api or any examples i should look at ? Please see the code below. in Aplication.java init() mount(new URIRequestTargetUrlCodingStrategy(/docs) { @Override public IRequestTarget decode(RequestParameters requestParameters) { String path = /app/ + getURI(requestParameters); return new PageRequestTarget(new StaticPage(new WebExternalResourceRequestTarget(path))); } }); in StaicPage.java public class StaticPage extends BasePage implements AuthenticatedWebPage { public StaticPage(WebExternalResourceRequestTarget staticResource) { String staticResourceContent = ; try { staticResourceContent = convertStreamToString(staticResource.getResourceStream().getInputStream()); } catch (ResourceStreamNotFoundException e) { // TODO Auto-generated catch block e.printStackTrace(); } add(new MultiLineLabel(staticContent, staticResourceContent)); } } --- Here is what i get in the browser when click on static link: !DOCTYPE html PUBLIC -//W3C//DTD HTML 4.01 Transitional//EN http://www.w3.org/TR/html4/loose.dtd; html head meta http-equiv=Content-Type content=text/html; charset=UTF-8 titleInsert title here/title /head body this is a test /body /html This is in the footer -- Another variation of StaticPage.java i tried was public class StaticPage extends BasePage implements AuthenticatedWebPage { public StaticPage(WebExternalResourceRequestTarget staticResource) { MarkupResourceStream markupStream = new MarkupResourceStream(staticResource.getResourceStream()); MarkupParser parser = new MarkupParser(markupStream); Markup markup = parser.parse(); However I got stuck at this point since i still don't see a way of getting individual html tags from Markup thank you in advance, Vicky -- View this message in context: http://www.nabble.com/how-to-give-static-pages-consistant-look-with-wicket---partial-repeat-tp21958254p21958254.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context:
Re: What IDE best fits with Wicket?
+1, I like Wicket Bench. And with M2Eclipse, you have the full sources JavaDoc just by adding Wicket as a dependency, which is very convenient. But don't expect Wicket Bench to do too much, it's just a small, useful tool. Pierre Hi, I use Eclipse with Wicket Bench plugin and it works very fine. -- Sans amis était le grand maître des mondes, Eprouvait manque, ce pour quoi il créa les esprits, Miroirs bienveillants de sa béatitude. Mais au vrai, il ne trouva aucun égal, Du calice du royaume total des âmes Ecume jusqu'à lui l'infinité. (Schiller, l'amitié)
Re: What IDE best fits with Wicket?
But in the eclipse version 3.4 when renaming java file, WicketBench stopped renaming for me html and css files with the same name as the java file, which is a bit pity. Vitek Pierre Goupil wrote: +1, I like Wicket Bench. And with M2Eclipse, you have the full sources JavaDoc just by adding Wicket as a dependency, which is very convenient. But don't expect Wicket Bench to do too much, it's just a small, useful tool. Pierre Hi, I use Eclipse with Wicket Bench plugin and it works very fine. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Using AjaxLink onClick method to retrieve and alter components
Thanks, Jeremy... very helpful. I didn't quite understand how the AjaxSubmitLink worked, but on your suggestion I refactored my code and found it to be exactly what I was looking for. Jeremy Thomerson-5 wrote: If you're using the AjaxLink - it is doing a round trip to the server. The problem is, the round trip does not include the form values - because it was a link - not a form submission. So, you have two options: 1 - don't use an ajax link - just use a webmarkupcontainer as your a tag and add the onclick yourself, using javascript like you would on a plain html page 2 - use an ajaxsubmitlink and do the processing server side I'd use #2. Why didn't you want to submit the form? The user won't be able to tell the form was submitted - especially if you skip validation by setDefaultFormProcessing(false) on your ajaxsubmitlink -- Jeremy Thomerson http://www.wickettraining.com On Mon, Feb 23, 2009 at 11:17 AM, mallet ryanlahue...@gmail.com wrote: Hello, I have been trying for some time to figure this out but no luck. Some other posts suggest using a submit rather than an AjaxLink, but that will not work for me. Here is my scenario: I have two ListChoice objects on my page, one with several items in it and the other blank. I have an AjaxLink button that is visible only when the user selects one item from the populated ListChoice. When the user clicks an item and the AjaxLink becomes visible, I want them to be able to click on the AjaxLink and have the item removed from one ListChoice and inserted as an option in the second ListChoice. However, I am not having any luck in the onClick, method of the AjaxLink when I try to retrieve the selected item from the original ListChoice. In fact, I am not able to access any items on my page I do not want to submit my page or do a post, I simply want to have the AjaxLink's onClick do all the work. Is this possible? If so, how can I retrieve the selected option of a ListChoice called selectBox from within the onClick in my AjaxLink? Every time I attempt to retrieve and cast the ListChoice object I get a null value. -- View this message in context: http://www.nabble.com/Using-AjaxLink-onClick-method-to-retrieve-and-alter-components-tp22165850p22165850.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- View this message in context: http://www.nabble.com/Using-AjaxLink-onClick-method-to-retrieve-and-alter-components-tp22165850p22171907.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Upgrading to 1.4-rc2 - bug with form tester?
Hi, I have the following - which was working on 1.4-rc1 FormTester formTester = wicketTester.newFormTester(panel:form); formTester.getForm().error(test error); formTester.submit(); With 1.4-rc1 this code would not execute the forms onSubmit() method, because an error had been raised against the form. With 1.4-rc2, the onSubmit is being executed, which is giving me errors in my tests - unexpected calls to mock objects. I've scanned through the changelog and nothing jumps out at me as obviously effecting this. Any ideas? -- View this message in context: http://www.nabble.com/Upgrading-to-1.4-rc2---bug-with-form-tester--tp22172382p22172382.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Upgrading to 1.4-rc2 - bug with form tester?
Perhaps this is the problem? https://issues.apache.org/jira/browse/WICKET-2019 I'll change my test to have an invalid field. Ned Collyer wrote: Hi, I have the following - which was working on 1.4-rc1 FormTester formTester = wicketTester.newFormTester(panel:form); formTester.getForm().error(test error); formTester.submit(); With 1.4-rc1 this code would not execute the forms onSubmit() method, because an error had been raised against the form. With 1.4-rc2, the onSubmit is being executed, which is giving me errors in my tests - unexpected calls to mock objects. I've scanned through the changelog and nothing jumps out at me as obviously effecting this. Any ideas? -- View this message in context: http://www.nabble.com/Upgrading-to-1.4-rc2---bug-with-form-tester--tp22172382p22174427.html Sent from the Wicket - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Storing user entity in session?
Hi Martijn, could you paste some short example code to point out how to load and access a UserModel in the requestcycle? Regards, Alex Am 23.02.2009 um 08:42 schrieb Martijn Dashorst: Storing the user in a field of Session is wrong. Didn't you read the concurrency caveats I posted earlier? When users click fast enough, you'll get Hibernate exceptions pretty soon. Entity instances can't be shared between multiple threads. Putting them in the Session exposes them to that threat. Putting transient before the field doesn't mitigate that, neither does synchronized. Martijn On Fri, Feb 20, 2009 at 11:25 PM, Tauren Mills tau...@groovee.com wrote: Nino and Martijn, Thanks for the help. Last night I was looking through the elephas code and found a solution that I think will work for me. It doesn't store an LDM in the session, but stores an identifier and a *transient* instance of User. This seems like an effective solution to me. I tried it out and haven't had problems yet. Here's the elephas session so you can see for yourself: http://code.google.com/p/elephas/source/browse/trunk/src/main/java/org/elephas/webapp/application/ElephasSession.java?r=87 Then on my page, I just do something like this: setDefaultModel(new DetachableUserModel(getSession().getUser(),userDao)); Please let me know your thoughts on this. Thanks, Tauren On Fri, Feb 20, 2009 at 2:05 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi Tauren I've done something similar.. Have no trouble with.. Disclaimer, below code are really ugly and I need to clean it up... - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org -- Become a Wicket expert, learn from the best: http://wicketinaction.com Apache Wicket 1.3.5 is released Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org __ A designer knows he has achieved perfection not when there is nothing left to add, but when there is nothing left to take away. (Antoine de Saint Exupéry) . Alexander Lohse • Entwicklungsleitung Projektmanagement Tel +49 38374 752 11 • Fax +49 38374 752 23 http://www.humantouch.de Human Touch Medienproduktion GmbH Am See 1 • 17440 Klein Jasedow • Deutschland Geschäftsführung: Lara Mallien, Nele Hybsier, Alexander Lohse, Johannes Heimrath (Senior) Handelsregister Stralsund • HRB 4192 • USt-IdNr. DE128367684 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org