Re: Add/remove AbstractAjaxBehavior

2012-12-12 Thread Vitaly Tsaplin
component because it cannot create callbackUrl for more than one. On Wed, Dec 12, 2012 at 4:06 PM, Vitaly Tsaplin vitaly.tsap...@gmail.com wrote: Hi, It looks like it is not possible to remove an instance of AbstractAjaxBehavior. The behavior keeps reference to a component

Re: Add/remove AbstractAjaxBehavior

2012-12-12 Thread Vitaly Tsaplin
I filed an issue https://issues.apache.org/jira/browse/WICKET-4925 2012/12/12 Vitaly Tsaplin vitaly.tsap...@gmail.com Hi Martin, Ok. But what if I want to remove it and then add again later? In my case I have several behaviors that are relatively heavy to create and I switch them. Vitaly

Re: CryptedUrlWebRequestCodingStrategy and bookmarkable pages

2011-04-14 Thread Vitaly Tsaplin
know the crypting algorithm doesn't use the sessionid. Either try to debug and see what happens or create a ticket with a quickstart and wait until someone of us have time to look at it. On Wed, Apr 13, 2011 at 11:46 AM, Vitaly Tsaplin vitaly.tsap...@gmail.comwrote: when I try to copy

Re: CryptedUrlWebRequestCodingStrategy and bookmarkable pages

2011-04-13 Thread Vitaly Tsaplin
=:com.tsaplin.web.engine.components.commerce.ProductViewPageid=5 Vitaly 2011/4/13 Martin Grigorov mgrigo...@apache.org: On Tue, Apr 12, 2011 at 9:11 PM, Vitaly Tsaplin vitaly.tsap...@gmail.comwrote: Hi everyone, I am using CryptedUrlWebRequestCodingStrategy to encode urls. I also put an instance of BookmarkablePageLink on my page

Re: CryptedUrlWebRequestCodingStrategy and bookmarkable pages

2011-04-13 Thread Vitaly Tsaplin
()); } }; } 2011/4/13 Martin Grigorov mgrigo...@apache.org: well, this is what crypting does ... but I think the url is still bookmarkable, i.e. clicking on it always creates a new instance of ProductViewPage On Wed, Apr 13, 2011 at 9:37 AM, Vitaly Tsaplin vitaly.tsap...@gmail.comwrote: Hi Martin

CryptedUrlWebRequestCodingStrategy and bookmarkable pages

2011-04-12 Thread Vitaly Tsaplin
Hi everyone, I am using CryptedUrlWebRequestCodingStrategy to encode urls. I also put an instance of BookmarkablePageLink on my page and the link that has been generated by this is NOT bookmarkable. What's wrong I am doing? Do I always have to mount my page as bookmarkable? Best regards, Vitaly

How to get notified when a component is added to a hierarchy?

2010-12-13 Thread Vitaly Tsaplin
Hi everyone, I far as I could find out there is onRemove method which gets called once a component has been removed from its parent. But how about the opposite? How to get notified when a component is added to a hierarchy? (setParent is final) Best regards, Vitaly

Re: How to get notified when a component is added to a hierarchy?

2010-12-13 Thread Vitaly Tsaplin
PM, Vitaly Tsaplin vitaly.tsap...@gmail.com wrote:     Hi everyone,     I far as I could find out there is onRemove method which gets called once a component has been removed from its parent. But how about the opposite? How to get notified when a component is added to a hierarchy? (setParent

Re: Determine if request are ajax?

2010-11-23 Thread Vitaly Tsaplin
AjaxUtils.isAjaxRequest () On Tue, Nov 23, 2010 at 2:13 PM, nino martinez wael nino.martinez.w...@gmail.com wrote: Hi I have a page which are ajax enabled, on first rendering (non ajax) it should render some css. On subsequent renderings(ajax) it should only render if new css has been

Re: Determine if request are ajax?

2010-11-23 Thread Vitaly Tsaplin
Sorry, I was a part of my code :) RequestCycle.get ().getRequestTarget () instanceof AjaxRequestTarget On Tue, Nov 23, 2010 at 2:18 PM, Vitaly Tsaplin vitaly.tsap...@gmail.com wrote:    AjaxUtils.isAjaxRequest () On Tue, Nov 23, 2010 at 2:13 PM, nino martinez wael nino.martinez.w

The inconsistency in a localization of enums (DropDownChoice vs EnumLabel)

2010-11-22 Thread Vitaly Tsaplin
Hi everyone, It seems there is an inconsistency in the way DropDownChoice (when localizeDisplayValues returns true) and EnumLabel localize they values. DropDownChoice uses toString and EnumLabel - toString + enum class name which makes me either have to keys for the same value or override

Re: Free wicket from component hierarchy hell

2010-11-09 Thread Vitaly Tsaplin
In simple cases it makes no difference. It makes real difference with some complex widgets (for example search components) that must be reused on many pages and they should render differently on each page depending on how much space and what context they are in. I don't like duplicating code

Re: Free wicket from component hierarchy hell

2010-11-08 Thread Vitaly Tsaplin
I'm sorry to say, but the whole discussion makes little sense to me and these attempts to fix something that is not broken actually scares me a bit. +1 - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For

Re: Free wicket from component hierarchy hell

2010-11-08 Thread Vitaly Tsaplin
My only hope is that the solution you end up with will not make us running some sort of script against all the sorces we have. On Mon, Nov 8, 2010 at 7:30 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: I'm sorry to say, but the whole discussion makes little sense to me and these

Is there any way to process a wicket ajax envelope sent in some non-wicket way like using jQuery or Prototype?

2009-03-14 Thread Vitaly Tsaplin
Hi guys, Is there any way to process a wicket ajax envelope sent in some non-wicket way like using jQuery or Prototype? It seem that I can somehow utilize loadedCallback () but i don't know how to call it right way. Vitaly

Re: Is there any way to process a wicket ajax envelope sent in some non-wicket way like using jQuery or Prototype?

2009-03-14 Thread Vitaly Tsaplin
-server round-trip which will involve a regular wicket ajax call. Should I create an issue for that? On Sat, Mar 14, 2009 at 7:34 PM, Vitaly Tsaplin vitaly.tsap...@gmail.com wrote:   Hi guys,   Is there any way to process a wicket ajax envelope sent in some non-wicket way like using jQuery

Re: Wicket meetup in Switzerland?

2009-02-20 Thread Vitaly Tsaplin
Hi there, I would propose to meet in Geneva!! ;) Vitaly On Fri, Feb 20, 2009 at 1:57 PM, jWeekend jweekend_for...@cabouge.com wrote: Thomas, This is partly because, strange as it may seem, not everyone that develops with Wicket uses this list. We have clients and students that have come

What is the best place to add AjaxRequestTarget.IListener?

2009-01-24 Thread Vitaly Tsaplin
Hi there, What is the best place to add AjaxRequestTarget.IListener? And what is a life time of this listener? When is it removed? Vitaly - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional

AjaxRequestTarget.prependJavascript () seems to not evaluate a javascript

2009-01-22 Thread Vitaly Tsaplin
Hi there, Actually I have a behavior which implemented like the following @Override public void onRendered (Component component) { String scr = null; if (isAjaxRequest ()) {

Generated links for sending with emails

2008-12-19 Thread Vitaly Tsaplin
Hi there, The simplest example is a link for accessing a user profile. It's unique and once clicked should cause opening a user profile. Or what even more interesting is the links that are generated for performing some specific actions like for a voting when the user by clicking on the link

Re: Generated links for sending with emails

2008-12-19 Thread Vitaly Tsaplin
as it tries to render the response from the url. It is nice if you can then continue working in the application. I suggest a page that says Thank you for your vote, it counts in a friendly message. Martijn On Fri, Dec 19, 2008 at 12:07 PM, Vitaly Tsaplin vitaly.tsap...@gmail.com wrote

Is there any way to mount an action

2008-12-08 Thread Vitaly Tsaplin
Hi there, Something like: mountAction (/logout, new Action () { public void perform () { doLogout (); } ); Is is somehow possible? Vitaly - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: Is there any way to mount an action

2008-12-08 Thread Vitaly Tsaplin
] wrote: Wicket is not an action framework. There won't be any mount action thingies if I can help it. Why not just create a LogoutLink extends Link which does this? Think components, not actions. Martijn On Mon, Dec 8, 2008 at 11:29 AM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Hi Martijn

Re: Is there any way to mount an action

2008-12-08 Thread Vitaly Tsaplin
logged out.)); getSession().invalidate(); } } mountBookmarkablePage(/logout, LogoutPage.class); Martijn On Mon, Dec 8, 2008 at 10:28 AM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Hi there, Something like: mountAction (/logout, new Action () { public void perform

Re: Is there any way to mount an action

2008-12-08 Thread Vitaly Tsaplin
, Martijn Dashorst [EMAIL PROTECTED] wrote: You already need the link in the markup and you need the action in the javacode. What are you complaining about? You don't use base pages? Martijn On Mon, Dec 8, 2008 at 11:55 AM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: I just called it action

Re: I'm adding a new item to a ListView via ajax - how to get reference to the new item?

2008-08-17 Thread Vitaly Tsaplin
Hi, The item is already on your page so just use its html id in the javascript script you use to highlight it. Vitaly On Sun, Aug 17, 2008 at 1:22 PM, Wayne Pope [EMAIL PROTECTED] wrote: Hi everyone, I have a ListView that displays a list of cars (say). I have a small form on the

Re: I'm adding a new item to a ListView via ajax - how to get reference to the new item?

2008-08-17 Thread Vitaly Tsaplin
need a AjexRequestTarget to append the javascript? On Sun, Aug 17, 2008 at 1:28 PM, Vitaly Tsaplin [EMAIL PROTECTED]wrote: Hi, The item is already on your page so just use its html id in the javascript script you use to highlight it. Vitaly On Sun, Aug 17, 2008 at 1:22 PM, Wayne

Re: Modal window - update main page on close

2008-07-29 Thread Vitaly Tsaplin
It depends how you create your modal window. If it contains a page (iframe) then passing a component belonging to a main page to a modal window is not a solution. At least it did not work for me. The work around was to either open a modal window as a panel and pass the component as a constructor

Re: DataView and No items label

2008-07-27 Thread Vitaly Tsaplin
in the dataview into it and override isvisible() { return dataview.getitemcount()==0; } -igor On Sat, Jul 26, 2008 at 5:53 PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Hi everyone, Can anyone suggest a way to add a messages like No items in case if no items can be presented by the DataView

Re: DataView and No items label

2008-07-27 Thread Vitaly Tsaplin
, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Thank you Igor, It's a good idea! So this component would complete the set of three: DataView, PagingNavigator and NoItemLabel (or kind of). Vitaly On Sun, Jul 27, 2008 at 4:36 AM, Igor Vaynberg [EMAIL PROTECTED] wrote: you can create

Re: DataView and No items label

2008-07-27 Thread Vitaly Tsaplin
[EMAIL PROTECTED] wrote: He means check out DefaultDataTable: http://people.apache.org/~tobrien/wicket/apidocs/org/apache/wicket/extensions/markup/html/repeater/data/table/NoRecordsToolbar.html Notice the part about NoRecordsToolbar. On Sun, Jul 27, 2008 at 7:53 AM, Vitaly Tsaplin [EMAIL

DataView and No items label

2008-07-26 Thread Vitaly Tsaplin
Hi everyone, Can anyone suggest a way to add a messages like No items in case if no items can be presented by the DataView. Currently I am using a simple label hiding it if something presents. Is there any other way? Or someone could generalize it by baking it to a reusable component?

Javascript error in wicket

2008-04-30 Thread Vitaly Tsaplin
Hi everyone, Firebug is complaining as follows: [Exception... Component is not available nsresult: 0x80040111 (NS_ERROR_NOT_AVAILABLE) location: JS frame :: file:///C:/Program%20Files/Mozilla%20Firefox/components/nsSessionStore.js :: sss_saveState :: line 1753 data: no] [Break on this

Re: Javascript error in wicket

2008-04-30 Thread Vitaly Tsaplin
This file exists. I can open it... On Wed, Apr 30, 2008 at 2:52 PM, Peter Ertl [EMAIL PROTECTED] wrote: that's not wicket but firefox... try reading the filename: file:///C:/Program%20Files/Mozilla%20Firefox/components/nsSessionStore.js Am 30.04.2008 um 12:17 schrieb Vitaly

Re: what is the preferred way to include a javascript library to a wicket project?

2008-04-27 Thread Vitaly Tsaplin
are very limited. The client side shouldn't be jailed by the server side anyhow. A javascript developer should always have a change to tweak the tricky nature of javascript. On Sun, Apr 27, 2008 at 11:21 AM, Uwe Schäfer [EMAIL PROTECTED] wrote: Vitaly Tsaplin schrieb: -- personally i like

a hidden field named x is filled by the form action url... a bug?

2008-04-27 Thread Vitaly Tsaplin
Hi everyone, It seems that if you add a hidden field named x to your form the field is going to be filled by the form action url :) It should be easy to reproduce. Vitaly - To unsubscribe, e-mail: [EMAIL PROTECTED] For

Re: what is the preferred way to include a javascript library to a wicket project?

2008-04-26 Thread Vitaly Tsaplin
at 6:24 PM, Nino Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Vitaly Tsaplin wrote: Isn't it often better to explicitly declare the list of javascript libraries the component uses and let the user add this libraries to the web content folder manually on his

Re: what is the preferred way to include a javascript library to a wicket project?

2008-04-26 Thread Vitaly Tsaplin
on and at least bother to namespace all their code life will be easier. -igor On Sat, Apr 26, 2008 at 3:05 PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: And what does this mean? What if 2 different extensions are contributing to a header 2 different versions of YUI or prototype

Re: what is the preferred way to include a javascript library to a wicket project?

2008-04-26 Thread Vitaly Tsaplin
javascript. but looking at the modal window and autocomplete textfield, i dont think that is a business we want to be in necessarily as it is a huge timesink. -igor On Sat, Apr 26, 2008 at 4:28 PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: I am not talking about a level of wicket

Re: what is the preferred way to include a javascript library to a wicket project?

2008-04-26 Thread Vitaly Tsaplin
. but sure, i guess we can add a simple boolean datepicker.contributeDependencies() that you can then override and return false. of course then it puts burden on any component that encapsulates a datepicker to forward this breakout... -igor On Sat, Apr 26, 2008 at 5:20 PM, Vitaly Tsaplin

what is the preferred way to include a javascript library to a wicket project?

2008-04-25 Thread Vitaly Tsaplin
Hi everyone, There are many usecases when it could be necessary to write some javascript by hands directly in the html file. So I need to reference the library I use in a head section of my html file. But having a reusable component written in java which is depending on the same javascript

Re: what is the preferred way to include a javascript library to a wicket project?

2008-04-25 Thread Vitaly Tsaplin
-stuff-contrib-input-events Vitaly Tsaplin wrote: Hi everyone, There are many usecases when it could be necessary to write some javascript by hands directly in the html file. So I need to reference the library I use in a head section of my html file. But having a reusable

Re: what is the preferred way to include a javascript library to a wicket project?

2008-04-25 Thread Vitaly Tsaplin
/STUFFWIKI/wicket-stuff-contrib-input-events Vitaly Tsaplin wrote: Hi everyone, There are many usecases when it could be necessary to write some javascript by hands directly in the html file. So I need to reference the library I use in a head section of my html file. But having

Re: what is the preferred way to include a javascript library to a wicket project?

2008-04-25 Thread Vitaly Tsaplin
Saturnino Martinez Vazquez Wael [EMAIL PROTECTED] wrote: Vitaly Tsaplin wrote: I mean sometimes the library like prototype or whatever is necessary just to make some decorations in a markup. A good example is 100% height correction. So there is no reason to start a web server just

Re: How to close a popup window after a form submition and update an arbitrary component on a parent page via ajax?

2008-04-23 Thread Vitaly Tsaplin
On Wed, Apr 23, 2008 at 1:06 AM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Hi everyone, A page containing a form is opened in a popup window (a true browser window) and being submitted if the form has been processed successfully it should close itself automatically and update

How to close a popup window after a form submition and update an arbitrary component on a parent page via ajax?

2008-04-22 Thread Vitaly Tsaplin
Hi everyone, A page containing a form is opened in a popup window (a true browser window) and being submitted if the form has been processed successfully it should close itself automatically and update a part of a parent page (the opener) using an ajax call. Have anyone faced a similar

Why does the method getObject of IModel return Object but not Serializable?

2008-04-21 Thread Vitaly Tsaplin
Hi everyone, I am going to ask probably the most stupid question ever :) Why does the method getObject of IModel return Object but not Serializable? I suspect a model object is meant to be always stored in a session? Vitaly

Re: Wicket is the state into which all web frameworks will eventually evolve

2008-04-15 Thread Vitaly Tsaplin
...It's also worth to mention an extremely helpful community! On Tue, Apr 15, 2008 at 10:39 PM, Andrew Broderick [EMAIL PROTECTED] wrote: Hi, Just wanted to take time to say I LOVE WICKET! It is a completely different approach from the other MVC frameworks. For modularity, stability,

Re: How to pass an arbitrary javascript variable to onSubmit?

2008-04-11 Thread Vitaly Tsaplin
markup set it to your javascriptvariable. Maurice On Thu, Apr 10, 2008 at 5:39 PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Hi everyone, How to pass an arbitrary javascript variable to onSubmit? Vitaly

Re: Good example for FormComponentPanel?

2008-04-11 Thread Vitaly Tsaplin
and it seems to make sense. Again, if anyone wants to share any tips/input regarding this (or how to avoid traps), please don't be shy ;-) Michael -Original Message- From: Vitaly Tsaplin [mailto:[EMAIL PROTECTED] Sent: Friday, April 11, 2008 4:52 PM To: users@wicket.apache.org

How to pass an arbitrary javascript variable to onSubmit?

2008-04-10 Thread Vitaly Tsaplin
Hi everyone, How to pass an arbitrary javascript variable to onSubmit? Vitaly - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: a transparent conversion of a CheckBoxMultipleChoice value

2008-04-09 Thread Vitaly Tsaplin
What is going to happen if I call getModel on such a component? The model should be properly unwrapped I suspect. It's a logical behavior. Is it possible to achieve? On Wed, Apr 9, 2008 at 3:03 PM, John Krasnay [EMAIL PROTECTED] wrote: On Tue, Apr 08, 2008 at 11:03:52PM +0200, Vitaly Tsaplin

Re: a transparent conversion of a CheckBoxMultipleChoice value

2008-04-09 Thread Vitaly Tsaplin
strict as you can think but since wicket people are struggling for every final keyword in the API I am trying to be conceptual as well :) On Wed, Apr 9, 2008 at 5:30 PM, John Krasnay [EMAIL PROTECTED] wrote: On Wed, Apr 09, 2008 at 05:09:03PM +0200, Vitaly Tsaplin wrote: What is going

a transparent conversion of a CheckBoxMultipleChoice value

2008-04-08 Thread Vitaly Tsaplin
Hi everyone, Lets say I am going to use a single integer value as a model object for the component CheckBoxMultipleChoice packing the selected choices somehow to this value as bits. Where can I do such a conversion? The method getConvertor is not called... the methods getConvertedInput and

Re: a transparent conversion of a CheckBoxMultipleChoice value

2008-04-08 Thread Vitaly Tsaplin
+0200, Vitaly Tsaplin wrote: Hi everyone, Lets say I am going to use a single integer value as a model object for the component CheckBoxMultipleChoice packing the selected choices somehow to this value as bits. Where can I do such a conversion? The method getConvertor

Re: a transparent conversion of a CheckBoxMultipleChoice value

2008-04-08 Thread Vitaly Tsaplin
, Apr 08, 2008 at 08:16:18PM +0200, Vitaly Tsaplin wrote: Thanks John, It was the idea that came to my mind first. The question is where I can create such a wrapper? I need to have it compatible with CompountPropertyModel... That's the sticking point. CompoundPropertyModel

Re: Customerize captcha image

2008-04-03 Thread Vitaly Tsaplin
Create your own captcha :) The idea of the RenderedDynamicImageResource is brilliant. You just need to implement the render (Graphics2D gfx) method. Draw there whatever you want. It's even better. No one will be able to reuse the algorithm to teach a neuronet :) On Thu, Apr 3, 2008 at 2:32 PM,

Re: How to use an action level authorization?

2008-03-29 Thread Vitaly Tsaplin
declare which action is required depends on the security framework you are using. In wicket-auth-roles you add an AuthorizeActions annotation. In swarm you declare permissions in a policy file, which are or are not granted to the user. Maurice On Fri, Mar 28, 2008 at 4:42 PM, Vitaly

PagingNavigator: styling a link to a current page?

2008-03-29 Thread Vitaly Tsaplin
Hi, How do I change an appearance of a link pointing to a currently presented page? It seems I am supposed to implement my own navigator component from scratch? Any ideas? Vitalz - To unsubscribe, e-mail: [EMAIL

Re: PagingNavigator: styling a link to a current page?

2008-03-29 Thread Vitaly Tsaplin
id=pageLink21 wicket:id=pageLinkemspan wicket:id=pageNumber7/span/em/span So you can just style the em tag to whichever way you like. On Sat, Mar 29, 2008 at 4:46 PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Hi, How do I change an appearance of a link pointing

Re: PagingNavigator: styling a link to a current page?

2008-03-29 Thread Vitaly Tsaplin
AM, Igor Vaynberg [EMAIL PROTECTED] wrote: div class=nav wicket:id=navigator style div.nav em { color:red; } /style -igor On Sat, Mar 29, 2008 at 5:04 PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: It simply doesn't work. That's why I am asking... em tag is created

Re: PagingNavigator: styling a link to a current page?

2008-03-29 Thread Vitaly Tsaplin
Probably you can add a class attribute to incrementing links or change its tag... The reason is to be able to apply a styling to this links separately. On Sun, Mar 30, 2008 at 1:56 AM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: It works but as I said it highlights not only the link

Re: PagingNavigator: styling a link to a current page?

2008-03-29 Thread Vitaly Tsaplin
(currentPageLinkClassifier); return link; } }; } }; .current_page_link { whatever } On Sat, Mar 29, 2008 at 5:56 PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: It works but as I said it highlights not only

Re: PagingNavigator: styling a link to a current page?

2008-03-29 Thread Vitaly Tsaplin
Ohh, sorry. I see :) It should work... On Sun, Mar 30, 2008 at 3:27 AM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Thanks for your help, Matthew, but it seems doesn't help me neither... I still cannot distinguish a regular page link and a incrementing link (which is made of angle brackets

Is there any way to query if the page is still valid during an ajax handling method invocation?

2008-03-26 Thread Vitaly Tsaplin
Hi everyone, It seems I have a problem with an ajax request interapted by a page reload. I suspect it happens because my page is reloaded before the request is finished. Is there any way to query if the page is still valid during an ajax handling method invocation? Vitaly

Re: Is there any way to query if the page is still valid during an ajax handling method invocation?

2008-03-26 Thread Vitaly Tsaplin
Sorry... It seems it is my fault. Something wrong in my code :) On Wed, Mar 26, 2008 at 10:09 AM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Hi everyone, It seems I have a problem with an ajax request interapted by a page reload. I suspect it happens because my page is reloaded before

What is the best way to reset (or clear or set) a model value every time when page rendered?

2008-03-26 Thread Vitaly Tsaplin
Hi gays, What is the best way to reset (or clear or set) a model value every time when page rendered? I am trying to do it in onBeforeRender () but it seems to not work. Vitaly - To unsubscribe, e-mail: [EMAIL

Re: What is the best way to reset (or clear or set) a model value every time when page rendered?

2008-03-26 Thread Vitaly Tsaplin
What is the proper location for the setModelObject () method to be called from? ...onBeforeRender ()? P.S. Sorry... a spell checker doen't help... true... :)) On Wed, Mar 26, 2008 at 8:40 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: On Wed, Mar 26, 2008 at 11:40 AM, Vitaly Tsaplin [EMAIL

RenderedDynamicImageResource: how to add a random attribute to an URL?

2008-03-24 Thread Vitaly Tsaplin
Hi guys, How to add a random attribute to an URL created by a RenderedDynamicImageResource subclass to enforce a browser update on every request? I think I saw it somewhere but I cannot remember where exactly... Vitaly

Re: RenderedDynamicImageResource: how to add a random attribute to an URL?

2008-03-24 Thread Vitaly Tsaplin
created. I need it be rendered again and again every time my page is rendered. How to achieve this goal? On Mon, Mar 24, 2008 at 9:40 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: see NonCachingImage -igor On Mon, Mar 24, 2008 at 11:29 AM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Hi guys

AjaxSelfUpdatingTimerBehavior: how to conditionally skip a component update?

2008-03-23 Thread Vitaly Tsaplin
Hi everyone, Does anyone know how to conditionally skip a component update in case of using the AjaxSelfUpdatingTimerBehavior? For example if the data is not updated and so there is no need to update the component. Vitaly

the wicket markup reference

2008-03-20 Thread Vitaly Tsaplin
Hi everyone, Is there any wicket markup reference? Is it documented? Vitaly - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: the wicket markup reference

2008-03-20 Thread Vitaly Tsaplin
Wow! Exactly. Thanks Erik. On Thu, Mar 20, 2008 at 2:56 PM, Erik van Oosten [EMAIL PROTECTED] wrote: Do you mean http://cwiki.apache.org/WICKET/wickets-xhtml-tags.html? Regards, Erik. Vitaly Tsaplin schreef: Hi everyone, Is there any wicket markup reference

the checkRequired () magic is back (bug or a normal behavior?)

2008-03-19 Thread Vitaly Tsaplin
Hi guys, According to the wicket javadoc the method checkRequired () of the FormComponent class ...should typically only be called when isRequired() returns true. But it seems to be different... public final void validate() { validateRequired();

Re: the checkRequired () magic is back (bug or a normal behavior?)

2008-03-19 Thread Vitaly Tsaplin
at 2:24 PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Hi guys, According to the wicket javadoc the method checkRequired () of the FormComponent class ...should typically only be called when isRequired() returns true. But it seems to be different... public final

Re: the checkRequired () magic is back (bug or a normal behavior?)

2008-03-19 Thread Vitaly Tsaplin
() { if (isRequired()) { On Wed, Mar 19, 2008 at 2:24 PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Hi guys, According to the wicket javadoc the method checkRequired () of the FormComponent class ...should typically only

Re: the checkRequired () magic is back (bug or a normal behavior?)

2008-03-19 Thread Vitaly Tsaplin
everywhere for isRequired() that can be done in 1 method On Wed, Mar 19, 2008 at 10:54 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: i agree with vitaly, johan? -igor On Wed, Mar 19, 2008 at 2:51 PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote

Re: the checkRequired () magic is back (bug or a normal behavior?)

2008-03-19 Thread Vitaly Tsaplin
PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: But the javadoc says: public boolean checkRequired() Checks if the form component's 'required' requirement is met. This method should typically only be called when

Re: the checkRequired () magic is back (bug or a normal behavior?)

2008-03-19 Thread Vitaly Tsaplin
() thats horrible, checkRequired() can test that just as fine i will update the javadoc johan On Wed, Mar 19, 2008 at 10:51 PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: But the javadoc says

Re: the checkRequired () magic is back (bug or a normal behavior?)

2008-03-19 Thread Vitaly Tsaplin
19, 2008 at 10:51 PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: But the javadoc says: public boolean checkRequired() Checks if the form component's

Re: the checkRequired () magic is back (bug or a normal behavior?)

2008-03-19 Thread Vitaly Tsaplin
Whatever... the only thing you should do asap is to modify the javadoc... according to the current state. For now it's confusing... On Thu, Mar 20, 2008 at 1:18 AM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: What if a requirement cannot be met if an input contains only spaces. I would

Re: the checkRequired () magic is back (bug or a normal behavior?)

2008-03-19 Thread Vitaly Tsaplin
! The removal of the final keyword had in this particular case big consequentes it really changed the api behavior. Johan On 3/20/08, Vitaly Tsaplin [EMAIL PROTECTED] wrote: What if a requirement cannot be met if an input contains only spaces. I would override the checkRequired

Re: the checkRequired () magic is back (bug or a normal behavior?)

2008-03-19 Thread Vitaly Tsaplin
Oh, sorry. I meant write in javadoc :) On Thu, Mar 20, 2008 at 2:02 AM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: For me that's probably fine if you will clearly right in javadoc that anyone who overrides checkRequired should carefully call isRequired in order to conform the common

Is wicket an efficient, enterprise level web framework?

2008-03-17 Thread Vitaly Tsaplin
Hi everyone, Does anyone try to do any scalability tests with wicket? How is it suitable for real world enterprise level applications? And the most important question: What are the design principals I should follow in order to turn my homemade application into a real, highly responsive and

Re: Is wicket an efficient, enterprise level web framework?

2008-03-17 Thread Vitaly Tsaplin
. Wicket apps do use session memory for pages, For 1.3 only 1 page per pagemap, so most of the time 1 page per session/user And what a page cost in mem is very dependend on the complexity. johan On Mon, Mar 17, 2008 at 10:01 AM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Hi everyone

Re: Is wicket an efficient, enterprise level web framework?

2008-03-17 Thread Vitaly Tsaplin
the more complex the app gets the less concurrent users it will have. Because those kind of complex apps are mostly targetted at a specific group of people. Where are for example Enterprise level apps just open on the internet? On Mon, Mar 17, 2008 at 11:20 AM, Vitaly Tsaplin [EMAIL

cannot override chechRequired ()

2008-03-17 Thread Vitaly Tsaplin
Hi guys, It seams that there is a bug in the FormComponent code. I try to override chechRequired method but it seams to not work at all. Here is a snippet from the sources. As you can see there is a second requirement check. /** * Checks if the raw input value is not

Re: cannot override chechRequired ()

2008-03-17 Thread Vitaly Tsaplin
() { reportRequiredError(); } On Mon, Mar 17, 2008 at 7:47 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: sure it does, see the first line of validate() -igor On Mon, Mar 17, 2008 at 11:06 AM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Hi guys

Re: cannot override chechRequired ()

2008-03-17 Thread Vitaly Tsaplin
(); } On Mon, Mar 17, 2008 at 8:02 PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: But if checkRequired () returns true isRequired () called again generating a validation error... if (isValid() isRequired() getConvertedInput() == null

Re: cannot override chechRequired ()

2008-03-17 Thread Vitaly Tsaplin
, Mar 17, 2008 at 12:06 PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: It should be probably like this if (isValid() (isRequired() ? !checkRequired () : true) getConvertedInput() == null isInputNullable()) the second check. Doesn't call

Re: cannot override chechRequired ()

2008-03-17 Thread Vitaly Tsaplin
17, 2008 at 9:09 PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: I am not sure but I suspect that if the method checkRequired returns true a requirement condition must always met in any case or the behavior is different? On Mon, Mar 17, 2008 at 8:57 PM, Igor Vaynberg [EMAIL PROTECTED

Re: cannot override chechRequired ()

2008-03-17 Thread Vitaly Tsaplin
is that for a formcomponentpanel it is often a noop. so that is the best default implementation we can provide. you can always override it to implement some logic if you need... -igor On Mon, Mar 17, 2008 at 1:13 PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: I run into this problem implementing

Re: cannot override chechRequired ()

2008-03-17 Thread Vitaly Tsaplin
that effectively required check is disabled - eg it always passes -igor On Mon, Mar 17, 2008 at 2:15 PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: If the method checkRequired () returns TRUE that means, I guess, the requirement condition check must always pass, but it doesn't

Re: cannot override chechRequired ()

2008-03-17 Thread Vitaly Tsaplin
True. But I do... unfortunately. On Mon, Mar 17, 2008 at 11:15 PM, Igor Vaynberg [EMAIL PROTECTED] wrote: you should not, since checkrequired() will pass. -igor On Mon, Mar 17, 2008 at 2:47 PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: Ok :) I have the following

Re: cannot override chechRequired ()

2008-03-17 Thread Vitaly Tsaplin
(); } if (isValid()) { validateValidators(); } } } On Mon, Mar 17, 2008 at 11:18 PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: True. But I do... unfortunately. On Mon, Mar 17, 2008 at 11:15 PM

Re: cannot override chechRequired ()

2008-03-17 Thread Vitaly Tsaplin
that your type-conversion did not take a non-null input and convert it into null...this is the part that is failing for you. that is something you should properly implement... -igor On Mon, Mar 17, 2008 at 3:18 PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: True. But I do... unfortunately

Re: cannot override chechRequired ()

2008-03-17 Thread Vitaly Tsaplin
into it makes sense? so in short, you are not using the right tool for the job. sounds like what you are doing can be accomplished with a regular panel that has a setrequired(boolean) method... -igor On Mon, Mar 17, 2008 at 5:41 PM, Vitaly Tsaplin [EMAIL PROTECTED] wrote: My

A model driven visibility. Howto?

2008-03-16 Thread Vitaly Tsaplin
Hi everyone, How to implement a model driven visibility? Are there any best practices? Should I use the AttributeModifier to set a style visibility attribute or there is a better way? Vitaly - To unsubscribe, e-mail:

Re: Is there any way to be notified somehow just after the CompoundPropertyModel is resolved by the component hierarchy?

2008-03-14 Thread Vitaly Tsaplin
] org.apache.wicket.model.IComponentAssignedModel#wrapOnAssignment( org.apache.wicket.Component) */ *public* IWrapModel wrapOnAssignment(*final* Component component) { *return* *new* AssignmentWrapper(component, propertyName); } On Thu, Mar 13, 2008 at 3:32 PM, Vitaly Tsaplin [EMAIL PROTECTED

A link-o-label needed

2008-03-14 Thread Vitaly Tsaplin
Hi experts, Does anyone know how to create a label link in wicket? In other words I need a clickable label or a link which acts as a label taking its text from a model exactly like a wicket's label. Vitaly - To

  1   2   >