Re: AjaxPagingNavigation change style

2010-12-14 Thread blauerberg
Ivoneta, MyAjaxPagingNavigator extends from my own PagingNavigator subclass. But I have a problem my own class doesn't work...If I clicked to next page, the entire page is refresh, because AjaxPagingNavigationBehavior call onAjaxEvent() only if Navigator class is AjaxPagingNavigator.class.

Re: [OT] Need Feedback from WicketForge users (IDEA plugin).

2010-12-14 Thread Erik van Oosten
Hi Minas, Providing code completion for component id's would be great! In particular in the java code, slightly less so in markup. Warnings for unknown component id's in java code would also be a very nice feature! It would probably be useful to be able to suppress the warning with a

Re: Asynchronous File Uploads

2010-12-14 Thread exl
Thanks for the suggestion. Since our Wicket application is presently a singular page, I can kind of imagine how this could work assuming the 'iframe' is embedded in the outermost part of the HTML (thus lies outside of any potential AJAX refreshes by Wicket). It will also mean that we must stick

Re: UrlRewrite rule and Wicket

2010-12-14 Thread Erik van Oosten
Hi Krzysztof, Sorry to hear that, I must admit I never thought of testing this with forms. I just assumed that the form would have a wicket generated URL and that from that point on it would work the normal way. Regards, Erik. Op 02-12-10 16:32, Krzysztof Kowalczyk wrote: Thank you

Re: Asynchronous File Uploads

2010-12-14 Thread robert.mcguinness
not sure if this would work, but create another pagemap for your large form and submit to that (if you are trying to keep everything in the wicket world). keep the default pagemap (null) for your short lived requests. -- View this message in context:

How to I get an un-proxied Spring Bean ?

2010-12-14 Thread smallufo
I have a page with such definition : public class CrudPageT extends Serializable extends WebPage { public CrudPage(PageParameters pps , AbstractDaoT dao) {...} } and here is how I initialize the page : CrudPageUser page = new CrudPageUser(pps , userDao); the userDao is a Spring injected DAO

Re: How to I get an un-proxied Spring Bean ?

2010-12-14 Thread Pedro Santos
proxyClass.getSuperclass() gives you the dao type On Tue, Dec 14, 2010 at 8:45 AM, smallufo small...@gmail.com wrote: I have a page with such definition : public class CrudPageT extends Serializable extends WebPage { public CrudPage(PageParameters pps , AbstractDaoT dao) {...} } and

Re: How to I get an un-proxied Spring Bean ?

2010-12-14 Thread James Carman
You could also have AbstractDao have a method like this: public T ClassT getEntityType(); I assume you need the type in your DAO when constructing queries, so you probably already have that set up somewhere. On Tue, Dec 14, 2010 at 5:45 AM, smallufo small...@gmail.com wrote: I have a page with

New lines are trimmed in textarea after ajaxrefresh

2010-12-14 Thread Michał Letyński
Hi. I have TextArea component with shouldTrimInput() set to false. It has AjaxFormComponentUpdatingBehavior(onblur) attached for validating purpose. On every update it refresh itself. And after update newline from the begining of textarea is trimmed. I debug wickets up to getReponse().write

Re: How to I get an un-proxied Spring Bean ?

2010-12-14 Thread smallufo
Hi , I tried : dao.getClass() = class org.apache.wicket.proxy.$Proxy101 dao.getClass().getGenericSuperclass() = class java.lang.reflect.Proxy dao.getClass().getSuperclass() = class java.lang.reflect.Proxy But still unable to get the dao class 2010/12/14 Pedro Santos pedros...@gmail.com

Re: How to I get an un-proxied Spring Bean ?

2010-12-14 Thread Igor Vaynberg
keep calling superclass until its not a proxy -igor On Tue, Dec 14, 2010 at 3:28 PM, smallufo small...@gmail.com wrote: Hi , I tried : dao.getClass() = class org.apache.wicket.proxy.$Proxy101 dao.getClass().getGenericSuperclass() = class java.lang.reflect.Proxy

Interesting Report from JRebel...

2010-12-14 Thread James Carman
We were listed behind JSF, GWT, Struts 1, Seam, and Struts 2. But, we beat out Grails, Stripes, and Tapestry. http://www.zeroturnaround.com/java-ee-productivity-report-2011/ - To unsubscribe, e-mail:

1.5 integer textfield

2010-12-14 Thread nino martinez wael
refreshRateModel = new ModelInteger(); refreshRateModel.setObject(coreDaoService .getWallboardRefreshTimeInSeconds()); FormString viewerAjaxrefreshRateForm = new FormString( viewerAjaxrefreshRateForm) { @Override

Re: 1.5 integer textfield

2010-12-14 Thread Martin Grigorov
Can you try with FormVoid instead of FormString On Tue, Dec 14, 2010 at 4:12 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: refreshRateModel = new ModelInteger(); refreshRateModel.setObject(coreDaoService .getWallboardRefreshTimeInSeconds());

Re: 1.5 integer textfield

2010-12-14 Thread moèz ben rhouma
Hi all, make sure that the type of refreshRate is Integer. Thanks MBR http://javajeedevelopment.blogspot.com/2010/12/brix-cms-apache-wicket-based-cms.html 2010/12/14 Martin Grigorov mgrigo...@apache.org Can you try with FormVoid instead of FormString On Tue, Dec 14, 2010 at 4:12 PM, nino

Re: New lines are trimmed in textarea after ajaxrefresh

2010-12-14 Thread Martin Makundi
Hmmm.. wicket trims strings anyways? 2010/12/14 Michał Letyński mletyn...@consol.pl: Hi. I have TextArea component with shouldTrimInput() set to false. It has AjaxFormComponentUpdatingBehavior(onblur) attached for validating purpose. On every update it refresh itself. And after update newline

Re: 1.5 integer textfield

2010-12-14 Thread Alexander Morozov
refreshRateTextField.setType(Integer.class) should help PS Model class (refreshRateModel instance) does not provide type info. Check IObjectClassAwareModel. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/1-5-integer-textfield-tp3087246p3087489.html Sent from the

Re: Invalid html rendered with DataTable [ex. empty tfoot element]

2010-12-14 Thread Alexander Morozov
1. create patch and send it to JIRA :) 2. apply transformer behavior to a table component -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Invalid-html-rendered-with-DataTable-ex-empty-tfoot-element-tp3058934p3087508.html Sent from the Users forum mailing list

Re: 1.5 integer textfield

2010-12-14 Thread nino martinez wael
Initially it was integer then changed it to string. Will try void On Dec 14, 2010 4:16 PM, Martin Grigorov mgrigo...@apache.org wrote: Can you try with FormVoid instead of FormString On Tue, Dec 14, 2010 at 4:12 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: re...

Re: 1.5 integer textfield

2010-12-14 Thread nino martinez wael
Refreshrate are integer On Dec 14, 2010 4:36 PM, moèz ben rhouma benrhouma.m...@gmail.com wrote: Hi all, make sure that the type of refreshRate is Integer. Thanks MBR http://javajeedevelopment.blogspot.com/2010/12/brix-cms-apache-wicket-based-cms.html 2010/12/14 Martin Grigorov

implements ETags in my Wicket application

2010-12-14 Thread andrea.castello
Hi everybody, I'd like to implement a mechanism of ETags in my wicket application. What I would like to achieve is to avoid rendering of wicket model components if it's not necessary. In order to do this I'll keep a registry of modified elements and render them only if they are changed. What

Form.isMultiPart - Visitor not checking for IFormVisitorParticipant

2010-12-14 Thread Daniel Soneira
Hi there, In the private method Form#isMultiPart the visitor algorithm does not check for components that implement IFormVisitorParticipant. Here is my use case (I've been debugging quite some time to find the source of recent problems I've encountered): Within a form I have a nested

Re: Invalid html rendered with DataTable [ex. empty tfoot element]

2010-12-14 Thread Martin Grigorov
Here is the patch: diff --git a/wicket-extensions/src/main/java/org/apache/wicket/extensions/markup/html/repeater/data/table/DataTable.html b/wicket-extensions/src/main/java/org/apache/wicket/ext index 8b3ab5b..f19673f 100644 ---

Re: Form.isMultiPart - Visitor not checking for IFormVisitorParticipant

2010-12-14 Thread Pedro Santos
use the onConfigure to set the paging-toolbar onConfigure(){ setVisible( getDataGrid().getTotalRowCount() != 0); } On Tue, Dec 14, 2010 at 3:39 PM, Daniel Soneira daniel.sone...@joyn-it.atwrote: Hi there, In the private method Form#isMultiPart the visitor algorithm does not check for

Re: Form.isMultiPart - Visitor not checking for IFormVisitorParticipant

2010-12-14 Thread Daniel Soneira
PagingToolbar is not my code. It's a class of inmethod-grid (wicketstuff project). So I have no influence on that. That's what I would do if it _was_ my code though ;) Maybe inmethod-grid adapts the new onConfigure / onInitialize methods. I'm currently using 1.4.1 which I _think_ is the latest

Re: Form.isMultiPart - Visitor not checking for IFormVisitorParticipant

2010-12-14 Thread Pedro Santos
ops, I miss that, can u send a quickstart? The last version is 1.4.14, you can use dependency groupIdorg.wicketstuff/groupId artifactIdinmethod-grid/artifactId version1.4.14/version /dependency On Tue, Dec 14, 2010 at 4:12 PM, Daniel Soneira daniel.sone...@joyn-it.atwrote:

Re: Form.isMultiPart - Visitor not checking for IFormVisitorParticipant

2010-12-14 Thread Daniel Soneira
I'll try to put a quickstart together tomorrow. I'm not really using maven in my tool chain (ant guy) so I get the binary releases from here: http://wicketstuff.org/maven/repository/ On 14.12.2010 19:21, Pedro Santos wrote: ops, I miss that, can u send a quickstart? The last version is

Re: Form.isMultiPart - Visitor not checking for IFormVisitorParticipant

2010-12-14 Thread Pedro Santos
you can get the jar at: http://repo1.maven.org/maven2/org/wicketstuff/inmethod-grid/1.4.14/ On Tue, Dec 14, 2010 at 4:37 PM, Daniel Soneira daniel.sone...@joyn-it.atwrote: I'll try to put a quickstart together tomorrow. I'm not really using maven in my tool chain (ant guy) so I get the binary

Re: How to listen for CHILD ajax form submits

2010-12-14 Thread guydog28
Anyone? Abstract: I have extended WiQuery Dialog with our own custom dialog. I want the MyDialog to know if any child components are a Form, being submitted via AJAX (AjaxFormSubmitBehavior). I need access to the AjaxRequestTarget created by that ajax form submit so I can append javascript to

Re: Interesting Report from JRebel...

2010-12-14 Thread Eelco Hillenius
More shocking to me is that so little bit know about Guice (well, this actually is also my experience interviewing potential job candidates). People are really missing something good. Eelco On Tue, Dec 14, 2010 at 6:33 AM, James Carman ja...@carmanconsulting.com wrote: We were listed behind

Re: Form.isMultiPart - Visitor not checking for IFormVisitorParticipant

2010-12-14 Thread Pedro Santos
I changed the PagingToolbar to set the visibility at onConfigure to avoid early initialize the QueryResult. You can test on the next snapshot from now at http://oss.sonatype.org/content/repositories/snapshots/org/wicketstuff/inmethod-grid/1.4.15-SNAPSHOT/ On Tue, Dec 14, 2010 at 4:40 PM, Pedro

donot show busy indicator for lAjaxaLazyLoading

2010-12-14 Thread fachhoch
I added this simple java script to showLoading , function wicketGlobalPreCallHandler() { //alert('Before ajax call'); jQuery('#page').showLoading( { 'addClass': 'loading-indicator-bars' } );

Detach() explanation

2010-12-14 Thread kumar
Hi everyone, can I get an example how to implement the detach() method ? can someone please post a detailed example ? why and in which cases implementing detach() is important ? thanks. -- View this message in context:

Re: resource for href=...

2010-12-14 Thread Zilvinas Vilutis
If you would open this http://pastebin.com/XCpcgLzC once again and look at the getImageUrl() method - you'll find your answer. Regards Žilvinas Vilutis Mobile:   (+370) 652 38353 E-mail:   cika...@gmail.com 2010/12/14 Ladislav DANKO em...@1ac0.net: The question is how to convert file path

Re: Invoke Validators manually, in arbitrary places (e.g. Ajax)

2010-12-14 Thread Zilvinas Vilutis
That was accurate :) Thank you! Žilvinas Vilutis Mobile:   (+370) 652 38353 E-mail:   cika...@gmail.com On Mon, Dec 13, 2010 at 10:02 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: formcomponent.validate() -igor On Mon, Dec 13, 2010 at 6:56 PM, Zilvinas Vilutis cika...@gmail.com

maybe this authorization strategy helps someone

2010-12-14 Thread Jim Pinkham
I needed to authorize some pages not just by annotation but also based on PageParameters. I came up with this: App.init() ((CompoundAuthorizationStrategy)getSecuritySettings().getAuthorizationStrategy()) .add(new RequiresRolesUnlessAdminAuthorizationStrategy(new Roles(ADMIN)));

Re: [OT] Plugin WicketForge 0.8.1 available for IDEA 9+

2010-12-14 Thread Brian Topping
I was finally able to download the new version of WicketForge today (along with some other plugins) since IntelliJ recently updated their caches. Minas, the results are beautiful. ~minas++ !!! :B On Dec 1, 2010, at 5:59 PM, Minas Manthos wrote: Thanks guys! I'm glad you like it... It's

how to validate a ListView?

2010-12-14 Thread rolandpeng
Hi, I've a Listview and the content of list is selected by a modal window. The content of list should be validate to be required. I've tried to create a custom validator , but I have no idea how to bind the validator to the Listview. Is it possible to validate the Listview as required before

Re: how to validate a ListView?

2010-12-14 Thread Alexander Morozov
You cant add IValidator to a ListView because it is not a FormComponent. You can: 1. check ListView.getList() within Form.onSubmit() and call form.error(...) if list is empty 2. create a form validator based on AbstractFormValidator and add it to the form component -- View this message in

Re: [OT] Plugin WicketForge 0.8.1 available for IDEA 9+

2010-12-14 Thread Nick Heudecker
He's really been doing a great job with it. On Tue, Dec 14, 2010 at 6:49 PM, Brian Topping topp...@codehaus.org wrote: I was finally able to download the new version of WicketForge today (along with some other plugins) since IntelliJ recently updated their caches. Minas, the results are

wicket global call handlers

2010-12-14 Thread fachhoch
I am using wicket call handlers to identify when ajax request started , ended, failed etc. Please tell me if it is possible to get more information about the ajax request like componenet which made ajaxreqest or anything about the component its class, its attributes etc? function

Re: [OT] Plugin WicketForge 0.8.1 available for IDEA 9+

2010-12-14 Thread Brian Topping
Well, he couldn't have done it without you. Cheers to both of you guys :-) On Dec 14, 2010, at 11:22 PM, Nick Heudecker wrote: He's really been doing a great job with it. On Tue, Dec 14, 2010 at 6:49 PM, Brian Topping topp...@codehaus.org wrote: I was finally able to download the new

Re: 1.5 integer textfield

2010-12-14 Thread nino martinez wael
same result : private void addViewerAjaxrefreshRateForm() { refreshRateModel = new ModelInteger(); refreshRateModel.setObject(coreDaoService .getWallboardRefreshTimeInSeconds()); FormVoid viewerAjaxrefreshRateForm = new FormVoid( viewerAjaxrefreshRateForm) { @Override protected void onSubmit()