Using Javascripts Within Wicket

2010-06-08 Thread WTdewd
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,

Re: Using Javascripts Within Wicket

2010-06-08 Thread Wilhelmsen Tor Iver
> 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 >

Re: Guice & Wicket Guice Proxy

2010-06-08 Thread 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 loc

get resource translation with specific locale

2010-06-08 Thread Marieke Vandamme
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 so

Re: Guice & Wicket Guice Proxy

2010-06-08 Thread nino martinez wael
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),

Re: Frustrating behavior ... same browser, same war, same tomcat version - different behavior!!!

2010-06-08 Thread nino martinez wael
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

How to still have session timeout with AjaxTimerBehavior?

2010-06-08 Thread Early Morning
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 beh

Re: Guice & Wicket Guice Proxy

2010-06-08 Thread 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

inmethod-grid filtering

2010-06-08 Thread Josh Chappelle
Hi, Has anyone added filtering capabilities to the inmethod-grid component? Thanks, Josh

Re: Guice & Wicket Guice Proxy

2010-06-08 Thread nino martinez wael
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. > > Rega

Re: [wicketstuff/wicket-contrib-jasperpreports] Is anyone supporting this?

2010-06-08 Thread Charles Deal
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

Re: TabbedPanel with AjaxSelfUpdatingTimerBehavior

2010-06-08 Thread Decebal Suiu
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 r

Re: Frustrating behavior ... same browser, same war, same tomcat version - different behavior!!!

2010-06-08 Thread Bryan Montgomery
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

Re: [wicketstuff/wicket-contrib-jasperpreports] Is anyone supporting this?

2010-06-08 Thread Michael O'Cleirigh
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 artifa

Re: TabbedPanel with AjaxSelfUpdatingTimerBehavior

2010-06-08 Thread Ernesto Reinaldo Barreiro
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

get rights for mounted url

2010-06-08 Thread Marieke Vandamme
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 t

Re: TabbedPanel with AjaxSelfUpdatingTimerBehavior

2010-06-08 Thread Decebal Suiu
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 w

Re: TabbedPanel with AjaxSelfUpdatingTimerBehavior

2010-06-08 Thread Ernesto Reinaldo Barreiro
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

Re: DatePicker configuration isn't always working

2010-06-08 Thread rawe
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 Nab

Re: get resource translation with specific locale

2010-06-08 Thread Igor Vaynberg
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 spec

Wicket 1.4.9 release: is this a stable release?

2010-06-08 Thread Ian Marshall
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."

Invisible Page Notification?

2010-06-08 Thread jbrookover
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 obje

Re: strange error

2010-06-08 Thread Douglas Ferguson
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, ni

Redirect problems after authorization when path has more 3 slashes

2010-06-08 Thread 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 ca

Re: [Wicketstuff / Inmethod-Grid] A handful of patches

2010-06-08 Thread Douglas Ferguson
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 n

Re: Invisible Page Notification?

2010-06-08 Thread Igor Vaynberg
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(getUse

Re: Wicket 1.4.9 release: is this a stable release?

2010-06-08 Thread Jeremy Thomerson
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

Re: Invisible Page Notification?

2010-06-08 Thread jbrookover
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 wr

Re: How to still have session timeout with AjaxTimerBehavior?

2010-06-08 Thread Igor Vaynberg
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 i

Re: get rights for mounted url

2010-06-08 Thread Igor Vaynberg
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 metadataroleauthor

Re: Redirect problems after authorization when path has more 3 slashes

2010-06-08 Thread Igor Vaynberg
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 redir

Re: Guice & Wicket Guice Proxy

2010-06-08 Thread nino martinez wael
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 : >

Re: [Wicketstuff / Inmethod-Grid] A handful of patches

2010-06-08 Thread Charles Deal
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, 2

Re: inmethod-grid filtering

2010-06-08 Thread nino martinez wael
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 t

Re: [Wicketstuff / Inmethod-Grid] A handful of patches

2010-06-08 Thread Douglas Ferguson
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 cod

RE: inmethod-grid filtering

2010-06-08 Thread Josh Chappelle
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

Re: Guice & Wicket Guice Proxy

2010-06-08 Thread yaniv kessler
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

Re: Invisible Page Notification?

2010-06-08 Thread Thomas Matthijs
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 rea

selected links in a menu

2010-06-08 Thread Fernando Wermus
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

Re: selected links in a menu

2010-06-08 Thread Igor Vaynberg
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 follow

Re: [Wicketstuff / Inmethod-Grid] A handful of patches

2010-06-08 Thread Charles Deal
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 suppli

How to get a value of textfield on onBlur event..

2010-06-08 Thread jammyjohn
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);

CompoundPropertymodel loses object after form submit

2010-06-08 Thread Bergmann Manfred
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 r

RE: [announce] Wicket Security 1.4 released!

2010-06-08 Thread Ben Swenka
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 Secu

Re: How to get a value of textfield on onBlur event..

2010-06-08 Thread Gerolf Seitz
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 TextF

Re: CompoundPropertymodel loses object after form submit

2010-06-08 Thread yaniv kessler
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

Re: How to get a value of textfield on onBlur event..

2010-06-08 Thread jammyjohn
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

Re: How to get a value of textfield on onBlur event..

2010-06-08 Thread Fausto Argeni Bencosme Doñe
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 dtoMo

Re: [Wicketstuff / Inmethod-Grid] A handful of patches

2010-06-08 Thread Douglas Ferguson
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/svnro