Re: Nasty problem with "component not found" and images [solved]

2010-01-28 Thread Marat Radchenko
You could file enhancement request to make EmptySrcAttributeCheckFilter also report images whose src starts with #. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.a

Re: Serialization test

2010-01-27 Thread Marat Radchenko
Force your servlet container to serialize sessions after each request and add non-serializable field to objects that you don't want to be serialized. 2010/1/27 pieter claassen : > I want to test the following: > 1. Whether I have any private members stored on my pages that are not > a primitive ja

Re: PasswordTextField not showing the value

2010-01-27 Thread Marat Radchenko
You can't edit user password because you only store its hash. Don't you? 2010/1/27 Josh Kamau : >  I have would like to edit an existing user's properties including the > password. However, all the other properties are appearing on their > corresponding fields except the password field. How do i m

Re: final in MarkupContainer#add(Component...) method

2010-01-18 Thread Marat Radchenko
2010/1/14 Ilya German : > Hello! > > We're struggling with working around the final modifier for the > MarkupContainer#add(Component ...) method. > We have the following scenario: > 1. We'd like to use a repeater to add some components to the form. > 2. We'd like these components to work with Comp

Re: final in MarkupContainer#add(Component...) method

2010-01-18 Thread Marat Radchenko
> About the ids with digits for repeater, override the onBeforeRender method > and remove that validation if you need/want. Impossible. I just filed https://issues.apache.org/jira/browse/WICKET-2684 - To unsubscribe, e-mail: users

Re: Disabled Navigation if Action.ENABLE is restricted for page

2010-01-15 Thread Marat Radchenko
Why you're disabling whole page in first place? 2010/1/15 Giambalvo, Christian : > Hi all, > > i have a litte problem. > > I have implemented an own AuthorizationStrategy where I check I a user > is allowed to render/enable a component/page. > Each page has a navigation. If I restrict enable for a

Re: Wicket feedback

2009-12-23 Thread Marat Radchenko
Take a look at HibernateObjectModel from databinder project. 2009/12/22 : > Thanks for clarifying the things, > >> show me a framework that makes this easier... > I think that when I when I was working with Webwork (Struts2 now) I dint need > to do any thing else other than specifying spring fac

Re: Basic concept of Wicket

2009-12-17 Thread Marat Radchenko
> - Why is the WebPage created every time I reload the website, I though they > are only created once? Because it's stateless. Define 'once', btw. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional comman

Re: Domain Object Serialization

2009-12-16 Thread Marat Radchenko
2009/12/16 Igor Vaynberg : > only wicket pages get serialized at the end of each request Not always. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Wicket 1.4.4: ModalWindow on IE veeeeeeeeeery slow

2009-12-16 Thread Marat Radchenko
https://issues.apache.org/jira/browse/WICKET-2613 2009/12/16 Stefan Lindner : > I just moved to 1.4.4 in production and noticed that opening a modal > window is sooo veeery slow. It's unbelievable. > I installed the Wicket 1.4.4's "wicket-examples-1.4.4.war" locally in my > JBoss (

Re: What is the proper way to output arbitrary (non-html) response from wicket pages?

2009-12-16 Thread Marat Radchenko
Huh :) Found: http://old.nabble.com/Re:-Dynamic-PDF-Creation-p21379301.html 2009/12/16 MattyDE : > > Sorry i cant help you directly, but have you ever searched for "pdf" in the > mailing-list? > http://old.nabble.com/forum/Search.jtp?forum=25133&local=y&query=pdf >

What is the proper way to output arbitrary (non-html) response from wicket pages?

2009-12-16 Thread Marat Radchenko
Suppose i have a stateless page with a form and when user submits it, i want to respond with a dynamically-generated pdf file. What is the proper way to write him pdf without interfering (and, better, with integrating) with wicket response generation machinery? ---

Re: Domain Object Serialization

2009-12-16 Thread Marat Radchenko
2009/12/16 Janning Vygen : > Hi all, > > i am using wicket for a few days. It is great! Yeah, it is :) > User is a persistableEntity managed by Hibernate. User is NOT Serializable. Do you mean it doesn't implement Serializable? > But if i run it, i do not get any SerializableExceptions. > But the

Fwd: DELIVERY FAILURE: Invalid/unknown recipient [MAPI Reason Code: 1, MAPI Diagnostic Code 1]

2009-12-16 Thread Marat Radchenko
Please, unsubscribe him. -- Forwarded message -- From: Date: 2009/12/16 Subject: DELIVERY FAILURE: Invalid/unknown recipient [MAPI Reason Code: 1, MAPI Diagnostic Code 1] To: slonopotamusor...@gmail.com Your message  Subject: Re: (seemingly) session-related performance issue

Re: (seemingly) session-related performance issue

2009-12-16 Thread Marat Radchenko
https://issues.apache.org/jira/browse/WICKET-2613 2009/12/16 Kurt Heston : > Tonight, I moved from v1.3.5 to v1.4.4.  I'm up and running after > changing all of my getModel statements, but an old performance problem > has shown up again. > > Back when I moved to 1.3.x, pages started loading really

Re: Questions about Serialization...

2009-12-09 Thread Marat Radchenko
> I wasn't using Model in this precise case. I thought using Model was a best > practice, to save memory. Choosing proper model isn't (almost always) about performance, it's about logic. You _have_ to use plain serializing model for data that isn't stored anywhere else. You _have_ to use LDM in c

Re: wicketstuff.org Confluence error

2009-12-09 Thread Marat Radchenko
That's controlled with 2009/12/9 nino martinez wael : > Yeah it seems strange, some project seems not to have the issue: > > http://www.wicketstuff.org/maven/repository/org/wicketstuff/iolite/wicketstuff-iolite/0.3-SNAPSHOT/ > > While a core project does.. > http://www.wicketstuff.org/maven/repos

Fwd: DELIVERY FAILURE: Invalid/unknown recipient [MAPI Reason Code: 1, MAPI Diagnostic Code 1]

2009-12-09 Thread Marat Radchenko
Please, unsubscribe him, I'm getting such reply for each email i send to this maillist. -- Forwarded message -- From: Date: 2009/12/8 Subject: DELIVERY FAILURE: Invalid/unknown recipient [MAPI Reason Code: 1, MAPI Diagnostic Code 1] To: slonopotamusor...@gmail.com Your message

Re: Questions about Serialization...

2009-12-09 Thread Marat Radchenko
2009/12/9 Yves-Marie LAINÉ : > (But put Serializable in Session doesn't mean to put Serialized in Session) Uh? > And it seems that wicket Serialize each Page one by one. This way if you > have a single object instance that you share between pages as object > property, after pages serialization, if

Re: Questions about Serialization...

2009-12-08 Thread Marat Radchenko
2009/12/8 Yves-Marie LAINÉ : > Hi, > > I'm new on the list, sorry if my question has already been asked. I didn't > find the right answer on google. > > Is it possible tu use wicket without Page serialization ? It is. Use only stateless components. > Technically, is it possible to imagine a Simple

Re: Location of html files

2009-12-05 Thread Marat Radchenko
With custom IResourceFinder, you can put them wherever you want. But why? You should have a strong reason to not follow defaults. 2009/12/6, Johan den Boer : > Hi, > > I place my html files in the same package where my java classes resides. Is > it possible to change this. I want to place my htm

Re: DropDownChoiceWithStylingOptions

2009-12-04 Thread Marat Radchenko
Definitely, lol :) - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org

Re: Resource Location

2009-12-03 Thread Marat Radchenko
2009/12/4 Lester Chua : > Hi, > > I'm attempting to load a css resource. > > The example in the wicket reference was using: > private static final CompressedResourceReference MYPAGE_CSS = new > CompressedResourceReference(MyPage.class, "MyPage.css"); > > I understand that this is scoped to MyPage.c

Re: Session stealing with wicket-auth-roles

2009-12-02 Thread Marat Radchenko
2009/12/2 Andrew Turner : > > > Good morning all, > > I'm hoping I've misconfigured something in my application, but we seem to be > prone to session stealing in our wicket application.  We're using > wicket-auth-roles to provide the security, and if you are able to access the > jsessionid you c

Re: InvalidUrlException considered evil?

2009-12-02 Thread Marat Radchenko
2009/12/2 Ilja Pavkovic : > Am Mittwoch, 2. Dezember 2009 12:18:55 schrieb Marat Radchenko: >> There some places in Wicket sources where it throws >> InvalidUrlException that causes exception logging and >> InternalErrorPage is shown. >> >> However, I don't a

Re: InvalidUrlException considered evil?

2009-12-02 Thread Marat Radchenko
Same applies to "org.apache.wicket.WicketRuntimeException: unable to find component with path ... on stateless page ..." that can also be triggered by badly constructed url. - To unsubscribe, e-mail: users-unsubscr...@wicket.apach

InvalidUrlException considered evil?

2009-12-02 Thread Marat Radchenko
There some places in Wicket sources where it throws InvalidUrlException that causes exception logging and InternalErrorPage is shown. However, I don't agree that badly constructed URL is and _internal_ error. It is external error (for example, user was playing with urls, modifying them by hand).

Re: Form too large ?

2009-12-01 Thread Marat Radchenko
Jetty has limitation on max POST size. It can be controlled via org.mortbay.jetty.Request.maxFormContentSize system property (20 bytes by default) 2009/12/1 Martin Makundi > > Hi! > > What is this error? We got this from our production site... > > > 2009-12-01 11:16:19,634 1488650 [btpool0-17

cleanup unresolved issues with "fix for" set to already released versions?

2009-11-30 Thread Marat Radchenko
There's a small number of issues that is set to be fixed in already released versions [1]. Maybe they should be updated to properly reflect versions they'll be fixed in? Having "fix for" set to past release doesn't make sense. [1] https://issues.apache.org/jira/secure/IssueNavigator.jspa?reset=tr

Re: Localize a string using custom locale

2009-11-27 Thread Marat Radchenko
Just override getLocale in your component and use one of non-deprecated Localizer methods. 2009/11/27 Gatos > Hello, > > For example I need to localize a string to defferent languages. > > How is it possible to localize using a custom locale? > > I found that a method in Localizer class, but it'

MockHttpServletResponse, status vs code

2009-11-23 Thread Marat Radchenko
MockHttpServletResponse has two fields, status and code, which is ambigious. sendError method changes code, while setStatus changes status field. I think these two should be merged to mimic servlet api (if one calls sendError, then error status is available via getStatus). If no objections, I'll

Re: Forms and detached JPA ( Hibernate) Objects

2009-11-21 Thread Marat Radchenko
Use HibernateObjectModel from databinder.

Re: Can Wicket automatically remove beginning and trailing spaces in a text field?

2009-10-02 Thread Marat Radchenko
It already does that. FormComponent: protected T convertValue(String[] value) throws ConversionException { return (T)(value != null && value.length > 0 && value[0] != null ? trim(value[0]) : null); } 2009/10/2 David Chang > How to set it up in a Wicket application? I would like to set it up in

Re: better way to strip wicket markup / tags per page?

2009-09-29 Thread Marat Radchenko
> > In some situations during development... With that in mind, this solution is absolutely ok. 2009/9/29 Antoine van Wel > Hi, > > on the wiki[1] it is described how to get rid of wicket markup such as > wicket:id attributes on a page basis. > The solution looks like a dirty hack to me which m

Re: will there be a performance gain to use singleton to remove references to the service object in models?

2009-07-28 Thread Marat Radchenko
Don't guess, profile it. 2009/7/28 Jason Wang : > Hi all, > > Although I am using spring-wicket to prevent the whole spring being > serialized, It still brothers me to  see the  references in the model > object, for example: > > Instead of using this: > > public class MyViewObjectProvider extends

Re: 1.4 is ready for production?

2009-07-21 Thread Marat Radchenko
We're using it since 1.4-m2 in production. 2009/7/20 Alessandro Vincelli : > I know that 1.4 is RC, and RC means that is not ready for production ;-) > But I'm using the 1.4 since January in some small projects without > blocking problems? > The issue opened in Jira are not blocking for me. > Any

Re: DatePicker

2009-07-16 Thread Marat Radchenko
DatePicker is in wicket-datetime artifact. 2009/7/16 Martin Letendre : > In the latest wicket javadoc I see that there is a DatePicker componenent > based on yui. > > http://wicket.apache.org/docs/1.4/org/apache/wicket/extensions/yui/calendar/DatePicker.html > > Great ! > > I have these dependenci

Re: Using Converter with DropDownChoice

2009-07-07 Thread Marat Radchenko
What model type to you have? Did you call setType on component? 2009/7/7, Christoph Drießen : > Hi all, > > I'm trying to use a Converter with a DropDownChoice overriding the > getConverter(Class type) method. Unfortunately this method never gets > called. > Any ideas? > > Christoph > > > >

Re: wicket on java server

2009-06-10 Thread Marat Radchenko
Projects can't require anything. It's people :) Wicket runs on anything that supports Servlet specification. 2009/6/10 Dorothée Giernoth > Hey guys, > > I got a (weird) question: a project requires us to write our own server. > But I am eager to use wicket. Now what I dun know is, how to make w

Re: Bug in RequestUtils.toAbsolutePath?

2009-05-18 Thread Marat Radchenko
;/", requestURL.indexOf("//")+2); >>>     if (0 < cutIndex) { >>>       return requestURL.substring(0, cutIndex); >>>     } >>>     return requestURL.toString(); >>> >>>   } >>> >>>  ** >>>  Martin >>> >

Re: How to get ride of page's state?

2009-05-18 Thread Marat Radchenko
Make it stateless :) 2009/5/18 HHB : > Hey, > How to get ride of the page's state after the request is done? > Thanks. > > > - > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-

Re: Bug in RequestUtils.toAbsolutePath?

2009-05-17 Thread Marat Radchenko
; } > return requestURL.toString(); > > } > > ** > Martin > > 2009/5/17 Marat Radchenko : > > Hmm... are you sure you want to use that method at all? It uses given > > path as relative to _current reqest path_. > > 2009/5/17, Martin Makundi : >

Re: Bug in RequestUtils.toAbsolutePath?

2009-05-17 Thread Marat Radchenko
com/BookmarkablePage/Parameter1/Value1/Parameter2//images/Image.png"; > > Note a typo in my previous email, normally it returns: > > > "http://www.mydomain.com/BookmarkablePage/Parameter1/Value1/Parameter2/images/Image.png"; > without the double-slash. > >

Re: Bug in RequestUtils.toAbsolutePath?

2009-05-17 Thread Marat Radchenko
Maybe RequestUtils.toAbsolutePath("/images/Image.png") (note leading slash)? 2009/5/17 Martin Makundi : > Hi! > > I have a dynamic image which resides in > "http://www.mydomain.com/images/Image.png"; (the filename itself might > vary). In order for the image to be visible in downloaded documents,

Re: non-existent Springbean lazy beans only work when name specified

2009-05-06 Thread Marat Radchenko
Your setup seems to be broken. That's the whole point of nameless @SpringBean/@Resource/@Autowire - to find beans by _type_, not name. Relying on successful injection of beans of wrong type is a bad idea IMO. It'll break as soon as smth in your code tries to invoke that bean. I'd even say that allo

Re: How to test AjaxFormChoiceComponentUpdatingBehavior for Radio Button

2009-05-04 Thread Marat Radchenko
That's what we are using here: public static void selectAjaxRadio(final WicketTester tester, final String radioPath) { final Radio radio = (Radio) tester.getComponentFromLastRenderedPage(radioPath); final RadioGroup radioGroup = radio.findParent(RadioGroup.class); AjaxFormChoiceCompone

Re: FOR LIST OWNER: your antispam is awful it doesn't apply normal letters

2009-03-29 Thread Marat Radchenko
It's not antispam fault, HTML emails are awful. 29 марта 2009 г. 10:25 пользователь Khlystov Alexandr написал: > > FOR LIST OWNER: your antispam is awful it doesn't apply normal letters > > below is the sample > > Mail Delivery Subsystem пишет: >> >> This is an automatically generated Delivery St

Re: Have a feature, want to contribute

2009-03-16 Thread Marat Radchenko
> > Alex > > > Marat Radchenko-2 wrote: >> >> Wicket pages/components can be either stateful or stateless. Wicket >> manages hem transparently and it is very easy to write any complex >> page you want. Stateful pages are much more powerful than stateless. >>

Re: Have a feature, want to contribute

2009-03-08 Thread Marat Radchenko
If community was interested, it would say something in 3 months, uh? :) I'll post it on tuesday. 2009/3/8, Alex Objelean : > > I think community would be interested in this feature. Could you post the > code? > > > > Marat Radchenko-2 wrote: > > > >

Re: [vote] In Wicket 1.4 and onwards, remove widening from the list of choices model in DropDownChoice, changing it from IModel> to IModel>

2009-03-02 Thread Marat Radchenko
Johan Compagner, it won't be possible without unchecked cast. 2009/3/2 Johan Compagner : > If we loose the wildcard is it then still possible to do everything? > > We have it to be able to use a List when we declare it as a > > When you have that you have to copy it over i guess by a helper meth

Re: [vote] In Wicket 1.4 and onwards, remove widening from the list of choices model in DropDownChoice, changing it from IModel> to IModel>

2009-03-02 Thread Marat Radchenko
[X] No, keep DropDownChoice as it is in Wicket 1.4-rc2 2009/3/2 Timo Rantalaiho : > Background: > >  https://issues.apache.org/jira/browse/WICKET-1512 > >  https://issues.apache.org/jira/browse/WICKET-2126 > >  http://www.nabble.com/LDM-with-Generics-for-DropDownChoice-td22155211.html > > > This w

Re: [wicket-1.4] Why has Model parameter to extend Serializable?

2009-01-20 Thread Marat Radchenko
2009/1/20 James Carman : > A Model is serialized, therefore the object contained within it must > be serializable. Uh? What about stateless pages? - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional comman

Re: WicketTester OnChangeAjaxBehavior ?

2008-12-29 Thread Marat Radchenko
tester.executeAjaxEvent("full:path:to:component", "onchange"); 2008/12/29 Martin Makundi : > Hi! > > I have some select boxes on the screen which trigger screen refresh in > live mode. > > However, I have not yet figured out how to trigger > OnChangeAjaxBehavior using WicketTester in a non-intrusi

Have a feature, want to contribute

2008-12-18 Thread Marat Radchenko
Wicket pages/components can be either stateful or stateless. Wicket manages hem transparently and it is very easy to write any complex page you want. Stateful pages are much more powerful than stateless. However that comes at a cost of using page store for their state. On highload sites it is usua

Re: No WebApplicationContext found: no ContextLoaderListener registered?

2008-12-15 Thread Marat Radchenko
Sorry, copied wrong anchor :( should be http://static.springframework.org/spring/docs/2.5.x/reference/beans.html#context-create 2008/12/14, Marat Radchenko : > You didn't init spring in your web.xml > See > http://static.springframework.org/spring/docs/2.5.x/reference/beans.html

Re: No WebApplicationContext found: no ContextLoaderListener registered?

2008-12-14 Thread Marat Radchenko
You didn't init spring in your web.xml See http://static.springframework.org/spring/docs/2.5.x/reference/beans.html#beans-factory-scopes-other-web-configuration 2008/12/13 wicketworker : > > I am getting the following exception while starting my jetty server : > > java.lang.IllegalStateException:

Re: [VOTE] Organizing Wicket Stuff / Regular Release Schedule?

2008-11-24 Thread Marat Radchenko
[X] YES 2008/11/24 Jeremy Thomerson <[EMAIL PROTECTED]>: > Hello everyone, > I would like to get your opinion on an idea regarding the Wicket Stuff > project(s). As you are familiar with, Wicket Stuff is where anyone can > create anything related to Wicket, small or large. One problem that new

Re: Extremely confisung onBeforeRender/callOnBeforeRenderIfNotVisible behavior

2008-11-20 Thread Marat Radchenko
ed your usecase yet... > > -igor > > On Thu, Nov 20, 2008 at 7:33 AM, Marat Radchenko > <[EMAIL PROTECTED]> wrote: >> So. Is there any recommended (and hopefully not error-prone) way of >> handling conditional visibility? >> >> 2008/11/20 Matej Knopp <

Re: Extremely confisung onBeforeRender/callOnBeforeRenderIfNotVisible behavior

2008-11-20 Thread Marat Radchenko
;return yourCondition; >} > } > > On Thu, Nov 20, 2008 at 9:33 AM, Marat Radchenko < > [EMAIL PROTECTED]> wrote: > >> So. Is there any recommended (and hopefully not error-prone) way of >> handling conditional visibility? >> >> 2008/11/20 Mate

Re: Extremely confisung onBeforeRender/callOnBeforeRenderIfNotVisible behavior

2008-11-20 Thread Marat Radchenko
So. Is there any recommended (and hopefully not error-prone) way of handling conditional visibility? 2008/11/20 Matej Knopp <[EMAIL PROTECTED]>: >> That's first confusing point. Javadocs on >> callOnBeforeRenderIfNotVisible promise us that onBeforeRender will be >> called even if component is not

Re: Extremely confisung onBeforeRender/callOnBeforeRenderIfNotVisible behavior

2008-11-20 Thread Marat Radchenko
Mistake in Scenario #1. Read as: Good, but if A calculates isVisible = _FALSE_ 2008/11/20 Marat Radchenko <[EMAIL PROTECTED]>: > Hello, Wicket team and Wicket users. > > We broke our mind this week while trying to understand onBeforeRender > behavior. > > Scenario

Extremely confisung onBeforeRender/callOnBeforeRenderIfNotVisible behavior

2008-11-20 Thread Marat Radchenko
Hello, Wicket team and Wicket users. We broke our mind this week while trying to understand onBeforeRender behavior. Scenario #1: Parent component A overrides onBeforeRender (and sets visibility there) and returns true from callOnBeforeRenderIfNotVisible. Child component B does the same. Then, on

Re: RES: FileUploadField usage changed in 1.4 rc-1?

2008-11-19 Thread Marat Radchenko
Does it mean that FileUploadField now stores FileUpload in model? 2008/11/19, Erik van Oosten <[EMAIL PROTECTED]>: > Yeah, I run into the same thing. > > Just pass FileUploadField an empty model: new Model() > > Regards, >Erik. > > > Bruno Cesar Borges schreef: > > > Yes, you need to set a M

Re: WicketTester.assertErrorMessages - encoding problem

2008-11-01 Thread Marat Radchenko
Cbuttic bug in locale-specifics handling. I think it is a candidate for a bugreport. 2008/11/1 Artur W. <[EMAIL PROTECTED]> > > The problem is in tester.assertErrorMessages at: > msgs.add(iterator.next().toString()); > > The .toString() returns string with iso-8859-1 encoding. > > > The workaroun

Re: Mounting pages with trailing slash

2008-10-07 Thread Marat Radchenko
Anybody? 2008/8/29 Marat Radchenko <[EMAIL PROTECTED]>: > Hi everyone! > > Is it supposed to be legal to use mount path with trailing slash? > > If yes, then I'll file a bugreport because it doesn't work [yup, I > have a testcase]. If no

Re: Wicket 1.4 with QWicket

2008-09-07 Thread Marat Radchenko
1.4-m3 is the latest release. 2008/9/8 Vernon <[EMAIL PROTECTED]>: > > I am very new to Wicket after heard so many good things about it. I am > starting a project with QWicket since I want to use something I already know > Spring and Hibernate. None of Wicket packages can be located with the 1.4

Mounting pages with trailing slash

2008-08-29 Thread Marat Radchenko
Hi everyone! Is it supposed to be legal to use mount path with trailing slash? If yes, then I'll file a bugreport because it doesn't work [yup, I have a testcase]. If not, then that will be another story. - To unsubscribe, e-mai