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

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
. 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 something... what's your code? ** Martin 2009/12/1 Early Morning goodmorning...@gmail.com: Hi

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

2009-12-01 Thread Early Morning
add a feedbackpanel? Martijn On Tue, Dec 1, 2009 at 8:03 AM, Early Morning goodmorning...@gmail.com wrote: Hi Martin, I pass a DataProvider in the constructor of the page, and process it somewhat like this: if(accountDataProvider == null){ container.add(new

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

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

Re: Getting Page Expired in Glassfish but not in Jetty

2009-12-10 Thread Early Morning
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 QA deployment on Glassfish :) In any case, I was more

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
, Dec 28, 2009 at 4:49 AM, Early Morning goodmorning...@gmail.com wrote: 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

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

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

Re: Remove busy indicator from ajax timer behavior?

2010-05-12 Thread Early Morning
=hideBusy div qwicket:id=budyIndicator/ /div 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:44 An: users@wicket.apache.org

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

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 (input type = submit /). 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