Re: About AbstractLink

2011-01-21 Thread Igor Vaynberg
afaik anchors in html do not support a disabled attribute. so the only way to make it really unclickable is to not render it as an anchor. of course you can change that by tweaking Jeremy's example WebApplication.get().getMarkupSettings().setDefaultBeforeDisabledLink(""); WebApplication.get().get

Re: Question regarding AjaxFormSubmitBehavior

2011-01-21 Thread Igor Vaynberg
nt, remember that nested form is not allow in HTML >> spec per se, so what wicket is doing a trick where the root form is submit >> but only elements of nested form (which get transform in DIV tag) are >> processed >> >> On Thu, Jan 20, 2011 at 4:47 PM, Igor Vaynberg-2 [

Re: Added parameters on the end of requests with wicket 1.5

2011-01-20 Thread Igor Vaynberg
r a handler for URL's that suffix /text and > /download to be served by the resources directly? > > On Jan 20, 2011, at 1:19 PM, Andrew Lombardi wrote: > >> Okay, got it.  I'll dump the ajax on that page, and convert it over.  Thanks! >> >> On Jan 20, 201

Re: Free wicket from component hierarchy hell

2011-01-20 Thread Igor Vaynberg
so you only have one place to fix it in -igor On Thu, Jan 20, 2011 at 1:43 PM, James Carman wrote: > On Thu, Jan 20, 2011 at 3:34 PM, Martin Makundi > wrote: >> >> The largest production I am responsible for is stuck with >> 1.4.9  because some of the later >> releases have not been monoton

Re: Added parameters on the end of requests with wicket 1.5

2011-01-20 Thread Igor Vaynberg
the onclick of the stateless link can redirect back to the bookmarkable version, which will clean up the url -igor On Thu, Jan 20, 2011 at 12:22 PM, Martin Grigorov wrote: > On Thu, Jan 20, 2011 at 6:32 PM, Andrew Lombardi > wrote: > >> I've been converting mysticpaste.com to using Wicket 1.5 w

Re: DropDown options with labels and checkboxes

2011-01-20 Thread Igor Vaynberg
sure, just use javascript :) -igor On Thu, Jan 20, 2011 at 12:12 PM, Alec Swan wrote: > Hello, > > Is there a way to build a DropDown list each option of which has a label and > a checkbox. The idea is that the user will use this component to assign > tags. Very similar to what Google labels dro

Re: Question regarding AjaxFormSubmitBehavior

2011-01-20 Thread Igor Vaynberg
the bigger form needs to be processed because what is submitted is the root form's formtag. however, validation, etc, will probably be delegated only to the inner form. -igor On Thu, Jan 20, 2011 at 4:14 AM, Daniel Bartl wrote: > Have a small question regarding using AjaxFormSubmitBehavoir with

Re: [Ljava.lang.String; cannot be cast to java.lang.String - BookmarkablePageRequestTargetUrlCodingStrategy

2011-01-19 Thread Igor Vaynberg
well, dont know what to tell you. seems really strange to me. -igor On Wed, Jan 19, 2011 at 5:08 PM, Douglas Ferguson wrote: > tomcat > > > On Jan 18, 2011, at 2:49 PM, Igor Vaynberg wrote: > >> not sure then. seems rather strange that you cant reproduce it >> lo

Re: Calling wicket modal popup from non-wicket

2011-01-19 Thread Igor Vaynberg
your best bet is to use a non-wicket modal and iframe a wicket page into it. -igor On Wed, Jan 19, 2011 at 3:12 PM, Nelson Segura wrote: > We are slowly migrating a JSP app to wicket. Parts of our app are written in > Wicket, but most of it is still JSP. > We need to integrate some of the new wi

Re: PHP CMS as wicket markup files provider

2011-01-19 Thread Igor Vaynberg
if you are looking for a low-level CMS then this will do what you want, and is built to integrate with wicket: https://github.com/brix-cms/brix-cms part from that you can make your pages implement IMarkupResourceStreamProvider and IMarkupCacheKeyProvider and retrieve the markup from anywhere. -i

Re: Component failed to render..

2011-01-19 Thread Igor Vaynberg
not really -igor On Wed, Jan 19, 2011 at 6:36 AM, nino martinez wael wrote: > Are there a easy way to pickup failed components and replace them with a > specific panel, thus making the page to continue to render? > > Regards Nino > ---

Re: Multipart issues in Wicket 1.4.15

2011-01-18 Thread Igor Vaynberg
in 1.4.9 it worked because we did not take visibility of children into account. eg an invisible multipart component would make the form multipart as well. this was inconsistent so it was fixed. as far as automatic detection - i think in this case it happens during an ajax update and going from non

Re: Multipart issues in Wicket 1.4.15

2011-01-18 Thread Igor Vaynberg
what about cases where users swap in an upload field later? in this case visibility isnt going to help. this is why we provide a way for the user to hard-set the value to true via form.setmultipart(true) - which is what i think exl should do. -igor On Tue, Jan 18, 2011 at 3:41 PM, Pedro Santos w

Re: [Ljava.lang.String; cannot be cast to java.lang.String - BookmarkablePageRequestTargetUrlCodingStrategy

2011-01-18 Thread Igor Vaynberg
not sure then. seems rather strange that you cant reproduce it locally. what container is it running in? -igor On Tue, Jan 18, 2011 at 12:41 PM, Douglas Ferguson wrote: > There is no proxy > > On Jan 18, 2011, at 10:48 AM, Igor Vaynberg wrote: > >> is the app proxied? could b

Re: Multipart issues in Wicket 1.4.15

2011-01-18 Thread Igor Vaynberg
file a jira issue. it will get lost here. -igor On Tue, Jan 18, 2011 at 2:43 AM, exl wrote: > > Encountering a show stopper for our project that involves being able to deal > with a form containing a file upload that can be revealed depending on > whether that particular workflow is desired. > >

Re: JavaScript bug in IE (wicket-event.js)

2011-01-18 Thread Igor Vaynberg
seems weird. that file works ok on other pages? -igor On Mon, Jan 17, 2011 at 11:53 PM, Alec Swan wrote: > Hello, > > I have a website using Wicket 1.4.14. There is a link which pops up a > window/page generated by Wicket. The popup works great in Firefox and > Chrome, but in IE I get the follow

Re: Question about stateless forms

2011-01-18 Thread Igor Vaynberg
not sure if its a "bug", but its definitely a better way of handling stateless form submits i think. and yes, file a jira. -igor 2011/1/18 Major Péter : > So is this a bug? Should I create a JIRA issue for this? > > Thanks, > Peter > > 2011-01-15 23:14 keltezéssel,

Re: [Ljava.lang.String; cannot be cast to java.lang.String - BookmarkablePageRequestTargetUrlCodingStrategy

2011-01-18 Thread Igor Vaynberg
is the app proxied? could be a proxy mangling it on a rewrite. -igor On Tue, Jan 18, 2011 at 1:57 AM, Douglas Ferguson wrote: > I only see it in production > > > On Jan 17, 2011, at 6:38 PM, Igor Vaynberg wrote: > >> not really sure what is happenning. that url is

Re: howto integrate third-party ajax with channels?

2011-01-17 Thread Igor Vaynberg
> Thanks for reading my rambling, > Cheers, Frank > > > Op 18 jan. 2011 om 01:35 heeft Igor Vaynberg > het volgende geschreven: > >> can you do the flushing yourself by registering a >> wicket.ajax.pre-call-handler? >> >> -igor >> >> On Mon,

Re: [Ljava.lang.String; cannot be cast to java.lang.String - BookmarkablePageRequestTargetUrlCodingStrategy

2011-01-17 Thread Igor Vaynberg
ot;; >> "Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.9.2.13) >> Gecko/20101203 Firefox/3.6.13 GTB7.1 ( .NET CLR 3.5.30729)" >> >> >> On Jan 14, 2011, at 5:23 PM, Igor Vaynberg wrote: >> >>> do their apache logs contain a sample of the ur

Re: howto integrate third-party ajax with channels?

2011-01-17 Thread Igor Vaynberg
can you do the flushing yourself by registering a wicket.ajax.pre-call-handler? -igor On Mon, Jan 17, 2011 at 2:57 AM, Frank van Lankvelt wrote: > I'm regularly running into problems when integrating client-side ajax code. >  The issue is that the client-side code is doing throttled asynchronous

Re: Question about stateless forms

2011-01-15 Thread Igor Vaynberg
my first gut feeling is that if the form is stateless it should use the page's url as its action. this way page parameters are preserved and we can properly parse them out of the query string without mixing them with form parameters -igor 2011/1/15 Major Péter : > Hi, > > I'm experiencing, that i

Re: Changing/Accessing name of ListItem in ListView

2011-01-15 Thread Igor Vaynberg
why do you need to access the listitem? listitem.getmodelobject() will give you the item in the list the item is pointed to. -igor On Fri, Jan 14, 2011 at 11:07 PM, Arjun Dhar wrote: > > Hi, >  when using a ListView, the name uses the following format to Render. name>:: > > In onSubmit(..); thi

Re: [Ljava.lang.String; cannot be cast to java.lang.String - BookmarkablePageRequestTargetUrlCodingStrategy

2011-01-14 Thread Igor Vaynberg
do their apache logs contain a sample of the url that caused this error? would be helpful to see one. -igor On Fri, Jan 14, 2011 at 3:12 PM, Douglas Ferguson wrote: > Sorry about my previous title. > > I'm not sure what's causing this, but I've spoken with some of my clients, > who spawned thes

Re: Is there an event 'onAddedToAjaxResponse'

2011-01-12 Thread Igor Vaynberg
override it, check if component implements some interface with a callback and call it. its not rocket science. -igor On Wed, Jan 12, 2011 at 4:08 PM, Martin Makundi wrote: > Override on framework level? I was thinking of more on a component level. > > ** > Martin > > 2011/

Re: Is there an event 'onAddedToAjaxResponse'

2011-01-12 Thread Igor Vaynberg
override ajaxrequettarget#add() -igor On Wed, Jan 12, 2011 at 3:53 PM, Martin Makundi wrote: > Hi! > > Is there an event 'onAddedToAjaxResponse', or something similar? > > To make it easier to track when to update a model for example after > ajax update only. > > ** > Martin > >

Re: AbstractAjaxTimerBehavior and getPreconditionScript

2011-01-11 Thread Igor Vaynberg
this is not a bug. if precondition check fails the server call is not made. it is the server calls that schedules the next firing of the timer, so no server call no timer so to speak. you can write your own version of the timer behavior that works the way you want. -igor On Tue, Jan 11, 2011 at 4

Re: Truncated page when using Sitemesh with redirect after post (Was: Re: Page content sends twice in response to GET when redirecting after POST)

2011-01-10 Thread Igor Vaynberg
sure sounds like a sitemesh bug -igor 2011/1/10 Marcin Zajączkowski : > On 2011-01-10 01:40, Igor Vaynberg wrote: >> really strange because it doesnt happen to me: >> >> http://pastebin.com/fe1pjZjy > > Thanks for your check Igor. > > I've used Ethereal to

Re: inter application communication in wicket

2011-01-10 Thread Igor Vaynberg
ket > session) - if it is the same across all apps (i.e. session cookie is on /) > > On Mon, Jan 10, 2011 at 11:05 AM, Igor Vaynberg > wrote: > >> no, sessions are isolated between web applications. >> >> -igor >> >> On Mon, Jan 10, 2011 at 9:02 AM, Jere

Re: inter application communication in wicket

2011-01-10 Thread Igor Vaynberg
no, sessions are isolated between web applications. -igor On Mon, Jan 10, 2011 at 9:02 AM, Jeremy Thomerson wrote: > Additionally, since you said they were in the same container, you could do > it through the session. > > On Mon, Jan 10, 2011 at 12:53 AM, Nick Heudecker wrote: > >> We use Active

Re: Page content sends twice in response to GET when redirecting after POST

2011-01-09 Thread Igor Vaynberg
really strange because it doesnt happen to me: http://pastebin.com/fe1pjZjy -igor 2011/1/9 Marcin Zajączkowski : > On 2011-01-09 22:00, Marcin Zajączkowski wrote: >> Hi, >> >> >> Following some problems with page rendering in my application after post >> a form I've noticed that when redirect

Re: Any site running 1.5-M3 examples

2011-01-06 Thread Igor Vaynberg
http://wicketstuff.org/wicket/ not sure what version it is but its some 1.5.x -igor On Thu, Jan 6, 2011 at 4:57 PM, richard emberson wrote: > > When a milestone release occurs, is there any site that runs the > example applications? > > Richard > -- > Quis custodiet ipsos custodes > >

Re: Custom IUnauthorizedComponentInstantiationListener

2011-01-05 Thread Igor Vaynberg
if you want to hide unauthorized components you should use iauthorizationstrategy and veto component's RENDER action -igor On Wed, Jan 5, 2011 at 1:42 AM, Duro wrote: > Hi, i am trying to customize the behavior, when in a page a component is > found, that the current user is not authorized to wh

Re: Unserializable exceptions on declaring springs org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor

2011-01-04 Thread Igor Vaynberg
looks like spring aop is processing the proxy wicket generates? weird. -igor On Tue, Jan 4, 2011 at 10:20 AM, Roman Ilin wrote: > @Martin: UserDao is an Interface. > > @Igor: thank you for good advice, I will use it ofter from now :) > but I know that problem is the classes I mentioned erlier, b

Re: Unserializable exceptions on declaring springs org.springframework.dao.annotation.PersistenceExceptionTranslationPostProcessor

2011-01-04 Thread Igor Vaynberg
try launching your app with: -Dsun.io.serialization.extendedDebugInfo=true to see exactly what object is not serializable -igor On Tue, Jan 4, 2011 at 9:53 AM, Roman Ilin wrote: > Nobody uses such weird thing? > > > > On Tue, Jan 4, 2011 at 12:44 AM, Roman Ilin wrote: >> Sorry, I haven't said

Re: radio group stated not updated via AJAX. Possible bug?

2010-12-30 Thread Igor Vaynberg
ll clearinput() over and over. > > Regards, > > Ernesto > > On Thu, Dec 30, 2010 at 3:29 PM, Igor Vaynberg > wrote: >> call clearinput() on the radiogroup so it refreshes based on new model >> value you set. >> >> -igor >> >> On Thu,

Re: radio group stated not updated via AJAX. Possible bug?

2010-12-30 Thread Igor Vaynberg
call clearinput() on the radiogroup so it refreshes based on new model value you set. -igor On Thu, Dec 30, 2010 at 4:57 AM, Ernesto Reinaldo Barreiro wrote: > I forgot to mentions this is with wicket 1.4.x. > > Ernesto > > On Thu, Dec 30, 2010 at 1:53 PM, Ernesto Reinaldo Barreiro > wrote: >>

Re: target.addComponent(Field) in Ajax erases that Field's values

2010-12-21 Thread Igor Vaynberg
s/AjaxFormChoiceComponentUpdatingBehavior/AjaxFormSubmittingBehavior/ so all values are propagated -igor On Tue, Dec 21, 2010 at 10:24 PM, eugenebalt wrote: > > Thanks for the fast replies, much appreciated, but what should I change in my > code? I'm still not clear. > > Yes, the Field2 had some

Re: target.addComponent(Field) in Ajax erases that Field's values

2010-12-21 Thread Igor Vaynberg
im going to guess that the field is repainted with the values the serverside thinks should be selected. if the values from the clientside are not processed by the serverside before the ajax update they will be different, and so the serverside state overrides the clientside state. -igor On Tue, De

Re: How to I get an un-proxied Spring Bean ?

2010-12-14 Thread Igor Vaynberg
keep calling superclass until its not a proxy -igor On Tue, Dec 14, 2010 at 3:28 PM, smallufo wrote: > Hi , > I tried : > dao.getClass() = class org.apache.wicket.proxy.$Proxy101 > dao.getClass().getGenericSuperclass() = class java.lang.reflect.Proxy > dao.getClass().getSuperclass() = class java

Re: Feedback panel and FormComponentLabel for form components : how to?

2010-12-13 Thread Igor Vaynberg
use a behavior to render all the html. if you want to render using wicket components and not html use a border -igor On Mon, Dec 13, 2010 at 9:47 PM, Sam Zilverberg wrote: > I realize my last post was a mess so here is an attempt to summarize it: > > I'm trying to turn > > which renders as > >

Re: multi-window support, pagestores and wicket 1.5

2010-12-13 Thread Igor Vaynberg
e > tests will be made in January, if it doesn't matter > > 2010/12/13 Igor Vaynberg : >> no, but you are welcome to test and ping us back with the results :) >> >> -igor >> >> On Mon, Dec 13, 2010 at 8:14 PM, Michal Kurtak >> wrote: &g

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

2010-12-13 Thread Igor Vaynberg
> re-attached twice within a single request. > > Vitaly > > 2010/12/13 Igor Vaynberg : >> oninitialize() >> >> -igor >> >> On Mon, Dec 13, 2010 at 8:08 PM, Vitaly Tsaplin >> wrote: >>>     Hi everyone, >>> >>>     I far as

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

2010-12-13 Thread Igor Vaynberg
oninitialize() -igor On Mon, Dec 13, 2010 at 8:08 PM, Vitaly Tsaplin 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 a

Re: multi-window support, pagestores and wicket 1.5

2010-12-13 Thread Igor Vaynberg
er wicket versions)? I mean writing pages to > disks comparing to writing them to http session (and replicating big > sessions)? > > 2010/12/13 Michal Kurtak : >> Hmm... This solutions seems really good. sorry for bothering >> >> michal >> >> >> 2010/12/13

Re: multi-window support, pagestores and wicket 1.5

2010-12-13 Thread Igor Vaynberg
thats how it works in 1.4.x as well. -igor On Mon, Dec 13, 2010 at 8:08 PM, Michal Kurtak wrote: > Hmm... This solutions seems really good. sorry for bothering > > michal > > > 2010/12/13 Igor Vaynberg : >> when the page that is stored in http session is deserialized

Re: multi-window support, pagestores and wicket 1.5

2010-12-13 Thread Igor Vaynberg
IPageManager, but there is > missing support for browser window detection so its a bit more > complicated to implement IPageManager supporting multiple windows in > clustered environment. > > BR, > Michal > > > 2010/12/13 Igor Vaynberg : >> On Sat, Dec 11, 2010 at 12:0

Re: Invoke Validators manually, in arbitrary places (e.g. Ajax)

2010-12-13 Thread Igor Vaynberg
way to validate only one form component at a time and > return the results to UI ( ajax )? > > Thank you! > > Žilvinas Vilutis > > Mobile:   (+370) 652 38353 > E-mail:   cika...@gmail.com > > > > On Mon, Dec 13, 2010 at 9:36 AM, Igor Vaynberg > wrote: >

Re: Invoke Validators manually, in arbitrary places (e.g. Ajax)

2010-12-13 Thread Igor Vaynberg
after you call it call form.haserrors() or form.isvalid() or something similar -igor On Mon, Dec 13, 2010 at 6:29 PM, eugenebalt wrote: > > Thanks Igor. That method is a void. Is it possible to get some kind of a > boolean result from form.validate() to indicate success/failure? > -- > View this

Re: [1.5] [Solved] onBeforeRender() not called after AjaxRequestTarget.add()

2010-12-13 Thread Igor Vaynberg
see component#onconfigure() -igor On Mon, Dec 13, 2010 at 6:16 PM, ilde...@gmail.com wrote: > Ok, I got it, I told I was rusty :) > I forgot that if a component is marked non visible on the first time is > rendered, it will never be rendered again until someone make it visilble. > > Of course, I

Re: Invoke Validators manually, in arbitrary places (e.g. Ajax)

2010-12-13 Thread Igor Vaynberg
form.validate() i believe -igor On Mon, Dec 13, 2010 at 6:15 PM, eugenebalt wrote: > > Is there a way to invoke a Validator manually in an arbitrary place in the > code, or do we have no control over when Wicket runs Validators (it always > happens on the form submit)? > > In my situation, I'd li

Re: Redirect to ResourceStream While *Also* Refreshing Form

2010-12-13 Thread Igor Vaynberg
in the ajaxrequetstarget append javascript that does window.location to a url that starts streaming the data -igor On Mon, Dec 13, 2010 at 5:12 PM, eugenebalt wrote: > > Sorry to bump this again, but is there a way to do Repaint + Download with > the Validators kicking in before the repaint as t

Re: Generate markup outside of DataTable relatively to visible data

2010-12-13 Thread Igor Vaynberg
datatable#newrowitem generates an item for each row. you can add a behavior that renders something before or after the row. -igor On Mon, Dec 13, 2010 at 5:07 PM, Benedikt Schlegel wrote: > Basically, i need a way to hook into the row-generating routine. I > would use DataView, but i need the co

Re: multi-window support, pagestores and wicket 1.5

2010-12-12 Thread Igor Vaynberg
On Sat, Dec 11, 2010 at 12:04 PM, Michal Kurtak wrote: > Hi folks, > > I know that there has been a lot of written about pagestores and > multi-window support in wicket 1.5, but i have several other > questions: > > 1. Is multi-window supported for non-versioned pages? > > If page is versioned eve

Re: after user closes application

2010-12-10 Thread Igor Vaynberg
the only reliable place to do this is in a contet listener on session timeout -igor On Fri, Dec 10, 2010 at 10:08 AM, GJT wrote: > > Hi all.. > > I want to do something after (before) the user closes the wicket > application. How can I do that? I've found out that there was a method caled > rend

Re: Dynamic CSS Resources and clustered wicket app

2010-12-09 Thread Igor Vaynberg
sticky sessions or make sure your cluster has session replication enabled - so that when the css hit comes into the second server it has the page from the first server. -igor On Thu, Dec 9, 2010 at 12:48 PM, Carl-Eric Menzel wrote: > Hi, > > seems to me you should probably use sticky sessions in

Re: user sees page belonging to another session

2010-12-08 Thread Igor Vaynberg
in my experience all these session leaks have usually been caused by bugs in user code - such as using a singleton to store some state. however, once you can give us a test case that reproduces this we will be happy to fix it. -igor On Wed, Dec 8, 2010 at 9:44 PM, Jason Lea wrote: > Hi, > > We h

Re: Multiple wicket applications in a single WAR

2010-12-08 Thread Igor Vaynberg
a reproducible test case :) -igor On Wed, Dec 8, 2010 at 3:53 PM, fstof wrote: > > Okay well I've given everything that I can. > Please tell me what you need to be able to assist, and I'll do my best to > get it for you > > > > > Igor Vaynberg-2 wrote: &

Re: Multiple wicket applications in a single WAR

2010-12-08 Thread Igor Vaynberg
impossible to help you since you have given us no information to go on. all i can say is that having multiple applications in a single war is fine, this is how wicket-examples project is structured and it works fine. good luck. -igor On Wed, Dec 8, 2010 at 3:38 PM, fstof wrote: > > > > > BUMP..

Re: Displaying decimal places using a TextField

2010-12-06 Thread Igor Vaynberg
you can keep the field as and give it its own converter that always shows two decimal places -igor On Mon, Dec 6, 2010 at 4:38 PM, Ian Marshall wrote: > > I use a TextField as shown below. Since this field represents a > currency unit (in this case, pound sterling) I want to have two decimal >

Re: nested form in FormComponentPanel validation issue

2010-12-05 Thread Igor Vaynberg
wrote: > On 11/26/2010 05:41 PM, Igor Vaynberg wrote: >> >> quickstart, jira issue. >> >> -igor > > hi igor > > I've created a quickstart for it (cf attachement) > > however, it may be linked to self made DecoratedEdit/TextFieldEdit classes > (cf at

Re: Long term usage of twitter/oauth credentials with wicket

2010-12-04 Thread Igor Vaynberg
you can mark the cookie as secure so it will only be transferred over https. -igor On Sat, Dec 4, 2010 at 12:56 PM, Peter Karich wrote: >  Hi Igor! > > thanks! I will try it out. (I also think token is url safe) > > BTW: I meant, there is also 'token_secure', not only 'token' in twitter's > oAut

Re: Long term usage of twitter/oauth credentials with wicket

2010-12-04 Thread Igor Vaynberg
not sure, but i would think it would be ok. i think the token should already be url safe, but once again - not sure. -igor On Sat, Dec 4, 2010 at 12:38 PM, Peter Karich wrote: >  Igor, > > there is token_secure. So storing it in clean text should be ok, right? > Or do I need to encrypt (or at le

Re: Long term usage of twitter/oauth credentials with wicket

2010-12-04 Thread Igor Vaynberg
store the token in a cookie and attempt to auto-reologin user based on it? -igor On Sat, Dec 4, 2010 at 11:51 AM, Peter Karich wrote: >  Hi, > > do you know of any examples for wicket which uses twitter's oAuth? > In my app I can easily login and use the twitter api, > but I'm kind of stuck how

Re: Remove Child in IVisitor causes problems

2010-12-03 Thread Igor Vaynberg
please create a jira issue to add the warning. -igor On Fri, Dec 3, 2010 at 8:10 AM, jbrookover wrote: > > Hey all, > > Interesting thing I encountered today.  I have a Panel that provides it's > own markupstream that is dynamically created from XML/XSLT.  Essentially, it > scans the markup stre

Re: Logout (Session destroy) on the last (stateful) page?

2010-12-03 Thread Igor Vaynberg
it is a good idea to always redirect to a bookmarkable url after invalidating your session. -igor On Thu, Dec 2, 2010 at 2:08 AM, Ernesto Reinaldo Barreiro wrote: > e.g. you could: > > 1-Place and AbstractDefaultAjaxBehavior on you page (e.g. to some div > on your page). Use urlFor to generate t

Re: Cache HTML output of a page

2010-12-01 Thread Igor Vaynberg
cache your business logic. wicket rendering is pretty fast, i doubt that is your bottleneck. -igor On Wed, Dec 1, 2010 at 3:03 AM, andrea.castello wrote: > > Hi, > > is there a way to get the HTML output of a page component and cache it > somewhere (ie: a custom cache or and Ehcache object or so

Re: How to enable/disable an hierarchy?

2010-11-30 Thread Igor Vaynberg
have a field in the page that controls whether or not these components should be enabled/disabled, then override their onconfigure() methods and setenable/disabled based on the field. -igor On Tue, Nov 30, 2010 at 3:17 PM, Einar Bjerve wrote: > Hi all, > > How can we enable/disable almost an ent

Re: UrlRewrite rule and Wicket

2010-11-30 Thread Igor Vaynberg
upgrade to 1.4.14 because that code looks different for me. -igor On Tue, Nov 30, 2010 at 9:03 AM, Krzysztof Kowalczyk wrote: > We use Wicket 1.4.12. > > On Tue, Nov 30, 2010 at 5:43 PM, Igor Vaynberg > wrote: >> you must be using an old wicket version...upgrade to latest

Re: UrlRewrite rule and Wicket

2010-11-30 Thread Igor Vaynberg
hat are other cases that are handled by those lines, but > forwardUrl can have any value and Wicket assume some concrete value. > > On Tue, Nov 30, 2010 at 5:24 PM, Igor Vaynberg > wrote: >> first figure out why its failing - why is wicket generating a wrong >> url, and t

Re: Concerning changing image onsubmit

2010-11-30 Thread Igor Vaynberg
write a behavior that adds javascript to the button that does that. -igor On Tue, Nov 30, 2010 at 3:07 AM, Muro Copenhagen wrote: > Hi, > > I want to change the button image to a ajaxloader image, after the user > clicks on submit, > and there are no feedback errors. > > It has to work both on a

Re: UrlRewrite rule and Wicket

2010-11-30 Thread Igor Vaynberg
first figure out why its failing - why is wicket generating a wrong url, and then you can determine if its a bug in wicket or somewhere in your configuration. -igor On Tue, Nov 30, 2010 at 2:21 AM, Krzysztof Kowalczyk wrote: > Hi, > > We have existing urls in a form: > > /long,and,complex,title,

Re: Dynamically loading image

2010-11-29 Thread Igor Vaynberg
there is a wiki page that explains how to serve images...search for it, i think its called "uploade/download" or something like that. -igor On Mon, Nov 29, 2010 at 7:11 PM, Matthew Goodson wrote: > > Hi all, > I'm needing to generate the url to an image dynamically on the client. > i.e. I want t

Re: UploadProgressBar on nested forms

2010-11-29 Thread Igor Vaynberg
ms? >> > >> > Thanks, >> > >> > Alec >> > >> > On Wed, Nov 24, 2010 at 10:29 AM, Alec Swan wrote: >> > >> >> Done. JIRA 3191. >> >> >> >> Thanks >> >> >> >> On Tue, Nov 23, 2010

Re: component not visible exception

2010-11-29 Thread Igor Vaynberg
wrote: > That seems more likely to me. > > Is there anything I could do to prevent this? > > D/ > > On Nov 29, 2010, at 1:21 PM, Igor Vaynberg wrote: > >> another possibility, if this page is using hybrid url coding strategy, >> is that the session expires and

Re: component not visible exception

2010-11-29 Thread Igor Vaynberg
n't recreate this error, but I see it in production > alot. > > So I have no way of looking at the action url. > > D/ > > > On Nov 29, 2010, at 12:59 PM, Igor Vaynberg wrote: > >> easy. >> >> the form's action url points to a version of the page

Re: component not visible exception

2010-11-29 Thread Igor Vaynberg
the save button when is it not visible? > > The only thing I can think of is that this could be some back button issue. > But then again, I'm not sure how that would manifest... > > D/ > > On Nov 29, 2010, at 11:25 AM, Igor Vaynberg wrote: > >> in order for compone

Re: component not visible exception

2010-11-29 Thread Igor Vaynberg
in order for component to be visible all of its parents have to be visible from the page down to the component. same for the enabled state. -igor On Mon, Nov 29, 2010 at 9:21 AM, Douglas Ferguson wrote: > Hmm... even if we aren't changing the visibility of the button? > > On Nov 29, 2010, at 10:

Re: UploadProgressBar on nested forms

2010-11-29 Thread Igor Vaynberg
ke the progress bar a child component of the outer form > and display the bar on submission of any (or all) nested forms? > > Thanks, > > Alec > > On Wed, Nov 24, 2010 at 10:29 AM, Alec Swan wrote: > >> Done. JIRA 3191. >> >> Thanks >> >> On Tue,

Re: nested form in FormComponentPanel validation issue

2010-11-26 Thread Igor Vaynberg
quickstart, jira issue. -igor On Fri, Nov 26, 2010 at 2:52 AM, Joseph Pachod wrote: > On 11/25/2010 08:26 PM, Igor Vaynberg wrote: >> >> addressedit should be composing itself in its convertinput() method >> based on the converted input of the subcomponents. >> > &

Re: Preventing user input script-injection attacks

2010-11-26 Thread Igor Vaynberg
yes, we only escape on the output. escaping the input itself makes little sense. if you want to escape the input before you store it use Strings.escapeMarkup() util method. -igor On Fri, Nov 26, 2010 at 6:34 AM, Ian Marshall wrote: > > Hello Igor, > > I remain an Ant person for now and not a Mav

Re: Invalid html rendered with DataTable [ex. empty tfoot element]

2010-11-25 Thread Igor Vaynberg
mind specifying which wicket version you are using? -igor On Thu, Nov 25, 2010 at 5:17 AM, Poko Booth wrote: > Hi all, > If you use DataTables, when the bottomToolBars view has no items to render, > the markup exported is invalid: > > >       >       >       >           ... >           ... >

Re: nested form in FormComponentPanel validation issue

2010-11-25 Thread Igor Vaynberg
addressedit should be composing itself in its convertinput() method based on the converted input of the subcomponents. -igor On Thu, Nov 25, 2010 at 5:07 AM, Joseph Pachod wrote: > Hi > > I've an AddressEdit which is a FormComponentPanel > > The addressEdit is composed of two parts: a structured

Re: Preventing user input script-injection attacks

2010-11-25 Thread Igor Vaynberg
wicket should already escape the markup for you. please provide a quickstart where it is not doing it. -igor On Thu, Nov 25, 2010 at 7:15 AM, Ian Marshall wrote: > > If a user has entered some HTML in a TextField or TextArea when I do > not want HTML to be entered, what is a good way to prevent

Re: setVersioned & setStatelessHint

2010-11-24 Thread Igor Vaynberg
wicket can automatically determine if the page is stateless... -igor On Wed, Nov 24, 2010 at 6:41 AM, Arjun Dhar wrote: > > Hi, >  if I have BookMarkable pages and they are pretty much stateless, does it > buy me much to do: > > setStatelessHint(false); for every component? > imo Adds a bit of v

Re: WicketRuntimeException: component not found on page

2010-11-23 Thread Igor Vaynberg
start by creating a quickstart that reproduces it so we can better understand it -igor On Tue, Nov 23, 2010 at 9:38 PM, Alec Swan wrote: > I noticed that all "component not found on page" exceptions were > thrown for AjaxEditableLabel and AjaxLink components located inside of > a DataView. > > I

Re: UploadProgressBar on nested forms

2010-11-23 Thread Igor Vaynberg
displaying a modal window from nested upload form. >> >> Thanks, >> >> Alec >> >> On Sat, Nov 20, 2010 at 1:35 PM, Igor Vaynberg >> wrote: >> > not sure yet :) but a quickstart will give me a playground to explore >> > the options. >&

Re: replace embedded css via ajax

2010-11-23 Thread Igor Vaynberg
generate it in a dynamic resource instead of putting it directly into the page or add a bit of metadata to the page marking that you have contributed this -igor On Tue, Nov 23, 2010 at 3:41 AM, nino martinez wael wrote: > Hi > > Currently I draw some css this way: > > response.renderString(""

Re: how to have one app at multiple root contexts

2010-11-22 Thread Igor Vaynberg
getRootRequestMapper())); > > but then it goes into a loop "delegating to the chain". > > I feel like I'm missing something obvious...  not too proud to ask for a bit > more hand holding? > > Thanks very much, > -- Jim. > > On Mon, Nov 22, 2010 at 1:13 PM, Igo

Re: StackOverflowError

2010-11-22 Thread Igor Vaynberg
no. the example below doesnt hit any pitfalls because it doesnt reference the session itself. as long as objects retrieved from session do not contain references back to session he is ok. however, declaring Session instance as final is not a good idea because it makes it easy to reference it in an

Re: how to have one app at multiple root contexts

2010-11-22 Thread Igor Vaynberg
this would indeed be much simpler with 1.5. wicket-examples in 1.5 contains some request mapper examples you can take a look at. basically, you can use the same idea as LocaleFirstMapper to always prepend the client name into the first segment of the url - creating virtual contexts in the url space

Re: Customizing AutoCompleteTextFeld

2010-11-22 Thread Igor Vaynberg
use css -igor On Mon, Nov 22, 2010 at 12:04 AM, javax wrote: > > Hi! > How can I change fonts and color of choices dropdown list in > AutoCompleteTextFeld? > > Thank you! > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Customizing-AutoCompleteTextFeld-tp3053200

Re: MessageLabel vanished in Wicket 1.4.x

2010-11-22 Thread Igor Vaynberg
the label i showed you does what the old message label did. -igor On Sun, Nov 21, 2010 at 11:43 PM, andrea.castello wrote: > > Hi Igor, thanks for your answer, but I think it doesn't fit my situation. > To explain better, I post the code similar to the class that must be changed > in order to be

Re: Use AjaxButton without attaching to a form ?

2010-11-21 Thread Igor Vaynberg
so attach the link to a button or input[submit] tag -igor On Sun, Nov 21, 2010 at 5:23 PM, smallufo wrote: > Hi , thanks. > Ajax Link works , but I want it to be displayed as a button. > > > > 2010/11/21 Ernesto Reinaldo Barreiro > >> Why not simply use an AJAX link? >> >> Ernesto >> >> On Sun,

Re: UploadProgressBar on nested forms

2010-11-20 Thread Igor Vaynberg
s (line 41 > > While I am filing a bug and waiting for a fix, are there any > suggestions on how to show a modal window during files upload > initiated from a nested form? > > Thanks > > On Sat, Nov 20, 2010 at 1:05 PM, Igor Vaynberg > wrote: >> sounds like a bug.

Re: UploadProgressBar on nested forms

2010-11-20 Thread Igor Vaynberg
sounds like a bug. open a jira ticket, attach a quickstart. -igor On Sat, Nov 20, 2010 at 11:22 AM, Alec Swan wrote: > Hello, > > I have a page which contains a form around a table. Each row in the > table contains a nested form which allows user to upload a file for > the row. I added an Upload

Re: MessageLabel vanished in Wicket 1.4.x

2010-11-19 Thread Igor Vaynberg
new Label("message", new ResourceModel("key")); -igor On Fri, Nov 19, 2010 at 8:33 AM, andrea.castello wrote: > > Hello all, > > I've to upgrade a web application built on Wikcet 1.3.6 to wicket 1.4.13. > > In my webapp I have a class which extends > WicketMessageResolver.MessageLabel. > When I

Re: WeakReference

2010-11-18 Thread Igor Vaynberg
in objects that are stored in servletcontext scope it is not a good idea to keep references to class objects directly as it may lead to the container not being able to release the classloaders and shutdown cleanly when the context is shutdown. we usually keep a weak reference and a name, so when we

Re: During form submit, if there are no validation errors , i need to run a script before form submits

2010-11-18 Thread Igor Vaynberg
onsubmit wont be called if there are validation errors, so you are already good. -igor On Thu, Nov 18, 2010 at 1:01 AM, Ben wrote: > > When I click on form's submit button, I need to do 2 things.. > > 1. I need to perform server side validation.(in onSubmit method) > 2. After that I need to run

Re: Form in tfoot disappears after submission

2010-11-17 Thread Igor Vaynberg
not that i know of. -igor On Wed, Nov 17, 2010 at 6:36 AM, Alec Swan wrote: > Did you mean "noT" allowed? > > If so, is there any other way to submit all tables in a row besides > having a form around the entire table? > > Thanks > > On Wed, Nov 17, 2010 at

<    4   5   6   7   8   9   10   11   12   13   >