Re: Testing wicket pages in isolation (wickettester)
Hi Vincent, You can use a page navigator interface. See the example Checking if a Wicket page is passing the correct data to the next page on http://wicketpagetest.sourceforge.net/examples.html -- Kent Tong, Msc, PMP, CISSP, ITIL Foundation Senior manager of IT dept, CPTTM Authorized training for Adobe, Aruba, Cisco, Microsoft, SUN - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Testing wicket pages in isolation (wickettester)
Hi Kent, Oh yeah, that's also a possibility. However, the constructor code would still be executed here. So I'd still needs to records some mocks for that. Thanks for your reply! Groet, Vincent On May 13, 2010, at 8:03, Kent Tong k...@cpttm.org.mo wrote: Hi Vincent, You can use a page navigator interface. See the example Checking if a Wicket page is passing the correct data to the next page on http://wicketpagetest.sourceforge.net/examples.html -- Kent Tong, Msc, PMP, CISSP, ITIL Foundation Senior manager of IT dept, CPTTM Authorized training for Adobe, Aruba, Cisco, Microsoft, SUN - 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
setter on model object not called
I am seeing some unexpected behavior. I have a page with a text field and a link on it. The text field is backed with a property model The text field has an AjaxFormComponentUpdatingBehavior on it. The link then persists the object that the property model is wrapping. I never see the setter get called for the object. The setter massages the data. I see the raw data, as entered in the browser, get stored to my db. I also never hit my breakpoint int he setter. D/ - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: setter on model object not called
Send a QuickStart (simplest one you can create that demonstrates this) and we'll take a look. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 13 May 2010 08:17, Douglas Ferguson doug...@douglasferguson.us wrote: I am seeing some unexpected behavior. I have a page with a text field and a link on it. The text field is backed with a property model The text field has an AjaxFormComponentUpdatingBehavior on it. The link then persists the object that the property model is wrapping. I never see the setter get called for the object. The setter massages the data. I see the raw data, as entered in the browser, get stored to my db. I also never hit my breakpoint int he setter. D/ - 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
Which url coding strategy to make more restful in page with navigator?
hi,everybody! I checked a variety url coding strategies, but did not find one that is very appropriate when using datatable and navigator in page. HybridUrlCodingStrategy might also be, but it can not display the page parameter in url, can not be true bookmarkable. And the version number int its url will make the user confused. I look forward to using MixedParamUrlCodingStrategy, which may need to find out navigation links parameter name in the navigator,such as:first,next,etc! Not sure we have a better solution, please guide me~ -- cleverpig(Dan) Location: Beijing Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China Zipcode: 100031 MSN: great_liu...@hotmail.com QQ: 149291732 Skype: cleverpigatmatrix Facebook ID:cleverpig Blog: cleverpig.name/dan/ Tags: del.icio.us/cleverpig Twitter: twitter.com/cleverpig 新浪微博: t.sina.com.cn/cleverpig Organization: www.beijing-open-party.org or...@facebook: http://www.facebook.com/group.php?gid=8159558294 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: setter on model object not called
I figured it out. If the object doesn't have a getter, the setter won't be called, and instead it just injects the value into the field. That seems like a bug, do I need to prepare a quickstart? D/ On May 13, 2010, at 2:51 AM, Cemal Bayramoglu wrote: Send a QuickStart (simplest one you can create that demonstrates this) and we'll take a look. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 13 May 2010 08:17, Douglas Ferguson doug...@douglasferguson.us wrote: I am seeing some unexpected behavior. I have a page with a text field and a link on it. The text field is backed with a property model The text field has an AjaxFormComponentUpdatingBehavior on it. The link then persists the object that the property model is wrapping. I never see the setter get called for the object. The setter massages the data. I see the raw data, as entered in the browser, get stored to my db. I also never hit my breakpoint int he setter. D/ - 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: Survey -- Tool Success Theory Empirical Study - Apache Wicket
It is valid :) It's my master thesis research. Mail me if you need more details about it ;) Regards, Karolina Rusin -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Survey-Tool-Success-Theory-Empirical-Study-Apache-Wicket-tp2124127p2197259.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: setter on model object not called
It sounds like you are using a PropertyModel. If so, that is the expected behaviour, provided by the property resolver it employs. If there is no accessor (getter), the field, even if private is accessed (fields[i].setAccessible(true);). This is by design, not a bug, but whether it's a good idea or not is can be argued. The pragmatic argument for this design decision could probably be along the lines of - the model object may not have accessors and you may not have control of the code for it (so how do you know the private variable exists? And encapsulation?).You could end up with an app that runs in development and fails in production if Java security management is configured differently. So, use with care - in Java getters and setters are an unfortunate fact of life, so prefer having accessors and mutators if you have the choice. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 13 May 2010 08:57, Douglas Ferguson doug...@douglasferguson.us wrote: I figured it out. If the object doesn't have a getter, the setter won't be called, and instead it just injects the value into the field. That seems like a bug, do I need to prepare a quickstart? D/ On May 13, 2010, at 2:51 AM, Cemal Bayramoglu wrote: Send a QuickStart (simplest one you can create that demonstrates this) and we'll take a look. Regards - Cemal jWeekend OO Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com On 13 May 2010 08:17, Douglas Ferguson doug...@douglasferguson.us wrote: I am seeing some unexpected behavior. I have a page with a text field and a link on it. The text field is backed with a property model The text field has an AjaxFormComponentUpdatingBehavior on it. The link then persists the object that the property model is wrapping. I never see the setter get called for the object. The setter massages the data. I see the raw data, as entered in the browser, get stored to my db. I also never hit my breakpoint int he setter. D/ - 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: Image Upload Using TinyMCE Within Wicket Framework
Hi. Its commited to trunk and in pom we have 1.4.7-SNAPSHOT so it should be available ... W dniu 2010-05-12 15:23, Muro Copenhagen pisze: Hi again... I guess a new release of wicket-stuff tinymce has to be made in order to use it... The current release 1.4-rc7 misses the changes you have commited... Who can make a new release of wicket-stuff tinymce so we can use the commited code ? Best Regards Muro 2010/5/12 Michał Letyńskimletyn...@consol.pl Hi. Its one of tiny examples: https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/tinymce-parent/tinymce-examples W dniu 2010-05-12 12:40, Muro Copenhagen pisze: Hi Michael, That is a great example. But you mentioned that you have commited the sample to wicket-stuff. I can't find it anywhere so can you please send a link or something... Best regards Muro On Tue, May 4, 2010 at 2:49 PM, Robert Kimothokimot...@gmail.com wrote: You are right I have a wicket path in src and it looks like this 'resources/wicket.contrib.tinymce.InPlaceEditBehavior/tiny_mce/plugins/emotions/img/smiley-cool.gif' this is what you get submitted to the server, but the image does not get displayed. Can you guide me to using the IResourceListener or getting the emoticon displayed at the client side. Regards, Kimotho. 2010/5/4 Michał Letyńskimletyn...@consol.pl Hi. If you have images in tiny with external src it should work but if you have in src a wicket path you must change it (to component which will get the image look at IResourceListener) before displainng image in label, multilinelabel, etc. W dniu 2010-05-03 09:10, Robert Kimotho pisze: When I submit a form with an emoticon from the fullfeatured tinymce, the image doesn't get displayed in the destination only the text. any suggestions, I've been stuck here for a while now. 2010/5/1 新希望软件 -- 俞宏伟nhsoft@gmail.com image upload example run failuer, the application throwsNoClassDefFoundError . WicketMessage: Can't instantiate page using constructor public wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage() Root cause: java.lang.NoClassDefFoundError: wicket/contrib/tinymce/image/ImageUploadPanel at wicket.contrib.examples.tinymce.ImageUploadTinyMCEPage.init(ImageUploadTinyMCEPage.java:42) at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.wicket.session.DefaultPageFactory.createPage(DefaultPageFactory.java:192) at org.apache.wicket.session.DefaultPageFactory.newPage(DefaultPageFactory.java:57) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.newPage(BookmarkablePageRequestTarget.java:298) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.getPage(BookmarkablePageRequestTarget.java:320) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.processEvents(BookmarkablePageRequestTarget.java:234) at org.apache.wicket.request.AbstractRequestCycleProcessor.processEvents(AbstractRequestCycleProcessor.java:92) at org.apache.wicket.RequestCycle.processEventsAndRespond(RequestCycle.java:1250) at org.apache.wicket.RequestCycle.step(RequestCycle.java:1329) at org.apache.wicket.RequestCycle.steps(RequestCycle.java:1428) at org.apache.wicket.RequestCycle.request(RequestCycle.java:545) at org.apache.wicket.protocol.http.WicketFilter.doGet(WicketFilter.java:479) at org.apache.wicket.protocol.http.WicketFilter.doFilter(WicketFilter.java:312) at org.mortbay.jetty.servlet.ServletHandler$CachedChain.doFilter(ServletHandler.java:1157) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:388) at org.mortbay.jetty.security.SecurityHandler.handle(SecurityHandler.java:216) at org.mortbay.jetty.servlet.SessionHandler.handle(SessionHandler.java:182) at org.mortbay.jetty.handler.ContextHandler.handle(ContextHandler.java:765) at
Wicket-Stuff ObjectAutoCompleteField component inside a ListView
Hi All, Has anyone tried using the Wicket-Stuff ObjectAutoCompleteField component inside a ListView? The search text field form input control is not created in the HTML output. If I make a single ObjectAutoCompleteField outside of a ListView then the input control is created. Thanks, Steve Here are some snippets of code: Java Code: ListViewString pois = new ListViewString(positionsOfInterest, myProfileFormModel.getObject().getPositionsOfInterest()) { private static final long serialVersionUID = 1L; @Override protected void populateItem(ListItemString item) { ObjectAutoCompleteBuilderBrandCategoryTitle, String builder = new ObjectAutoCompleteBuilderBrandCategoryTitle, String(provider); builder.autoCompleteRenderer(renderer); ObjectAutoCompleteFieldBrandCategoryTitle, String poi = builder.build(positionOfInterest, item.getModel()); poi.getSearchTextField().setRequired(true); item.add(poi); } }; add(pois); HTML code: div wicket:id=positionsOfInterest input type=text wicket:id=positionOfInterest / /div - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Bigger sites running on wicket?
Dear All, I'm quite fond of wicket so far, but to convince my boss further using it: I would need some samples of bigger sites or portals running on wicket. If you know such - something like 100s of concurrent users, or big number of users- please send me links and information. If possible some technical details would be nice too. Thanks, Zoltan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
ListView highlight selected row
Hi, i'm a wicket newbee...i've got a ListView with a AjaxLink so the selected 'customer' details will be shown in a detailed panel. But now i would like to highlite the selected 'customer' row in de ListView so the user can see which row he/she selected. How can i do this? Thanks, Jeroen -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ListView-highlight-selected-row-tp2197486p2197486.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: Bigger sites running on wicket?
Some things I've seen on this forum...Wal-Mart's mobile site, lasvegas.com Notice: This communication, including any attachments, is intended solely for the use of the individual or entity to which it is addressed. This communication may contain information that is protected from disclosure under State and/or Federal law. Please notify the sender immediately if you have received this communication in error and delete this email from your system. If you are not the intended recipient, you are requested not to disclose, copy, distribute or take any action in reliance on the contents of this information.
Re: Bigger sites running on wicket?
Take a look at Websites based on Wickethttps://cwiki.apache.org/WICKET/websites-based-on-wicket.html( https://cwiki.apache.org/WICKET/websites-based-on-wicket.html). The project I'm working on, http://ewmix.com/, has about 100 concurrent users, but this would involves much more than just a framework. Wicket does a great job in HTML simplicity and let us create much more flexible pages, also supporting Ajax if you need. Wicket has many ready-to-use components and a consistent hierarchy tree. If the component you need is not available, it is easy to implement it. For performance, the key is to use adequate models to leverage the server cache memory. Also, you have to create a good persistence layer. Much of the latency your site could have can be reviewed by good SQL queries, correct indexes and so on. Take a look at wicket, check out our results at http://ewmix.com/. Bookmarkable links, no servlet implementation, no XML configuration and other goodies let us give wicket a try. Wicket brought some fun to web development and we are sure, after the project is launched, that it is the best choice. If you need more help, please ask us. We'll be glad to help. Rangel Preis. 2010/5/13 Zoltan Luspai zlus...@gmail.com Dear All, I'm quite fond of wicket so far, but to convince my boss further using it: I would need some samples of bigger sites or portals running on wicket. If you know such - something like 100s of concurrent users, or big number of users- please send me links and information. If possible some technical details would be nice too. Thanks, Zoltan - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Which url coding strategy to make more restful in page with navigator?
if you use a bookmarkable paging navigator then even the default mounting strategy will work. you can probably find one by searching the list. -igor On Thu, May 13, 2010 at 12:56 AM, cleverpig greatclever...@gmail.com wrote: hi,everybody! I checked a variety url coding strategies, but did not find one that is very appropriate when using datatable and navigator in page. HybridUrlCodingStrategy might also be, but it can not display the page parameter in url, can not be true bookmarkable. And the version number int its url will make the user confused. I look forward to using MixedParamUrlCodingStrategy, which may need to find out navigation links parameter name in the navigator,such as:first,next,etc! Not sure we have a better solution, please guide me~ -- cleverpig(Dan) Location: Beijing Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China Zipcode: 100031 MSN: great_liu...@hotmail.com QQ: 149291732 Skype: cleverpigatmatrix Facebook ID:cleverpig Blog: cleverpig.name/dan/ Tags: del.icio.us/cleverpig Twitter: twitter.com/cleverpig 新浪微博: t.sina.com.cn/cleverpig Organization: www.beijing-open-party.org or...@facebook: http://www.facebook.com/group.php?gid=8159558294 - 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: ListView highlight selected row
add(new listview() { item newitem(...) { return new item(..) { oncomponenttag(tag) { super.oncomponenttag(tag); if (getmodelobject().equals(selectedobject) { tag.put(class, selected); -igor On Thu, May 13, 2010 at 5:47 AM, JeroenWolff jeroen.wo...@gmail.com wrote: Hi, i'm a wicket newbee...i've got a ListView with a AjaxLink so the selected 'customer' details will be shown in a detailed panel. But now i would like to highlite the selected 'customer' row in de ListView so the user can see which row he/she selected. How can i do this? Thanks, Jeroen -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/ListView-highlight-selected-row-tp2197486p2197486.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
Required component depending on other's component value
Hi, I have a Form with some components that are required depending on some other component's value. Let's put for example a RadioGroup with values City and Country. There are two DropDownChoices with Cities and Countries, and only the selected one in the RadioGroup is required. It's important taking into account the radiogroup is also required. Tipically, I've approached this matter by overriding isRequired() on the DDC's, and querying the RadioGroup input by means of radiogroup.validate()+radiogroup.getConvertedInput(), in order to return true or false in the override depending of the input value. I don't think that's a good way to do that sort of validation, mainly because if the radiogroup is not being given any value by the user, the subsequent calls to radiogroup.validate() on account of the isRequired() overridings throw up several error messages on that component. Is using a FormValidator the best way to perform this kind of validations ? In general, could it be asserted that when a validation involves two or more different components it should be put in a FormValidator ? I'd appreciate any opinion or commentary about this subject. Thanks, Xavier
Google Guice and Wicket
Hi, guys. I'm trying to use wicket-guice extension in my wicket application. My application instantiates some services in my session implementation and passes some parameters to it when user is authenticated. I'm trying to inject these services using Guice. But they're not injected in my session implementation, because guice extension makes injection only to wicket components. In this case, I'm trying to do this explicitly via my base page: Injector injector = getApplication().getMetaData( GuiceInjectorHolder.INJECTOR_KEY ).getInjector(); injector.injectMembers( getSession() ); This time, I catch this: com.google.inject.OutOfScopeException: Cannot access scoped object. Either we are not currently inside an HTTP Servlet request, or you may have forgotten to apply com.google.inject.servlet.GuiceFilter as a servlet filter for this request. If I set injected services that are injected to base page directly to session like that: MySession session = (MySession) getSession(); session.setMyService( myService ); When I catch the same OutOfScopeException when I'm trying to invoke any method of this service from my session implementation. Could you give me any advise? How could I use injected services in session implementation? Best regards, Alexander.
Re: Google Guice and Wicket
the answer is in the error message ...apply com.google.inject.servlet.GuiceFilter as a servlet filter... you need that filter so guice can define web-related scopes -igor On Thu, May 13, 2010 at 8:00 AM, Alexander Monakhov domin...@gmail.com wrote: Hi, guys. I'm trying to use wicket-guice extension in my wicket application. My application instantiates some services in my session implementation and passes some parameters to it when user is authenticated. I'm trying to inject these services using Guice. But they're not injected in my session implementation, because guice extension makes injection only to wicket components. In this case, I'm trying to do this explicitly via my base page: Injector injector = getApplication().getMetaData( GuiceInjectorHolder.INJECTOR_KEY ).getInjector(); injector.injectMembers( getSession() ); This time, I catch this: com.google.inject.OutOfScopeException: Cannot access scoped object. Either we are not currently inside an HTTP Servlet request, or you may have forgotten to apply com.google.inject.servlet.GuiceFilter as a servlet filter for this request. If I set injected services that are injected to base page directly to session like that: MySession session = (MySession) getSession(); session.setMyService( myService ); When I catch the same OutOfScopeException when I'm trying to invoke any method of this service from my session implementation. Could you give me any advise? How could I use injected services in session implementation? Best regards, Alexander. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Required component depending on other's component value
yes, thats what IFormValidators are for... -igor On Thu, May 13, 2010 at 7:56 AM, Xavier López xavil...@gmail.com wrote: Hi, I have a Form with some components that are required depending on some other component's value. Let's put for example a RadioGroup with values City and Country. There are two DropDownChoices with Cities and Countries, and only the selected one in the RadioGroup is required. It's important taking into account the radiogroup is also required. Tipically, I've approached this matter by overriding isRequired() on the DDC's, and querying the RadioGroup input by means of radiogroup.validate()+radiogroup.getConvertedInput(), in order to return true or false in the override depending of the input value. I don't think that's a good way to do that sort of validation, mainly because if the radiogroup is not being given any value by the user, the subsequent calls to radiogroup.validate() on account of the isRequired() overridings throw up several error messages on that component. Is using a FormValidator the best way to perform this kind of validations ? In general, could it be asserted that when a validation involves two or more different components it should be put in a FormValidator ? I'd appreciate any opinion or commentary about this subject. Thanks, Xavier - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Google Guice and Wicket
Great! Thanks! Best regards, Alexander.
Shared Components
Hi, Please any concept of shared components in Wicket. If I have a component that the content (model) will always be the same across all sessions and users, is there a wicket api approach for ensuring we only have one of such components throughout the application scope -- Aladejebi Ayodeji A.,
Re: Shared Components
Despite frameworks as jsf, wicket manages lightweight components. It would be adding more complexity to something that is pretty simple. Furthermore, I don't think you will performance better. The important fact in any case is that the browser caches it. On Thu, May 13, 2010 at 12:38 PM, Ayodeji Aladejebi aladej...@gmail.comwrote: Hi, Please any concept of shared components in Wicket. If I have a component that the content (model) will always be the same across all sessions and users, is there a wicket api approach for ensuring we only have one of such components throughout the application scope -- Aladejebi Ayodeji A., -- Fernando Wermus. www.linkedin.com/in/fernandowermus
Re: Shared Components
the complexity cost mentioned is too high - namely since a single component instance exists on application level all code you write for that component would have to be threadsafe. -igor On Thu, May 13, 2010 at 8:49 AM, Fernando Wermus fernando.wer...@gmail.com wrote: Despite frameworks as jsf, wicket manages lightweight components. It would be adding more complexity to something that is pretty simple. Furthermore, I don't think you will performance better. The important fact in any case is that the browser caches it. On Thu, May 13, 2010 at 12:38 PM, Ayodeji Aladejebi aladej...@gmail.comwrote: Hi, Please any concept of shared components in Wicket. If I have a component that the content (model) will always be the same across all sessions and users, is there a wicket api approach for ensuring we only have one of such components throughout the application scope -- Aladejebi Ayodeji A., -- Fernando Wermus. www.linkedin.com/in/fernandowermus - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: warp persist, guice wicket: use warp persist during wicket application startup to load db objects
Maybe mark your servlet listener as transactional? 2010/5/11 Christoph Grün chris...@gmx.at: Hi all, I am using Wicket together with Guice and Warp Persist/Servlet. I have registered the PersistenceService in the contextInitialized method. However, I would like to do some data loading from the database when wicket starts, and like to access Hibernate Daos. I am getting the error: org.hibernate.HibernateException: No session currently bound to execution context at org.hibernate.context.ManagedSessionContext.currentSession(ManagedSessionCon text.java:50) at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.j ava:591) at com.wideplay.warp.hibernate.SessionProvider.get(SessionProvider.java:42) at com.wideplay.warp.hibernate.SessionProvider.get(SessionProvider.java:32) Using Hibernate from an HTTP request is no problem. How can I configure Warp to use it directly from WicketApplication, so that I can load the database objects and use them for incoming HTTP requests? Thanks a lot, Christoph public class Init extends WarpServletContextListener { �...@override public void contextInitialized(ServletContextEvent event) { super.contextInitialized(event); INJ.getInstance(PersistenceService.class).start(); event.getServletContext().setAttribute(injector, INJ); } �...@override public void contextDestroyed(ServletContextEvent event) { super.contextDestroyed(event); } - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
RE: Shared Components
I don't understand the question. I may be viewing the same web page as you, but that doesn't mean we should share the same computer display monitor. If there are two copies of the display (yours and mine), then there should be two copies of the display's components. What's wrong with just building the model for each user's component around the same application-scoped Java POJO? (Of course, you might have to synchronize concurrent access to it, but that's just standard Java.) On Thu, May 13, 2010 at 12:38 PM, Ayodeji Aladejebi aladej...@gmail.comwrote: Please any concept of shared components in Wicket. If I have a component that the content (model) will always be the same across all sessions and users, is there a wicket api approach for ensuring we only have one of such components throughout the application scope - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Shared Components
For example, I have a Label that displays data using a ReadOnlyModel. That data will NEVER be written to by any user. they only read from it EVER. ONLY ONE user can write to it (admin maybe) Thats what I mean. On Thu, May 13, 2010 at 5:28 PM, Frank Silbermann frank.silberm...@fedex.com wrote: I don't understand the question. I may be viewing the same web page as you, but that doesn't mean we should share the same computer display monitor. If there are two copies of the display (yours and mine), then there should be two copies of the display's components. What's wrong with just building the model for each user's component around the same application-scoped Java POJO? (Of course, you might have to synchronize concurrent access to it, but that's just standard Java.) On Thu, May 13, 2010 at 12:38 PM, Ayodeji Aladejebi aladej...@gmail.comwrote: Please any concept of shared components in Wicket. If I have a component that the content (model) will always be the same across all sessions and users, is there a wicket api approach for ensuring we only have one of such components throughout the application scope - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Request Https page
Hello, Can anyone tell how to request a page using https (Login page).
Xml as markup file
Hello, When I tried to use XML as markup file, the xml elements are not displayed and characters are alone displayed. Could anyone tell how to display the XML elements along with the characters.
Re: Xml as markup file
Where are you not seeing them displayed? Some browsers display XML just like HTML - so you will only see the characters and won't see the tags. Have you tried to view source? -- Jeremy Thomerson http://www.wickettraining.com On Thu, May 13, 2010 at 12:25 PM, sakthi vel vela@gmail.com wrote: Hello, When I tried to use XML as markup file, the xml elements are not displayed and characters are alone displayed. Could anyone tell how to display the XML elements along with the characters.
Re: Shared Components
is this a performance bottleneck for you? because until you show me how having 1000 of these labels is stalling your cpu or causing memory problems in a profiler the rest of this conversation is pretty pointless. -igor On Thu, May 13, 2010 at 9:34 AM, Ayodeji Aladejebi aladej...@gmail.com wrote: For example, I have a Label that displays data using a ReadOnlyModel. That data will NEVER be written to by any user. they only read from it EVER. ONLY ONE user can write to it (admin maybe) Thats what I mean. On Thu, May 13, 2010 at 5:28 PM, Frank Silbermann frank.silberm...@fedex.com wrote: I don't understand the question. I may be viewing the same web page as you, but that doesn't mean we should share the same computer display monitor. If there are two copies of the display (yours and mine), then there should be two copies of the display's components. What's wrong with just building the model for each user's component around the same application-scoped Java POJO? (Of course, you might have to synchronize concurrent access to it, but that's just standard Java.) On Thu, May 13, 2010 at 12:38 PM, Ayodeji Aladejebi aladej...@gmail.comwrote: Please any concept of shared components in Wicket. If I have a component that the content (model) will always be the same across all sessions and users, is there a wicket api approach for ensuring we only have one of such components throughout the application scope - 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: Request Https page
see HttpsRequestCycleProcessor -igor On Thu, May 13, 2010 at 10:22 AM, sakthi vel vela@gmail.com wrote: Hello, Can anyone tell how to request a page using https (Login page). - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: CheckGroup and ListView
And it was as simple as that. Thank you so much. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/CheckGroup-and-ListView-tp1886879p2197959.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: warp persist, guice wicket: use warp persist during wicket application startup to load db objects
I think this questions was resolved on the Guice list. Correct me if I'm wrong. This is the thread: http://groups.google.com/group/google-guice/browse_thread/thread/78ffb08353f4dcf The thread was somewhat messy, so the upshot is: A good worked example of persistence outside the context of a request/response cycle is available via the JWeekend LegUp DataInitializer Class. Get a Wicket/Guice/Warp archetype from here: http://jweekend.co.uk/dev/LegUphttp://www.google.com/url?sa=Dq=http://jweekend.co.uk/dev/LegUpusg=AFQjCNE7DqzeR9jggtbit1KZKzvOMBhD-w If the data you are loading isn't changing, you could load it on start up and detach your hibernate objects or cache the data in any number of other ways so that it is still available after the loading session has closed. WorkManager, http://code.google.com/p/warp-persist/wiki/WorkManagerhttp://www.google.com/url?sa=Dq=http://code.google.com/p/warp-persist/wiki/WorkManagerusg=AFQjCNFUy9TrygNgAPlXL8_bMWS0AdT7uw, would be the appropriate way to load data outside of Request/Response cycle in a web application. Also see this: http://www.wideplay.com/transactionsemanticshttp://www.google.com/url?sa=Dq=http://www.wideplay.com/transactionsemanticsusg=AFQjCNEuiuJjb0RZ9vyn2Wdh2uObkwqErQ, see the section on Custom Units of Work. http://groups.google.com/group/google-guice/browse_thread/thread/78ffb08353f4dcf Ed. On Thu, May 13, 2010 at 12:09 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Maybe mark your servlet listener as transactional? 2010/5/11 Christoph Grün chris...@gmx.at: Hi all, I am using Wicket together with Guice and Warp Persist/Servlet. I have registered the PersistenceService in the contextInitialized method. However, I would like to do some data loading from the database when wicket starts, and like to access Hibernate Daos. I am getting the error: org.hibernate.HibernateException: No session currently bound to execution context at org.hibernate.context.ManagedSessionContext.currentSession(ManagedSessionCon text.java:50) at org.hibernate.impl.SessionFactoryImpl.getCurrentSession(SessionFactoryImpl.j ava:591) at com.wideplay.warp.hibernate.SessionProvider.get(SessionProvider.java:42) at com.wideplay.warp.hibernate.SessionProvider.get(SessionProvider.java:32) Using Hibernate from an HTTP request is no problem. How can I configure Warp to use it directly from WicketApplication, so that I can load the database objects and use them for incoming HTTP requests? Thanks a lot, Christoph public class Init extends WarpServletContextListener { @Override public void contextInitialized(ServletContextEvent event) { super.contextInitialized(event); INJ.getInstance(PersistenceService.class).start(); event.getServletContext().setAttribute(injector, INJ); } @Override public void contextDestroyed(ServletContextEvent event) { super.contextDestroyed(event); } - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
wicketstuff-prototype download
Hi, Could someone please tell me where I can download the wicketstuff-prototype library. I want to use Drag and Drop for Wickethttp://code.google.com/p/wicket-dnd/(DND) which needs this library. I'm using Wicket 1.4. Regards, Hbiloo
RE: wicketstuff-prototype download
On the db side we have application error codes which are easy enough to propagate. We did not do this through 5.0. The php part of it I don't think we should touch. tim -Original Message- From: azzeddine.dad...@gmail.com [mailto:azzeddine.dad...@gmail.com] On Behalf Of Hbiloo Sent: Thursday, May 13, 2010 4:17 PM To: users@wicket.apache.org Subject: wicketstuff-prototype download Hi, Could someone please tell me where I can download the wicketstuff-prototype library. I want to use Drag and Drop for Wickethttp://code.google.com/p/wicket-dnd/(DND) which needs this library. I'm using Wicket 1.4. Regards, Hbiloo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
[OT] Annotating plaintext with markup tags
Hi everybody, I need to annotate spans of a given plaintext with markup tags, for example: Tagger t = new Tagger(I need a library to annotate plaintext.); // Character indices: 0123456789012345678901234567890123456789 t.annotate(0, 1, i); t.annotate(2, 16, a, href=\#\); t.annotate(9, 19, b); System.out.println(t.toString()); // Output: // iI/i a href=#need a blibrary/b/ab to/b ... // Or even better: // iI/i a href=#need a blibrary/b/ab class=split to/b ... Before reinventing the wheel, does anybody know of a class/library to achieve this? Many thanks, Kaspar - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Which url coding strategy to make more restful in page with navigator?
thanks,igor! but where can I find out this bookmarkable paging navigator? I only get it:http://apache-wicket.1842946.n4.nabble.com/PageNavigator-Vs-Nice-Url-td1848271.html#a1848272 but that is a old track about nice url and paging navigator,including a lot discuss without final result. 2010/5/13 Igor Vaynberg igor.vaynb...@gmail.com: if you use a bookmarkable paging navigator then even the default mounting strategy will work. you can probably find one by searching the list. -igor On Thu, May 13, 2010 at 12:56 AM, cleverpig greatclever...@gmail.com wrote: hi,everybody! I checked a variety url coding strategies, but did not find one that is very appropriate when using datatable and navigator in page. HybridUrlCodingStrategy might also be, but it can not display the page parameter in url, can not be true bookmarkable. And the version number int its url will make the user confused. I look forward to using MixedParamUrlCodingStrategy, which may need to find out navigation links parameter name in the navigator,such as:first,next,etc! Not sure we have a better solution, please guide me~ -- cleverpig(Dan) Location: Beijing Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China Zipcode: 100031 MSN: great_liu...@hotmail.com QQ: 149291732 Skype: cleverpigatmatrix Facebook ID:cleverpig Blog: cleverpig.name/dan/ Tags: del.icio.us/cleverpig Twitter: twitter.com/cleverpig 新浪微博: t.sina.com.cn/cleverpig Organization: www.beijing-open-party.org or...@facebook: http://www.facebook.com/group.php?gid=8159558294 - 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 -- cleverpig(Dan) Location: Beijing Address: Room 4018,No.A2 South Avenue Fuxingmen Beijing,P.R.China Zipcode: 100031 MSN: great_liu...@hotmail.com QQ: 149291732 Skype: cleverpigatmatrix Facebook ID:cleverpig Blog: cleverpig.name/dan/ Tags: del.icio.us/cleverpig Twitter: twitter.com/cleverpig 新浪微博: t.sina.com.cn/cleverpig Organization: www.beijing-open-party.org or...@facebook: http://www.facebook.com/group.php?gid=8159558294 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: wicketstuff-prototype download
Hi, either use maven to build wicket-dnd or do what maven does - look in the right places: http://code.google.com/p/wicket-dnd/source/browse/trunk/wicket-dnd/pom.xml Look for repository: http://wicketstuff.org/maven/repository/ Together with dependency this results in: http://wicketstuff.org/maven/repository/org/wicketstuff/prototype/1.4.1/prototype-1.4.1.jar Hope this helps Sven On 05/14/2010 01:16 AM, Hbiloo wrote: Hi, Could someone please tell me where I can download the wicketstuff-prototype library. I want to use Drag and Drop for Wickethttp://code.google.com/p/wicket-dnd/(DND) which needs this library. I'm using Wicket 1.4. Regards, Hbiloo - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org