Re: OnChangeAjaxBehavior and other form components

2010-04-20 Thread Martin Grigorov
In the same context: is it possible to remove "final" from org.apache.wicket.ajax.form.AjaxFormComponentUpdatingBehavior.getEventHandler() I need to tweak the callback url. On Tue, 2010-04-20 at 15:25 -0700, Igor Vaynberg wrote: > user AjaxFormComponentUpdatingBehavior > > -igor > > On Tue, Apr

Re: What can I do to speed up wicket initialization?

2010-04-20 Thread Jeremy Thomerson
On Mon, Apr 19, 2010 at 5:32 PM, Zilvinas Vilutis wrote: > Spring / hibernate usually loads *before* seeing the message "Started > Wicket in deployment mode". > Yes - this is what takes a long time - Spring / Hibernate. The "Started Wicket in deployment mode" comes from when Wicket finishes loa

AbstractDefaultAjaxBehavior - getCallBackUrl

2010-04-20 Thread Arie Fishler
Hello, I am extending AbstractDefaultAjaxBehavior and using getCallBackUrl to place the ajax call in a JS function. This works fine. The only problem I have is that the getCallBackUrl does not seem to take into account the container's (tomcat) behavior of adding the JSESSIONID within the URL in

Re: OnChangeAjaxBehavior and other form components

2010-04-20 Thread Igor Vaynberg
user AjaxFormComponentUpdatingBehavior -igor On Tue, Apr 20, 2010 at 2:37 PM, Steven Haines wrote: > Hi, > > I have a form component to which I added an OnChangeAjaxBehavior derivative > and in its onUpdate() method I want to access the contents of it *and* > another form field. > > Here's wha

OnChangeAjaxBehavior and other form components

2010-04-20 Thread Steven Haines
Hi, I have a form component to which I added an OnChangeAjaxBehavior derivative and in its onUpdate() method I want to access the contents of it *and* another form field. Here's what I'm doing: form.add( new TextField( "street1" ).setRequired( true ) ); final TextField zipcodeF

Re: Image Bundler For Apache Wicket

2010-04-20 Thread Daniel Stoch
And one more thing: ImageItem interface (and posiibly ImageItemProvider too) should extend Serializable (or maybe better IClusterable?). -- Daniel - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional c

Re: Image Bundler For Apache Wicket

2010-04-20 Thread Daniel Stoch
On 2010-04-20, at 19:28, Anantha Kumaran wrote: Maybe for methods returning an ImageItem a Locale should be a method argument (but only if image is locale relative). So: // for not locale relative images ImageItem getSomeImage(); // for locale related ImageItem getSomeImage(Locale locale);

Re: String Resource Loading from DB

2010-04-20 Thread Zilvinas Vilutis
Yes, That seems to work. Although each component which needs to be localized needs to implement a unique class, 'cause in many cases the Component class is "WebMarkupContainer" ( if we use components in list & etc ). Does anyone have practice on using any performance experience on that? Do you u

Re: Image Bundler For Apache Wicket

2010-04-20 Thread Anantha Kumaran
> > My suggestions and optimalization notes: > 1. In some cases there is no necessary to create an anonymous class > for each ImageItem (using AbstractImageItem). When @ImageBundle > interface has not locale specified, then SimpleImageItem(String > imageSrc, String imageStyle) can be used. > > 2. T

Re: Add new items to a list within a form by ajaxlink?

2010-04-20 Thread Igor Vaynberg
participantlistview.setReuseItems(true) -igor On Tue, Apr 20, 2010 at 7:16 AM, Daniel Aschauer wrote: > Hi! > > I am new here, and I am creating my first Webapplication with Wicket > and already read through the whole book "Wicket in action". > > But I still face some problem I could resolve: >

Re: Image Bundler For Apache Wicket

2010-04-20 Thread Daniel Stoch
Hi, Thanks for this change! My suggestions and optimalization notes: 1. In some cases there is no necessary to create an anonymous class for each ImageItem (using AbstractImageItem). When @ImageBundle interface has not locale specified, then SimpleImageItem(String imageSrc, String imageStyle) can

Re: Add new items to a list within a form by ajaxlink?

2010-04-20 Thread rommert
Hi, I think I solved that problem a while ago. The component below is backed up by a List and displays a single textfield for the first value of the list. If you press the ajax-link an additional textfield is added for the second item of the list, etcetera. As said, the values from the textfields

Re: String Resource Loading from DB

2010-04-20 Thread Josh Glassman
Yup, you have the right idea. Something like... public class DatabaseStringResourceLoader implements IStringResourceLoader {...} And then in your WebApplication.init()... getResourceSettings().addStringResourceLoader(new DatabaseStringResourceLoader()); Cheers, Josh

Add new items to a list within a form by ajaxlink?

2010-04-20 Thread Daniel Aschauer
Hi! I am new here, and I am creating my first Webapplication with Wicket and already read through the whole book "Wicket in action". But I still face some problem I could resolve: In a form, where I use a compound model I want to add some new Object to a list when a ajax link is clicked. The prob

Re: Failing to remove item from list when drag and dropping

2010-04-20 Thread Johan Haleby
It works very well!! Thanks a lot for this, it's been extremely helpful! /Johan -- View this message in context: http://n4.nabble.com/Failing-to-remove-item-from-list-when-drag-and-dropping-tp1960968p2017437.html Sent from the Wicket - User mailing list archive at Nabble.com. -

Re: Scroll to Anchor on Form Submit

2010-04-20 Thread Amorgos
Here is how you can do it. Have a look at this blog post: http://androidisland.blogspot.com/2010/04/wicket-submitting-form-to-anchor.html http://androidisland.blogspot.com/2010/04/wicket-submitting-form-to-anchor.html -- View this message in context: http://n4.nabble.com/Scroll-to-Anchor-on-Fo

Re: 2nd try: stateless AJAX behaviors in stateful page without its serialization

2010-04-20 Thread Johan Compagner
do you want to avoid serialization or deserialization (you talk about Session.getPage() and thats deserialization) But deserialization will not happen because the active page is stored in memory, Serialization does happen at the end of a request to store the actual content of the page, so that late

Re: How to validate an entire object in a form (rather than a particular property of that object)

2010-04-20 Thread Dan Haywood
ok, thanks ... that worked. It threw up a different problem, but that'll be another post. Dan On 20/04/2010 01:53, Igor Vaynberg wrote: you can override form.onvalidate() and do your validation there -igor On Mon, Apr 19, 2010 at 4:51 PM, Dan Haywood > wrote:

Re: Any indicator for Ajax-Rendering?

2010-04-20 Thread Ernesto Reinaldo Barreiro
Then it should come from an AJAX request as the code above shows...?? Ernesto On Tue, Apr 20, 2010 at 10:00 AM, MattyDE wrote: > > I know. But i breakpointed there... and AjaxRequestTarget.get() is not null > in onBeforeRender > -- > View this message in context: > http://n4.nabble.com/Any-indi

Re: Any indicator for Ajax-Rendering?

2010-04-20 Thread MattyDE
I know. But i breakpointed there... and AjaxRequestTarget.get() is not null in onBeforeRender -- View this message in context: http://n4.nabble.com/Any-indicator-for-Ajax-Rendering-tp2016955p2017047.html Sent from the Wicket - User mailing list archive at Nabble.com. ---

Re: Any indicator for Ajax-Rendering?

2010-04-20 Thread Ernesto Reinaldo Barreiro
That's really weird because the code of get is like public static AjaxRequestTarget get() { final RequestCycle requestCycle = RequestCycle.get(); if (requestCycle != null) { if (requestCycle.getRequestTarget() instanceof AjaxRequestTarget) {

Re: Any indicator for Ajax-Rendering?

2010-04-20 Thread MattyDE
I thought the same.. but... its not true ;) .. it returns not null -- View this message in context: http://n4.nabble.com/Any-indicator-for-Ajax-Rendering-tp2016955p2017020.html Sent from the Wicket - User mailing list archive at Nabble.com. --

Re: Any indicator for Ajax-Rendering?

2010-04-20 Thread Ernesto Reinaldo Barreiro
Not 100% sure but I think AjaxRequestTarget.get() will return null if request is not AJAX. Maybe you could use that as a "flag". Best, Ernesto On Tue, Apr 20, 2010 at 8:31 AM, MattyDE wrote: > > Hi Folks, > > is there any indicator in onAfterRender() or onBeforeRender() inside a > Component wh

component pointed to by the illegal value

2010-04-20 Thread Martin Makundi
Hi! I get this strange error quite often, the component is on a tabbed panel but I cannot figure out what I am doing wrong. Any clues? 2010-04-20 10:03:57,149 5817898 [17511...@qtp-16149859-111] ERROR RequestCycle  - submitted http post value [radio-26086] for RadioGroup component [0:mainTabs:su