Re: DataTable's FilterToolbar generics broken

2014-05-02 Thread Leszek Gawron
; private Long selectedProductId; } In this case the filter contains MORE properties than the actual Order itself. -- Leszek Gawron - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users

DataTable's FilterToolbar generics broken

2014-04-26 Thread Leszek Gawron
FilterToolbar(final DataTableT table, final FilterFormT form, FilterToolbar constructor should state: public T, F, S FilterToolbar(final DataTableT, S table, final FilterFormF form, final IFilterStateLocatorF stateLocator) cheers. -- Leszek Gawron

Wicket TinyMCE 1.4.18 fails

2011-10-07 Thread Leszek Gawron
with the message in JS console: /app/resources/wicket.contrib.tinymce.InPlaceEditBehavior/tiny_mce/themes/advanced/editor_template_src.js:128 Uncaught TypeError: Cannot call method 'push' of undefined and it didn't so for 1.4.17. Could anybody confirm this? lg -- Leszek Gawron

wicket as template engine

2011-07-19 Thread Leszek Gawron
-disposition: attachment Everything is easy apart from 1). Can you advise? lg -- Leszek Gawronhttp://lgawron.posterous.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Panel factories and @SpringBean

2011-03-04 Thread Leszek Gawron
and not the factories underneath. How can I approach the problem using current state of wicket-spring module? I haven't found a way to wrap the factory beans with proxy manually. -- Leszek Gawron http://lgawron.blogspot.com

Re: Free wicket from component hierarchy hell

2010-11-05 Thread Leszek Gawron
() ); add( new PanelA( new Model3() ); to the same page ? -- Leszek Gawron http://lgawron.blogspot.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

Re: Trying to submit form with id that is not in document.

2010-10-29 Thread Leszek Gawron
); } } ); [...] then you will hit another bug if your form starts using ajax onchange notifications ... but that is another tale :) -- Leszek Gawron http://lgawron.blogspot.com

Re: Bean injection

2010-10-07 Thread Leszek Gawron
will always get the same bean (even worse if the bean is stateful). You probably should convert your code to using singleton beans and pass appropriate state from wicket component itself. lg -- Leszek Gawron http://lgawron.blogspot.com

Re: DataView/LoadableDetachableModel/onClick

2010-08-10 Thread Leszek Gawron
CustomerPage((Customer)getmodelobject())); -- Leszek Gawron http://www.mobilebox.pl/krs.html CTO at MobileBox Ltd. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e

Re: any good ideas about how to add a confirm check before leaving a page?

2010-08-10 Thread Leszek Gawron
-behaviors.html -- Leszek Gawron http://www.mobilebox.pl/krs.html CTO at MobileBox Ltd. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: RE: back link

2010-08-09 Thread Leszek Gawron
, I can go through the types of Pages and inherit them all once and add all features I need into them, but it also seems like it's something that should be inherent/built in, no? - Alex -Original Message- From: Leszek Gawron [mailto:lgaw...@gmail.com] On Behalf Of Leszek Gaw...

Re: DataView/LoadableDetachableModel/onClick

2010-08-09 Thread Leszek Gawron
())); shouldn't it actually be : Link link = new Link( link, item.getModel() ) { public void onClick() { setResponsePage( new CustomerPage( getModel() ) ); } } ? -- Leszek Gawron http://www.mobilebox.pl/krs.html CTO at MobileBox Ltd

Re: back link

2010-08-07 Thread Leszek Gawron
never experienced the problem for n values up to 10-15... LG -- Leszek Gawron - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: back link

2010-08-06 Thread Leszek Gawron
% predictable (and BTW works when javascript is not available: javascript turned off, dummy browsers on mobile devices). -- Leszek Gawron http://www.mobilebox.pl/krs.html CTO at MobileBox Ltd. - To unsubscribe, e

Re: SV: back link

2010-08-06 Thread Leszek Gawron
-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org AFAIU pages refered in other pages are in fact automatically serialized as PageReferences. Am I wrong? Has the serialization magic been removed? lg -- Leszek Gawron

Re: relationship of DAO to IDataProvider and DetachableLoadableModel

2010-08-06 Thread Leszek Gawron
proxy instead of the bean directly. -- Leszek Gawron http://www.mobilebox.pl/krs.html CTO at MobileBox Ltd. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users

Re: relationship of DAO to IDataProvider and DetachableLoadableModel

2010-08-06 Thread Leszek Gawron
On Fri, Aug 6, 2010 at 10:30 PM, Chris Merrill ch...@webperformance.com wrote: Wow, that was easy! Thanks!! Now, do I do the same thing in my LoadableDetachableModel?  (so that load() can get access to the DAO as well)  Should detach() be doing anything related to this? you can actually do

Re: relationship of DAO to IDataProvider and DetachableLoadableModel

2010-08-06 Thread Leszek Gawron
On 2010-08-06 22:58, Chris Merrill wrote: On 8/6/2010 4:35 PM, Leszek Gawron wrote: you can actually do it in any class you like :) So I was about to ask how this works on deserialization, since the constructor will not be called. Then I re-read your previous and I think I now understand

PanelCachingTab

2010-02-15 Thread Leszek Gawron
() { MonitoringUserDetails userDetails = (MonitoringUserDetails) UserUtils.getPrincipal(); return userDetails.getMonitoringUser().isConfigurationAccess(); }; }); lg -- Leszek Gawron

Re: Wicket Wizard previous

2010-01-11 Thread Leszek Gawron
nino martinez wael wrote: Just empty the page map? you can always try with: WizardModel wizardModel = new WizardModel() { public boolean isPreviousAvailable() { return false; } } -- Leszek Gawron http://www.mobilebox.pl/krs.html CTO at MobileBox Ltd

Re: AjaxFallbackLink does not work on Windows Mobile Internet Explorer

2009-12-03 Thread Leszek Gawron
) ) component.remove( behavior ); } } } } ); works like a charm. lg -- Leszek Gawron http://lgawron.blogspot.com

Re: Customized FeedbackPanel question

2009-12-03 Thread Leszek Gawron
FeedbackPanel filters out anything that local FeedbackPanels accept. lg -- Leszek Gawron http://lgawron.blogspot.com - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

AjaxFallbackLink does not work on Windows Mobile Internet Explorer

2009-12-02 Thread Leszek Gawron
and leave the browser with the href= tags it understands. Is there any elegant way to do it globally? lg -- Leszek Gawron http://lgawron.blogspot.com - To unsubscribe, e-mail: users-unsubscr

DataTable's toolbars broken in 1.4.2 and 1.5-SS

2009-10-04 Thread Leszek Gawron
I have found the issue: https://issues.apache.org/jira/browse/WICKET-2436 and commented there. Still the issue remains in fixed state. Is there anything else I should do? lg -- Leszek Gawron http://lgawron.blogspot.com

Re: conditional form validators (nested forms issue)

2009-05-22 Thread Leszek Gawron
#setDefaultFormProcessing(false) Also check: http://cwiki.apache.org/WICKET/multiple-submit-buttons.html multiple-submit-buttons Leszek Gawron-2 wrote: Hello, say i have a small form : * first name - text field required * last name - text field required * phone no - text field required

conditional form validators (nested forms issue)

2009-05-21 Thread Leszek Gawron
validate which raises required text fields errors. You cannot leave the step. Is there a way to fire form/field validators only if a specific button has been pressed? lg -- Leszek Gawron - To unsubscribe, e-mail: users

Re: Equivalent of StackPanel for Wicket

2009-03-26 Thread Leszek Gawron
HHB wrote: Hey, I want to employ something like StackPanel of GWT in my Wicket application. Any production ready component? Thanks for help and time. the easiest way is to use jQuery, the accordion widget in particular: http://jqueryui.com/demos/accordion/ -- Leszek Gawron

Re: Wicket:enclosure does not work with navigation toolbar of data table

2009-03-19 Thread Leszek Gawron
apart from link/ into wicket:enclosure you should see correct behavior. This probably IS a bug. File a JIRA request for that. -- Leszek Gawron - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands

Re: Wicket WebBeans Project...

2009-03-19 Thread Leszek Gawron
name is wicketwebbeans, so it's not an exact match, but it's close enough to cause some confusion. you could call it wicket-jsr299, but that might be a little bit too cryptic for some users... Is wicketwebbeans project active currently? It looks like it's still using wicket 1.3... -- Leszek

Re: Uppercasing inputs

2009-03-06 Thread Leszek Gawron
of the most helpful and vigorous OS community there is. PS. I laughed almost to tears reading some posts. Very refreshing :) -- Leszek Gawron 3.14159265358979323846264338327950288419716939937510 58209749445923078164062862089986280348253421170679 82148086513282306647093844609550582231725359408128

Re: Only one session for logged user.

2009-03-06 Thread Leszek Gawron
at how Acegi Security handles concurrent sessions management: http://www.acegisecurity.org/guide/springsecurity.html#concurrent-sessions hth -- Leszek Gawron - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Re: localization and session expiration

2009-03-06 Thread Leszek Gawron
public Locale getLocale() { return LocaleContextHolder.getLocale(); } }; } -- Leszek Gawron - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: Equal InputValidator

2009-03-06 Thread Leszek Gawron
://www.google.com/codesearch?q=EqualInputValidatorhl=enbtnG=Search+Code -- Leszek Gawron - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Uppercasing inputs

2009-03-06 Thread Leszek Gawron
every set*( String value ) so I used AspectJ for that (which is probably a total overkill). My regards lg -- Leszek Gawron - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail

Re: Non-serializable model objects

2009-03-06 Thread Leszek Gawron
parents: InvoiceDTO implements Serializable; } You can do it once and have no problem with it ever again... -- Leszek Gawron - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

Re: How can I injecting a Springbean into a custom session.

2009-03-06 Thread Leszek Gawron
. -- Leszek Gawron - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Uppercasing inputs

2009-03-04 Thread Leszek Gawron
a behavior for TextField so that the dat is uppercased before being written to the model? my regards -- Leszek Gawron - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h

Re: A doubt regarding best-practices

2009-02-05 Thread Leszek Gawron
of preference and how big your form code actually is. And also, regarding Forms yet... If I declare a Form as a top class should I have a markup html for it because this form will be treated as a component? No, Form doesn't extend WebMarkupContainerWithAssociatedMarkup. -- Leszek Gawron

Re: DataTable queries data provider for record count TWICE

2009-02-04 Thread Leszek Gawron
Igor Vaynberg wrote: please open a bug report in jira. your commit to NavigationToolbar.java (rev 739663) fixed the problem I had. Thank you! -- Leszek Gawron - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

DataTable queries data provider for record count TWICE

2009-01-31 Thread Leszek Gawron
ReferralsPage(Component).prepareForRender(boolean) line: 2202 ReferralsPage(Component).prepareForRender() line: 2229 ReferralsPage(Page).renderPage() line: 898 I have checked with 1.3.x branch - IDataProvider.size() gets called only once. -- Leszek Gawron

Re: DataTable queries data provider for record count TWICE

2009-01-31 Thread Leszek Gawron
Leszek Gawron wrote: I lately switched to wicket 1.4. Suddenly my database gets hit 3 times: twice for size and once for actual data. It gets even worse: one size() query gets executed even BEFORE new filter form values get propagated to filter model: If I enter some search criteria

Clickable rows on DataTable - exceptions on refresh

2009-01-17 Thread Leszek Gawron
every time. There are only 2 rows in my test DataTable. Could anyone comment? Maybe I am simply building the link for the row incorrectly. -- Leszek Gawron - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org

Very custom URL mapping

2008-11-19 Thread Leszek Gawron
be a lot easier if I could do /somePage/id but unfortunately the requirement is different. How can I achieve something like this without rewritng 90% of wicket's url matching logic ? lg -- Leszek Gawron

converter can not convert org.myproject.Something to a string

2008-05-05 Thread Leszek Gawron
object class? Or am I missing something? -- Leszek Gawron http://www.mobilebox.pl/krs.html CTO at MobileBox Ltd. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: wicket-spring-annot 1.4-m1?

2008-04-30 Thread Leszek Gawron
James Carman wrote: Is this gone now that 1.4 is JDK5+? Is this stuff just bundled in with wicket-spring? yes -- Leszek Gawron http://www.mobilebox.pl/krs.html CTO at MobileBox Ltd. - To unsubscribe

Re: WebRequestCycle and Open-session-in-view pattern

2008-04-28 Thread Leszek Gawron
. Instantiating a session does not mean a database connection is fetched. -- Leszek Gawron http://www.mobilebox.pl/krs.html CTO at MobileBox Ltd. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: Wicket, Hibernate and Models

2008-03-13 Thread Leszek Gawron
() } } please mind that you shouldn't create anonymous model classes as they keep the reference to the page/panel and you will fall into other memory issues. -- Leszek Gawron http://www.mobilebox.pl/krs.html CTO at MobileBox Ltd

Re: serving images from db - direct url access

2007-09-19 Thread Leszek Gawron
basing on request parameters. -- Leszek Gawron - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: serving images from db - direct url access

2007-09-18 Thread Leszek Gawron
; } }; } -- Leszek Gawron http://www.mobilebox.pl/krs.html CTO at MobileBox Ltd. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: serving images from db - direct url access

2007-09-17 Thread Leszek Gawron
Johan Compagner wrote: look at WebApplication.mountSharedResources() and RequestCycle.urlFor(final ResourceReference resourceReference, ValueMap parameters) I did the exact thing. Please see my others post about decoding request parameters. -- Leszek Gawron

Re: serving images from db - direct url access

2007-09-17 Thread Leszek Gawron
Johan Compagner wrote: ahh ok that seems a bug can you report this? sure can, one last question: there is a method set/getCached(). Does this tell the browser to cache the resource or does wicket cache it itself? -- Leszek Gawron

Localizer warnings

2007-09-12 Thread Leszek Gawron
are not calling Component#getString() inside your Component's constructor. Offending component: [Page class = com.mobilebox.indigo.web.configurator.page.WelcomePage, id = 7, version = 0] I am not calling Component#getString() AFAIK, so what should I be looking for? -- Leszek Gawron

Model question

2007-09-11 Thread Leszek Gawron
/event_new.png; } } There are a number to take into account: IWrapModel, IChainingModel. Please advise. -- Leszek Gawron - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: how to indicate a model changed when item has been removed?

2007-08-16 Thread Leszek Gawron
with database. If I remove child panels from list then everything works fine. If the list was cached as you suggest then even after removal the return page would show the removed thermometer, which it does not. -- Leszek Gawron

Re: how to indicate a model changed when item has been removed?

2007-08-16 Thread Leszek Gawron
Leszek Gawron wrote: Igor, Igor Vaynberg wrote: sounds like you are caching the list inside model returned by new PropertyModel( getModel(), thermometers) getModel() there. This is not the case. the thermometer is removed from parent entity and the parent itself is being persisted, so

DataTable: incorrect 'showing x to y of z'

2007-07-28 Thread Leszek Gawron
When I create a DataTable paging data by 25 entries the navigation toolbar displays: showing 1 to 26 of 80 showing 26 to 51 of 80 while (IMO) it should: showing 1 to 25 of 80 showing 26 to 50 of 80 wdyt? -- Leszek Gawron

replace panels with fade effect

2007-07-28 Thread Leszek Gawron
advise. lg -- Leszek Gawron - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]