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 > 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. > > Vi

Re: Add/remove AbstractAjaxBehavior

2012-12-12 Thread Vitaly Tsaplin
nent because it cannot create > callbackUrl for more than one. > > > On Wed, Dec 12, 2012 at 4:06 PM, Vitaly Tsaplin >wrote: > > > Hi, > > > > It looks like it is not possible to remove an instance of > > AbstractAjaxBehavior. The behavior keeps refer

Re: CryptedUrlWebRequestCodingStrategy and bookmarkable pages

2011-04-14 Thread Vitaly Tsaplin
ave time to debug it right now but as far as I 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

Re: CryptedUrlWebRequestCodingStrategy and bookmarkable pages

2011-04-13 Thread Vitaly Tsaplin
ngStrategy()); } }; } 2011/4/13 Martin Grigorov : > 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 > wrote: > >> Hi Martin,

Re: CryptedUrlWebRequestCodingStrategy and bookmarkable pages

2011-04-13 Thread Vitaly Tsaplin
=:com.tsaplin.web.engine.components.commerce.ProductViewPage&id=5 Vitaly 2011/4/13 Martin Grigorov : > On Tue, Apr 12, 2011 at 9:11 PM, Vitaly Tsaplin > wrote: > >> Hi everyone, >> >> I am using CryptedUrlWebRequestCodingStrategy to encode urls. I also >> put an instance of BookmarkablePageLink on

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

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

2010-12-13 Thread Vitaly Tsaplin
(); My code adds and removes components via ajax dynamically. So it wouldn't be reasonably safe technique if the component gets re-attached twice within a single request. Vitaly 2010/12/13 Igor Vaynberg : > oninitialize() > > -igor > > On Mon, Dec 13, 2010 at 8:0

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: 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 wrote: >    AjaxUtils.isAjaxRequest () > > On Tue, Nov 23, 2010 at 2:13 PM, nino martinez wael > wrote: >> Hi >> &g

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 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 added. > > So I need to fi

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 En

Link with the 'wantOnSelectionChangedNotifications()' behavior

2010-11-18 Thread Vitaly Tsaplin
Hi everyone, I am curious why the Link class does not implement something like what 'wantOnSelectionChangedNotifications()' mechanism does for CheckBox, DropDownChoice, etc.? I have implemented FormLink and I use it as a subclass for everything that has to extend Link since it can fall b

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 c

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 wrote: >>> I'm sorry to say, but the whole discussion makes little sense to me and >>> these attempts to fix something that

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 additio

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 wrote: >   Hi guys, > >   Is there any way to process a wicket ajax envelope sent in some > non-wicket way like using jQuery or Proto

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 -

Which implementation of IRequestTarget to choose for generating a custom response?

2009-03-14 Thread Vitaly Tsaplin
Hi there, Which implementation of IRequestTarget to choose for generating a custom response (xml or a plain text response e.g.) using getRequestCycle().setRequestTarget(...) in a listener method? I was thinking about EmptyRequestTarget but the javadoc says "...does nothing in itself but instea

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 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 over > for jWeekend Wicke

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 comm

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 ()) {

How to rid of the message "Your input is invalid." for the whole form component

2008-12-21 Thread Vitaly Tsaplin
Hi there, I have a component which is a subclass of FormComponentPanel. Inside it has an input field with a validator attached. Validator calls error (validatable, resourceKey). And so far it's ok. But except my error message I see another one "Your input is invalid." which I don't like to be

Re: Generated links for sending with emails

2008-12-19 Thread Vitaly Tsaplin
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 >

Re: Generated links for sending with emails

2008-12-19 Thread Vitaly Tsaplin
> > Martijn > > On Fri, Dec 19, 2008 at 10:24 AM, Vitaly Tsaplin > wrote: >> 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 int

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: Is there any way to mount an action

2008-12-08 Thread Vitaly Tsaplin
8, 2008 at 11:58 AM, 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, V

Re: Is there any way to mount an action

2008-12-08 Thread Vitaly Tsaplin
ashorst <[EMAIL PROTECTED]> 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, D

Re: Is there any way to mount an action

2008-12-08 Thread Vitaly Tsaplin
ew Label("msg", "You have been logged out.")); >getSession().invalidate(); >} > } > > mountBookmarkablePage("/logout", LogoutPage.class); > > Martijn > > On Mon, Dec 8, 2008 at 10:28 AM, Vitaly Tsaplin > <[EMAIL PROTECTED]>

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 addit

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
pulateItem - but thats a ListItem, I 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 >>

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

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 ar

Re: DataView and "No items" label

2008-07-27 Thread Vitaly Tsaplin
cket/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 PROTECTED]> wrote: >>>> DataTabl

Re: DataView and "No items" label

2008-07-27 Thread Vitaly Tsaplin
n, Jul 27, 2008 at 12:59 PM, 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

Re: DataView and "No items" label

2008-07-27 Thread Vitaly Tsaplin
simply pass 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 a

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?

Re: Javascript error in wicket

2008-04-30 Thread Vitaly Tsaplin
gt; > > > > Am 30.04.2008 um 12:17 schrieb Vitaly Tsaplin: > > > > > > > > > > Hi everyone, > > > > Firebug is complaining as follows: > > > > [Exception... "Component is not available" nsresult: "0x80040111 > > (NS_

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

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-27 Thread Vitaly Tsaplin
l aspect in wicket 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 schri

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

2008-04-26 Thread Vitaly Tsaplin
gt; -igor > > > On Sat, Apr 26, 2008 at 5:20 PM, Vitaly Tsaplin > > > <[EMAIL PROTECTED]> wrote: > > | if you contribute an incompatible version you are still left with a > > | nonworking component. so what is better now? > > > >

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

2008-04-26 Thread Vitaly Tsaplin
esome if datepicker > depended on our own internal and namespaced 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

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

2008-04-26 Thread Vitaly Tsaplin
me kind of library isolation as osgi, > or when the js library authors catch 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: > > > &

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

2008-04-26 Thread Vitaly Tsaplin
c, > > Maurice > > On Fri, Apr 25, 2008 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 java

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

2008-04-25 Thread Vitaly Tsaplin
Fri, Apr 25, 2008 at 5:12 PM, Nino 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 exampl

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

2008-04-25 Thread Vitaly Tsaplin
> > > http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-stuff-contrib-input-events > > Vitaly Tsaplin wrote: > > > > > > > > > Hi everyone, > > > > There are many usecases when it could be necessary to write some > > javascript b

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

2008-04-25 Thread Vitaly Tsaplin
.org/confluence/display/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

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 l

Can I create a form markup on the fly?

2008-04-24 Thread Vitaly Tsaplin
Hi, I have the case where I need to create a hidden form to provide a server side with some javascript values (no ajax, just a regular get/post). The form is essentially auxiliary and so it isn't represented into a markup somehow but it's going to be created on the fly. However I would like

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
; > Maurice > > > > 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

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 probl

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: Good example for FormComponentPanel?

2008-04-11 Thread Vitaly Tsaplin
> I just looked at the Multiply example 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:[EM

Re: Good example for FormComponentPanel?

2008-04-11 Thread Vitaly Tsaplin
It seems that a simple panel would be the best approach. On Sat, Apr 12, 2008 at 1:37 AM, Michael Mehrle <[EMAIL PROTECTED]> wrote: > I need to build a TabbedPanel with three tabs which are part of one form > - the selected tab will contain form components which need to be > submitted by that

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

2008-04-11 Thread Vitaly Tsaplin
d then in your 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 arbit

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
ed. I am not so 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 wrot

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

Re: a transparent conversion of a CheckBoxMultipleChoice value

2008-04-08 Thread Vitaly Tsaplin
> wrote: > On Tue, 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 > > C

Re: a transparent conversion of a CheckBoxMultipleChoice value

2008-04-08 Thread Vitaly Tsaplin
08, 2008 at 06:41:20PM +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. Wh

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 s

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: 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 (wh

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

2008-03-29 Thread Vitaly Tsaplin
(String > id, IPageable pageable, int pageIndex) { > Link link = super.newPagingNavigationLink(id, > pageable, pageIndex); > link.add(currentPageLinkClassifier); > return link; > } >

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

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

2008-03-29 Thread Vitaly Tsaplin
, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > > > div.nav em { color:red; } > > -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... t

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

2008-03-29 Thread Vitaly Tsaplin
The current page is like this: > >wicket:id="pageNumber">7 > > So you can just style the tag to whichever way you like. > > On Sat, Mar 29, 2008 at 4:46 PM, Vitaly Tsaplin <[EMAIL PROTECTED]> > wrote: > > > > > Hi, > > > > Ho

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 PROTECT

Re: How to use an action level authorization?

2008-03-29 Thread Vitaly Tsaplin
aurice > > > > On Fri, Mar 28, 2008 at 4:42 PM, Vitaly Tsaplin > <[EMAIL PROTECTED]> wrote: > >Hi people, > > > >My question is simple... :) How to use an action level > > authorization. I cannot find any info or example. > >As

How to use an action level authorization?

2008-03-28 Thread Vitaly Tsaplin
Hi people, My question is simple... :) How to use an action level authorization. I cannot find any info or example. As I can guess I have to associate a role using setMetaData () with a component and then in IAuthorizationStrategy.isActionAuthorized () I do an actual check by taking the a

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,

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 PROTECTED

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 m

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: RenderedDynamicImageResource: how to add a random attribute to an URL?

2008-03-24 Thread Vitaly Tsaplin
only first time it's 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

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 -

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 -

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,

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 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 > isRe

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

2008-03-19 Thread Vitaly Tsaplin
ike the method that they > override already did for 2 years! > > 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: >

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 >

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

2008-03-19 Thread Vitaly Tsaplin
lic > > > > > > > > > > > > > > > > > > And if i want to test for requirement from outside i dont > > > want > > > > > to > > > > > > > call > > > > > > > > > first for every thing isRequired

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

2008-03-19 Thread Vitaly Tsaplin
t; > > > wrote: > > > > > > > > > why dont we build that check into validateRequired() > > > > > > > > > > so validateRequired() { if (isrequired() { ...current code } } > > > > > &g

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

2008-03-19 Thread Vitaly Tsaplin
so validateRequired() { if (isrequired() { ...current code } } > > > > > > > > that way you never have to call checkrequired() directly, just call > > > > validaterequired() > > > > > > > > -igor > > > >

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

2008-03-19 Thread Vitaly Tsaplin
> i agree with vitaly, johan? > > > > > > -igor > > > > > > > > > On Wed, Mar 19, 2008 at 2:51 PM, Vitaly Tsaplin > > > <[EMAIL PROTECTED]> wrote: > > > >But the javadoc says: > > > > > &g

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

2008-03-19 Thread Vitaly Tsaplin
it > checks if the input is set > > > On Wed, Mar 19, 2008 at 10:32 PM, Vitaly Tsaplin <[EMAIL PROTECTED]> > > > wrote: > > > checkRequired () itself shouldn't be called at all unless > > setRequired is true... > > > > On Wed, Mar 19,

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

2008-03-19 Thread Vitaly Tsaplin
t; { > > 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 typica

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: cannot override chechRequired ()

2008-03-17 Thread Vitaly Tsaplin
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 component accepts 3 models as parameters, and

Re: cannot override chechRequired ()

2008-03-17 Thread Vitaly Tsaplin
input. second part makes sure > 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 Tsap

Re: cannot override chechRequired ()

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

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

Re: cannot override chechRequired ()

2008-03-17 Thread Vitaly Tsaplin
no, that means 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 &g

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 > > > <

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:5

Re: cannot override chechRequired ()

2008-03-17 Thread Vitaly Tsaplin
-igor > > > On Mon, Mar 17, 2008 at 12:06 PM, Vitaly Tsaplin > > > <[EMAIL PROTECTED]> wrote: > >It should be probably like this > > > > if (isValid() && (isRequired() ? !checkRequired > > () : true) &&

Re: cannot override chechRequired ()

2008-03-17 Thread Vitaly Tsaplin
heck. Doesn't call the chechRequired () { reportRequiredError(); } 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... > > >

Re: cannot override chechRequired ()

2008-03-17 Thread Vitaly Tsaplin
heck. Doesn't call the chechRequired () { 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

  1   2   >