Re: Repeaters, dynamic data & detaching models

2018-08-30 Thread Igor Vaynberg
> On Aug 27, 2018, at 6:00 AM, Tobias Gierke > wrote: > > Hi, > > A collegue of mine just came across a rather interesting bug in our Wicket > application. > > 1. We have a simple page with a repeater (ListView) that displays a table and > on each row, some buttons to perform actions on

Wicket Job Opportunity

2017-11-02 Thread Igor Vaynberg
Hi, My company is looking to fill a 100% telecommuting (must reside within two time zones of US/Central time GMT-0600) senior software engineer position. We use Wicket/Weld/Hibernate stack. If you are interested you can read more about the position here:

Re: Best practice for updating JPA object without persisting changes

2014-03-05 Thread Igor Vaynberg
have a look here: https://www.42lines.net/2011/12/01/simplifying-non-trivial-user-workflows-with-conversations/ -igor On Wed, Mar 5, 2014 at 3:47 AM, Chris Snyder chris.sny...@biologos.org wrote: I'm dealing with an issue that I'm sure has been solved by many people on this list, but I'm

Re: Best practice for updating JPA object without persisting changes

2014-03-05 Thread Igor Vaynberg
- perhaps I should embrace a hard dependency on JPA and simplify everything. JPA is itself an abstraction layer, after all... Thanks, Chris On Wed, Mar 5, 2014 at 11:44 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: have a look here: https://www.42lines.net/2011/12/01/simplifying-non-trivial

Re: Show textfield as plaintext when disabled?

2014-03-01 Thread Igor Vaynberg
class MyTextField extends TextField { onComponentTag(tag) { super.onComponentTag(tag); if (!enabledInHierarchy()) { tag.setName(label); tag.removeAttribute(type); tag.removeAttribute(value); tag.setType(TagType.OPEN); } } void

Component Queueing is here (master), aka Free Wicket From Hierarchy Hell, aka Markup Driven Component Tree

2014-02-27 Thread Igor Vaynberg
in the past couple of weeks i finally had some time to finish up the component queueing feature. it is meant to greatly decrease common maintenance headaches associated with markup tweaks and moving components around. see the intro here:

Re: ajax child component and enclosures visibility doesn't seem to work properly

2014-02-21 Thread Igor Vaynberg
that only works on inline enclosure - enclosures that do not use wicket:enclosure tags. -igor On Fri, Feb 21, 2014 at 5:37 AM, Simon B simon.bott...@gmail.com wrote: Hi, I'm using wicket 6.13. I've got an ajax link that I want to toggle the visibility of two components, each component is

Re: ajax child component and enclosures visibility doesn't seem to work properly

2014-02-21 Thread Igor Vaynberg
yes, thats what i mean. the markup you posted did not come through to the mailing list... -igor On Fri, Feb 21, 2014 at 7:48 AM, Simon B simon.bott...@gmail.com wrote: Hi Igor, Thanks for the reply. I'm a bit confused, the markup that I'm using (and that I posted originally) does have

Re: setting visibility of a component decocorated with a behavior

2014-02-17 Thread Igor Vaynberg
see IAjaxRegionMarkupIdProvider -igor On Mon, Feb 17, 2014 at 7:37 AM, Simon B simon.bott...@gmail.com wrote: Hi, I have a behavior that decorates the component that it is added to by using beforeRender(Component) and afterRender(Component). So a simplified version of my behavior would be

Re: setting visibility of a component decocorated with a behavior

2014-02-17 Thread Igor Vaynberg
cheers -igor On Mon, Feb 17, 2014 at 1:53 PM, Simon B simon.bott...@gmail.com wrote: Igor, Incidentally the javadoc on that interface is awesome, thanks for taking the time to make it so easily readable and understandable. Cheers Simon -- View this message in context:

Re: Jetty, Wicket and getting live JavaScript changes?

2014-02-15 Thread Igor Vaynberg
Make sure wicket is running in development mode. It will scan resources for changes. A refresh in the browser will load the latest version. -igor On Feb 14, 2014 3:59 PM, tertioptus benpaige...@hotmail.com wrote: I use Jetty, maven and Eclipse. *What's the best way for me to have Jetty pick

Re: Jetty, Wicket and getting live JavaScript changes?

2014-02-15 Thread Igor Vaynberg
Yes. Because they have shared classpath. -igor On Feb 15, 2014 7:58 AM, tertioptus benpaige...@hotmail.com wrote: Even if the resource files are in another project? Which is my particular issue. /For instance: Module 1 - jar ---some-wicket-component.java ---some-javascript-file.js

Re: Why is getDisplayValue in getDisplayValue final?

2014-01-09 Thread Igor Vaynberg
that there is no reason to override that method directly as its functionality can be completely replaced by overriding postprocess()... so why override the original? -igor Martin Grigorov Wicket Training and Consulting On Thu, Jan 9, 2014 at 1:12 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote

Re: Why is getDisplayValue in getDisplayValue final?

2014-01-08 Thread Igor Vaynberg
the method is final because overriding it means you will most likely break the contract of the resourceKey and postprocess methods which are meant to be used by you to customze the behavior of getDisplayValue(). so lets say you create subclass MyEnumChoiceRenderer with an overridden

Re: wicket-el - is this a safe way to hook into wicket?

2013-12-19 Thread Igor Vaynberg
On Wed, Dec 18, 2013 at 9:40 PM, Steve Coughlan shadders@gmail.com wrote: A few weeks back I made a post about the first version of universal expression language for wicket. Since then it's come quite a way. The initial version hooked into by implementing IMarkupResourceStreamProvider

Re: Enfocing INPUT field names to respect hCard formats

2013-11-17 Thread Igor Vaynberg
override getInputName() and return the string you want. -igor On Sun, Nov 17, 2013 at 5:21 AM, Arjun Dhar dhar...@yahoo.com wrote: http://microformats.org/wiki/hcard-input-examples#person_billing_shipping_input To ensure browsers can Auto fill Input form fields for E-Commerce forms and

Re: weld conversation propagation page

2013-11-13 Thread Igor Vaynberg
this is the desired behavior. see conversation propagation settings. by default conversations are only propagated to non-bookmarkable pages. -igor On Wed, Nov 13, 2013 at 4:36 AM, brazz alexander.li...@man.eu wrote: Hi, after spending a hard time debugging i found this problem: i have to

Re: Interesting article from Zeroturnaround

2013-07-31 Thread Igor Vaynberg
unless youve built and maintained a real non-trivial application using all those frameworks how can you put numbers on them? -igor On Wed, Jul 31, 2013 at 5:47 AM, Michael Mosmann mich...@mosmann.de wrote: Am 31.07.13 13:56, schrieb Andrea Del Bene: I don't agree with everything in it, but

its that time of year again, 42lines is hiring java devs

2013-07-30 Thread Igor Vaynberg
the company i work for ( 42lines.net ) is growing and we are looking for a few good devs. about our approach: * we are a distributed usa-based company * everyone telecommutes either from home or a coworking space of your choice (paid for by the company) * we use a variation of agile methodology

Re: http://wicketinaction.com/ broken?

2013-07-19 Thread Igor Vaynberg
works for me On Fri, Jul 19, 2013 at 1:19 PM, Dan Retzlaff dretzl...@gmail.com wrote: Busted for me. On Fri, Jul 19, 2013 at 12:54 PM, William Speirs wspe...@apache.org wrote: Worked for me... try again? Bill- On Fri, Jul 19, 2013 at 2:52 PM, Gabriel Landon glan...@piti.pf

Re: How to prevent a concurrent click on ajax links (AjaxFallbackLink)

2013-07-12 Thread Igor Vaynberg
the easiest way to do it is to tell the ajax channel used by the link to drop requests if one is already in progress, this is called an active channel. add(new AjaxLink(..) { updateAjaxAttributes(attrs) { attrs.setChannel(new AjaxChannel(blocking, AjaxChannel.Type.ACTIVE)); } } if you

Re: Adding border in border

2013-07-10 Thread Igor Vaynberg
SubBorder.java class SubBorder extends Border { SubBorder() { ... } } SubBorder.html wicket:border xmlns:wicket ... border:body/ ... /wicket:border MainBorder.java class MainBorder extends Border { MainBorder() { addToBorder(new SubBorder(sub1)); addToBorder(new

Re: What is the purpose of Validatable.model?

2013-06-25 Thread Igor Vaynberg
this method is useful for validators that integrate with other frameworks. take for example bean-validation framework. a bean validation validator can call getModel(), get the model, cast it to IPropertyReflectionAwareModel, get the property, and retrieve validation annotations associated with

Re: CDI WELD-000070 Simple bean cannot be a non-static inner class

2013-06-10 Thread Igor Vaynberg
you cannot inject non-static classes... class org.apache.wicket.markup.html.pages.ExceptionErrorPage$1 cannot be a non-static inner class -igor On Mon, Jun 10, 2013 at 8:32 AM, Phill gilberth...@gmail.com wrote: I'm trying to use wicket-cdi with Glassfish 4.0 and get the following exceptions.

Re: RadioChoice AjaxFormChoiceComponentUpdatingBehavior and validation

2013-06-03 Thread Igor Vaynberg
you might have to override updateAttributes on the behavior and say attributes.allowdefault(true) -igor On Mon, Jun 3, 2013 at 11:28 AM, divad91 diva...@hotmail.com wrote: Hi, Im not sure if my problem is related to wicket or jQuery but since I upgraded from wicket 6.6.0 to 6.8.0, my

Re: [wicket 6] Create/Register Spring Bean in wicket ?

2013-05-10 Thread Igor Vaynberg
see spring's FactoryBean, its an indirect way to create beans. -igor On Fri, May 10, 2013 at 12:33 PM, smallufo small...@gmail.com wrote: Hi , I wonder if it possible to programmatically create / register a spring bean in wicket? maybe in Application.init() ... Most documents about spring

Re: Handling user-specific timezones

2013-05-09 Thread Igor Vaynberg
we should write components that work with multiple types. for example this is what code of a DateLabel might look like: @Override public void onComponentTagBody(MarkupStream markupStream, ComponentTag openTag) { String body = ; Object date = getDefaultModelObject(); if (date != null) { if

Re: Handling user-specific timezones

2013-05-09 Thread Igor Vaynberg
On Thu, May 9, 2013 at 12:32 PM, Martin Grigorov mgrigo...@apache.org wrote: On Thu, May 9, 2013 at 5:37 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: we should write components that work with multiple types. But this will mean that we will have to re-write it to javax.time

Re: Handling user-specific timezones

2013-05-09 Thread Igor Vaynberg
On Thu, May 9, 2013 at 1:12 PM, Martin Grigorov mgrigo...@apache.org wrote: On Thu, May 9, 2013 at 9:45 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: On Thu, May 9, 2013 at 12:32 PM, Martin Grigorov mgrigo...@apache.org wrote: On Thu, May 9, 2013 at 5:37 PM, Igor Vaynberg igor.vaynb

Re: Migrating WebRequestCycleProcessor from 1.4.x to 6.5.0

2013-05-07 Thread Igor Vaynberg
all these things can be accomplished from inside IRequestCycleListener -igor On Mon, May 6, 2013 at 10:26 PM, iamrakesh iamrakes...@rediffmail.com wrote: Hi, In resolve() method we're trying to catch handle InvalidUrlException to prevent exception due to multiple clicks on a button. In

Re: Change signature of AbstractTree or Model.ofSet

2013-05-07 Thread Igor Vaynberg
jira ticket please. can only be fixed in 7.0 -igor On Sun, May 5, 2013 at 5:30 AM, Илья Нарыжный phan...@ydn.ru wrote: Hello, I have following problem in wicket 6 with trees: Constructor of class org.apache.wicket.extensions.markup.html.repeater.tree.AbstractTree have following signature:

Re: How to unit test AttributeModifier

2013-05-07 Thread Igor Vaynberg
attribute modifiers are behaviors, so use component.getbehavior(AttributeModifier.class) to get it. -igor On Tue, May 7, 2013 at 8:24 AM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Hello, Is it possible to unit test an AttributeModifier? I have a simple component:

Re: Wicket RepeatingView refresh / rerender ? Possibilities? [List items missing]

2013-05-07 Thread Igor Vaynberg
repeatingviews are manual repeaters - meaning they do not get updated once they are built. you should most likely use a RefreshingView, or navigate back to the page in such a way that a new instance is created which will rebuild the repeatingview. -igor On Tue, May 7, 2013 at 5:59 AM,

Re: Wicket 6.x and Repeaters API change to use longs

2013-05-03 Thread Igor Vaynberg
4.8.4 Aggregate Functions in the SELECT Clause The result of a query ... The Java type that is contained in the result of a query using an aggregate function is as follows: COUNT returns Long. ... -igor On Fri, May 3, 2013 at 8:35 AM, Paul Bors p...@bors.ws wrote: I'm a bit confused and can't

Re: Wicket 6.x and Repeaters API change to use longs

2013-05-03 Thread Igor Vaynberg
as longs, one would have to cast first to an int to pass it through the JEE 6 API, right? Or am I missing something? ~ Thank you, Paul Bors -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Friday, May 03, 2013 11:45 AM To: users@wicket.apache.org Subject

Re: Question regarding exceptions in Apache Wicket

2013-05-01 Thread Igor Vaynberg
what is the purpose of knowing whether an exception is a wicket exception or something from further down the stack? eg how would you handle a runtime exception that came from within java.lang.String differently then the one that came from Wicket or the one that came from the servlet api? -igor

Re: Question regarding exceptions in Apache Wicket

2013-05-01 Thread Igor Vaynberg
, Igor Vaynberg igor.vaynb...@gmail.comwrote: what is the purpose of knowing whether an exception is a wicket exception or something from further down the stack? eg how would you handle a runtime exception that came from within java.lang.String differently then the one that came from Wicket

Re: Question regarding exceptions in Apache Wicket

2013-05-01 Thread Igor Vaynberg
of checking package names. I generally agree that this could be done independent of how Apache Wicket exceptions are designed and it's more categorized in the convenience zone. On Wed, May 1, 2013 at 11:06 AM, Igor Vaynberg igor.vaynb...@gmail.comwrote: On Wed, May 1, 2013 at 1:23 AM, Behrooz

Re: Disabling Individual Checkboxes in CheckGroup

2013-04-28 Thread Igor Vaynberg
On Fri, Apr 26, 2013 at 8:39 AM, eugenebalt eugeneb...@yahoo.com wrote: Igor, The problem is, you do check.setEnabled(false) in *ListView.populateItem()* for a CheckGroup control. so? This method executes AFTER the Ajax update. It's too late to do check.setEnable(false) on the render of

Re: Disabling Individual Checkboxes in CheckGroup

2013-04-22 Thread Igor Vaynberg
check.setEnabled(false) -igor On Mon, Apr 22, 2013 at 2:09 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Hi, I'm not sure this is what you want, but you can subclass the Check class and override its onComponentTag method to add disabled=disabled to the input tags you want to

Re: How to force user to select from AutoComplete choices

2013-04-16 Thread Igor Vaynberg
you can try using this: https://github.com/ivaynberg/wicket-select2 -igor On Tue, Apr 16, 2013 at 8:30 AM, heikki tropic...@gmail.com wrote: hello, I've an autocomplete textfield (this one: com.googlecode.wicket.jquery.ui.form.autocomplete.AutoCompleteTextField) and I'd like to restrict

Re: AddOrReplace with Ajax

2013-04-11 Thread Igor Vaynberg
addOrReplace will copy the id for you. you just have to make sure that the component you are replacing has its setOutputMarkupId() set to true during the initial non-ajax render. from then on everything will work the same. -igor On Thu, Apr 11, 2013 at 3:01 PM, Nick Pratt nbpr...@gmail.com

Re: Repainting repeaters - why the need for the enclosing element

2013-04-09 Thread Igor Vaynberg
this has to do with how wicket repaints things with ajax. what it does is render the component and then replace the component's root dom node in the existing markup with the one rendered via ajax. lets take a simple example of attaching a listview to a [tr] add(new ListView(rows, ...) { });

Re: Markup ID set on a container

2013-04-03 Thread Igor Vaynberg
this warning is because you attach the webmarkupcontainer to a wicket:container tag this tag is not rendered in deployment mode, so the id you want to output using setOutputMarkupId() wont be there either - thus the warning. -igor On Wed, Apr 3, 2013 at 11:18 AM, Nick Pratt nbpr...@gmail.com

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Igor Vaynberg
putting a 10 components into a page is ill advised even if they are under different parents. what is the usecase you are trying to implement? -igor On Tue, Mar 26, 2013 at 8:07 AM, Marco Springer ma...@glitchbox.nl wrote: Hi, Lets say I have about ~100.000 of MarkupContainer objects that

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Igor Vaynberg
On Tue, Mar 26, 2013 at 1:31 PM, Marco Springer ma...@glitchbox.nl wrote: Actually, the performance problem was in the first row, well actually the header that was rendering all days in a week/month/year. Each data row itself has a lot less items. Each row has items that are absolutely

Re: Adding a large amount of MarkupContainers into the ListView or RepeatingView

2013-03-26 Thread Igor Vaynberg
On Tue, Mar 26, 2013 at 2:00 PM, Marco Springer ma...@glitchbox.nl wrote: On Tuesday 26 March 2013 13:48:05 Igor Vaynberg wrote: On Tue, Mar 26, 2013 at 1:31 PM, Marco Springer ma...@glitchbox.nl wrote: Actually, the performance problem was in the first row, well actually the header

Re: Wicket for Hybrid App

2013-03-25 Thread Igor Vaynberg
why wait? https://code.google.com/p/i-jetty/ -igor On Mon, Mar 25, 2013 at 3:38 PM, Paul Bors p...@bors.ws wrote: I was kidding hence the smiling face :P Although, you might be able to do so in a few years or so... You'll have to have a full native phone app since you're already have a

Re: Custom DropDownChoice using HeaderItem

2013-03-21 Thread Igor Vaynberg
use OnDomReadyHeaderItem -igor On Thu, Mar 21, 2013 at 10:16 AM, prasopes vladimirkro...@gmail.com wrote: Hi, I'd like to have a DropDownChoice that gets transformed with Javascript on each rendering. The Javascript manipulates the option tags. Is it possible to achieve this using override

Re: wicket:for behavior

2013-03-14 Thread Igor Vaynberg
wicket:for cant set output markup id because it comes after the form component in markup and so the form component has already been rendered. it already sets the output of markup, but it only helps if the label is before the component in markup. -igor On Thu, Mar 14, 2013 at 1:35 AM, Martin

Re: Another question on stateless/bookmarkable pages

2013-03-05 Thread Igor Vaynberg
a bookmarkable page is a page that can be instantiated via a url - meaning it has a default constructor or one that takes a PageParameters object. a stateful page can or can not be bookmarkable. a stateless page must be bookmarkable. -igor On Tue, Mar 5, 2013 at 1:40 PM, Andrea Del Bene

Re: 42lines CDI injection failure fallback - set to null?

2013-03-04 Thread Igor Vaynberg
this is how cdi works, if it cannot inject something it fails. notice the top frame is inside weld not wicket nor wicket-cdi. if you have things that can be optional you should inject InstanceThing and query that for thing. -igor On Mon, Mar 4, 2013 at 1:25 PM, Ondrej Zizka ozi...@redhat.com

Re: How to automatically add a parameter to every request

2013-02-26 Thread Igor Vaynberg
see IRequestCycleListener#onUrlMapped() -igor On Tue, Feb 26, 2013 at 6:35 PM, Florian Braun florianbrau...@gmail.com wrote: Hello, I am currently in the process of migrating an application from Wicket 1.4 to Wicket 6. In my application I have a parameter that needs to be part of every

Re: Eclipse or IntelliJ

2013-02-19 Thread Igor Vaynberg
all the popular IDEs have more or less converged in regard to their java feature set. now its just a matter of muscle memory :) -igor On Tue, Feb 19, 2013 at 4:39 PM, Timo Schmidt wic...@xomit.de wrote: On Tue 19.02.2013 15:17, Stephen Walsh wrote: Who uses what and why? I've only ever used

Re: Behaviour.onInitialise()

2013-02-07 Thread Igor Vaynberg
What happens if the behavior is added after the component has already been initialized? Does its oninitialize() still get called? Ambiguities like this is the reason why there is no such method. -igor On Wednesday, February 6, 2013, Colin Rogers wrote: Martin and other Wicketeers, I have a

Re: Behaviour.onInitialise()

2013-02-07 Thread Igor Vaynberg
may be able to better help you. -igor Cheers, Col. -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: 07 February 2013 19:14 To: users@wicket.apache.org Subject: Re: Behaviour.onInitialise() What happens if the behavior is added after the component

Re: Log user changes to a form

2013-02-07 Thread Igor Vaynberg
if you are using hibernate here is envers...easier to do it on that level rather then ui... -igor On Thu, Feb 7, 2013 at 4:11 PM, Paul Bors p...@bors.ws wrote: We have an enterprise web-app which is going through SAP qualification and a requirement has come through for our application’s

Re: Page load without version redirect for Bootstrap Modal

2013-02-07 Thread Igor Vaynberg
instead of doing it that way have the ajax operation that opens the dialog render the content into some div in the markup and call the dialog on that div. -igor On Thu, Feb 7, 2013 at 4:38 PM, Tom Eicher t...@teicher.net wrote: Hello, with Bootstrap's modal functionality, I can make very cool

Re: How to contribute to the reference guide

2013-02-06 Thread Igor Vaynberg
why doesnt the guide live in a subdir of the project. that way there will be a guide per branch. one of the biggest problems with the wiki, etc, is that it doesnt account for code differences between the versions. having a guide per branch (major version) makes more sense. -igor On Wed, Feb 6,

Re: HP Fortify Critical Security Issues

2013-02-05 Thread Igor Vaynberg
On Tue, Feb 5, 2013 at 10:43 AM, sthomps stho...@gmail.com wrote: Hello, As part of an evaluation of web frameworks, one of the checkboxes to tick is security vulnerabilities. In this case the tool being used to scan for those vulnerabilities is HP Fortify

Re: wicket-cdi fails when netbeans deploys to Glassfish with maven

2013-01-09 Thread Igor Vaynberg
you need to add seam-conversation-your cdi impl.jar as well. -igor On Wed, Jan 9, 2013 at 10:55 AM, Dieter Tremel tre...@tremel-computer.de wrote: Hello, at the moment I try to migrate my wicket ant projects to maven, and have a final problem with CDI. I am using netbeans 7.2.1 and Glassfish

Re: [ANNOUNCE] Apache Wicket 6.4.0 released

2013-01-03 Thread Igor Vaynberg
there are some incompatibilities. ive optimized some code to make it faster and remove some other code that i do not thing belongs. so, no, it is not a drop in replacement and, yes, this code deprecates the net.ftlines code for wicket 6+ -igor On Thu, Jan 3, 2013 at 3:44 AM, heapifyman

Re: Select2 - Wicket 1.4.18

2012-12-26 Thread Igor Vaynberg
it can, but it needs to be ported to that version of wicket. -igor On Wed, Dec 26, 2012 at 6:06 AM, xe0nre mvlupan.s...@gmail.com wrote: Hello, I have a quick question about the Select2 component created by Igor.I tried to integrated it in my project (witch uses wicket 1.4.18) and could not

Re: Select2 - Wicket 1.4.18

2012-12-26 Thread Igor Vaynberg
yes, only 1.5 and 6 are supported. -igor On Wed, Dec 26, 2012 at 11:14 AM, xe0nre mvlupan.s...@gmail.com wrote: Hmm...so at this point only wicket 1.5 and 6 are supported ? Oh...and that Igor for this component :) Nice work -- View this message in context:

Re: Are Wicket models loaded concurrently ?

2012-12-26 Thread Igor Vaynberg
the bug is that something does not serialize access to the page. the contract on models and components is that they always run in a single-threaded environment. this is what allows the user code to be simple and free of any synchronization logic. so whatever push/pull/whatever framework you are

Re: wicket-cdi and TomEE

2012-12-20 Thread Igor Vaynberg
looks like you have two jars on the classpath that provide the javax.enterprise.inject.spi.BeanManager interface. maybe one comes with wicket-cdi and the other one is included in tomee... -igor On Thu, Dec 20, 2012 at 12:54 PM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote:

Re: Possible to use static IBehavior/ReadOnlyModels?

2012-12-05 Thread Igor Vaynberg
yes, you can use singleton instances as long as they are threadsafe. -igor On Wed, Dec 5, 2012 at 2:40 AM, Davli lidz@gmail.com wrote: Well as the title says... Would this be possible assuming that they have have no real relation to a value in a session? For example: An

Re: Possible to use static IBehavior/ReadOnlyModels?

2012-12-05 Thread Igor Vaynberg
, 2012 at 4:40 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: yes, you can use singleton instances as long as they are threadsafe. -igor On Wed, Dec 5, 2012 at 2:40 AM, Davli lidz@gmail.com wrote: Well as the title says... Would this be possible assuming that they have have no real

Re: master branch compiler error in core?

2012-12-02 Thread Igor Vaynberg
im on osx -igor On Sun, Dec 2, 2012 at 4:37 AM, Martin Grigorov mgrigo...@apache.org wrote: I use Ubuntu 12. BuildBot (the CI) is some Unix too ( http://ci.apache.org/builders/wicket-master). I cannot test builds on Windows here. On Sun, Dec 2, 2012 at 1:29 PM, Chris Colman

Re: initial bean validation integration checked into experimental module

2012-11-25 Thread Igor Vaynberg
. instead, figure out how to integrate hibernate annotations with 303 and you get to piggy back on everything thats already there. -igor ~ Thank you, Paul Bors -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Sunday, November 25, 2012 1:41 AM To: users

new hierarchical feedback panel added

2012-11-25 Thread Igor Vaynberg
a common question on this list is how to build hierarchical feedback panels. i just checked in my attempt to help solve this problem into master. here is the javadoc that explains what it does. feedback welcome. -igor /** * A specialized feedback panel that only displays messages from inside a

initial bean validation integration checked into experimental module

2012-11-24 Thread Igor Vaynberg
just checked in a first pass on bean validation (jsr 303) integration. see this commit for details: https://git-wip-us.apache.org/repos/asf?p=wicket.git;a=commitdiff;h=580a8dd9;hp=2d47bf340875f6053aa2a3b69c4f442f2fbb03e1 feedback is welome. -igor

Re: Ideas on implementing dynamic addition of components that use AJAX?

2012-11-22 Thread Igor Vaynberg
historically the components you add from auto resolvers are added via the autoAdd() method, not using add(). these components only exist during render of the page (in detach() phase all auto-added components are removed). the thinking here is that auto resolved components are not normal

Re: Generically Append a JavaScript Method to all Buttons/Links Throughout App

2012-10-31 Thread Igor Vaynberg
if you do a type search for o.a.w.I*Listener you will see a bunch of interesting ones, especially: IComponentInstantiationListener and IComponentInitializationListener -igor On Wed, Oct 31, 2012 at 10:57 AM, eugenebalt eugeneb...@yahoo.com wrote: I guess what I'm asking is, is there a common

Re: form with arbitrary number of fields

2012-10-31 Thread Igor Vaynberg
this should get you most of the way there http://wicketinaction.com/2008/10/building-a-listeditor-form-component/ -igor On Wed, Oct 31, 2012 at 4:35 PM, Steve Swinsburg steve.swinsb...@gmail.com wrote: Hi, Thanks, I have a repeater already and have the form components, but the part I am

Re: X-Forwarded-For handling in method getRemoteAddr()

2012-09-25 Thread Igor Vaynberg
On Tue, Sep 25, 2012 at 2:10 AM, Benjamin Steinert benjamin.stein...@comsysto.com wrote: Hi everyone, I need you input regarding the Wicket WebClientInfo implementation of getRemoteAddr() (extracted from Wicket 1.5.3 but I think it did not change in release 6): ... String remoteAddr =

Re: [announce] Wicket-CDI for Wicket 6.0.0 released

2012-09-18 Thread Igor Vaynberg
no update. the cdi spec does not require ejbs to be serializable because they are not in cdi spec. if you want to use ejbs inject them into a cdi bean and then inject that into wicket. -igor On Tue, Sep 18, 2012 at 9:56 AM, Bruno Borges bruno.bor...@gmail.com wrote: Igor, any update on the

Re: [announce] Wicket-CDI for Wicket 6.0.0 released

2012-09-18 Thread Igor Vaynberg
*www.brunoborges.com* On Tue, Sep 18, 2012 at 2:26 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: no update. the cdi spec does not require ejbs to be serializable because they are not in cdi spec. if you want to use ejbs inject them into a cdi bean and then inject that into wicket. -igor On Tue, Sep

Re: [announce] Wicket-CDI for Wicket 6.0.0 released

2012-09-18 Thread Igor Vaynberg
at 2:48 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: so join the jsr expert group and emphasize the importance of making EJB proxies serializable :) On Tue, Sep 18, 2012 at 10:45 AM, Bruno Borges bruno.bor...@gmail.com wrote: Yeah, that workaround that I wanted to not do... :-) But okay

Re: PageReference as page parameter?

2012-09-17 Thread Igor Vaynberg
you can pass in the page id obtained from page#getpageid() as a bookmarkable url, then to navigate back to the original page you can do setResponsePage(new PageReference(pageid).getPage()) this will, however, leave you on a nonbookmarkable url when you come back. if you want bookmarkable urls

Re: PageReference as page parameter?

2012-09-17 Thread Igor Vaynberg
().getPageManager().getPage(pageId) As PageReference does internally, correct? - Nelson On Mon, Sep 17, 2012 at 3:11 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: you can pass in the page id obtained from page#getpageid() as a bookmarkable url, then to navigate back to the original page you

Re: 42lines wicket full calendar

2012-09-13 Thread Igor Vaynberg
i believe the javascript component supports it. i am not sure the wicket wraper's Config object exposes that option though. if it does not please add it and submit a pull request. -igor On Thu, Sep 13, 2012 at 1:04 AM, Gytis lietuvis...@mail.ru wrote: Hello, Recently I started to use

Re: wicket-select2 as AutoCompleteTextField replacement

2012-09-12 Thread Igor Vaynberg
you need to define your own createSearchChoice function and pass it to the config. see the docs on the demo site. -igor On Wed, Sep 12, 2012 at 2:33 AM, Thomas Götz t...@decoded.de wrote: I want to use wicket-select2 as a replacement for Wicket's AutoCompleteTextField. Is it somehow possible

[announce] Wicket-CDI for Wicket 6.0.0 released

2012-09-11 Thread Igor Vaynberg
A Wicket 6.0 compatible version of the wicket-cdi module has been released and is available via Maven. It is also becoming an official module and will be bundled with Wicket starting with 6.1.0 release. More details here: https://www.42lines.net/2012/09/11/status-of-wicket-cdi-module/ -igor

Re: setRequired(true) without required-validator

2012-09-11 Thread Igor Vaynberg
you can create your own version of string length validator and override its validateOnNull to return true. keep in mind that most validators in wicket and other libraries are not equipped to handle null and will most likely blow up. setrequired(true) is what is designed to handle nulls. -igor

Re: Is anyone using ObjectAutoCompleteField from wicketstuff?

2012-09-11 Thread Igor Vaynberg
http://ivaynberg.github.com/select2/ https://github.com/ivaynberg/wicket-select2 -igor On Tue, Sep 11, 2012 at 5:50 PM, James Eliyezar ja...@mcruncher.com wrote: Hi all, What do you all do display objects in an autocomplete field? I used to use ObjectAutoCompleteField from wicketstuff but

Re: Add an invisible component to an AjaxRequestTarget target

2012-09-06 Thread Igor Vaynberg
isVisibleInHierarchy() will make sure all parents are visible as well -igor On Thu, Sep 6, 2012 at 1:27 PM, Thijs Vonk vonk.th...@gmail.com wrote: Hi, We have partial page updates all over a page. So panels and components all over the place that need Ajax updates. We're using an Interface

Re: select2 localization questions

2012-09-04 Thread Igor Vaynberg
On Tue, Sep 4, 2012 at 7:27 AM, Sandor Feher sfe...@bluesystem.hu wrote: Hi, I successfuly created a Select2Choice item in my form. I fill it up from a model and everything works fine but the listed choices' display in wrong codepage. I use utf8 everywhere and have no problems with cp. i

Re: select2 localization questions

2012-09-04 Thread Igor Vaynberg
On Tue, Sep 4, 2012 at 10:14 AM, Sandor Feher sfe...@bluesystem.hu wrote: Igor Vaynberg-2 wrote On Tue, Sep 4, 2012 at 7:27 AM, Sandor Feher lt;sfeher@gt; wrote: Hi, I successfuly created a Select2Choice item in my form. I fill it up from a model and everything works fine but the listed

Re: Migration to 1.5: BaseWicketTester#startPanel

2012-09-04 Thread Igor Vaynberg
we migrated from 1.4.x to 1.5.x. but, we use selenium to test ui instead of wicket tester :) -igor On Tue, Sep 4, 2012 at 12:07 PM, Alec Swan alecs...@gmail.com wrote: This makes me wonder how many big apps actually migrated from 1.4 to 1.5 (instead of starting from scratch) if this problem

Re: select2 localization questions

2012-09-04 Thread Igor Vaynberg
you should declare your Select2Choice as Select2ChoiceShort since that is its model type. once you do this the compiler will tell you that your TextChoiceProvider should be TextChoiceProviderShort instead of HrpBbhepar5 -igor On Tue, Sep 4, 2012 at 1:42 PM, Sandor Feher sfe...@bluesystem.hu

Re: Dataview: need message nothing found

2012-08-20 Thread Igor Vaynberg
data table has the NoRecordsToolbar -igor On Mon, Aug 20, 2012 at 3:01 AM, Delange delan...@telfort.nl wrote: I tried this, but I can't figure out how to convert from datatable to an AbstractRepeater. DataTable table = new DataTable(datatable, columns, kostenOVProvider, 10){

Re: Dataview: need message nothing found

2012-08-17 Thread Igor Vaynberg
add a webmarkup container that is only visible when the dataview has no records. public class NoRecordsContainer extends WebMarkupContainer { private final AbstractRepeater repeater; public NoRecordsContainer(String id, AbstractRepeater repeater) { super(id);

Re: IExceptionMapper to notify support of errors

2012-08-15 Thread Igor Vaynberg
perhaps an error occurs during an ajax request whose response is ignored. or maybe it happens during resource processing... eg tinymce requests a resource, wicket doesnt find it and throws an exception. your panel renders. but, because the url was for a resource the response is ignored because

Re: IExceptionMapper to notify support of errors

2012-08-15 Thread Igor Vaynberg
not really. like i said, if this happens during a resource url then the browser will never show the response. your best bet is to use a timer or any other callback that gets triggered via javascript, so you know the user sees the error panel. -igor On Wed, Aug 15, 2012 at 10:22 AM, jchappelle

Re: Key = Value search panel with actf

2012-08-08 Thread Igor Vaynberg
you can try using this: http://ivaynberg.github.com/select2/ there is also wicket integration in my github -igor On Wed, Aug 8, 2012 at 2:12 PM, Sandor Feher sfe...@bluesystem.hu wrote: Hi, I'm looking for a component similar to DatePicker which let user to choose a value from a key =

Re: AutocompleteTextField and object (not just String)

2012-08-06 Thread Igor Vaynberg
probably easier to use https://github.com/ivaynberg/wicket-select2 which integrates http://ivaynberg.github.com/select2/ rather then writing your own from scratch... -igor On Mon, Aug 6, 2012 at 3:36 PM, Per p...@hamburg.de wrote: Hi Daniele, while I don't have the answer to your

Re: DataTable in wicket 6 using wicket:container

2012-08-02 Thread Igor Vaynberg
how exactly would you attach a link to a span? link would complain that it is not attached to an anchor tag... -igor On Wed, Aug 1, 2012 at 2:45 PM, Steve Lowery slow...@gatessolutions.com wrote: The DataTable was changed in wicket 6 to use wicket:container instead of span on the td and th

Re: AutocompleteTextField and object (not just String)

2012-08-01 Thread Igor Vaynberg
On Wed, Aug 1, 2012 at 4:08 AM, Martin Grigorov mgrigo...@apache.org wrote: Hey Sven, On Wed, Aug 1, 2012 at 2:01 PM, Sven Meier s...@meiers.net wrote: DropDown has a clear pattern: the renderer is used only for rendering purpose BTW this is not correct: all choice components use their

Re: wicket 1.6 snapshot - cdi - inject - NullPointerException

2012-07-28 Thread Igor Vaynberg
a stack trace would be helpful... -igor On Sat, Jul 28, 2012 at 11:26 AM, Francois Meillet francois.meil...@gmail.com wrote: Hi All, The problem is : I got a NullPointerException after using @Inject environment : wicket 1.6 snapshot - cdi (weld) - inject - NullPointerException - tomcat 7

  1   2   3   4   5   6   7   8   9   10   >