Automatically avoid executing component code when not authorized for instantiation?

2009-11-13 Thread Early Morning
Hi All, There are cases wherein a user is authorized to view a page, but not a component within that page. Currently we set the authorizations needed for a component using a custom annotation, and handle the Render and Enable actions in a custom AuthorizationStrategy. However, we also have to hand

How to make a feedback panel appear on page load?

2009-11-30 Thread Early Morning
Hi, I'm trying to make a feedback panel appear immadiately after page load (such as when you search and the results appear in a new page, but there is an error), but even if I call error(message); no feedback panel appears. What would be the recommended way to do this? Thanks! Regards, Ces

Re: How to make a feedback panel appear on page load?

2009-11-30 Thread Early Morning
I debug, but when loading the page there is still no feedback shown. Is there anything else I should add? Thanks. Regards, Ces On Tue, Dec 1, 2009 at 2:30 PM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote: > Hi! > > It should appear if you call "error" or somet

Re: How to make a feedback panel appear on page load?

2009-12-01 Thread Early Morning
nel? > > Martijn > > On Tue, Dec 1, 2009 at 8:03 AM, Early Morning > wrote: > > Hi Martin, > > > > I pass a DataProvider in the constructor of the page, and process it > > somewhat like this: > > > >if(accountDataProvider == null){ &g

Getting Page Expired in Glassfish but not in Jetty

2009-12-09 Thread Early Morning
Hi all, Currently I have a problem with my application wherein when I press the Back button of the browser and navigate to a new page, I get a Page Expired error consistently. However, this only happens when my application is deployed in Glassfish, but not when I run it using Jetty. Any suggestion

Re: Getting Page Expired in Glassfish but not in Jetty

2009-12-09 Thread Early Morning
Well yes, ideally, but it is easier to not use such a heavy appserver when developing, so we make do with an internal QA deployment on Glassfish :) In any case, I was more wondering about the differences between how appservers handle wicket page versions and the like, since I'd like to understand w

Re: Getting Page Expired in Glassfish but not in Jetty

2009-12-10 Thread Early Morning
fine. > For testing just clear the cookies in your browser before/when switching > between app servers. > Cheers, > Zoltan > > Early Morning írta: > > Well yes, ideally, but it is easier to not use such a heavy appserver when >> developing, so we make do with an internal

Question regarding DataTable and Checkbox/Radio Columns

2009-12-28 Thread Early Morning
Hi all, I created a custom DataTable based on AjaxFallbackDefaultDataTable, as well as a ChecBoxColumn based on the CheckBoxColumn in wicket-phonebook. My questions: 1. Would it be also possible to create a RadioColumn for the DataTable? From what I've read, I need to add the entire DataTable to

Re: Question regarding DataTable and Checkbox/Radio Columns

2010-01-04 Thread Early Morning
Igor Vaynberg wrote: > On Mon, Dec 28, 2009 at 4:49 AM, Early Morning > wrote: > > Hi all, > > > > I created a custom DataTable based on AjaxFallbackDefaultDataTable, as > well > > as a ChecBoxColumn based on the CheckBoxColumn in wicket-phonebook. My > >

How to handle double-clicks for links?

2010-02-03 Thread Early Morning
Hi All, I currently have a link which simply calls setResponsePage(). In the called page, there is some processing which occurs wherein the loaded item is locked to the user. The problem occurs when users double-click the link. Since the item was locked during the first click, in the second click,

Re: Role-based wicket application

2010-02-28 Thread Early Morning
Hi, We just use one application/page for all roles, otherwise, you'd have a hard time maintaining everything especially if you have dynamic roles. Wicket has an interface you can implement for authorization (IAuthorizationStrategy); there are also existing projects that implement it for you as wel

Re: wiQuery components with server side state - live demo

2010-03-02 Thread Early Morning
These look really great Cemal, thanks for sharing. I'm looking forward to trying them out, as they seem really useful :) As an aside, regarding storing component position/settings as mentioned by Vladimir, does anyone have any resources/advice how to best do that for a multi-user system where user

Best practice for dynamically storing state?

2010-04-05 Thread Early Morning
Hi All, I have an application with a widget sidebar, with all the normal capabilities (add/remove widgets for user, minimize, maximize, sort widgets, etc.). I just wanted to ask what the "best practice" for storing the state of these widgets to a DB is. The current implementation involves using an

Remove busy indicator from ajax timer behavior?

2010-05-12 Thread Early Morning
Hi All, I followed this to implement a sitewide busy indicator: https://cwiki.apache.org/WICKET/generic-busy-indicator-for-both-ajax-and-non-ajax-submits.html However, I have an ajax behavior that polls in the page every 2 seconds, and every time it does the busy indicator flashes since the showB

Re: Remove busy indicator from ajax timer behavior?

2010-05-12 Thread Early Morning
t; > > > > and use > > div.hideBusy { >display:none; > } > > in css. > > Just theoretically, not tested > > Stefan > > -Ursprüngliche Nachricht- > Von: Early Morning [mailto:goodmorning...@gmail.com] > Gesendet: Mi 12.05.2010 09

Use wicketstuff-push and still have proper session timeout?

2010-06-07 Thread Early Morning
Hi All, We're currently using the wicketstuff-push project for notifications and the like. I added a TimerChannelService to our main Application class, and added a ChannelListener in our BasePage (using the user's username as the channel). However, the problem now is that the session never times

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

How to implement single-select functionality for a set of buttons?

2010-09-09 Thread Early Morning
Hi All, I just wanted to ask how to go about creating a component that would mimic radio group or dropdown choice functionality, but be displayed as a set of buttons? Basically the choices would be displayed as toggle buttons. When pressing a button, it would be activated and the model changed to

ModalWindow with input type = "submit"

2010-09-28 Thread Early Morning
Hi all, In our ModalWindow, we have forms that have submit buttons (). We found that after a user closes a modal window, and then the user presses the Enter key, an exception is thrown saying that the submit button is not visible. Is there any solution for this other than setting the input type to