AbstractPageableView calling IDataProvider.size() when it maybe shouldn't

2016-07-27 Thread Janos Cserep
Hi, I noticed a possible inefficiency in AbstractPageableView's getItemModels() method: /** * This method retrieves the subset of models for items in the current page and allows * RefreshingView to generate items. * * @return iterator over models for items in the current

Re: Opening modal window at file upload completion

2011-08-27 Thread Janos Cserep
You can try using Uploadify from code.google.com/p/jqwicket/, which lets you put event handlers on successful completion. You need to write a separate servlet to handle upload though, but it's quite straightforward. One small trick is overriding getEventHandler() so you can pass the javascript

String not serializable exception coming for interned strings from Model with JRockit/Weblogic

2010-07-08 Thread Janos Cserep
Hi, The following seems to be a bug with JRockit or Weblogic, but maybe someone on this list has seen it before and has a better workaround/solution. We have been developing a Wicket application for a government agency that is going to be used by 15k users. The application will be deployed on a

Re: wicketstuff.org down?

2009-11-08 Thread Janos Cserep
On Saturday, November 7, 2009, Janos Cserep cser...@metaprime.hu wrote: Yes. 2009/11/7 Ilja Pavkovic ilja.pavko...@binaere-bauten.de: Hi, I cannot reach wicketstuff.org anymore. Anyone else experiencing this problem

Re: wicketstuff.org down?

2009-11-07 Thread Janos Cserep
Yes. 2009/11/7 Ilja Pavkovic ilja.pavko...@binaere-bauten.de: Hi, I cannot reach wicketstuff.org anymore. Anyone else experiencing this problem? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

Re: wicketstuff.org down?

2009-11-07 Thread Janos Cserep
At least this gives me a reason and time now to setup Nexus to proxy wicketstuff.org until my builds are broken:) Any estimate when the dns change would be visible? Thanks, Janos 2009/11/7 Martijn Dashorst martijn.dasho...@gmail.com: THE server had been moves to another ip. I havent had time

Re: Could TinyMCE Upload pictures or files

2009-06-05 Thread Janos Cserep
I'm using the following custom tinymce javascript initialization (I don't use the default which comes with wicket-tinymce, but put this together manually). I override the image button of tinymce so the callback can change the whole panel and display a selector one. The user can use the selector

Re: FW: need help urgent......Change label dynamicly

2009-05-06 Thread Janos Cserep
AFAIR a button's label comes from it's Model. So you should do: new AjaxButton(preview){ public void onSubmit(AjaxRequestTarget target, Form form){ String label = getModelObject(); // or getDefaultModelObject(); if 1.4 if (click.equals(label) {

Re: FW: need help urgent......Change label dynamicly

2009-05-06 Thread Janos Cserep
And of course don't forget to add the button or a parent component to the ajaxrequesttarget as well. On Wed, May 6, 2009 at 11:58 AM, Janos Cserep cser...@metaprime.hu wrote: AFAIR a button's label comes from it's Model. So you should do: new AjaxButton(preview){       public void onSubmit

Re: Google Analytics and Wicket

2009-04-17 Thread Janos Cserep
Hi Mariana, Yes, with __trackPageview you can pretty much achieve what you want to do. In your menu component you probably change the panels by instantiating and replacing a main panel inside your page, right? If yes, do something like this: public void onClick(AjaxRequestTarget target) { //

Re: Markup inheritance with child pages setting title in the form 'BasePage.title + - + ChildPage.title'

2009-04-16 Thread Janos Cserep
1. Set an instance variable in the base page called basePageName You don't need a variable - all you need is a getter: public IModelString getPageTitleModel() { return new Model(ApplicationName); } 2. Use a Label to set the title in the base page Exactly, like this: add(new

Re: URL rewriting

2009-04-10 Thread Janos Cserep
You have to mount your page via MixedParamUrlCodingStrategy: mount(new MixedParamUrlCodingStrategy(/company, CompanyPage.class, new String[] {companyName}); and in CompanyPage(PageParameters parameters) constructor do something like this: String nameInUrl = parameters.getString(); String

Re: Localization issue

2008-08-27 Thread Janos Cserep
why the locale changes does not apply to the components? Are you setting up your components based on your locale in the constructor? Because if you do, then setting a Page object with setResponsePage won't create new component objects for you. Try:

Re: Localization issue

2008-08-27 Thread Janos Cserep
Actually now I have only one label for testing purposes: add(new Label(locale, getSession().getLocale().getLanguage())); That's actually bad practice. You are adding the component in the constructor. That code runs only once - when you create the component, page, etc. Try: add(new

Re: How to NOT use wicket's Role class

2008-02-14 Thread Janos Cserep
Bruce, Just use simpel strings as your role names: Roles roles = new Roles(OWNER,SUPERVISOR); roles.hasAnyRole(new Roles(OWNER)) - this will be true I usually put these as public final static Strings into my WebApplication class... Janos On Thu, Feb 14, 2008 at 8:39 PM, Bruce McGuire [EMAIL

Re: Mounting page at root

2008-02-06 Thread Janos Cserep
Is it possible at all to have content at / ? Trying to mount something at / results in an error and I'm wondering of there's a workaround. By default it displays your home page (actually the page represented by the page class returned by WebApplication's getHomePage() method) if you

Re: Mounting page at root

2008-02-06 Thread Janos Cserep
So I take it, it's currently not possible. Looks like I was not clear enough, sorry:) Configure your wicket filter to /* and return the page class you want to view as / as the home page in your application class. You don't have to mount anything, it will be displayed as /

Re: Doubt in wicket and multiple views

2008-02-06 Thread Janos Cserep
If you're looking for a way to use different layouts, templates for different virtual servers you have several options: - use the Session.setStyle() to set the style... you can do this in a custom WebRequest and by examining the server name of the request url. Then you can have different .html

Re: adding conditional component

2008-02-04 Thread Janos Cserep
How do you guys implement a link that is conditional? Like for example the link only shows if a given data is provided. Adding the a-tag in the Markup will coz an error if the condition is not met, because AjaxLink is not added. I usually handle such a situation by overriding the