Re: OT: Best practices regarding service layers DAOs

2010-08-31 Thread Alexander Morozov
Sebastian wrote: 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? Yep (in general). Sebastian wrote: How do

Listview remove columns on the fly

2010-08-31 Thread Altuğ Bilgin Altıntaş
Hi all; How can i disable Listview's column/s while post it to excel on the fly. I mean i don't want to post all columns into excel. Link linkExcel = new Link(linkExcel) { private static final long serialVersionUID = 1L; @Override public void onClick() {

Re: Listview remove columns on the fly

2010-08-31 Thread Martin Makundi
Re-render it before going to excel.. 2010/8/31 Altuğ Bilgin Altıntaş alt...@gmail.com: Hi all; How can i disable Listview's column/s while post it to excel on the fly. I mean i don't want to post all columns into excel. Link linkExcel = new Link(linkExcel) {            private static final

org.apache.wicket.protocol.http.WebSession cannot be cast to org.apache.wicket.authentication.AuthenticatedWebSession

2010-08-31 Thread v_kukhta
Hello! I have a simple wicket application which runs fine on my app server in production mode, but when i am truing to unit test it using WicketTester, it gives me this strange exception: java.lang.ClassCastException: org.apache.wicket.protocol.http.WebSession cannot be cast to

Re: org.apache.wicket.protocol.http.WebSession cannot be cast to org.apache.wicket.authentication.AuthenticatedWebSession

2010-08-31 Thread Wilhelmsen Tor Iver
java.lang.ClassCastException: org.apache.wicket.protocol.http.WebSession cannot be cast to org.apache.wicket.authentication.AuthenticatedWebSession Do you make sure to specify your Appication when setting up WicketTester? Otherwise it will use a default one that will not necessarily do what

Re: org.apache.wicket.protocol.http.WebSession cannot be cast to org.apache.wicket.authentication.AuthenticatedWebSession

2010-08-31 Thread v_kukhta
That was my mistake! Thank you, Tor Iver! -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/org-apache-wicket-protocol-http-WebSession-cannot-be-cast-to-org-apache-wicket-authentication-Authenn-tp2401398p2401411.html Sent from the Wicket - User mailing list archive

AJAX error on IE8 Win 7

2010-08-31 Thread Laurentiu Trica
Hello, I have a problem with an AjaxCheckBox which should update a panel in IE8 Win 7 I get the following error in the Ajax Debug Window: ERROR: Wicket.Ajax.Call.failure: Error while parsing response: Object required Can you please help me with this? -- Laurentiu Trica Software Developer

Re: Listview remove columns on the fly

2010-08-31 Thread Altuğ Bilgin Altıntaş
Any code example ? Thanks. 2010/8/31 Martin Makundi martin.maku...@koodaripalvelut.com Re-render it before going to excel.. 2010/8/31 Altuğ Bilgin Altıntaş alt...@gmail.com: Hi all; How can i disable Listview's column/s while post it to excel on the fly. I mean i don't want to post

Re: Listview remove columns on the fly

2010-08-31 Thread Martin Makundi
Any button will re-render the page. Just make your column in visible: listview() { onpopulate (item) { item.add(column.setVisible(if-you-want-to-show-it-now)); } } form.add(listview); button=new button() { onsubmit() { if-you-want-to-show-it-now = false; } } form.add(button);

Re: OT: Best practices regarding service layers DAOs

2010-08-31 Thread Iain Reddick
Here is an interesting generic query DSL that should work well with Wicket. Clauses can be both added and removed from the query in an OO fashion, unlike Query DSL and Quaere (which seem more focussed on syntax). http://code.google.com/p/hibernate-generic-dao/ On 31/08/2010 04:18, Brian

Re: [BULK] Re: Listview remove columns on the fly

2010-08-31 Thread Benedikt Schlegel
If you want to modify your data on a column-base, you should consider using a DataTable instead of DataView/ListView. So long, Benedikt Save Paper: Think Before You Print Beta Systems Email Disclaimer and Email Impressum Beta Systems email messages are confidential. They may also be

Re: Custom AjaxEditableLabel with an X in the upper right corner

2010-08-31 Thread Pedro Santos
Use javascript to do that, for example: var target = document.getElementById('somecomponentid'); target.style.position = 'relative'; var close = document.createElement(span); close.innerHTML = 'x'; close.style.position = 'absolute'; close.style.top = 0; close.style.right = 0; close.onclick =

Re: Custom AjaxEditableLabel with an X in the upper right corner

2010-08-31 Thread Pedro Santos
actually, if you re-render the component after hide it, it will to be visible... perhaps you can add some callback on the close handler that updates the visibility property on the wicket component. On Tue, Aug 31, 2010 at 11:08 AM, Pedro Santos pedros...@gmail.com wrote: Use javascript to do

Re: exception when last tab of AjaxTabbedPanel is removed

2010-08-31 Thread Clément Tamisier
Hi, thank you. It will be fix in wicket 1.4.11. 2010/8/27 Pedro Santos pedros...@gmail.com I think it is fixed: https://issues.apache.org/jira/browse/WICKET-2828 On Thu, Aug 26, 2010 at 5:50 PM, Clément Tamisier clement.tamis...@gmail.com wrote: Hi, I am using wicket 1.4.6 and

Re: AJAX error on IE8 Win 7

2010-08-31 Thread Igor Vaynberg
most likely you have a problem with your markup, eg a div inside a span or something like that. thats all i can say without seeing the code. -igor On Tue, Aug 31, 2010 at 5:28 AM, Laurentiu Trica laurentiu.tr...@finalfolder.biz wrote: Hello, I have a problem with an AjaxCheckBox which should

Re: AJAX error on IE8 Win 7

2010-08-31 Thread Clint Checketts
I'm currently wrestling with a similar sounding bug with AjaxChoiceComponentUpdatingBehaviors and Radio boxes and IE7. I'll try to get it simplified down to a quickstart. -Clint On Tue, Aug 31, 2010 at 10:42 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: most likely you have a problem with

Re: Custom AjaxEditableLabel with an X in the upper right corner

2010-08-31 Thread Alec Swan
Thanks for the suggestion, Pedro. When the user clicks on the X label, I need to store the user decision in the database so that the next time they load the page the component does not show up. Can this behavior be implemented with the server-side code? Thanks, Alec On Tue, Aug 31, 2010 at

Re: Custom AjaxEditableLabel with an X in the upper right corner

2010-08-31 Thread Pedro Santos
Sure, the onclick handler can invoke an callback for an AbstractDefaultAjaxBehavior for instance. take a look at: http://wicket.apache.org/apidocs/1.4/org/apache/wicket/ajax/AbstractDefaultAjaxBehavior.html#getCallbackScript%28%29 On Tue, Aug 31, 2010 at 3:48 PM, Alec Swan alecs...@gmail.com

Dynamically invoke a page object (Reflection?)

2010-08-31 Thread Brown, Berlin [GCG-PFS]
What is the best approach to invoke a page object through the name of the Page class. E.g. String pageStr = com.test.Page; Page page = new Wicket.createPageSomeHow(pageStr); setResponsePage(page) Is there a way to do something like this? Berlin Brown

Re: Dynamically invoke a page object (Reflection?)

2010-08-31 Thread James Carman
What are you trying to do exactly? On Tue, Aug 31, 2010 at 4:52 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: What is the best approach to invoke a page object through the name of the Page class. E.g. String pageStr = com.test.Page; Page page = new

htmlUnit + Wicket to get a page

2010-08-31 Thread Fernando Wermus
Hi all, I have to send some emails when a user clicks a link. The problem I am encountering is that I got a lock. Caused by: java.sql.BatchUpdateException: Lock wait timeout exceeded; try restarting transaction If I request the email page in a common browser, let say chrome; it works fine.

Fwd: htmlUnit + Wicket to get a page

2010-08-31 Thread Fernando Wermus
Hi all, I have to send some emails when a user clicks a link. The problem I am encountering is that I got a lock. Caused by: java.sql.BatchUpdateException: Lock wait timeout exceeded; try restarting transaction If I request the email page in a common browser, let say chrome; it works fine.

Re: htmlUnit + Wicket to get a page

2010-08-31 Thread Igor Vaynberg
try using wickettester in a new thread instead. -igor On Tue, Aug 31, 2010 at 3:58 PM, Fernando Wermus fernando.wer...@gmail.com wrote: Hi all,    I have to send some emails when a user clicks a link. The problem I am encountering is that I got a lock. Caused by:

how to render a page for an email with wickettester

2010-08-31 Thread Fernando Wermus
Hi all, I need to render a page using wickettester. I tried the following, WicketTester tester=new WicketTester(); tester.startPage(PageA.class, new PageParameters()); tester.assertRenderedPage(PageA.class); HttpServletResponse

Re: Wicket Problem: Ajax request encoding

2010-08-31 Thread Altuğ Bilgin Altıntaş
Hi Ronaldo; Did you find any solution on that problem ? Thanks. 2010/7/20 Ronaldo Cisneiros Veras ronaldo.cisnei...@cesar.org.br Hi, We're using Wicket framework (Version 1.4.9) on our systems. Our problem occurs when there is a submission of ajax request in text fields. When you type the