Re: Wicket Wizards and Hibernate
hi, if you want to store the Objects at the end of the wizzard, you have to reattach to the session with lock(NONE), else Entitymanager.merge will save each step. Alternativly you can open one transaction and merge (or saveOrUpdate) after every step. On last step you can commit the transaction. I think this is named conversation. martin Rodolfo Cartas schrieb: > Hi! I'm currently working on a wizard to modify a pojo extracted from > a database with Hibernate. I don't want to commit any changes to the > db before the user finishes the wizard, but the pojo loses reference > to the original session. Shall I eagerly fetch the object to avoid any > hibernate session reference exceptions? > > Thanks, > > Rodolfo > > - > 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: PageLink deprecated
The javadoc says I should use Link or BookmarkablePageLink, which, as I explained, are both not an option. Emond On Friday 15 January 2010 05:08:42 Igor Vaynberg wrote: > what does the javadoc say? > > -igor > > On Thu, Jan 14, 2010 at 6:12 AM, Emond Papegaaij > > wrote: > > Hi, > > > > We just found that PageLink has been deprecated in wicket 1.4. Can > > someone explain why? I see no reason why PageLink should not be used. > > PageLink is the base for SecurePageLink (in wicket-security), which uses > > getPageIdentity for its security check. Using Link is not an option > > because it does not provide the page identity, and using > > BookmarkablePageLink is not an option because in many cases the target > > page is not bookmarkable. > > > > Can PageLink please be restored? > > > > Best regards, > > Emond Papegaaij > > > > - > > 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: LegUp updated for latest version of Wicket, and other frameworks
This looks really great guys! I just created a project with it and looked through it and it will be a great "leg up" for anyone needing to start a project and needing help wiring all the pieces together. Thanks!! -- Jeremy Thomerson http://www.wickettraining.com On Thu, Jan 14, 2010 at 11:03 AM, Richard Wilkinson < richardjohnwilkin...@googlemail.com> wrote: > We have updated LegUp [1] so you can now create projects using the > latest (compatible) versions of Wicket, Spring, Guice, JPA (1.0), > Warp, Hibernate... > > LegUp is a collection of Maven archetypes to help you get quickly and > easily started with your enterprise projects. > > Wicket 1.4.5, Guice 2.0 > Wicket 1.4.5, Spring 3.0.0, JPA 1.0 > Wicket 1.4.5, Guice 1.0, WarpPersist 1.0, Hibernate 3.2 > Wicket 1.4.5, Guice 1.0, WarpPersist 1.0, JPA 1.0 > > Spring 3.0.0, JPA 1.0 > Spring 3.0.0, JDBC > > The source is available on the LegUp Google code project [2]. > Drop us a line at [3] if you have any ideas for or would like to > contribute new archetypes. > > -- > Regards - Richard Wilkinson > Developer, > jWeekend: OO & Java Technologies - Development and Training > http://jWeekend.com > > > [1] http://www.jweekend.com/dev/LegUp > [2] http://code.google.com/p/legup/ > [3] http://www.jweekend.com/dev/ContactUs > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: PageLink deprecated
what does the javadoc say? -igor On Thu, Jan 14, 2010 at 6:12 AM, Emond Papegaaij wrote: > Hi, > > We just found that PageLink has been deprecated in wicket 1.4. Can someone > explain why? I see no reason why PageLink should not be used. PageLink is the > base for SecurePageLink (in wicket-security), which uses getPageIdentity for > its security check. Using Link is not an option because it does not provide > the page identity, and using BookmarkablePageLink is not an option because in > many cases the target page is not bookmarkable. > > Can PageLink please be restored? > > Best regards, > Emond Papegaaij > > - > 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: testing autocomplete with WicketTester
Douglas Ferguson-2 wrote: > > What is the recommended way to test autocomplete using wicket tester? > Have you tried http://wicketpagetest.sourceforge.net which supports testing true Ajax. - -- Kent Tong Better way to unit test Wicket pages (http://wicketpagetest.sourceforge.net) Books on CXF, Axis2, Wicket, JSF (http://http://agileskills2.org) -- View this message in context: http://old.nabble.com/testing-autocomplete-with-WicketTester-tp27104866p27171259.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: testing autocomplete with WicketTester
Currently not, but maybe implementing it in EnhancedWicketTester is worse idea then simply making finally WicketTester first class citizen in the Wicket project. So that testing even most complex Ajax websites would be possible and easy. On Thu, Jan 14, 2010 at 8:54 PM, jgasyna wrote: > > Would the use of the enhanced wicket tester perhaps solve this problem? > > Dzieki > > > Paul Szulc wrote: > > > > I think you can explicitly tell in your tests to fire given java script > > event, but after that your page flow will be broken (bug in the wicket > > tester). > > > > On Thu, Jan 14, 2010 at 9:51 AM, Douglas Ferguson < > > doug...@douglasferguson.us> wrote: > > > >> Anybody? > >> > >> On Jan 11, 2010, at 10:24 AM, Douglas Ferguson wrote: > >> > >> > I am assuming that since it is actually a text field that I could just > >> "get" the component and cast it to a TextField then set the model > object. > >> > > >> > However, I'm not sure that we fire the appropriate events to make the > >> autocomplete work properly as there are onchange events, etc on it.. > >> > > >> > D/ > >> > > >> > On Jan 10, 2010, at 7:56 PM, Douglas Ferguson wrote: > >> > > >> >> What is the recommended way to test autocomplete using wicket tester? > >> >> > >> >> 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 > >> > >> > > > > > > -- > > Best regards, > > Paul Szulc > > > > http://paulszulc.wordpress.com > > > > > > -- > View this message in context: > http://old.nabble.com/testing-autocomplete-with-WicketTester-tp27104866p27167160.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 > > -- Best regards, Paul Szulc http://paulszulc.wordpress.com
Re: wicket security future - contribute!
Hi, have someone tried to integrate wicket + shiro + guice? some example would be great. Thanks, V. 2010/1/14 Les Hazlewood > Just a quick note to those interested - the Shiro dev team is trying > very hard to get a 1.0 final release out hopefully before the end of > this month. > > Best, > > Les > (Apache Shiro team) > > On Thu, Jan 14, 2010 at 2:14 AM, Adrian Wiesmann > wrote: > > Hi Alex > > > >> i think we will not find one person who develops wicket-security allone > - > >> so > >> who's interested? > >> its not the part brings the most fun in wicket development area but a > very > >> very > >> important part of every enterprise application - so contribute! lets > >> define a > >> security-subteam. > > > > I started with the built in security functionality and then moved to > Apache > > Shiro. Shiro makes it very simple to authenticate users and to check > > permission from within your application code. And what I really like is > that > > users of our tool still can personalise parts of those mechanisms when > > configuring their installation. Another plus is the permission based > > authorisation mechanism which makes defining and configuring permissions > > very flexible. > > > > So what I could contribute are classes to integrate Shiro into Wicket. If > > that is of interest. > > > > Cheers, > > Adrian > > > > - > > 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: testing autocomplete with WicketTester
Would the use of the enhanced wicket tester perhaps solve this problem? Dzieki Paul Szulc wrote: > > I think you can explicitly tell in your tests to fire given java script > event, but after that your page flow will be broken (bug in the wicket > tester). > > On Thu, Jan 14, 2010 at 9:51 AM, Douglas Ferguson < > doug...@douglasferguson.us> wrote: > >> Anybody? >> >> On Jan 11, 2010, at 10:24 AM, Douglas Ferguson wrote: >> >> > I am assuming that since it is actually a text field that I could just >> "get" the component and cast it to a TextField then set the model object. >> > >> > However, I'm not sure that we fire the appropriate events to make the >> autocomplete work properly as there are onchange events, etc on it.. >> > >> > D/ >> > >> > On Jan 10, 2010, at 7:56 PM, Douglas Ferguson wrote: >> > >> >> What is the recommended way to test autocomplete using wicket tester? >> >> >> >> 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 >> >> > > > -- > Best regards, > Paul Szulc > > http://paulszulc.wordpress.com > > -- View this message in context: http://old.nabble.com/testing-autocomplete-with-WicketTester-tp27104866p27167160.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 session vs tomcat session
Hi Vadim, I'm exactly trying this feature, and I have a similar situation (user object in session). Upon restore, the user object is restored as expected, if the user is logged in, he is still logged in, etc. But the stateful pages aren't restored, so you can't just refresh a page and expect it to come up. I guess this is because I use SecondLevelCache? On Thu, Jan 14, 2010 at 2:45 PM, Vadim Tesis wrote: > > hi, > > > > i'm trying to customize Tomcat 6 configuration and i came accross Manager > element in server.xml. it allows one to configure where to store sessions > (memory, disk, ...), for how long to keep the session before discarding it, > ... so i was wondering how (if at all) wicket (1.4.5) session is related to > tomcat session and whether that tomcat configuration will affect wicket > session in any way. > > by the way in my wicket app among other things i store a user object in > wicket session when the user signs in. > > > > Thanks, > > Vadim > > _ > Your E-mail and More On-the-Go. Get Windows Live Hotmail Free. > http://clk.atdmt.com/GBL/go/196390709/direct/01/ >
LegUp updated for latest version of Wicket, and other frameworks
We have updated LegUp [1] so you can now create projects using the latest (compatible) versions of Wicket, Spring, Guice, JPA (1.0), Warp, Hibernate... LegUp is a collection of Maven archetypes to help you get quickly and easily started with your enterprise projects. Wicket 1.4.5, Guice 2.0 Wicket 1.4.5, Spring 3.0.0, JPA 1.0 Wicket 1.4.5, Guice 1.0, WarpPersist 1.0, Hibernate 3.2 Wicket 1.4.5, Guice 1.0, WarpPersist 1.0, JPA 1.0 Spring 3.0.0, JPA 1.0 Spring 3.0.0, JDBC The source is available on the LegUp Google code project [2]. Drop us a line at [3] if you have any ideas for or would like to contribute new archetypes. -- Regards - Richard Wilkinson Developer, jWeekend: OO & Java Technologies - Development and Training http://jWeekend.com [1] http://www.jweekend.com/dev/LegUp [2] http://code.google.com/p/legup/ [3] http://www.jweekend.com/dev/ContactUs - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Tree table with check box
Hi, check out wicket-tree (http://code.google.com/p/wicket-tree/) and see the example app, I think it will solve your problem. Regards, Peter prati írta: Hi, I am also stuck in similar problem.If you can share your code snippets of how u did that will be of great help. Thanks Pratibha vela wrote: Hello again, The links and nodes are added in the TreeFragment class. But the TreeFragment is a private inner class in Treetable, could you tell how to use the TreeFragment to acheive this functionality - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Tree table with check box
Hi, I am also stuck in similar problem.If you can share your code snippets of how u did that will be of great help. Thanks Pratibha vela wrote: > > Hello again, > > The links and nodes are added in the TreeFragment class. But the > TreeFragment is a private inner class in Treetable, could you tell how to > use the TreeFragment to acheive this functionality > > > > > > > > > -- View this message in context: http://old.nabble.com/Tree-table-with-check-box-tp26080852p27164039.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: filter options in available side of palette w/o losing selected options
Does anyone have any ides what it could be causing this? Original Message: - From: wic...@geofflancaster.com wic...@geofflancaster.com Date: Wed, 13 Jan 2010 16:55:49 -0500 To: users@wicket.apache.org Subject: Re: filter options in available side of palette w/o losing selected options So I've got it partly working. It works after I submit the form (using IndicatingAjaxButton). If I filter the available items before submitting, the selected items are cleared. Which leads me to the question, what is executed during an onSubmit() that is not during an OnChangeAjaxBehavior.onUpdate()? I thought the onUpdate was essentially the same thing as a submit. Can anyone tell me why this may be occuring? Original Message: - From: Fatih Mehmet UCAR fmu...@gmail.com Date: Wed, 13 Jan 2010 20:35:52 - To: users@wicket.apache.org Subject: Re: filter options in available side of palette w/o losing selected options if you can paste some code and it will help us understand the problem better. fmu - Original Message - From: To: Sent: Wednesday, January 13, 2010 8:23 PM Subject: Re: filter options in available side of palette w/o losing selected options I've tried that as well but when my onUpdate method is called, i call palette.getDefaultModelObject() and cast it to a list (the same way I do on form submit) but it acts as if there are no selections. Original Message: - From: Fatih Mehmet UCAR fmu...@gmail.com Date: Wed, 13 Jan 2010 20:18:44 - To: users@wicket.apache.org Subject: Re: filter options in "available" side of palette w/o losing selected options you keep your original objects in another list so you can put them back into palette's model when you need fmu - Original Message - From: To: Sent: Wednesday, January 13, 2010 8:10 PM Subject: filter options in "available" side of palette w/o losing selected options I'm using a text field to filter the available options in a palette which i have working but when the options are filtered the previously selected options get deleted. is there any way i can keep the previously selected options in the palette? mail2web LIVE - Free email based on Microsoft® Exchange technology - http://link.mail2web.com/LIVE - 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 mail2web LIVE - Free email based on Microsoft® Exchange technology - http://link.mail2web.com/LIVE - 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 myhosting.com - Premium Microsoft® Windows® and Linux web and application hosting - http://link.myhosting.com/myhosting - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org myhosting.com - Premium Microsoft® Windows® and Linux web and application hosting - http://link.myhosting.com/myhosting - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
automatically delete|clean disk|file|page|store on server crash|restart
how can old pagestore files be automatically deleted when server restarts? in a crash, for example, in which old sessions left their pagestore files on disk
Re: AbstractDefaultAjaxBehavior using onComponentRendered rendered many times
Hi Esteban, the wicket javascript will update your component html by the on retrieved by your component that has the script tag attached. So you get the problem describe. If you want to keep sending the java script by script tag, you can implement your onComponentRendered method like: if (AjaxRequestTarget.get() != null){ AjaxRequestTarget.get().appendJavascript("var foo = new Wicket.ExtensibleChoiceAutocomplete ..."); } else { cResponse.write(JavascriptUtils.SCRIPT_OPEN_TAG); cResponse.write("var foo = new Wicket.ExtensibleChoiceAutocomplete ..."); cResponse.write(JavascriptUtils.SCRIPT_CLOSE_TAG); } but the best approach is to send your behavior javascript to browser adding it to the IHeaderResponse like: response.renderOnDomReadyJavascript("var foo = new Wicket.ExtensibleChoiceAutocomplete ..."); you can do it overriding the renderHead method, because AbstractBehavior implements IHeaderContributor On Wed, Jan 13, 2010 at 5:34 PM, Esteban Masoero wrote: > Hi: > > Using wicket 1.3.5, I have a MyAbstractExtensibleChoiceAutocompleteBehavior > (that extends AbstractDefaultAjaxBehavior, and I think it is a modification > of some wicket class) related to the autocomplete feature that inside > onComponentRendered method does something like: > > cResponse.write(JavascriptUtils.SCRIPT_OPEN_TAG); > cResponse.write("var foo = new Wicket.ExtensibleChoiceAutocomplete ..."); > cResponse.write(JavascriptUtils.SCRIPT_CLOSE_TAG); > > Then I have a MyTextField subclass that adds this behavior to itself when > it's constructed, so the "autocomplete" options are shown properly. > MyTextField also adds to itself an > AjaxFormComponentUpdatingBehavior("onchange") so we can track the changes > and do some stuff. > > So here's the thing, I noticed with firebug that every time I change the > component's value and the AjaxFormComponentUpdatingBehavior is called, > MyTextField is refreshed (added to the target) and the onComponentRendered > method of the other behavior is called, and the js tag is added to the one > that previously existed. So I have: > > >