Re: [Wicketstuff / Inmethod-Grid] A handful of patches
Thanks! I just got data grid going. It is very cool! Do you know if there is a way to set a default sort? D/ On Jun 8, 2010, at 3:26 PM, Charles Deal wrote: > I use Eclipse and the Subversive SVN plugin. I did a checkout into a new > Project of > https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/inmethod-grid-parent > > After I made my changes I used the Create Patch option within Eclipse to > generate the patches that I supplied. If using a similar setup, you should > be able to use the Eclipse Apply Patch feature to update the source again or > use your own preferred method. > > On Tue, Jun 8, 2010 at 1:55 PM, Douglas Ferguson > wrote: > >> What's the url you used to pull from svn? I.E. What branch, etc.. >> >> D/ >> >> On Jun 8, 2010, at 12:49 PM, Charles Deal wrote: >> >>> The patches are based upon the latest in svn (as of 07JUN2010). I pulled >> a >>> fresh copy of the source and then applied my changes back against it. I >>> don't think the svn codebase has changed all that much in the 1.4 branch, >> so >>> I didn't experience any conflicts applying my patches. >>> >>> >>> On Tue, Jun 8, 2010 at 1:17 PM, Douglas Ferguson < >> doug...@douglasferguson.us wrote: >>> What version of inmethod are these patches based from? I't looks like 1.4.1 is quite old and 1.4.2 is still in "SNAPSHOT" http://wicketstuff.org/maven/repository/org/wicketstuff/inmethod-grid/ On Jun 7, 2010, at 10:48 AM, Charles Deal wrote: > We've been using the grid for quite some time now and have accumulated >> a few changes to the codebase. I'd like to submit them for other users to review and discuss, in the hopes that they will make it into the >> wicketstuff codebase in the future. The following are brief descriptions of the attached files. > > inmethodgrid-script.patch > This patch simply adds a resize event to the grid. We noticed that >> when the browser was resized, the grid wouldn't resize until the user >> attempted to scroll. > > inmethodgrid-columns.patch > Some small changes to facilitate more code reuse. > > inmethodgrid-form.patch > Move the header and toolbars into the form. This allows the header to determine the form automatically so that, for example, when sorting a >> grid, the behavior can submit the form to retain any transient changes to the grid. > > inmethodgrid-gridbehavior.patch > Refactor the AjaxFormSubmitBahvior implementation into its own class to be used by custom behaviors. Altered the code to use the new class. > > inmethodgrid-insert.patch > Add support for adding rows to the grid. > > As I said, my team have been successfully using (almost all of) these patches since at least June 2008. The script patch is the only one that >> is a recent change. I'd appreciate some feedback and if no objections are made, I'd like to get these patches into the scm. > - 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: How to get a value of textfield on onBlur event..
Use OnChangeAjaxBehavior subclass. Fausto Argeni Bencosme Doñe. :D On Tue, Jun 8, 2010 at 9:42 PM, jammyjohn wrote: > > Thanks for your reply. It worked. But I ran into another problem. > > Instead of getting the value of textfield value getInput(), I tried getting > it from my model as dtoModel.getObject().getShipId(). > > This gives me the correct value(the value entered in the text field) for > the > first time. If I change the value in the text field, the model always gives > me the first value but not the recent value that I changed. > > Looks like my model is not updated? Please suggest. > > I would appreciate your help in this regard. > > Thanks & Regards, > C. Jamuna > > > > > > > > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/How-to-get-a-value-of-textfield-on-onBlur-event-tp2248027p2248223.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 get a value of textfield on onBlur event..
Thanks for your reply. It worked. But I ran into another problem. Instead of getting the value of textfield value getInput(), I tried getting it from my model as dtoModel.getObject().getShipId(). This gives me the correct value(the value entered in the text field) for the first time. If I change the value in the text field, the model always gives me the first value but not the recent value that I changed. Looks like my model is not updated? Please suggest. I would appreciate your help in this regard. Thanks & Regards, C. Jamuna -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-get-a-value-of-textfield-on-onBlur-event-tp2248027p2248223.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: CompoundPropertymodel loses object after form submit
Can you show some code? On Wed, Jun 9, 2010 at 1:01 AM, Bergmann Manfred wrote: > Hi. > > I experience a strange behaviour where I'm not exactly sure what I'm doing > wrong. > On my pages which are wrapped around some database model classes I have > forms with CompoundPropertyModels. > On one of five pages the form seems to lose the model object after a submit > is done so that the page reload after the submit displays empty labels and > fields. > This is not the case on the other four pages/forms which basically have the > same structure. > I got around this problem with explicitly setting the model object again in > the onSubmit handler which seems to work. > > Anyone got an explanation? > Ahh, I'm using Wicket 1.4.9. > > > Cheers, > Manfred > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Tel: +972-77-4100977 Fax: +972-77-4100976 Mobile: +972-54-7755427 http://www.codeark.com http://blogs.microsoft.co.il/blogs/yanush/ http://headtoscreencollision.blogspot.com
Re: How to get a value of textfield on onBlur event..
AjaxFormComponentUpdatingBehavior might be what you want. Regards, Gerolf On Tue, Jun 8, 2010 at 10:58 PM, jammyjohn wrote: > > Hi, > > How to get the value of the textfield on onBlur event? The below code > always prints null for shipIdTf.getInput() > > final TextField shipIdTf = new TextField("ship.id"); >shipIdTf.setOutputMarkupId(true); >mawbForm.add(shipIdTf); > > >shipIdTf.add(new AjaxEventBehavior("onBlur"){ >private static final long serialVersionUID = 1L; >@Override >protected void onEvent(AjaxRequestTarget target) { >System.out.println("Event is triggered"); >System.out.println("The input value is " + > shipIdTf.getInput()) >} > >}); > > Please suggest. > > Thanks for your time. > Jamuna. > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/How-to-get-a-value-of-textfield-on-onBlur-event-tp2248027p2248027.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: [announce] Wicket Security 1.4 released!
Just catching up on emails - thanks! Much appreciated!!! -Ben -Original Message- From: Martijn Dashorst [mailto:martijn.dasho...@gmail.com] Sent: Monday, May 31, 2010 9:08 AM To: users@wicket.apache.org Subject: [announce] Wicket Security 1.4 released! We are proud to release Wicket Security 1.4 final. Wicket Security is an attempt to create an out of the box reusable authenticating and authorization framework for Apache Wicket. It contains several projects which can be used standalone or in conjunction with each other. After testing the codebase for a while we did not find any issues. Differences between the 1.4-rc1 release: - upgraded dependencies to newest working versions (JUnit 4.x does not work with Spring) - versioned maven plugins to appease the Maven 3 gods. Many thanks go to Olger Warnier for the initial port of Wicket Security to Wicket 1.4. The release is available from the usual Wicket Stuff maven repository: http://wicketstuff.org/maven/repository/org/apache/wicket/wicket-security If you already depend on Wicket Security, all you need to do is modify the version of your dependencies in your Maven poms: wicketstuff http://wicketstuff.org/maven/repository true true org.apache.wicket.wicket-security swarm 1.4 compile Note that with future releases we will move to a new groupId and package name (since org.apache.wicket is reserved for Apache Wicket, and not 3rd party projects). The future of the Wicket Security project is to remain a standalone project (it will not be adopted by Apache Wicket), and will continue to be maintained by Topicus. If you wish to join please let us know! Emond & Martijn - 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
CompoundPropertymodel loses object after form submit
Hi. I experience a strange behaviour where I'm not exactly sure what I'm doing wrong. On my pages which are wrapped around some database model classes I have forms with CompoundPropertyModels. On one of five pages the form seems to lose the model object after a submit is done so that the page reload after the submit displays empty labels and fields. This is not the case on the other four pages/forms which basically have the same structure. I got around this problem with explicitly setting the model object again in the onSubmit handler which seems to work. Anyone got an explanation? Ahh, I'm using Wicket 1.4.9. Cheers, Manfred - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
How to get a value of textfield on onBlur event..
Hi, How to get the value of the textfield on onBlur event? The below code always prints null for shipIdTf.getInput() final TextField shipIdTf = new TextField("ship.id"); shipIdTf.setOutputMarkupId(true); mawbForm.add(shipIdTf); shipIdTf.add(new AjaxEventBehavior("onBlur"){ private static final long serialVersionUID = 1L; @Override protected void onEvent(AjaxRequestTarget target) { System.out.println("Event is triggered"); System.out.println("The input value is " + shipIdTf.getInput()) } }); Please suggest. Thanks for your time. Jamuna. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/How-to-get-a-value-of-textfield-on-onBlur-event-tp2248027p2248027.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: [Wicketstuff / Inmethod-Grid] A handful of patches
I use Eclipse and the Subversive SVN plugin. I did a checkout into a new Project of https://wicket-stuff.svn.sourceforge.net/svnroot/wicket-stuff/trunk/wicketstuff-core/inmethod-grid-parent After I made my changes I used the Create Patch option within Eclipse to generate the patches that I supplied. If using a similar setup, you should be able to use the Eclipse Apply Patch feature to update the source again or use your own preferred method. On Tue, Jun 8, 2010 at 1:55 PM, Douglas Ferguson wrote: > What's the url you used to pull from svn? I.E. What branch, etc.. > > D/ > > On Jun 8, 2010, at 12:49 PM, Charles Deal wrote: > > > The patches are based upon the latest in svn (as of 07JUN2010). I pulled > a > > fresh copy of the source and then applied my changes back against it. I > > don't think the svn codebase has changed all that much in the 1.4 branch, > so > > I didn't experience any conflicts applying my patches. > > > > > > On Tue, Jun 8, 2010 at 1:17 PM, Douglas Ferguson < > doug...@douglasferguson.us > >> wrote: > > > >> What version of inmethod are these patches based from? > >> > >> I't looks like 1.4.1 is quite old and 1.4.2 is still in "SNAPSHOT" > >> > >> http://wicketstuff.org/maven/repository/org/wicketstuff/inmethod-grid/ > >> > >> > >> > >> > >> On Jun 7, 2010, at 10:48 AM, Charles Deal wrote: > >> > >>> We've been using the grid for quite some time now and have accumulated > a > >> few changes to the codebase. I'd like to submit them for other users to > >> review and discuss, in the hopes that they will make it into the > wicketstuff > >> codebase in the future. The following are brief descriptions of the > >> attached files. > >>> > >>> inmethodgrid-script.patch > >>> This patch simply adds a resize event to the grid. We noticed that > when > >> the browser was resized, the grid wouldn't resize until the user > attempted > >> to scroll. > >>> > >>> inmethodgrid-columns.patch > >>> Some small changes to facilitate more code reuse. > >>> > >>> inmethodgrid-form.patch > >>> Move the header and toolbars into the form. This allows the header to > >> determine the form automatically so that, for example, when sorting a > grid, > >> the behavior can submit the form to retain any transient changes to the > >> grid. > >>> > >>> inmethodgrid-gridbehavior.patch > >>> Refactor the AjaxFormSubmitBahvior implementation into its own class to > >> be used by custom behaviors. Altered the code to use the new class. > >>> > >>> inmethodgrid-insert.patch > >>> Add support for adding rows to the grid. > >>> > >>> As I said, my team have been successfully using (almost all of) these > >> patches since at least June 2008. The script patch is the only one that > is > >> a recent change. I'd appreciate some feedback and if no objections are > >> made, I'd like to get these patches into the scm. > >>> > >> > >> > >> - > >> 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: selected links in a menu
simply disabling the link, calling setenabled(false), will get you there. also see link#setbefore/afterdisabledlink(string markup) which looks like you may want to set to "" -igor On Tue, Jun 8, 2010 at 12:37 PM, Fernando Wermus wrote: > Hi all, > I have a menu that it structure is the following: > > > 1. for the link selected > > > > selected item > > > > > 2. for the link not selected > > > > > item not selected > > > ... > > > I programmed this with a border that renders the , but I need make > invisible the border, but not the anchor to get the first case. > > I tried: > > border.setVisible(false); > border.getBodyContainer().setVisible(true); > > and I got an error: > > at java.util.AbstractList$Itr.remove( > AbstractList.java:356) > at org.apache.wicket.Page.checkRendering(Page.java:1139) > at org.apache.wicket.Page.renderPage(Page.java:921) > at > org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:240) > > > Which is the best way to achieve this? > > I supposed that if a decorator didn't render it would mean the body would > still be rendered - it is a decorator, not a classic container. > > thanks in advance > > > -- > 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
selected links in a menu
Hi all, I have a menu that it structure is the following: 1. for the link selected selected item 2. for the link not selected item not selected ... I programmed this with a border that renders the , but I need make invisible the border, but not the anchor to get the first case. I tried: border.setVisible(false); border.getBodyContainer().setVisible(true); and I got an error: at java.util.AbstractList$Itr.remove( AbstractList.java:356) at org.apache.wicket.Page.checkRendering(Page.java:1139) at org.apache.wicket.Page.renderPage(Page.java:921) at org.apache.wicket.request.target.component.BookmarkablePageRequestTarget.respond(BookmarkablePageRequestTarget.java:240) Which is the best way to achieve this? I supposed that if a decorator didn't render it would mean the body would still be rendered - it is a decorator, not a classic container. thanks in advance -- Fernando Wermus. www.linkedin.com/in/fernandowermus
Re: Invisible Page Notification?
On Tue, Jun 8, 2010 at 7:28 PM, jbrookover wrote: > > That's why I'm wondering how common it is. Based on that e-mail discussion > from 2006, a WicketRuntimeException was on the table, implying that a Page > object should never be invisible. I guess a better question would be, what > are the reasons for making a page invisible? I've spend a few hours trying to find what was wrong when i accidently set the page invisible aswel, also would be interested to know what a valid use case would be for that - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Guice & Wicket Guice Proxy
Please do and I will contribute :-) On Tue, Jun 8, 2010 at 8:46 PM, nino martinez wael < nino.martinez.w...@gmail.com> wrote: > Hi yaniv > > Taking your idea a little further, one could also just get the LDM > injected, which actually archives what I wanted. However this has > strayed a lot from the topic. So I think we should start a new thread > on howto manage Wicket with IOC frameworks.. > > regards Nino > > 2010/6/8 yaniv kessler : > > Perhaps inject the model instead of manually creating it or maybe inject > a > > data service into the page and use that reference in the model. My point > is, > > passing the injector around (or in this case InjectorHolder), should be > > avoided, since as it degrades the entire Guice DI into a simple service > > locator pattern (which has its uses and shortcomings) > > > > Anyways, putting code habits aside, I was unable to understand from your > > last mail if you succeeded in solving your problem, did you ? > > > > On Tue, Jun 8, 2010 at 2:26 AM, nino martinez wael < > > nino.martinez.w...@gmail.com> wrote: > > > >> Well as I manually create the the loadabledetachmodel which extends > >> the ClassWithDao, it has to call injectorholder. I am not aware of any > >> other method that can solve this.. > >> > >> 2010/6/8 yaniv kessler : > >> > I agree with Jorge here and additionally, would like to ask what is > the > >> > motivation to use InjectorHolder directly? > >> > > >> > Are you simply doing new ClassWithDao() somewhere in your code ? > >> > > >> > On Mon, Jun 7, 2010 at 9:21 PM, Jorge Rodrigez > >> wrote: > >> > > >> >> Why phoneDao is transient ? > >> >> Wicket-Guice injects a Serializable proxy and thus after > deserialization > >> >> the > >> >> field will be non-null. > >> >> > >> >> On Mon, Jun 7, 2010 at 7:31 PM, nino martinez wael < > >> >> nino.martinez.w...@gmail.com> wrote: > >> >> > >> >> > sure: > >> >> > > >> >> > public class ClassWithDao { > >> >> > > >> >> > public ClassWithDao() { > >> >> > InjectorHolder.getInjector().inject(this); > >> >> > } > >> >> > > >> >> > @Inject > >> >> > private transient PhoneDao phoneDao; > >> >> > > >> >> > public PhoneDao getPhoneDao() { > >> >> > return phoneDao; > >> >> > } > >> >> > > >> >> > public void setPhoneDao(PhoneDao phoneDao) { > >> >> > this.phoneDao = phoneDao; > >> >> > } > >> >> > > >> >> > That's where I get the failure... And the working version you have > >> seen.. > >> >> > > >> >> > 2010/6/7 yaniv kessler : > >> >> > > Nino, can you show the ClassWithDao code before the so called > >> >> "ugliness" > >> >> > was > >> >> > > introduced? > >> >> > > > >> >> > > On Sun, Jun 6, 2010 at 1:44 PM, nino martinez wael < > >> >> > > nino.martinez.w...@gmail.com> wrote: > >> >> > > > >> >> > >> im still working on the quickstart.. So far I've been unable to > >> >> > >> replicate.. I'll continue tomorrow > >> >> > >> > >> >> > >> 2010/6/5 nino martinez wael : > >> >> > >> > I was too quick to say it worked, as it appears it does not. > I'll > >> >> try > >> >> > >> > to make a quickstart based on legup, where should I put it? > Just > >> on > >> >> > >> > jira? > >> >> > >> > > >> >> > >> > -Nino > >> >> > >> > > >> >> > >> > 2010/6/4 nino martinez wael : > >> >> > >> >> yeah me too, what Igor said worked so must be true or a bug.. > I > >> >> don't > >> >> > >> >> think it's a bug.. > >> >> > >> >> > >> >> > >> >> 2010/6/3 James Carman : > >> >> > >> >>> I thought the filters were executed in the order of their > >> >> > >> >>> filter-mappings, not their filter definitions. > >> >> > >> >>> > >> >> > >> >>> On Thu, Jun 3, 2010 at 5:23 PM, nino martinez wael > >> >> > >> >>> wrote: > >> >> > >> Argh, how stupid.. Thanks a lot igor, how can I buy you a > beer > >> or > >> >> > >> Coke? > >> >> > >> > >> >> > >> I spend a tremendous time trying to figure out what was > wrong. > >> I > >> >> > even > >> >> > >> considered going back to spring.. > >> >> > >> > >> >> > >> regards Nino > >> >> > >> > >> >> > >> 2010/6/3 Igor Vaynberg : > >> >> > >> > noep, the filters are processed in the order they are > defined > >> in > >> >> > >> > web.xml, move the wicket filter decl below the warp > persist > >> >> stuff. > >> >> > >> > > >> >> > >> > -igor > >> >> > >> > > >> >> > >> > On Thu, Jun 3, 2010 at 1:05 PM, nino martinez wael > >> >> > >> > wrote: > >> >> > >> >> yes, i think so: > >> >> > >> >> > >> >> > >> >> > >> >> > >> >> http://java.sun.com/xml/ns/j2ee"; > >> >> > >> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > >> >> > >> >>xsi:schemaLocation=" > http://java.sun.com/xml/ns/j2ee > >> >> > >> >> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; > >> >> > >> >>version="2.4"> > >> >> > >> >> > >> >> > >> >>IVR Web frontend > >> >> > >> >> > >> >> > >> >> >
RE: inmethod-grid filtering
I guess I was hoping that there was a Toolbar that someone had developed that would be added to the DataGrid and work similar to the way it works with the DataTable component. I like the DataGrid and would love to start switching our DataTables over to DataGrids but I can't unless I can have the filtering functionality. Thanks, Josh -Original Message- From: nino martinez wael [mailto:nino.martinez.w...@gmail.com] Sent: Tuesday, June 08, 2010 12:51 PM To: users@wicket.apache.org Subject: Re: inmethod-grid filtering well sort of.. I've made a query model (cant remember the inmethod term rigth now) that can do searches, it's not a top or bottom bar for inmethod grid, but it does do somesort of filtering.. What had you in mind? 2010/6/8 Josh Chappelle : > Hi, > > > > Has anyone added filtering capabilities to the inmethod-grid component? > > > > Thanks, > > > > Josh > > - 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: [Wicketstuff / Inmethod-Grid] A handful of patches
What's the url you used to pull from svn? I.E. What branch, etc.. D/ On Jun 8, 2010, at 12:49 PM, Charles Deal wrote: > The patches are based upon the latest in svn (as of 07JUN2010). I pulled a > fresh copy of the source and then applied my changes back against it. I > don't think the svn codebase has changed all that much in the 1.4 branch, so > I didn't experience any conflicts applying my patches. > > > On Tue, Jun 8, 2010 at 1:17 PM, Douglas Ferguson > wrote: > >> What version of inmethod are these patches based from? >> >> I't looks like 1.4.1 is quite old and 1.4.2 is still in "SNAPSHOT" >> >> http://wicketstuff.org/maven/repository/org/wicketstuff/inmethod-grid/ >> >> >> >> >> On Jun 7, 2010, at 10:48 AM, Charles Deal wrote: >> >>> We've been using the grid for quite some time now and have accumulated a >> few changes to the codebase. I'd like to submit them for other users to >> review and discuss, in the hopes that they will make it into the wicketstuff >> codebase in the future. The following are brief descriptions of the >> attached files. >>> >>> inmethodgrid-script.patch >>> This patch simply adds a resize event to the grid. We noticed that when >> the browser was resized, the grid wouldn't resize until the user attempted >> to scroll. >>> >>> inmethodgrid-columns.patch >>> Some small changes to facilitate more code reuse. >>> >>> inmethodgrid-form.patch >>> Move the header and toolbars into the form. This allows the header to >> determine the form automatically so that, for example, when sorting a grid, >> the behavior can submit the form to retain any transient changes to the >> grid. >>> >>> inmethodgrid-gridbehavior.patch >>> Refactor the AjaxFormSubmitBahvior implementation into its own class to >> be used by custom behaviors. Altered the code to use the new class. >>> >>> inmethodgrid-insert.patch >>> Add support for adding rows to the grid. >>> >>> As I said, my team have been successfully using (almost all of) these >> patches since at least June 2008. The script patch is the only one that is >> a recent change. I'd appreciate some feedback and if no objections are >> made, I'd like to get these patches into the scm. >>> >> >> >> - >> 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: inmethod-grid filtering
well sort of.. I've made a query model (cant remember the inmethod term rigth now) that can do searches, it's not a top or bottom bar for inmethod grid, but it does do somesort of filtering.. What had you in mind? 2010/6/8 Josh Chappelle : > Hi, > > > > Has anyone added filtering capabilities to the inmethod-grid component? > > > > Thanks, > > > > Josh > > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: [Wicketstuff / Inmethod-Grid] A handful of patches
The patches are based upon the latest in svn (as of 07JUN2010). I pulled a fresh copy of the source and then applied my changes back against it. I don't think the svn codebase has changed all that much in the 1.4 branch, so I didn't experience any conflicts applying my patches. On Tue, Jun 8, 2010 at 1:17 PM, Douglas Ferguson wrote: > What version of inmethod are these patches based from? > > I't looks like 1.4.1 is quite old and 1.4.2 is still in "SNAPSHOT" > > http://wicketstuff.org/maven/repository/org/wicketstuff/inmethod-grid/ > > > > > On Jun 7, 2010, at 10:48 AM, Charles Deal wrote: > > > We've been using the grid for quite some time now and have accumulated a > few changes to the codebase. I'd like to submit them for other users to > review and discuss, in the hopes that they will make it into the wicketstuff > codebase in the future. The following are brief descriptions of the > attached files. > > > > inmethodgrid-script.patch > > This patch simply adds a resize event to the grid. We noticed that when > the browser was resized, the grid wouldn't resize until the user attempted > to scroll. > > > > inmethodgrid-columns.patch > > Some small changes to facilitate more code reuse. > > > > inmethodgrid-form.patch > > Move the header and toolbars into the form. This allows the header to > determine the form automatically so that, for example, when sorting a grid, > the behavior can submit the form to retain any transient changes to the > grid. > > > > inmethodgrid-gridbehavior.patch > > Refactor the AjaxFormSubmitBahvior implementation into its own class to > be used by custom behaviors. Altered the code to use the new class. > > > > inmethodgrid-insert.patch > > Add support for adding rows to the grid. > > > > As I said, my team have been successfully using (almost all of) these > patches since at least June 2008. The script patch is the only one that is > a recent change. I'd appreciate some feedback and if no objections are > made, I'd like to get these patches into the scm. > > > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: Guice & Wicket Guice Proxy
Hi yaniv Taking your idea a little further, one could also just get the LDM injected, which actually archives what I wanted. However this has strayed a lot from the topic. So I think we should start a new thread on howto manage Wicket with IOC frameworks.. regards Nino 2010/6/8 yaniv kessler : > Perhaps inject the model instead of manually creating it or maybe inject a > data service into the page and use that reference in the model. My point is, > passing the injector around (or in this case InjectorHolder), should be > avoided, since as it degrades the entire Guice DI into a simple service > locator pattern (which has its uses and shortcomings) > > Anyways, putting code habits aside, I was unable to understand from your > last mail if you succeeded in solving your problem, did you ? > > On Tue, Jun 8, 2010 at 2:26 AM, nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > >> Well as I manually create the the loadabledetachmodel which extends >> the ClassWithDao, it has to call injectorholder. I am not aware of any >> other method that can solve this.. >> >> 2010/6/8 yaniv kessler : >> > I agree with Jorge here and additionally, would like to ask what is the >> > motivation to use InjectorHolder directly? >> > >> > Are you simply doing new ClassWithDao() somewhere in your code ? >> > >> > On Mon, Jun 7, 2010 at 9:21 PM, Jorge Rodrigez >> wrote: >> > >> >> Why phoneDao is transient ? >> >> Wicket-Guice injects a Serializable proxy and thus after deserialization >> >> the >> >> field will be non-null. >> >> >> >> On Mon, Jun 7, 2010 at 7:31 PM, nino martinez wael < >> >> nino.martinez.w...@gmail.com> wrote: >> >> >> >> > sure: >> >> > >> >> > public class ClassWithDao { >> >> > >> >> > public ClassWithDao() { >> >> > InjectorHolder.getInjector().inject(this); >> >> > } >> >> > >> >> > @Inject >> >> > private transient PhoneDao phoneDao; >> >> > >> >> > public PhoneDao getPhoneDao() { >> >> > return phoneDao; >> >> > } >> >> > >> >> > public void setPhoneDao(PhoneDao phoneDao) { >> >> > this.phoneDao = phoneDao; >> >> > } >> >> > >> >> > That's where I get the failure... And the working version you have >> seen.. >> >> > >> >> > 2010/6/7 yaniv kessler : >> >> > > Nino, can you show the ClassWithDao code before the so called >> >> "ugliness" >> >> > was >> >> > > introduced? >> >> > > >> >> > > On Sun, Jun 6, 2010 at 1:44 PM, nino martinez wael < >> >> > > nino.martinez.w...@gmail.com> wrote: >> >> > > >> >> > >> im still working on the quickstart.. So far I've been unable to >> >> > >> replicate.. I'll continue tomorrow >> >> > >> >> >> > >> 2010/6/5 nino martinez wael : >> >> > >> > I was too quick to say it worked, as it appears it does not. I'll >> >> try >> >> > >> > to make a quickstart based on legup, where should I put it? Just >> on >> >> > >> > jira? >> >> > >> > >> >> > >> > -Nino >> >> > >> > >> >> > >> > 2010/6/4 nino martinez wael : >> >> > >> >> yeah me too, what Igor said worked so must be true or a bug.. I >> >> don't >> >> > >> >> think it's a bug.. >> >> > >> >> >> >> > >> >> 2010/6/3 James Carman : >> >> > >> >>> I thought the filters were executed in the order of their >> >> > >> >>> filter-mappings, not their filter definitions. >> >> > >> >>> >> >> > >> >>> On Thu, Jun 3, 2010 at 5:23 PM, nino martinez wael >> >> > >> >>> wrote: >> >> > >> Argh, how stupid.. Thanks a lot igor, how can I buy you a beer >> or >> >> > >> Coke? >> >> > >> >> >> > >> I spend a tremendous time trying to figure out what was wrong. >> I >> >> > even >> >> > >> considered going back to spring.. >> >> > >> >> >> > >> regards Nino >> >> > >> >> >> > >> 2010/6/3 Igor Vaynberg : >> >> > >> > noep, the filters are processed in the order they are defined >> in >> >> > >> > web.xml, move the wicket filter decl below the warp persist >> >> stuff. >> >> > >> > >> >> > >> > -igor >> >> > >> > >> >> > >> > On Thu, Jun 3, 2010 at 1:05 PM, nino martinez wael >> >> > >> > wrote: >> >> > >> >> yes, i think so: >> >> > >> >> >> >> > >> >> >> >> > >> >> http://java.sun.com/xml/ns/j2ee"; >> >> > >> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; >> >> > >> >> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee >> >> > >> >> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; >> >> > >> >> version="2.4"> >> >> > >> >> >> >> > >> >> IVR Web frontend >> >> > >> >> >> >> > >> >> >> >> > >> >> wicket.WicketWarp >> >> > >> >> >> >> > >> >> >> > >> >> >> org.apache.wicket.protocol.http.WicketFilter >> >> > >> >> >> >> > >> >> >> >> > applicationClassName >> >> > >> >> >> >> > >> >> >> > >> >> >> com.netdesign.codan.webadmin.WicketApplication >> >> > >> >> >> >> > >> >> >> >> > >> >> >> >> >
Re: Redirect problems after authorization when path has more 3 slashes
provide a quickstart and attach it to a jira issue -igor 2010/6/8 Conny Kühne : > > Hi, > > I use @AuthorizeInstantiation annotations to protect ajax components from > unauthorized instantiation. I use mounted bookmarkable pages. I just ran > into the following problem when the sign-in page redirects after successful > authentication: > > When the url path contains more than 3 slashes the canonic path in > sendRedirect defaults to NULL resulting in a WicketFilter:500 - closing the > buffer error. > > On my pages that have less than 3 slashes forwarding after signing in works. > > Any ideas? > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Redirect-problems-after-authorization-when-path-has-more-3-slashes-tp2247665p2247665.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: get rights for mounted url
you can use the request coding strategy to resolve the request that has a "secure.html" page back to an irequesttarget. you can then check if the irequesttarget is an instance of ibookmarkablepagerequesttarget. if it is, you can cast and call getpageclass(), then pass that to the metadataroleauthorizationstrategy to see which roles are associated with it. -igor On Tue, Jun 8, 2010 at 6:42 AM, Marieke Vandamme wrote: > > Hello, > > In my application I have the following: > mountBookmarkablePage("/insecure.html", InsecurePage.class); > mountBookmarkablePage("/secure.html", SecurePage.class); > MetaDataRoleAuthorizationStrategy.authorize(SecurePage.class, Roles.USER); > > I have a reusable component (homemade) that generates the navigation for the > site from a database. In the database the 'secure.html' - url is specified, > but when making the link in the navigation, I need to check if the user has > right to the page. > > Now my question: Is it possible that I get the rights for my SecurePage, > when only having the 'secure.html' to start from? I tried to look into the > wicket-code, but somewhere between BookmarkablePageRequestTarget and > RequestCycle I got lost... > Hope someone can help me! Thanks for any help ! Marieke Vandamme > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/get-rights-for-mounted-url-tp2247394p2247394.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: How to still have session timeout with AjaxTimerBehavior?
yep, one thing you can do is to keep track of the time in the timer and when time is up call some url that will invalidate the session. -igor On Tue, Jun 8, 2010 at 4:12 AM, Early Morning wrote: > Hi All, > > I asked this question before in the context of wicketstuff-push, but > actually, this is a more general instance of that question: what's the best > way to still have the session timeout even though I have a timer behavior in > my page? Would it be wise to keep track of the time in the timer behavior > and invalidate the session there, or is there a better way? Thanks! > > > Regards, > > Ces > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: Invisible Page Notification?
That's why I'm wondering how common it is. Based on that e-mail discussion from 2006, a WicketRuntimeException was on the table, implying that a Page object should never be invisible. I guess a better question would be, what are the reasons for making a page invisible? Jake Igor Vaynberg-2 wrote: > > log.warn would be annoying to people who are actually setting the > visibility to false > > -igor > -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Invisible-Page-Notification-tp2247626p2247742.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 1.4.9 release: is this a stable release?
Correct On Jun 8, 2010 10:28 AM, "Ian Marshall" wrote: Hello, I apologise if my question above is out of date and therefore foolish When I visit the Apache Wicket home page, I am told "Apache Wicket 1.4.9 Released". However, when I follow the link "Go and download Wicket", then I am told that "Apache Wicket 1.4.8 is the current stable release." Can I assume that 1.4.9 is a stable release and it's just that the web page http://wicket.apache.org/getting-wicket.html has not been updated yet? Regards, Ian Marshall -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4-9-release-is-this-a-stable-release-tp2247599p2247599.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: Invisible Page Notification?
log.warn would be annoying to people who are actually setting the visibility to false -igor On Tue, Jun 8, 2010 at 8:40 AM, jbrookover wrote: > > Hey all, > > I just had a long debugging session regarding the difference between these > two lines in a WebPage: > > add(component).setVisible(getUser() != null); // Typo > add(component.setVisible(getUser() != null)); > > The first processes the page and very silently returns a completely empty > Response object to the browser. The second is what I meant to do, but the > mistake was hard to discover. > > Per a post in 2006 > (http://apache-wicket.1842946.n4.nabble.com/Nice-stupid-thing-page-setVisible-false-td1898368.html), > the decision was made regarding this behavior, but is setting a Page's > visibility common enough to do so without warning? Perhaps a log.warn? > > Thanks! > > Jake > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Invisible-Page-Notification-tp2247626p2247626.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: [Wicketstuff / Inmethod-Grid] A handful of patches
What version of inmethod are these patches based from? I't looks like 1.4.1 is quite old and 1.4.2 is still in "SNAPSHOT" http://wicketstuff.org/maven/repository/org/wicketstuff/inmethod-grid/ On Jun 7, 2010, at 10:48 AM, Charles Deal wrote: > We've been using the grid for quite some time now and have accumulated a few > changes to the codebase. I'd like to submit them for other users to review > and discuss, in the hopes that they will make it into the wicketstuff > codebase in the future. The following are brief descriptions of the attached > files. > > inmethodgrid-script.patch > This patch simply adds a resize event to the grid. We noticed that when the > browser was resized, the grid wouldn't resize until the user attempted to > scroll. > > inmethodgrid-columns.patch > Some small changes to facilitate more code reuse. > > inmethodgrid-form.patch > Move the header and toolbars into the form. This allows the header to > determine the form automatically so that, for example, when sorting a grid, > the behavior can submit the form to retain any transient changes to the grid. > > inmethodgrid-gridbehavior.patch > Refactor the AjaxFormSubmitBahvior implementation into its own class to be > used by custom behaviors. Altered the code to use the new class. > > inmethodgrid-insert.patch > Add support for adding rows to the grid. > > As I said, my team have been successfully using (almost all of) these patches > since at least June 2008. The script patch is the only one that is a recent > change. I'd appreciate some feedback and if no objections are made, I'd like > to get these patches into the scm. > - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Redirect problems after authorization when path has more 3 slashes
Hi, I use @AuthorizeInstantiation annotations to protect ajax components from unauthorized instantiation. I use mounted bookmarkable pages. I just ran into the following problem when the sign-in page redirects after successful authentication: When the url path contains more than 3 slashes the canonic path in sendRedirect defaults to NULL resulting in a WicketFilter:500 - closing the buffer error. On my pages that have less than 3 slashes forwarding after signing in works. Any ideas? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Redirect-problems-after-authorization-when-path-has-more-3-slashes-tp2247665p2247665.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: strange error
Yes.. This page works fine, this was a user submitted error from the field, even the user can't recreate it. For awhile now I've been seeing "Component doesn't exist on page" errors intermittently cropping up. This is the first time I've seen this one. Douglas On Jun 7, 2010, at 6:40 PM, nino martinez wael wrote: > well the submitted value does not match any of the id's for any of the > radio components in that hierarchy. Or at least thats what I deduct.. > Are you using ajax? > > 2010/6/7 Douglas Ferguson : >> Does anybody know what might cause this? >> >> org.apache.wicket.WicketRuntimeException:submitted http post value >> [radio-32719] for RadioGroup component [1:subPanel:linkForm:siteWide] >> is illegal because it does not contain relative path to a Radio componnet. >> Due to this the RadioGroup component cannot resolve the selected >> Radio component pointed to by the illegal value. >> A possible reason is that componment hierarchy changed between rendering and >> form submission. >> >> >> >> - >> 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
Invisible Page Notification?
Hey all, I just had a long debugging session regarding the difference between these two lines in a WebPage: add(component).setVisible(getUser() != null); // Typo add(component.setVisible(getUser() != null)); The first processes the page and very silently returns a completely empty Response object to the browser. The second is what I meant to do, but the mistake was hard to discover. Per a post in 2006 (http://apache-wicket.1842946.n4.nabble.com/Nice-stupid-thing-page-setVisible-false-td1898368.html), the decision was made regarding this behavior, but is setting a Page's visibility common enough to do so without warning? Perhaps a log.warn? Thanks! Jake -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Invisible-Page-Notification-tp2247626p2247626.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
Wicket 1.4.9 release: is this a stable release?
Hello, I apologise if my question above is out of date and therefore foolish When I visit the Apache Wicket home page, I am told "Apache Wicket 1.4.9 Released". However, when I follow the link "Go and download Wicket", then I am told that "Apache Wicket 1.4.8 is the current stable release." Can I assume that 1.4.9 is a stable release and it's just that the web page http://wicket.apache.org/getting-wicket.html has not been updated yet? Regards, Ian Marshall -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-4-9-release-is-this-a-stable-release-tp2247599p2247599.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: get resource translation with specific locale
looks like somewhere along the way we lost that ability, eg Locale#public String getString(final String key, final Component component, final IModel model, final Locale locale, final String style, final String defaultValue) is deprecated and localizer now only pulls the locale from the specified component. please add an rfe to readd this functionality. -igor On Tue, Jun 8, 2010 at 3:30 AM, Marieke Vandamme wrote: > > Hello, > > Is it possible to use the getString or some other kind of function to get > translation not in the language of the session, but one that is different? > We need this to send email, but this email is to our internal employees, so > needs to be in language other than the one that is requesting something. > > Now I save the locale from the session into a temp-locale variable, and > change the locale from the session to the email-language. Than I can use the > getString function. Afterwards I put the temp-locale variable back into the > session. I don't find this a perfect solution, so I have you guys have some > better alternative. > > Thanks for any help ! Marieke > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/get-resource-translation-with-specific-locale-tp2247162p2247162.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: DatePicker configuration isn't always working
Did you already solve your problem? I got the same problem. Thanks for any help! Ralph Weyers -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/DatePicker-configuration-isn-t-always-working-tp1878188p2247457.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: TabbedPanel with AjaxSelfUpdatingTimerBehavior
Hi Decebal, Was just an idea you will have to adapt it to your needs... It would be interesting to see why your original setting is not working: as I only was guessing an explanation which might be wrong. Best, Ernesto On Tue, Jun 8, 2010 at 3:57 PM, Decebal Suiu wrote: > > Hello Ernesto > > I understood now. I single AbstractAjaxTimerBehavior on "timerContext" > component and onTimer I will iterate through all visible components from > TabbedPanel that implements ITimerListener. One problem is that > DashboardsTab (for example) contains many auto refreshable widget panels > with various durations (panel1 at 5 seconds, panel2 at 15 seconds, etc). > What duration may I put in the single timer on "timerContext"? (the min > duration). > And I don't see the role of the hasChnaged() from ITimerListener in my case. > I want to do an auto refresh on some panels at some interval and in this > case hasChnaged() returns always true (or for example if I want to refresh > the component after 30 seconds and the unique timer has duration 10 seconds > I will ignore 2 calls?) > > Thnaks, > decebal > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/TabbedPanel-with-AjaxSelfUpdatingTimerBehavior-tp2243691p2247422.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: TabbedPanel with AjaxSelfUpdatingTimerBehavior
Hello Ernesto I understood now. I single AbstractAjaxTimerBehavior on "timerContext" component and onTimer I will iterate through all visible components from TabbedPanel that implements ITimerListener. One problem is that DashboardsTab (for example) contains many auto refreshable widget panels with various durations (panel1 at 5 seconds, panel2 at 15 seconds, etc). What duration may I put in the single timer on "timerContext"? (the min duration). And I don't see the role of the hasChnaged() from ITimerListener in my case. I want to do an auto refresh on some panels at some interval and in this case hasChnaged() returns always true (or for example if I want to refresh the component after 30 seconds and the unique timer has duration 10 seconds I will ignore 2 calls?) Thnaks, decebal -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/TabbedPanel-with-AjaxSelfUpdatingTimerBehavior-tp2243691p2247422.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
get rights for mounted url
Hello, In my application I have the following: mountBookmarkablePage("/insecure.html", InsecurePage.class); mountBookmarkablePage("/secure.html", SecurePage.class); MetaDataRoleAuthorizationStrategy.authorize(SecurePage.class, Roles.USER); I have a reusable component (homemade) that generates the navigation for the site from a database. In the database the 'secure.html' - url is specified, but when making the link in the navigation, I need to check if the user has right to the page. Now my question: Is it possible that I get the rights for my SecurePage, when only having the 'secure.html' to start from? I tried to look into the wicket-code, but somewhere between BookmarkablePageRequestTarget and RequestCycle I got lost... Hope someone can help me! Thanks for any help ! Marieke Vandamme -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/get-rights-for-mounted-url-tp2247394p2247394.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: TabbedPanel with AjaxSelfUpdatingTimerBehavior
What I meant was to have a unique timer behavior attached to something like MyTimerTabbedPanel and you attach your timer to timerContext. Then you create an interface like ITimerListener { boolean hasChnaged(); Component getComponentToRepaint(); } Then the (timer) components on the tabs implement this interface and register themselves on a list of ITimerListener you keep on MyTimerTabbedPanel. Then on the timer event you go through this list and ask the (visible) components if they have to repaint themselves. This way you timer will be always attached to the panel. This is just an idea... that might work;-) Can you create a quickstart (simplified project) for this? Best, Ernesto On Tue, Jun 8, 2010 at 2:44 PM, Decebal Suiu wrote: > > I tried your advice and I keep the timer behavior "outside" the tab, in > MyTabbedPanel. In the refreshable panel I register a listener with > MyApplication.get().addRefreshableComponent(Duration,Component). When I > select the tab with the refreshable panel all works fine but when I switch > the tab I received the same "PageExpiredException: No behavior listener > found with behaviorId". > Did I do something wrong or I misunderstood you? > > Below is the java code: > > public class MyTabbedPanel extends AjaxTabbedPanel { > > private static final long serialVersionUID = 1L; > > private List ajaxTimerBehaviors; > > public ImageTabbedPanel(String id, List tabs) { > super(id, tabs); > > ajaxTimerBehaviors = new > ArrayList(); > } > > �...@override > protected WebMarkupContainer newLink(String linkId, final int index) { > List tabs = getTabs(); > > // check for usage of our custom class, if it is not our class, > // add as image empty container - this way you can use image > only in tabs > you want > ITab currentTab = tabs.get(index); > if (currentTab instanceof ImageTab) { > final ImageTab imageTab = (ImageTab) currentTab; > return new ImageTabLink(linkId, imageTab.getImage()) { > > private static final long serialVersionUID = > 1L; > > �...@override > public void onClick(AjaxRequestTarget target) { > removeAjaxTimerBehaviors(); > clearRefreshableComponents(); > > setSelectedTab(index); > > createAjaxTimerBehaviors(); > addAjaxTimerBehaviors(); > > target.addComponent(MyTabbedPanel.this); > } > > }; > } else { > WebMarkupContainer link = super.newLink(linkId, index); > link.add(new > WebMarkupContainer("image").setVisible(false)); > > return link; > } > } > > private Map> getRefreshableComponents() { > return MyApplication.get().getRefreshableComponents(); > } > > private void clearRefreshableComponents() { > getRefreshableComponents().clear(); > } > > private void createAjaxTimerBehaviors() { > final Map> refreshableComponents = > getRefreshableComponents(); > Set durations = getRefreshableComponents().keySet(); > for (final Duration duration : durations) { > AbstractAjaxTimerBehavior behavior = new > AbstractAjaxTimerBehavior(duration) { > > private static final long serialVersionUID = > 1L; > > �...@override > protected void onTimer(AjaxRequestTarget > target) { > List components = > refreshableComponents.get(duration); > for (Component component : components) > { > target.addComponent(component); > } > } > > }; > ajaxTimerBehaviors.add(behavior); > } > } > > private void addAjaxTimerBehaviors() { > for (IBehavior behavior : ajaxTimerBehaviors) { > add(behavior); > } > } > > private void removeAjaxTimerBehaviors() { > for (AbstractAjaxTimerBehavior behavior : ajaxTimerBehaviors) { > behavior.stop(); > remove(behavior); > } > > ajaxTimerBehaviors.clear(); > } > > } > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/TabbedPanel-with
Re: [wicketstuff/wicket-contrib-jasperpreports] Is anyone supporting this?
Hi Charles, As long as wicketstuff-core builds locally with wicket-contrib-jasperreports in the core pom (as a module) you can commit the core pom. I have a hudson instance running that will build and auto deploy into the sonatype snapshot repository a 1.4.10-SNAPSHOT version of your artifacts. For an internal work release I need to cut a 1.4.9.1 wicketstuff-core release this week. If your changes work in trunk you can backport them to the wicket 1.4.9 branch and when I cut the release they will be included and deployed into the central maven repository. Regards, Mike Awesome. Thanks. I pushed up my initial set of changes. wicket-contrib-jasperreports now builds as 1.4.10-SNAPSHOT using wicketstuff-core. However, I have not added it to the wicketstuff-core build. I'll try to get on that shortly, at least it is no worse off than it was before and now at least it building closer to the newer wicketstuff projects. Next up would be actual enhancements to the code. Rodolfo mentioned some additions and I have to refactor some of my code that I wrote as a workaround so that it can be pushed back as well. Thanks for your help! That's one less project that I have to maintain a customized instance of! On Mon, Jun 7, 2010 at 6:05 PM, nino martinez wael< nino.martinez.w...@gmail.com> wrote: youve been added. As for the requirement with core, I think you just need to add the project to the pom on core, I'd suggest looking at one of the projects thats already in there (so you can copy and paste).. regards Nino 2010/6/7 Charles Deal: Excellent. sf username: cdeal First things first then. If I get some patches put into scm other people will see that it is still a viable project. Then as I get time, I'll extract some of my code into some kind of example. What are the requirements for building with core and who do I contact to get this included in the core build process? On Thu, Jun 3, 2010 at 5:24 PM, nino martinez wael< nino.martinez.w...@gmail.com> wrote: go for commit rights. And for requirements it would be good to have an example project other than that it should just be working :) 2010/6/3 Charles Deal: Is anyone out there maintaining/using this library? I am using it and I have a handful of modifications that I'd like to push back into the source tree. Should I prepare a patch and JIRA issue or shall I pursue commit access for this library? I would also like to get it hooked into the build process. It seems like I only need to add the wicketstuff-core reference to this pom and have the wicketstuff-core pom updated to include this module. What else needs to be done? Are there specific requirements for a library to be part of the wicketstuff-core build? - 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: Frustrating behavior ... same browser, same war, same tomcat version - different behavior!!!
Thanks for all the ideas and interest - I still haven't solved it. It did seem to work for a while but then as I changed a configuration to prove what was broken - I haven't been able to get it working again. I'm thinking it is some sort of caching issue - but I can't find any settings, tomcat is running as root so it shouldn't be any permission issues .. I need to move on with the project so I am probably just going to get a new virtual server built. I want to keep the old around because it is bugging the heck out of me :) On Tue, Jun 8, 2010 at 6:58 AM, nino martinez wael < nino.martinez.w...@gmail.com> wrote: > did you solve this yet? > > 2010/6/7 Bryan Montgomery : > > Thanks - this is still puzzling me. This is a virtual machine. I did just > > try the war on another virtual machine and it worked as expected. I think > > I'm about to rebuild the server. > > > > I don't have any clustering, and not using apache, just hitting tomcat > > directly. One thing I noticed from the profiling on IE8 is that on the > > servers that worked normally, the postbacks had the jsessionid appended > to > > the url. The non-working server is missing that so I'm doing a little bit > of > > digging to see if I can find a reason why that may be happening. > > > > Cheers - Bryan. > > > > On Fri, Jun 4, 2010 at 7:33 PM, Igor Vaynberg >wrote: > > > >> right, sounds like the session is being lost and the page is being > >> rerendered fresh. > >> > >> -igor > >> > >> On Fri, Jun 4, 2010 at 1:46 PM, Scott Swank > wrote: > >> > Do you have apache or a load balancer or anything else in the network? > >> > Is there maybe a simple difference in your httpd.conf pertaining to > >> > sessions? > >> > > >> > On Fri, Jun 4, 2010 at 1:32 PM, Bryan Montgomery > >> wrote: > >> >> Thanks for the ideas. Still no joy. > >> >> > >> >> The behavior is consistent between three different clients, all > running > >> >> different versions of IE (6,7 and 8). > >> >> I was able to use the debugging feature built in to IE 8 to see that > the > >> >> wicket ajax javascript was gettting called. At some point in that > >> process it > >> >> lost the value of the field and it got set to an empty field. > >> >> > >> >> I have the feeling that there is something different with the > >> environment on > >> >> this particular server - but I have no idea what at this point. > >> >> > >> >> On Fri, Jun 4, 2010 at 1:32 PM, gnul wrote: > >> >> > >> >>> > > >> >>> > Essentially, part of the process generates dynamic web forms based > on > >> xml > >> >>> > configuration files. We noticed that on one of our servers when we > >> >>> deployed > >> >>> > the war file that the fields would not hold their values, and as > soon > >> as > >> >>> you > >> >>> > tabbed out, the entry would disappear. Taking the same war file > and > >> >>> > deploying it to another server the form acts as expected. > >> >>> > > >> >>> > >> >>> If it works on one server, but not the other, and they are > configured > >> >>> the same (meaning same appserver/tomcat version, same jvm, same > >> >>> user/group/perms, etc.), the first thing I do is "clean" the > appserver > >> >>> and do a fresh deploy. > >> >>> > >> >>> For example, say you are deploying to /var/lib/tomcat/webapps/, I > >> >>> would shutdown both tomcats, remove the exploded directories (e.g. > >> >>> myapp.war => myapp/ ) and re-deploy the war files to each server. I > >> >>> would also clean out tomcat's temp directory (e.g. > >> >>> /var/cache/tomcat5/temp), then restart them both. > >> >>> > >> >>> -gnul > >> >>> > >> >>> > - > >> >>> 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: TabbedPanel with AjaxSelfUpdatingTimerBehavior
I tried your advice and I keep the timer behavior "outside" the tab, in MyTabbedPanel. In the refreshable panel I register a listener with MyApplication.get().addRefreshableComponent(Duration,Component). When I select the tab with the refreshable panel all works fine but when I switch the tab I received the same "PageExpiredException: No behavior listener found with behaviorId". Did I do something wrong or I misunderstood you? Below is the java code: public class MyTabbedPanel extends AjaxTabbedPanel { private static final long serialVersionUID = 1L; private List ajaxTimerBehaviors; public ImageTabbedPanel(String id, List tabs) { super(id, tabs); ajaxTimerBehaviors = new ArrayList(); } @Override protected WebMarkupContainer newLink(String linkId, final int index) { List tabs = getTabs(); // check for usage of our custom class, if it is not our class, // add as image empty container - this way you can use image only in tabs you want ITab currentTab = tabs.get(index); if (currentTab instanceof ImageTab) { final ImageTab imageTab = (ImageTab) currentTab; return new ImageTabLink(linkId, imageTab.getImage()) { private static final long serialVersionUID = 1L; @Override public void onClick(AjaxRequestTarget target) { removeAjaxTimerBehaviors(); clearRefreshableComponents(); setSelectedTab(index); createAjaxTimerBehaviors(); addAjaxTimerBehaviors(); target.addComponent(MyTabbedPanel.this); } }; } else { WebMarkupContainer link = super.newLink(linkId, index); link.add(new WebMarkupContainer("image").setVisible(false)); return link; } } private Map> getRefreshableComponents() { return MyApplication.get().getRefreshableComponents(); } private void clearRefreshableComponents() { getRefreshableComponents().clear(); } private void createAjaxTimerBehaviors() { final Map> refreshableComponents = getRefreshableComponents(); Set durations = getRefreshableComponents().keySet(); for (final Duration duration : durations) { AbstractAjaxTimerBehavior behavior = new AbstractAjaxTimerBehavior(duration) { private static final long serialVersionUID = 1L; @Override protected void onTimer(AjaxRequestTarget target) { List components = refreshableComponents.get(duration); for (Component component : components) { target.addComponent(component); } } }; ajaxTimerBehaviors.add(behavior); } } private void addAjaxTimerBehaviors() { for (IBehavior behavior : ajaxTimerBehaviors) { add(behavior); } } private void removeAjaxTimerBehaviors() { for (AbstractAjaxTimerBehavior behavior : ajaxTimerBehaviors) { behavior.stop(); remove(behavior); } ajaxTimerBehaviors.clear(); } } -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/TabbedPanel-with-AjaxSelfUpdatingTimerBehavior-tp2243691p2247320.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: [wicketstuff/wicket-contrib-jasperpreports] Is anyone supporting this?
Awesome. Thanks. I pushed up my initial set of changes. wicket-contrib-jasperreports now builds as 1.4.10-SNAPSHOT using wicketstuff-core. However, I have not added it to the wicketstuff-core build. I'll try to get on that shortly, at least it is no worse off than it was before and now at least it building closer to the newer wicketstuff projects. Next up would be actual enhancements to the code. Rodolfo mentioned some additions and I have to refactor some of my code that I wrote as a workaround so that it can be pushed back as well. Thanks for your help! That's one less project that I have to maintain a customized instance of! On Mon, Jun 7, 2010 at 6:05 PM, nino martinez wael < nino.martinez.w...@gmail.com> wrote: > youve been added. > > As for the requirement with core, I think you just need to add the > project to the pom on core, I'd suggest looking at one of the projects > thats already in there (so you can copy and paste).. > > regards Nino > > 2010/6/7 Charles Deal : > > Excellent. sf username: cdeal > > > > First things first then. If I get some patches put into scm other people > > will see that it is still a viable project. Then as I get time, I'll > > extract some of my code into some kind of example. > > > > What are the requirements for building with core and who do I contact to > get > > this included in the core build process? > > > > On Thu, Jun 3, 2010 at 5:24 PM, nino martinez wael < > > nino.martinez.w...@gmail.com> wrote: > > > >> go for commit rights. And for requirements it would be good to have an > >> example project other than that it should just be working :) > >> > >> > >> > >> 2010/6/3 Charles Deal : > >> > Is anyone out there maintaining/using this library? > >> > > >> > I am using it and I have a handful of modifications that I'd like to > push > >> > back into the source tree. Should I prepare a patch and JIRA issue or > >> shall > >> > I pursue commit access for this library? > >> > > >> > I would also like to get it hooked into the build process. It seems > like > >> I > >> > only need to add the wicketstuff-core reference to this pom and have > the > >> > wicketstuff-core pom updated to include this module. What else needs > to > >> be > >> > done? Are there specific requirements for a library to be part of the > >> > wicketstuff-core build? > >> > > >> > >> - > >> 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: Guice & Wicket Guice Proxy
Cemal are you talking about guice persist? Anyhow very nice :) 2010/6/8 Cemal Bayramoglu : > Nino, > > Now that a Warp 2.0 snapshot (which works with Guice 2) is on a Maven > repo, we will upgrade the affected LegUp s [1]. Look out for an > announcement, hopefully in the next week or so. > > Regards - Cemal > jWeekend > OO & Java Technologies, Wicket > Consulting, Development, Training > http://jWeekend.com > > [1] http://jweekend.co.uk/dev/LegUp > > > > > On 8 June 2010 11:56, nino martinez wael wrote: >> Hi yaniv >> >> replying inline.. And thanks for the ideas. >> >> 2010/6/8 yaniv kessler : >>> Perhaps inject the model instead of manually creating it or maybe inject a >>> data service into the page and use that reference in the model. My point is, >>> passing the injector around (or in this case InjectorHolder), should be >>> avoided, since as it degrades the entire Guice DI into a simple service >>> locator pattern (which has its uses and shortcomings) >> Yeah I know and it annoys me too. So what you are saying is that the >> the ioc serialise proxy will be discovered in my ldm and be replaced >> on deserialise, also if I do not use injectorholder (that makes sense >> to me). The idea behind using injectorholder directly was because I >> wanted the ldm to be selfcontained. >>> >>> Anyways, putting code habits aside, I was unable to understand from your >>> last mail if you succeeded in solving your problem, did you ? >> Well I've started a quickstart project (based on the legup archetype, >> but "upgraded" to guice 2) to trace what I am doing wrong, and have >> been unable to replicate the problem so far. I'll continue searching >> for what I've done wrong in the non working project. >>> >>> On Tue, Jun 8, 2010 at 2:26 AM, nino martinez wael < >>> nino.martinez.w...@gmail.com> wrote: >>> Well as I manually create the the loadabledetachmodel which extends the ClassWithDao, it has to call injectorholder. I am not aware of any other method that can solve this.. 2010/6/8 yaniv kessler : > I agree with Jorge here and additionally, would like to ask what is the > motivation to use InjectorHolder directly? > > Are you simply doing new ClassWithDao() somewhere in your code ? > > On Mon, Jun 7, 2010 at 9:21 PM, Jorge Rodrigez wrote: > >> Why phoneDao is transient ? >> Wicket-Guice injects a Serializable proxy and thus after deserialization >> the >> field will be non-null. >> >> On Mon, Jun 7, 2010 at 7:31 PM, nino martinez wael < >> nino.martinez.w...@gmail.com> wrote: >> >> > sure: >> > >> > public class ClassWithDao { >> > >> > public ClassWithDao() { >> > InjectorHolder.getInjector().inject(this); >> > } >> > >> > @Inject >> > private transient PhoneDao phoneDao; >> > >> > public PhoneDao getPhoneDao() { >> > return phoneDao; >> > } >> > >> > public void setPhoneDao(PhoneDao phoneDao) { >> > this.phoneDao = phoneDao; >> > } >> > >> > That's where I get the failure... And the working version you have seen.. >> > >> > 2010/6/7 yaniv kessler : >> > > Nino, can you show the ClassWithDao code before the so called >> "ugliness" >> > was >> > > introduced? >> > > >> > > On Sun, Jun 6, 2010 at 1:44 PM, nino martinez wael < >> > > nino.martinez.w...@gmail.com> wrote: >> > > >> > >> im still working on the quickstart.. So far I've been unable to >> > >> replicate.. I'll continue tomorrow >> > >> >> > >> 2010/6/5 nino martinez wael : >> > >> > I was too quick to say it worked, as it appears it does not. I'll >> try >> > >> > to make a quickstart based on legup, where should I put it? Just on >> > >> > jira? >> > >> > >> > >> > -Nino >> > >> > >> > >> > 2010/6/4 nino martinez wael : >> > >> >> yeah me too, what Igor said worked so must be true or a bug.. I >> don't >> > >> >> think it's a bug.. >> > >> >> >> > >> >> 2010/6/3 James Carman : >> > >> >>> I thought the filters were executed in the order of their >> > >> >>> filter-mappings, not their filter definitions. >> > >> >>> >> > >> >>> On Thu, Jun 3, 2010 at 5:23 PM, nino martinez wael >> > >> >>> wrote: >> > >> Argh, how stupid.. Thanks a lot igor, how can I buy you a beer or >> > >> Coke? >> > >> >> > >> I spend a tremendous time trying to figure out what was wrong. I >> > even >> > >> considered going back to spring.. >> > >> >> > >> regards Nino >> > >> >> > >> 2010/6/3 Igor Vaynberg : >> > >> > noep, the filters are processed in the order they are defined in >> > >> > web.xml, mo
inmethod-grid filtering
Hi, Has anyone added filtering capabilities to the inmethod-grid component? Thanks, Josh
Re: Guice & Wicket Guice Proxy
Nino, Now that a Warp 2.0 snapshot (which works with Guice 2) is on a Maven repo, we will upgrade the affected LegUp s [1]. Look out for an announcement, hopefully in the next week or so. Regards - Cemal jWeekend OO & Java Technologies, Wicket Consulting, Development, Training http://jWeekend.com [1] http://jweekend.co.uk/dev/LegUp On 8 June 2010 11:56, nino martinez wael wrote: > Hi yaniv > > replying inline.. And thanks for the ideas. > > 2010/6/8 yaniv kessler : >> Perhaps inject the model instead of manually creating it or maybe inject a >> data service into the page and use that reference in the model. My point is, >> passing the injector around (or in this case InjectorHolder), should be >> avoided, since as it degrades the entire Guice DI into a simple service >> locator pattern (which has its uses and shortcomings) > Yeah I know and it annoys me too. So what you are saying is that the > the ioc serialise proxy will be discovered in my ldm and be replaced > on deserialise, also if I do not use injectorholder (that makes sense > to me). The idea behind using injectorholder directly was because I > wanted the ldm to be selfcontained. >> >> Anyways, putting code habits aside, I was unable to understand from your >> last mail if you succeeded in solving your problem, did you ? > Well I've started a quickstart project (based on the legup archetype, > but "upgraded" to guice 2) to trace what I am doing wrong, and have > been unable to replicate the problem so far. I'll continue searching > for what I've done wrong in the non working project. >> >> On Tue, Jun 8, 2010 at 2:26 AM, nino martinez wael < >> nino.martinez.w...@gmail.com> wrote: >> >>> Well as I manually create the the loadabledetachmodel which extends >>> the ClassWithDao, it has to call injectorholder. I am not aware of any >>> other method that can solve this.. >>> >>> 2010/6/8 yaniv kessler : >>> > I agree with Jorge here and additionally, would like to ask what is the >>> > motivation to use InjectorHolder directly? >>> > >>> > Are you simply doing new ClassWithDao() somewhere in your code ? >>> > >>> > On Mon, Jun 7, 2010 at 9:21 PM, Jorge Rodrigez >>> wrote: >>> > >>> >> Why phoneDao is transient ? >>> >> Wicket-Guice injects a Serializable proxy and thus after deserialization >>> >> the >>> >> field will be non-null. >>> >> >>> >> On Mon, Jun 7, 2010 at 7:31 PM, nino martinez wael < >>> >> nino.martinez.w...@gmail.com> wrote: >>> >> >>> >> > sure: >>> >> > >>> >> > public class ClassWithDao { >>> >> > >>> >> > public ClassWithDao() { >>> >> > InjectorHolder.getInjector().inject(this); >>> >> > } >>> >> > >>> >> > @Inject >>> >> > private transient PhoneDao phoneDao; >>> >> > >>> >> > public PhoneDao getPhoneDao() { >>> >> > return phoneDao; >>> >> > } >>> >> > >>> >> > public void setPhoneDao(PhoneDao phoneDao) { >>> >> > this.phoneDao = phoneDao; >>> >> > } >>> >> > >>> >> > That's where I get the failure... And the working version you have >>> seen.. >>> >> > >>> >> > 2010/6/7 yaniv kessler : >>> >> > > Nino, can you show the ClassWithDao code before the so called >>> >> "ugliness" >>> >> > was >>> >> > > introduced? >>> >> > > >>> >> > > On Sun, Jun 6, 2010 at 1:44 PM, nino martinez wael < >>> >> > > nino.martinez.w...@gmail.com> wrote: >>> >> > > >>> >> > >> im still working on the quickstart.. So far I've been unable to >>> >> > >> replicate.. I'll continue tomorrow >>> >> > >> >>> >> > >> 2010/6/5 nino martinez wael : >>> >> > >> > I was too quick to say it worked, as it appears it does not. I'll >>> >> try >>> >> > >> > to make a quickstart based on legup, where should I put it? Just >>> on >>> >> > >> > jira? >>> >> > >> > >>> >> > >> > -Nino >>> >> > >> > >>> >> > >> > 2010/6/4 nino martinez wael : >>> >> > >> >> yeah me too, what Igor said worked so must be true or a bug.. I >>> >> don't >>> >> > >> >> think it's a bug.. >>> >> > >> >> >>> >> > >> >> 2010/6/3 James Carman : >>> >> > >> >>> I thought the filters were executed in the order of their >>> >> > >> >>> filter-mappings, not their filter definitions. >>> >> > >> >>> >>> >> > >> >>> On Thu, Jun 3, 2010 at 5:23 PM, nino martinez wael >>> >> > >> >>> wrote: >>> >> > >> Argh, how stupid.. Thanks a lot igor, how can I buy you a beer >>> or >>> >> > >> Coke? >>> >> > >> >>> >> > >> I spend a tremendous time trying to figure out what was wrong. >>> I >>> >> > even >>> >> > >> considered going back to spring.. >>> >> > >> >>> >> > >> regards Nino >>> >> > >> >>> >> > >> 2010/6/3 Igor Vaynberg : >>> >> > >> > noep, the filters are processed in the order they are defined >>> in >>> >> > >> > web.xml, move the wicket filter decl below the warp persist >>> >> stuff. >>> >> > >> > >>> >> > >> > -igor >>> >> > >> > >>> >> > >> > On Thu, Jun 3, 2010 at 1:05 PM, nino martinez wael >>> >> > >> > wrote: >>> >> > >> >> y
How to still have session timeout with AjaxTimerBehavior?
Hi All, I asked this question before in the context of wicketstuff-push, but actually, this is a more general instance of that question: what's the best way to still have the session timeout even though I have a timer behavior in my page? Would it be wise to keep track of the time in the timer behavior and invalidate the session there, or is there a better way? Thanks! Regards, Ces
Re: Frustrating behavior ... same browser, same war, same tomcat version - different behavior!!!
did you solve this yet? 2010/6/7 Bryan Montgomery : > Thanks - this is still puzzling me. This is a virtual machine. I did just > try the war on another virtual machine and it worked as expected. I think > I'm about to rebuild the server. > > I don't have any clustering, and not using apache, just hitting tomcat > directly. One thing I noticed from the profiling on IE8 is that on the > servers that worked normally, the postbacks had the jsessionid appended to > the url. The non-working server is missing that so I'm doing a little bit of > digging to see if I can find a reason why that may be happening. > > Cheers - Bryan. > > On Fri, Jun 4, 2010 at 7:33 PM, Igor Vaynberg wrote: > >> right, sounds like the session is being lost and the page is being >> rerendered fresh. >> >> -igor >> >> On Fri, Jun 4, 2010 at 1:46 PM, Scott Swank wrote: >> > Do you have apache or a load balancer or anything else in the network? >> > Is there maybe a simple difference in your httpd.conf pertaining to >> > sessions? >> > >> > On Fri, Jun 4, 2010 at 1:32 PM, Bryan Montgomery >> wrote: >> >> Thanks for the ideas. Still no joy. >> >> >> >> The behavior is consistent between three different clients, all running >> >> different versions of IE (6,7 and 8). >> >> I was able to use the debugging feature built in to IE 8 to see that the >> >> wicket ajax javascript was gettting called. At some point in that >> process it >> >> lost the value of the field and it got set to an empty field. >> >> >> >> I have the feeling that there is something different with the >> environment on >> >> this particular server - but I have no idea what at this point. >> >> >> >> On Fri, Jun 4, 2010 at 1:32 PM, gnul wrote: >> >> >> >>> > >> >>> > Essentially, part of the process generates dynamic web forms based on >> xml >> >>> > configuration files. We noticed that on one of our servers when we >> >>> deployed >> >>> > the war file that the fields would not hold their values, and as soon >> as >> >>> you >> >>> > tabbed out, the entry would disappear. Taking the same war file and >> >>> > deploying it to another server the form acts as expected. >> >>> > >> >>> >> >>> If it works on one server, but not the other, and they are configured >> >>> the same (meaning same appserver/tomcat version, same jvm, same >> >>> user/group/perms, etc.), the first thing I do is "clean" the appserver >> >>> and do a fresh deploy. >> >>> >> >>> For example, say you are deploying to /var/lib/tomcat/webapps/, I >> >>> would shutdown both tomcats, remove the exploded directories (e.g. >> >>> myapp.war => myapp/ ) and re-deploy the war files to each server. I >> >>> would also clean out tomcat's temp directory (e.g. >> >>> /var/cache/tomcat5/temp), then restart them both. >> >>> >> >>> -gnul >> >>> >> >>> - >> >>> 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: Guice & Wicket Guice Proxy
Hi yaniv replying inline.. And thanks for the ideas. 2010/6/8 yaniv kessler : > Perhaps inject the model instead of manually creating it or maybe inject a > data service into the page and use that reference in the model. My point is, > passing the injector around (or in this case InjectorHolder), should be > avoided, since as it degrades the entire Guice DI into a simple service > locator pattern (which has its uses and shortcomings) Yeah I know and it annoys me too. So what you are saying is that the the ioc serialise proxy will be discovered in my ldm and be replaced on deserialise, also if I do not use injectorholder (that makes sense to me). The idea behind using injectorholder directly was because I wanted the ldm to be selfcontained. > > Anyways, putting code habits aside, I was unable to understand from your > last mail if you succeeded in solving your problem, did you ? Well I've started a quickstart project (based on the legup archetype, but "upgraded" to guice 2) to trace what I am doing wrong, and have been unable to replicate the problem so far. I'll continue searching for what I've done wrong in the non working project. > > On Tue, Jun 8, 2010 at 2:26 AM, nino martinez wael < > nino.martinez.w...@gmail.com> wrote: > >> Well as I manually create the the loadabledetachmodel which extends >> the ClassWithDao, it has to call injectorholder. I am not aware of any >> other method that can solve this.. >> >> 2010/6/8 yaniv kessler : >> > I agree with Jorge here and additionally, would like to ask what is the >> > motivation to use InjectorHolder directly? >> > >> > Are you simply doing new ClassWithDao() somewhere in your code ? >> > >> > On Mon, Jun 7, 2010 at 9:21 PM, Jorge Rodrigez >> wrote: >> > >> >> Why phoneDao is transient ? >> >> Wicket-Guice injects a Serializable proxy and thus after deserialization >> >> the >> >> field will be non-null. >> >> >> >> On Mon, Jun 7, 2010 at 7:31 PM, nino martinez wael < >> >> nino.martinez.w...@gmail.com> wrote: >> >> >> >> > sure: >> >> > >> >> > public class ClassWithDao { >> >> > >> >> > public ClassWithDao() { >> >> > InjectorHolder.getInjector().inject(this); >> >> > } >> >> > >> >> > @Inject >> >> > private transient PhoneDao phoneDao; >> >> > >> >> > public PhoneDao getPhoneDao() { >> >> > return phoneDao; >> >> > } >> >> > >> >> > public void setPhoneDao(PhoneDao phoneDao) { >> >> > this.phoneDao = phoneDao; >> >> > } >> >> > >> >> > That's where I get the failure... And the working version you have >> seen.. >> >> > >> >> > 2010/6/7 yaniv kessler : >> >> > > Nino, can you show the ClassWithDao code before the so called >> >> "ugliness" >> >> > was >> >> > > introduced? >> >> > > >> >> > > On Sun, Jun 6, 2010 at 1:44 PM, nino martinez wael < >> >> > > nino.martinez.w...@gmail.com> wrote: >> >> > > >> >> > >> im still working on the quickstart.. So far I've been unable to >> >> > >> replicate.. I'll continue tomorrow >> >> > >> >> >> > >> 2010/6/5 nino martinez wael : >> >> > >> > I was too quick to say it worked, as it appears it does not. I'll >> >> try >> >> > >> > to make a quickstart based on legup, where should I put it? Just >> on >> >> > >> > jira? >> >> > >> > >> >> > >> > -Nino >> >> > >> > >> >> > >> > 2010/6/4 nino martinez wael : >> >> > >> >> yeah me too, what Igor said worked so must be true or a bug.. I >> >> don't >> >> > >> >> think it's a bug.. >> >> > >> >> >> >> > >> >> 2010/6/3 James Carman : >> >> > >> >>> I thought the filters were executed in the order of their >> >> > >> >>> filter-mappings, not their filter definitions. >> >> > >> >>> >> >> > >> >>> On Thu, Jun 3, 2010 at 5:23 PM, nino martinez wael >> >> > >> >>> wrote: >> >> > >> Argh, how stupid.. Thanks a lot igor, how can I buy you a beer >> or >> >> > >> Coke? >> >> > >> >> >> > >> I spend a tremendous time trying to figure out what was wrong. >> I >> >> > even >> >> > >> considered going back to spring.. >> >> > >> >> >> > >> regards Nino >> >> > >> >> >> > >> 2010/6/3 Igor Vaynberg : >> >> > >> > noep, the filters are processed in the order they are defined >> in >> >> > >> > web.xml, move the wicket filter decl below the warp persist >> >> stuff. >> >> > >> > >> >> > >> > -igor >> >> > >> > >> >> > >> > On Thu, Jun 3, 2010 at 1:05 PM, nino martinez wael >> >> > >> > wrote: >> >> > >> >> yes, i think so: >> >> > >> >> >> >> > >> >> >> >> > >> >> http://java.sun.com/xml/ns/j2ee"; >> >> > >> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; >> >> > >> >> xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee >> >> > >> >> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; >> >> > >> >> version="2.4"> >> >> > >> >> >> >> > >> >> IVR Web frontend >> >> > >> >> >> >> > >> >> >> >> > >> >> wicket.WicketWarp >> >> >
get resource translation with specific locale
Hello, Is it possible to use the getString or some other kind of function to get translation not in the language of the session, but one that is different? We need this to send email, but this email is to our internal employees, so needs to be in language other than the one that is requesting something. Now I save the locale from the session into a temp-locale variable, and change the locale from the session to the email-language. Than I can use the getString function. Afterwards I put the temp-locale variable back into the session. I don't find this a perfect solution, so I have you guys have some better alternative. Thanks for any help ! Marieke -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/get-resource-translation-with-specific-locale-tp2247162p2247162.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: Guice & Wicket Guice Proxy
Perhaps inject the model instead of manually creating it or maybe inject a data service into the page and use that reference in the model. My point is, passing the injector around (or in this case InjectorHolder), should be avoided, since as it degrades the entire Guice DI into a simple service locator pattern (which has its uses and shortcomings) Anyways, putting code habits aside, I was unable to understand from your last mail if you succeeded in solving your problem, did you ? On Tue, Jun 8, 2010 at 2:26 AM, nino martinez wael < nino.martinez.w...@gmail.com> wrote: > Well as I manually create the the loadabledetachmodel which extends > the ClassWithDao, it has to call injectorholder. I am not aware of any > other method that can solve this.. > > 2010/6/8 yaniv kessler : > > I agree with Jorge here and additionally, would like to ask what is the > > motivation to use InjectorHolder directly? > > > > Are you simply doing new ClassWithDao() somewhere in your code ? > > > > On Mon, Jun 7, 2010 at 9:21 PM, Jorge Rodrigez > wrote: > > > >> Why phoneDao is transient ? > >> Wicket-Guice injects a Serializable proxy and thus after deserialization > >> the > >> field will be non-null. > >> > >> On Mon, Jun 7, 2010 at 7:31 PM, nino martinez wael < > >> nino.martinez.w...@gmail.com> wrote: > >> > >> > sure: > >> > > >> > public class ClassWithDao { > >> > > >> > public ClassWithDao() { > >> > InjectorHolder.getInjector().inject(this); > >> > } > >> > > >> > @Inject > >> > private transient PhoneDao phoneDao; > >> > > >> > public PhoneDao getPhoneDao() { > >> > return phoneDao; > >> > } > >> > > >> > public void setPhoneDao(PhoneDao phoneDao) { > >> > this.phoneDao = phoneDao; > >> > } > >> > > >> > That's where I get the failure... And the working version you have > seen.. > >> > > >> > 2010/6/7 yaniv kessler : > >> > > Nino, can you show the ClassWithDao code before the so called > >> "ugliness" > >> > was > >> > > introduced? > >> > > > >> > > On Sun, Jun 6, 2010 at 1:44 PM, nino martinez wael < > >> > > nino.martinez.w...@gmail.com> wrote: > >> > > > >> > >> im still working on the quickstart.. So far I've been unable to > >> > >> replicate.. I'll continue tomorrow > >> > >> > >> > >> 2010/6/5 nino martinez wael : > >> > >> > I was too quick to say it worked, as it appears it does not. I'll > >> try > >> > >> > to make a quickstart based on legup, where should I put it? Just > on > >> > >> > jira? > >> > >> > > >> > >> > -Nino > >> > >> > > >> > >> > 2010/6/4 nino martinez wael : > >> > >> >> yeah me too, what Igor said worked so must be true or a bug.. I > >> don't > >> > >> >> think it's a bug.. > >> > >> >> > >> > >> >> 2010/6/3 James Carman : > >> > >> >>> I thought the filters were executed in the order of their > >> > >> >>> filter-mappings, not their filter definitions. > >> > >> >>> > >> > >> >>> On Thu, Jun 3, 2010 at 5:23 PM, nino martinez wael > >> > >> >>> wrote: > >> > >> Argh, how stupid.. Thanks a lot igor, how can I buy you a beer > or > >> > >> Coke? > >> > >> > >> > >> I spend a tremendous time trying to figure out what was wrong. > I > >> > even > >> > >> considered going back to spring.. > >> > >> > >> > >> regards Nino > >> > >> > >> > >> 2010/6/3 Igor Vaynberg : > >> > >> > noep, the filters are processed in the order they are defined > in > >> > >> > web.xml, move the wicket filter decl below the warp persist > >> stuff. > >> > >> > > >> > >> > -igor > >> > >> > > >> > >> > On Thu, Jun 3, 2010 at 1:05 PM, nino martinez wael > >> > >> > wrote: > >> > >> >> yes, i think so: > >> > >> >> > >> > >> >> > >> > >> >> http://java.sun.com/xml/ns/j2ee"; > >> > >> >> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"; > >> > >> >>xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee > >> > >> >> http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd"; > >> > >> >>version="2.4"> > >> > >> >> > >> > >> >>IVR Web frontend > >> > >> >> > >> > >> >> > >> > >> >>wicket.WicketWarp > >> > >> >> > >> > >> > >> > > >> > org.apache.wicket.protocol.http.WicketFilter > >> > >> >> > >> > >> >> > >> > applicationClassName > >> > >> >> > >> > >> > >> > > >> > com.netdesign.codan.webadmin.WicketApplication > >> > >> >> > >> > >> >> > >> > >> >> > >> > >> >> > configuration > >> > >> >>deployment > >> > >> >> > >> > >> >> > >> > >> >> > >> > >> >> > >> > >> >>warpPersistFilter > >> > >> >> > >> > >> > >> > > com.wideplay.warp.persist.PersistenceFilter > >> > >> >> > >> > >> >> > >> > >> >> > >> > >> >>warpPersistFilter > >> > >> >>
Re: Using Javascripts Within Wicket
> In the header of my page, I'd like to add a picture-slide-show kind of > thing. That is, my header will be containing a picture, that will e.g. > fade > out every 5 seconds and a new picture would take it's place. > > After googling, I didn't manage to find any wicket components that can > do > this. I know I could find some javascripts to do the job, but last time > I > tried to use javascript within my wicket web site, it failed, so I just > gave > up javascript that time, but now it seems that I have no other > solution. Wicket ships with YUI components, but not sure which version; in any case, there is a YUI slideshow component here: http://yuilibrary.com/gallery/show/yui-slideshow - Tor Iver - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Using Javascripts Within Wicket
Hello everyone, I'm making a website using Wicket and I need some help. In the header of my page, I'd like to add a picture-slide-show kind of thing. That is, my header will be containing a picture, that will e.g. fade out every 5 seconds and a new picture would take it's place. After googling, I didn't manage to find any wicket components that can do this. I know I could find some javascripts to do the job, but last time I tried to use javascript within my wicket web site, it failed, so I just gave up javascript that time, but now it seems that I have no other solution. Can you please give me some guidelines on how to integrate javascripts in my wicket page, without having to rely on Ajax? p.s. Yes, I did my google homework, but it failed me. :( Thanks in advance, Emir -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Using-Javascripts-Within-Wicket-tp2246988p2246988.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