Re: Expire session

2010-08-30 Thread Wilhelmsen Tor Iver
Still wondering, how to disable concurrent logins with wicket-auth- roles... Can't you cache the sessions and return the cached one from Application.newSession() if the same user logs in again? Or invalidate the old session? - Tor Iver

WicketTester and https

2010-08-30 Thread Michael Sparer
hi, is there a way to test Pages that have the @RequireHttps annotation? currently the code getTester().startPage(RegisterPage.class); getTester().assertRenderedPage(RegisterPage.class); results in this Exception: junit.framework.AssertionFailedError: page

Re: Listview excel

2010-08-30 Thread Martin Makundi
Hi! Just change the mime type of the page to application/vnd.ms-excel. ** Martin 2010/8/30 Altuğ Bilgin Altıntaş alt...@gmail.com: Hi all; Is it possible to export a ListView to excel. Should i use always Datatable ? Thanks.

Re: autocomplete for AjaxEditableLabel

2010-08-30 Thread Patrick Petermair
Is there a way to enable autocomplete for AjaxEditableLabel (just like AutoCompleteTextField)? I was going through AutoCompleteTextField as a reference and wrote my own behavior for autocompletion. The new behavior works perfectly for a TextField, but not for AjaxEditableLabel. Answering my

Re: Listview excel

2010-08-30 Thread Altuğ Bilgin Altıntaş
Thanks; I added table in to WebMarkupContainer and WebMarkupContainer in to getRequestCycle().setRequestTarget( new ComponentRequestTarget(table)); It works. 2010/8/30 Martin Makundi martin.maku...@koodaripalvelut.com Hi! Just change the mime type of the page to

Re: WicketTester and https

2010-08-30 Thread Igor Vaynberg
wicket tester is not a complete emulation tool, it is designed for simple usecases. you are welcome to patch it to support this, but its probably easier to turn off the httpsrequestcycleprocessor in your tests so no redirect happens. -igor On Mon, Aug 30, 2010 at 4:13 AM, Michael Sparer

Markup for BookMarkable links

2010-08-30 Thread Mike Dee
I'm coming up to speed on Wicket and came across something interesting that seems somewhat basic. I see a lot of examples in books and on the web that demonstrate the markup for a bookmarkable link like this: # Search The code would be something like this: add( new BookmarkablePageLink(

Re: OT: Best practices regarding service layers DAOs

2010-08-30 Thread Alexander Morozov
Hi Sebastian, I think that service layer have to be responsible only for CRUD operations, but L(list) operations should be built upon JPA-specific _READ-ONLY_ queries or some kind of DSL (for example, querydsl http://source.mysema.com/display/querydsl/Querydsl). The last one point allows to

Re: OT: Best practices regarding service layers DAOs

2010-08-30 Thread Brian Topping
This is a very good summary. I would add one very important consideration that is not often obvious until far too late. If you think you want to eventually use database transactions (and you're really missing out on a great thing not to use them), the service method interfaces that your view

Re: OT: Best practices regarding service layers DAOs

2010-08-30 Thread Sebastian
Alexander, If I understand you correctly, you are saying: view-only operations (e.g. listings, search forms) can access the DAOs directly, and all operations that modify data should be routed through the service layer? How do you deal with enforcing security constraints (e.g. user X with role Y

floating div?

2010-08-30 Thread Kurt Heston
I have a really long table with qty values in one of the columns. Instead of having a total at the bottom of the page (and requiring the user to scroll to see it), I'd like to float a div in the bottom right that I can update on the fly as the user changes qty values. The wicketstuff dojo

Re: [wiQuery] Custom Link to wiQuery Page doest not initialize target page

2010-08-30 Thread Sam Zilverberg
Hi, I have the same problem, but my page is a non-bookmarkable page which has only one constructor : public MyPage(Page backpage, ModelT model). I don't see how setResponsePage can solve the problem for me unless I create a default constructor. I'm reluctant to do so because the page is some

OT: Best practices regarding service layers DAOs

2010-08-30 Thread Sebastian
Hi all, I've been struggling with some design questions in some wicket projects lately, and hope to get some insights from fellow wicketeers. Some years ago I started with Databinder as a DAO layer, without a service layer. This led to UI code building queries or adding Restrictions to a jpa

Re: [wiQuery] Custom Link to wiQuery Page doest not initialize target page

2010-08-30 Thread Ernesto Reinaldo Barreiro
Can you create a quick-start and attach it to a new issue at http://code.google.com/p/wiquery/issues/list Regards, Ernesto On Mon, May 10, 2010 at 6:17 PM, Jens Zastrow m...@jens-zastrow.de wrote: Hi experts, The following code (Link-example-code) breaks all of my wiQuery-enabled Pages.

Re: floating div?

2010-08-30 Thread Kurt Heston
The following seems to work until the page refreshes and scrolls to the top: // Label lbl = new Label(floatDiv, floaty text) { @Override protected void onComponentTag(ComponentTag tag) {

Re: OT: Best practices regarding service layers DAOs

2010-08-30 Thread Alexander Morozov
Brain thank you for comment, saying about Wicket and transactions, from my point of view, we have 2 posibilities: 1. manage transaction boundaries on per-request way (override RequestCycle.onBeginRequest(), RequestCycle.onEndRequest(), RequestCycle.onRuntimeException()) with

Custom AjaxEditableLabel with an X in the upper right corner

2010-08-30 Thread Alec Swan
Hello, I would like to customize AjaxEditableLabel so that every time it is rendered it has a letter X in the right-upper corner which allows the user to remove the label from the screen. I would also like to customize other components, such as panels, the same way. So, ideally the solution

Re: OT: Best practices regarding service layers DAOs

2010-08-30 Thread Brian Topping
While I haven't (yet) had this opportunity, I can't wait until the day that I wrap service interfaces with Web Services and connect it to a mobile UI. For that case alone, I focus my strategy on Spring managing the transaction with load-time weaving. $0.02... On Aug 30, 2010, at 10:31

Re: floating div?

2010-08-30 Thread Kurt Heston
I was over-engineering this. The answer was in wicket-ajax-debug.js: style=position:fixed; right: 100px; bottom: 100px;... No ajax required. On 08/30/2010 05:34 PM, Kurt Heston wrote: The following seems to work until the page refreshes and scrolls to the top: