Re: Basic validation question

2010-09-29 Thread Igor Vaynberg
things that submit a form have both onsubmit and onerror handlers -igor On Wed, Sep 29, 2010 at 10:40 AM, LutherBaker lutherba...@gmail.com wrote: I am using a ModalWindow with a page containing a feedback panel, a form and several AjaxButtons (that close the ModalWindow) on submission or

Re: Basic validation question

2010-09-29 Thread Igor Vaynberg
object so they are out. I'm already handling onError for the AjaxFormComponentUpdatingBehavior but that only gets invoked onblur. Am I mistaken in thinking that the FeedbackPanel must be added to the target in order for it to update? Igor Vaynberg-2 wrote: things that submit a form have both

Re: Lazy load exception with LoadableDetachableModel

2010-09-29 Thread Igor Vaynberg
you need open-session-in-view filter -igor On Wed, Sep 29, 2010 at 2:53 PM, Matt Schmidt mschmid...@gmail.com wrote: I am using LoadableDetachableModel's to load my persisted objects from the database, but I am still getting a lazy load exception when accessing a property that is a Set. For

Re: Setting Checked Boxes in CheckGroup

2010-09-28 Thread Igor Vaynberg
in CheckGroup See http://wicket.apache.org/start/quickstart.html Use this to create a small application that exhibits the bug. Regards,     Erik. Op 23-09-10 19:26, Shelli Orton schreef: What do you mean by quickstart? Shelli -Original Message- From: Igor Vaynberg [mailto:igor.vaynb

Re: StatelessLink

2010-09-28 Thread Igor Vaynberg
even if the page is stateful, the url the stateless link generates should be stateless...got a quickstart? -igor On Tue, Sep 28, 2010 at 2:09 AM, Martin Grigorov mgrigo...@apache.org wrote: You may use wicket-devutils. There is a stateless checker. It will tell you which component makes the

Re: Bug in CharSetUtil/Map?

2010-09-28 Thread Igor Vaynberg
file a jira with a quickstart -igor On Tue, Sep 28, 2010 at 4:16 AM, Jan Willem Janssen janwillem.jans...@planon.nl wrote: Hi, We are experiencing some problems in CharSetUtil.getEncoding(). When used, we see the following stacktrace appear: java.lang.IndexOutOfBoundsException: Index: 4,

Re: multiple html pages to 1 class

2010-09-28 Thread Igor Vaynberg
let your page implement IMarkupResourceStreamProvider and IMarkupCacheKeyProvider and return whatever html you want, anything will do it as long as it matches component hierarchy. -igor On Tue, Sep 28, 2010 at 7:40 AM, Alex Rass a...@itbsllc.com wrote: I know this has been raised tons of times,

Re: Cancelling ala AjaxLink vs AjaxButton

2010-09-28 Thread Igor Vaynberg
that should be enough, alternatively use AjaxLink instead -igor On Tue, Sep 28, 2010 at 10:49 AM, LutherBaker lutherba...@gmail.com wrote: I am popping up a ModalWindow with a form - which has Cancel and Submit buttons. Unfortunately, I can't get the Cancel button to close the window. It

Re: Cancelling ala AjaxLink vs AjaxButton

2010-09-28 Thread Igor Vaynberg
if onsubmit is not called most likely you have validation errors and to see them you have to add the feedback panel in the onerror handler of the button -igor On Tue, Sep 28, 2010 at 4:51 PM, LutherBaker lutherba...@gmail.com wrote: Thanks Igor, I've determined that something is not playing

Re: setEnabled(true) doesn't enable a subcomponent

2010-09-27 Thread Igor Vaynberg
in wicket the enabled status is controlled by the entire hierarchy. in order for a component to be enabled so must be all of its parents, all the way to the page. there are many reasons to do it this way and we will not change it. i suggest you either move the link out or disable on a more

Re: sanity check request for fix regarding the dreaded PageExpiredException

2010-09-27 Thread Igor Vaynberg
you can try it and see if it works for your particular usecases. there may still be some edges that will break, like links you actually want to run against an older version of the page because they depend on the component hierarchy that existed then, etc. -igor On Fri, Sep 24, 2010 at 7:56 AM,

Re: Possible to Set Multiple Columns in CheckGroup?

2010-09-27 Thread Igor Vaynberg
since you control the markup of CheckGroup/Check components you can align them however you like, yourself. -igor On Mon, Sep 27, 2010 at 10:04 AM, Shelli Orton shelli.or...@sjrb.ca wrote: Hi, Is there a way to set the number of columns that a CheckGroup will render the checkboxes?  I have a

Re: Saving a component in session

2010-09-26 Thread Igor Vaynberg
it can modify hierarchy, but the components it adds only exist during the render phase - so those components cannot receive callbacks or hold state. -igor On Sat, Sep 25, 2010 at 10:41 PM, Alexander Morozov alexander.v.moro...@gmail.com wrote: So IComponentResolver cannot modify component

Re: Saving a component in session

2010-09-26 Thread Igor Vaynberg
(because we have some default translatable text in the html that we have to enclose and also acts as the key) with callbacks and two states (edit mode and read only, much like ajaxeditablelablel). Any idea is welcome ! Thanks Mihai On 09/26/2010 10:51 AM, Igor Vaynberg wrote: it can modify

Re: Wicket javascript callback get variable

2010-09-26 Thread Igor Vaynberg
the ajax post is executed *asynchronously*. alert first will be displayed after that asynchronous call completes. the code right after the wicketAjaxPost - the second alert - is executed right away. -igor On Sun, Sep 26, 2010 at 2:36 PM, goody44 matt...@spidertracks.co.nz wrote: Hi guys, I'm

Re: dynamic crumb trail

2010-09-25 Thread Igor Vaynberg
. This works for me as long as AreaPage.crumb.label is in my global properties but the docs discourage said practice so maybe there is another tweak I can apply? -Luther Igor Vaynberg-2 wrote: create a wrapper that can instantiate pages lazily interface Crumb { IModel getLabel(); Page gePage

Re: dynamic crumb trail

2010-09-25 Thread Igor Vaynberg
alternatively, instead of passing the new crumb to super, you can pass around the entire trail, that way you can say super(trail); trail.add(new crumb(getstring(my.page.resource))); -igor On Sat, Sep 25, 2010 at 9:53 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: you dont want to pass

Re: Saving a component in session

2010-09-24 Thread Igor Vaynberg
autoadded components only exist during the render of the page. -igor On Fri, Sep 24, 2010 at 2:33 AM, Alexandru Artimon aarti...@dgfoundation.org wrote:  Hello, I'll share the code gladly, here's the resolve method from the class implementing IComponentResolver:   public boolean

Re: Wicket serving DocBook?

2010-09-24 Thread Igor Vaynberg
or dump docbook into a label and add an xslt transformer behavior to the label. -igor On Fri, Sep 24, 2010 at 6:54 AM, Ernesto Reinaldo Barreiro reier...@gmail.com wrote: Ichiro, Can't you just override public String getMarkupType()        {                return html;        } on

Re: Hiding parts of the path

2010-09-23 Thread Igor Vaynberg
you can try writing your own webrequestcodingstrategy, but be careful not to break relative urls. -igor On Wed, Sep 22, 2010 at 11:59 PM, Bert taser...@gmail.com wrote: Hi list, i want to services the same app using different (but structural identical) databases. say:

Re: HeadersToolbar incompatible to other components than Label?

2010-09-23 Thread Igor Vaynberg
instead of adding the checkbox directly wrap it in a panel. -igor On Thu, Sep 23, 2010 at 7:46 AM, Benedikt Schlegel codecab.dri...@googlemail.com wrote: In short, i want to add a CheckGroupSelector instead of a Label. So i guess i need a way to replace the markup of HeaderToolbar, without

Re: Setting Checked Boxes in CheckGroup

2010-09-23 Thread Igor Vaynberg
im going to guess something is wrong with your model. hard to tell without a quickstart. -igor On Thu, Sep 23, 2010 at 9:25 AM, Shelli Orton shelli.or...@sjrb.ca wrote: Does anybody have a suggestion for this? Thanks, Shelli -Original Message- From: Shelli Orton Sent: Wednesday,

Re: StackOverFlowError

2010-09-23 Thread Igor Vaynberg
in dev serialization should happen just like in production. -igor On Thu, Sep 23, 2010 at 10:34 AM, Douglas Ferguson doug...@douglasferguson.us wrote: Hey guys, We overwrote IObjectStreamFactory with a copy that has more logging and we found the object that is causing the problems in our

Re: StackOverFlowError

2010-09-23 Thread Igor Vaynberg
at the end of request -igor On Thu, Sep 23, 2010 at 11:55 AM, Douglas Ferguson doug...@douglasferguson.us wrote: When exactly does a page get serialized/serialized? On Thu, Sep 23, 2010 at 12:54 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: in dev serialization should happen just like

Re: dynamic template page

2010-09-22 Thread Igor Vaynberg
you can let your page implement IMarkupResourceStreamProvider -igor On Wed, Sep 22, 2010 at 6:59 AM, hermanhorsten s...@hermanhorsten.be wrote: I want to dynamically create a template page consisting of some parts stored in eg a DB or CMS which can dynamically change and a fixed wicket

Re: Wicket 1.5m2.1 forms / buttons ?

2010-09-22 Thread Igor Vaynberg
no. what if its an integer field and the user entered abc, how do you expect to stick that into the model with validation turned off? -igor On Wed, Sep 22, 2010 at 6:33 AM, nino martinez wael nino.martinez.w...@gmail.com wrote: But still there are something nagging me, if I

Re: Inter-Component Validation (or how to marry two strangers)

2010-09-22 Thread Igor Vaynberg
something has to know that both fields are related, so what is that in your code? -igor On Wed, Sep 22, 2010 at 9:51 AM, splitshade martin.dil...@googlemail.com wrote: Hi, this seems a rather simple question on the first sight, but I can't seem to find a clean solution to this. Image you

Re: Inter-Component Validation (or how to marry two strangers)

2010-09-22 Thread Igor Vaynberg
validator on which field? or on a form? in either case something has to be aware of both fields. a clean way may be to let your data model validate itself for consistency and propagate any exceptions to the ui layer as errors. -igor On Wed, Sep 22, 2010 at 10:34 AM, splitshade

Re: Inter-Component Validation (or how to marry two strangers)

2010-09-22 Thread Igor Vaynberg
no, it is not that common because you still have not defined what the common object that knows about both values is. usually this is the model, and it is not that uncommon to do this: new form() { onsubmit() { if (!getmodel().validate()) { error(something went bad); } } } ie validate

Re: dynamic crumb trail

2010-09-22 Thread Igor Vaynberg
create a wrapper that can instantiate pages lazily interface Crumb { IModel getLabel(); Page gePage(); } put your lazy logic into getPage() impl. -igor On Wed, Sep 22, 2010 at 1:01 PM, Luther Baker lutherba...@gmail.com wrote: I have a default template page that contains a ul implementation of

Re: Create wicket form on demand

2010-09-22 Thread Igor Vaynberg
sure, you can replace a placeholder component with a fragment/panel that contains the form. -igor On Wed, Sep 22, 2010 at 4:37 PM, d2marcelo d2olive...@gmail.com wrote: Hello, Is there a way to generate a form based on an event. For example. I have a listbox with a few items , if the user

Re: ChoiceRender and many property expressions

2010-09-21 Thread Igor Vaynberg
you can always implement your own that merges -igor On Tue, Sep 21, 2010 at 1:56 AM, Andrea Del Bene andrea.on@libero.it wrote: Hi, I need to render options in a MultipleSelectList using more then one field from a POJO. Is possible to use ChoiceRender selecting more then one property

Re: updating page version after an ajax request

2010-09-21 Thread Igor Vaynberg
the problem with updating the version of the page is that all urls in the page, be in hrefs or in javascript, have to be rewritten with the new page version... -igor On Tue, Sep 21, 2010 at 2:19 AM, Josh Kamau joshnet2...@gmail.com wrote: May be you could provide the developer with access to

Re: Preventing warnAboutFormComponentInsideEnclosure log entries

2010-09-21 Thread Igor Vaynberg
if it works fine for your particular usecase then you can silence the warning. -igor On Tue, Sep 21, 2010 at 11:33 AM, Ian Marshall ianmarshall...@gmail.com wrote: I make moderate use of the wicket:enclosure/ tag in my Wicket HTML. I notice now that (in development mode) I get log entries of

Re: Default unauthorized access handling

2010-09-21 Thread Igor Vaynberg
wicket auth roles is meant as an example, not as a library for you to use. feel free to copy/paste the code into your codebase and hack away as needed. -igor On Tue, Sep 21, 2010 at 4:09 PM, Mike Dee mdichiapp...@cardeatech.com wrote: I am using wicket-auth and it gets me just about everything

Re: bigdecimal validation

2010-09-18 Thread Igor Vaynberg
im all ears... -igor On Fri, Sep 17, 2010 at 11:48 PM, James Carman ja...@carmanconsulting.com wrote: Well, that helps, but it's not quite obvious that that's where you should go to look for it.  At least it isn't to me. On Sat, Sep 18, 2010 at 12:37 AM, Igor Vaynberg igor.vaynb

[announce] Wicket 1.4.12 and 1.5-M2.1 released

2010-09-17 Thread Igor Vaynberg
The Wicket team would like to announce the release of 1.4.12 and 1.5-M2.1 1.4.12 --- This is the twelfth maintenance release of the 1.4.x series. This release brings a fix to a critical bug (WICKET-3040) which

Re: could IAjaxCallDecorator implement IHeaderContributor

2010-09-17 Thread Igor Vaynberg
add an rfe to jira. -igor On Fri, Sep 17, 2010 at 7:43 AM, Michal Kurtak michal.kur...@gmail.com wrote: Thanks for your quick reply. Thats the way i do it right now. But the problem is that all ajax components have behavior bundled inside so i must override not only getAjaxCallDecorator but

Re: bigdecimal validation

2010-09-17 Thread Igor Vaynberg
IConverter.BigDecimal= -igor On Fri, Sep 17, 2010 at 3:03 PM, Cemal Bayramoglu jweekend_for...@cabouge.com wrote: See IConverter='${input}' is not a valid ${type}. in Application.properties in the Wicket jar (in /org/apache/wicket). Make a similar properties file for your own

Re: bigdecimal validation

2010-09-17 Thread Igor Vaynberg
Wicket training and he didn't know this stuff!  I don't mind helping put together a wiki, but I don't understand it enough to know where to begin. :) On Fri, Sep 17, 2010 at 8:19 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: IConverter.BigDecimal= -igor On Fri, Sep 17, 2010 at 3:03 PM

Re: Asynchronous File Uploads

2010-09-16 Thread Igor Vaynberg
use a servlet -igor On Thu, Sep 16, 2010 at 2:42 AM, Nivedan Nadaraj shravann...@gmail.com wrote: Hi All Has anyone had a requirement to upload huge files in an asynchronous mode? I want to be able to upload some files which are on avg 4G plus. I read some posts that wicket does fine with

Re: Logging sessionId for every log event

2010-09-16 Thread Igor Vaynberg
wrap a filter around wicket filter -igor On Thu, Sep 16, 2010 at 9:07 AM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: I am trying to log the session id with every log event so that I can trace a visitors steps in the log file.  I am using log4j and was hoping I could use either the

Re: What happened to the Constructor with propertyType in PropertyModel?

2010-09-16 Thread Igor Vaynberg
conversion is done by components not by models. you can override the converter on your component. -igor On Thu, Sep 16, 2010 at 9:38 AM, Baschir Jaghoori baschir.jagho...@mgm-tp.com wrote: Hi, I want to output the width and height fields of a java.awt.Dimension object (which are integers)

Re: Opening a modal form from another modal form causes are you sure?

2010-09-15 Thread Igor Vaynberg
you would have to rerender modal A i think, you need to reestablish the hierarchy on server-side -igor On Tue, Sep 14, 2010 at 11:01 PM, Chris Colman chr...@stepaheadsoftware.com wrote: All my modal windows use a single instance of ModalWindow that is instantiated in the base page and reused

Re: Weird Error

2010-09-15 Thread Igor Vaynberg
this has nothing to do with the jar, looks like somehow you are missing the tab body panel in your tabbed panel. -igor On Wed, Sep 15, 2010 at 1:11 PM, drf davidrfi...@gmail.com wrote: This evening I  started getting a strange error which does not appear to be connected with anything that has

Re: Conditional Validation (Save versus Submit)

2010-09-15 Thread Igor Vaynberg
not possible. if use types in a for a field that is an integer model how to you save that? you have to validate. -igor On Wed, Sep 15, 2010 at 1:16 PM, Clint Checketts checke...@gmail.com wrote: I have a form with 2 buttons: Save and Submit. If the user hits Save I want to bypass my

Re: Validating a DropDownChoice when not in a form

2010-09-14 Thread Igor Vaynberg
validate() :) -igor On Tue, Sep 14, 2010 at 3:12 AM, Chris Colman chr...@stepaheadsoftware.com wrote: Is it possible to force a validate of a DropDownChoice when it's not in a form but just normal page/panel? If so what method(s) do we call?

Re: Safe URL for a dynamic resource

2010-09-14 Thread Igor Vaynberg
you can read the parameters off the url yourself, requestcycle.getrequest()... -igor On Tue, Sep 14, 2010 at 10:08 AM, Denis Souza denis.so...@gmail.com wrote: Hi, I'm trying to display a PDF file inside an IFRAME. To do that, I need a url to place on the IFRAME's src attribute. My idea

Re: Safe URL for a dynamic resource

2010-09-14 Thread Igor Vaynberg
the method that works, but, out of curiosity, any idea why this happens? Denis Souza -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: terça-feira, 14 de setembro de 2010 14:22 To: users@wicket.apache.org Subject: Re: Safe URL for a dynamic resource you

Re: Validating a DropDownChoice when not in a form

2010-09-14 Thread Igor Vaynberg
validators do not usually handle null values, that is handled by component's set/getrequired() property. if you want your validator to handle nulls let it implement INullAcceptingValidator -igor On Tue, Sep 14, 2010 at 11:22 AM, Chris Colman chr...@stepaheadsoftware.com wrote: Here's the code I

Re: Validating a DropDownChoice when not in a form

2010-09-14 Thread Igor Vaynberg
(validator);                add(studentList);                attachUpdateBehavior(studentList); -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Wednesday, 15 September 2010 4:46 AM To: users@wicket.apache.org Subject: Re: Validating a DropDownChoice when

Re: Prevent guest session from expiring

2010-09-14 Thread Igor Vaynberg
a noop ajax poller on your base page will prevent sessions of open windows from expiring. -igor On Tue, Sep 14, 2010 at 3:32 PM, Alec Swan alecs...@gmail.com wrote: Hello, A lot of times the users visit my web site without logging in. Currently, their session expire after a certain timeout.

Re: Trouble with ProxyPass and Wicket

2010-09-14 Thread Igor Vaynberg
it is most likely the servlet container. wicket passes in a relative url to the servlet container's response#sendredirect, and it is the servlet container's job to rewrite that relative url to an absolute one - because all redirects must be absolute. sounds like your proxy is not rewriting those

Re: Opening a modal form from another modal form causes are you sure?

2010-09-14 Thread Igor Vaynberg
On Tue, Sep 14, 2010 at 10:41 PM, Chris Colman chr...@stepaheadsoftware.com wrote: From a panel on a page I open modal form A. If I close this form via its OK button it closes without issue. However if I open modal form A then click add item on that form it opens up yet another modal form

Re: [wicket newbie] - appending query parameter to ajax link

2010-09-13 Thread Igor Vaynberg
override getcallbackscript(boolean) and return something like: return generateCallbackScript(wicketAjaxGet(' + getCallbackUrl() + myparam='+Wicket.$(id of component).value); -igor On Mon, Sep 13, 2010 at 7:23 AM, nimmy nim_sa...@hotmail.com wrote: Hi Guys, I'm trying to implement the

Re: DropDownChoice - performing extra validation before model changed

2010-09-13 Thread Igor Vaynberg
you can add a validator, it will have access to the value. -igor On Mon, Sep 13, 2010 at 6:32 PM, Chris Colman chr...@stepaheadsoftware.com wrote: Is it possible to test if an item has been selected in a DropDownChoice in an overridden validate method? I want to test and bring up a message

Re: Intercept Wicket Parsing

2010-09-12 Thread Igor Vaynberg
see how wicket:message tag does it. see WicketMessageTagHandler and WicketMessageTagResolver. -igor On Sat, Sep 11, 2010 at 11:37 PM, Arjun Dhar dhar...@yahoo.com wrote: Hi,  I want to understand how to intercept the Wicket markup Parser *in a clean way* I'm aware of

Re: Relative link in JavaScript

2010-09-11 Thread Igor Vaynberg
you cannot stream anything out of web-inf, so you will have to change them, unless you map a servlet that will do the sreaming for you. -igor On Sat, Sep 11, 2010 at 5:49 AM, Itun itun@yandex.ru wrote: It does not help. ContextImage attaches to the component. I need simple declaration

Re: Relative link in JavaScript

2010-09-11 Thread Igor Vaynberg
and so you have a servlet that streams files out of WEB-INF? because servlet containers will not do that for you. -igor On Sat, Sep 11, 2010 at 7:51 AM, Itun itun@yandex.ru wrote: You do not understand. http://apache-wicket.1842946.n4.nabble.com/file/n2535721/Untitled.png This is a

Re: Relative link in JavaScript

2010-09-11 Thread Igor Vaynberg
serving anything out of WEB-INF is a security risk because it contains configuration files. i suggest you rearrange your site so your resources are not in WEB-INF, or if they are they are in your java package structure - then wicket can serve them for you. -igor On Sat, Sep 11, 2010 at 8:52 AM,

Re: keygen tag

2010-09-10 Thread Igor Vaynberg
extend FormComponent -igor On Fri, Sep 10, 2010 at 9:53 AM, TH Lim ssh...@gmail.com wrote: Hi, I am want to use keygen, https://developer.mozilla.org/En/HTML/Element/keygen, form component and there is no Wicket equivalent FormComponent. Any suggestion on how do I extend an existing

Wicket 1.4.11 released!

2010-09-09 Thread Igor Vaynberg
This is the eleventh maintenance release of the 1.4.x series and brings over fifty bug fixes and improvements. * Subversion tag: http://svn.apache.org/repos/asf/wicket/releases/wicket-1.4.11/ * Changelog:

Re: Could not find root ajax-response element

2010-09-09 Thread Igor Vaynberg
very strange indeed. do you have any behaviors that write directly to the response? even that, i dont think, would cause this. create a quickstart and attach it to a jira issue. -igor On Thu, Sep 9, 2010 at 7:33 AM, Adrian Wiesmann awiesm...@somap.org wrote: Hello list I have a very strange

Re: Prepopulate time fields in DateTimeField component

2010-09-09 Thread Igor Vaynberg
put the date value you want prepopulated into the model object -igor On Thu, Sep 9, 2010 at 9:20 AM, vp143 vishal.po...@cipriati.co.uk wrote: Hi all, I have a Form with the default model being a CompoundPropertyModel. I have added the DateTimeField component to the form. I wish to

Re: Prepopulate time fields in DateTimeField component

2010-09-09 Thread Igor Vaynberg
Item.checkinDate=new Date() -igor On Thu, Sep 9, 2010 at 10:52 AM, vp143 vishal.po...@cipriati.co.uk wrote: I tried that previously but then the field becomes NULL within the POJO I think this is what you mean: If i have: setDefaultModel(new CompoundPropertyModel(Item)); where Item object

Re: Header requiring to be contributed through page load and not ajax...

2010-09-09 Thread Igor Vaynberg
instead of $(document).ready(function() use wicket's iheadercontributor's response.writeondomreadyjavascript -igor On Thu, Sep 9, 2010 at 1:09 PM, Joseph Pachod josephpac...@thomas-daily.de wrote: hi It looks like the jquery files need to be included through a normal page load.

Re: Header requiring to be contributed through page load and not ajax...

2010-09-09 Thread Igor Vaynberg
dunno then, you may want to talk to jquery people and see what they recommend. we cant really fire the onload event again because some scripts may have already been executed...like i said, see what jquery folks say. -igor On Thu, Sep 9, 2010 at 1:38 PM, Joseph Pachod josephpac...@thomas-daily.de

Re: DiskPageStore with Terracotta

2010-09-07 Thread Igor Vaynberg
i believe the cleanup happens on session timeout. so if terractotta is preserving sessions forever then wicket will not cleanup the filestore. this is without me actually checking the code. you can force a size of each file, but that file is per session, so if you have unlimited sessions i dont

Re: Error in FormTester with 1.4 but not with 1.5

2010-09-07 Thread Igor Vaynberg
wicket tester in trunk and in 1.4.10 have diverged a lot due to changes in trunk. there may not even be anything to backport, this bug may have been fixed as part of making wickettester work with changes in trunk. -igor On Tue, Sep 7, 2010 at 11:46 AM, Andrea Selva selva.an...@gmail.com wrote:

Re: Replace components with AjaxCheckbox

2010-09-06 Thread Igor Vaynberg
component = new Label(component, is checked); orginalComponent=component -igor On Mon, Sep 6, 2010 at 4:38 AM, Johan Haleby johan.hal...@gmail.com wrote: I'm trying to replace a component when clicking on an AjaxCheckbox. The code looks something like this: AjaxCheckBox checkbox = new

Re: Ajax requests and page Id incrementing in 1.5-M1

2010-09-05 Thread Igor Vaynberg
fixed in snapshot -igor On Sun, Sep 5, 2010 at 3:46 AM, hok ivanvasi...@gmail.com wrote: Hi, I'm in process of migrating to wicket 1.5-M1 and I found an interesting (at least to me) scenario: There is a form Form1 in a stateful page Page1. The action attribute of the form contains the id

Re: User current page

2010-09-05 Thread Igor Vaynberg
yes and yes -igor On Sun, Sep 5, 2010 at 9:21 AM, Ervis Zikas er...@abiss.gr wrote: Hello guys, is there a way i can get which page is the user navigating?? I have a menu that i want to change depending on user current page. Can i get current page with component.getPage()?? is it the same for

Re: checkGroup - 2 out of 5?

2010-09-05 Thread Igor Vaynberg
you have to do this with javascript -igor On Sun, Sep 5, 2010 at 2:43 PM, Zeldor pgronkiew...@gmail.com wrote: Hi, I want to limit users to check exactly 2 options out of X. How can I do that? I'd also like it to switch last chosen one to new one, if user has already picked 2 [so it'd

Re: mountBookmarkablePage problem?

2010-09-05 Thread Igor Vaynberg
debug and see what is happening. -igor On Sun, Sep 5, 2010 at 12:04 PM, Martin Zardecki mpza...@truecool.com wrote: Hi List I'm not sure if I uncovered a strange problem or something changed in how we configure things and I missed it. I have an applet that uploads files to a my Wicket

Re: SV: Remove support for Portlets in Wicket 1.5

2010-09-02 Thread Igor Vaynberg
this has already been done, its a bit too late for -1 votes. the thread was started aug 11. -igor On Thu, Sep 2, 2010 at 3:52 AM, James Carman ja...@carmanconsulting.com wrote: On Thu, Sep 2, 2010 at 6:50 AM, Wilhelmsen Tor Iver toriv...@arrive.no wrote: And if you only wanted a reply from

Re: onSelectionChanged and browser back button

2010-09-02 Thread Igor Vaynberg
if you override wantonselectionchangednotification to return true then it is done with a regular request instead of ajax. -igor On Thu, Sep 2, 2010 at 7:04 AM, nmetzger nmetz...@odu.edu wrote: Hi all, I have a problem with a page in which I exchange a lot of panels via Ajax. It worked the

Re: onSelectionChanged and browser back button

2010-09-02 Thread Igor Vaynberg
ajaxformchoicecomponentupdatingbehavior? -igor On Thu, Sep 2, 2010 at 9:23 AM, nmetzger nmetz...@odu.edu wrote: Yes, I did override it. I wasn't aware that this would change the process to a normal request. So, what's the best way to implement the onSelectionChanged behavior and keep my

Re: WicketRuntimeException: loginPage is already mounted for BookmarkablePageEncoder[page=class com.xxx.LoginPage]

2010-09-02 Thread Igor Vaynberg
you should pass a new instance of application. wicket tester inits the application and so it would call the init method which will execute the mounts - and on already initialized instance it would cause that error. -igor On Thu, Sep 2, 2010 at 9:13 AM, Fernando Wermus fernando.wer...@gmail.com

Re: WicketRuntimeException: loginPage is already mounted for BookmarkablePageEncoder[page=class com.xxx.LoginPage]

2010-09-02 Thread Igor Vaynberg
This is because I need to render the emails from a different servlet. Do I have any solution for this situation? How can I get the WebApplication from a different servlet? On Thu, Sep 2, 2010 at 1:26 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: you should pass a new instance of application

Re: Wicket AjaxButton multiple responses

2010-09-02 Thread Igor Vaynberg
search this list for ajaxpoller -igor On Thu, Sep 2, 2010 at 9:16 PM, DmitryM nsk...@aol.com wrote: Hello, everybody I have a long-running Ajax request (about 7 seconds) and would like to notify user about its progress. A preferred way would be to push multiple ajax responses back to the

Re: ajax links produce too long javascript

2010-09-01 Thread Igor Vaynberg
that should be renamed to wicket-later, not happening in 1.5 -igor On Wed, Sep 1, 2010 at 7:32 AM, Pedro Santos pedros...@gmail.com wrote: https://cwiki.apache.org/WICKET/wicket-15-ajax.html On Wed, Sep 1, 2010 at 9:32 AM, Vladimir Kovalyuk koval...@gmail.com wrote: Consider this javascript

Re: How to get form submit to return to previous page?

2010-09-01 Thread Igor Vaynberg
you would create one that would write out some html like htmlheadscripthistory.go(-2);/script/headbody//html -igor On Wed, Sep 1, 2010 at 4:26 PM, Chris Colman chr...@stepaheadsoftware.com wrote: I have a form/page that can be invoked from different pages so I can't easily specify which page

Re: How to get form submit to return to previous page?

2010-09-01 Thread Igor Vaynberg
do not pass the page, pass the page reference, see page#getpagereference() -igor On Wed, Sep 1, 2010 at 6:21 PM, Chris Merrill ch...@webperformance.com wrote: On 9/1/2010 7:26 PM, Chris Colman wrote: I have a form/page that can be invoked from different pages so I can't easily specify which

Re: AJAX error on IE8 Win 7

2010-08-31 Thread Igor Vaynberg
most likely you have a problem with your markup, eg a div inside a span or something like that. thats all i can say without seeing the code. -igor On Tue, Aug 31, 2010 at 5:28 AM, Laurentiu Trica laurentiu.tr...@finalfolder.biz wrote: Hello, I have a problem with an AjaxCheckBox which should

Re: htmlUnit + Wicket to get a page

2010-08-31 Thread Igor Vaynberg
try using wickettester in a new thread instead. -igor On Tue, Aug 31, 2010 at 3:58 PM, Fernando Wermus fernando.wer...@gmail.com wrote: Hi all,    I have to send some emails when a user clicks a link. The problem I am encountering is that I got a lock. Caused by:

Re: WicketTester and https

2010-08-30 Thread Igor Vaynberg
wicket tester is not a complete emulation tool, it is designed for simple usecases. you are welcome to patch it to support this, but its probably easier to turn off the httpsrequestcycleprocessor in your tests so no redirect happens. -igor On Mon, Aug 30, 2010 at 4:13 AM, Michael Sparer

Re: How to determine previous value in select after user change

2010-08-27 Thread Igor Vaynberg
class mydropdown extends dropdown { private object last; protected void updatemodel() { last=getmodelobject(); super.updatemodel(); } -igor On Thu, Aug 26, 2010 at 6:39 PM, Steve Mactaggart st...@whitesquaresoft.com wrote: Hi All, I'm not sure if there is a wicket way to do this, or if I

Re: Question about Wicket and generics

2010-08-27 Thread Igor Vaynberg
i have written plenty forms and about 99% of them have FormVoid. models on the form are just not that useful, its the fields that care. -igor On Fri, Aug 27, 2010 at 5:45 AM, James Carman ja...@carmanconsulting.com wrote: On Fri, Aug 27, 2010 at 8:40 AM, Mike Dee mdichiapp...@cardeatech.com

Re: Question about Wicket and generics

2010-08-27 Thread Igor Vaynberg
just offering the other side of the coin...i didnt say we were going to yank the generics from the Form, chill :) -igor On Fri, Aug 27, 2010 at 8:38 AM, James Carman ja...@carmanconsulting.com wrote: On Fri, Aug 27, 2010 at 11:34 AM, Igor Vaynberg igor.vaynb...@gmail.com wrote: i have

Re: How to identify last Repeater/DataView item

2010-08-26 Thread Igor Vaynberg
item has an index property, so you can check if that is -1 of getitemsperpage() -igor 2010/8/26 Benedikt Schlegel benedikt.schle...@betasystems.com: Hy folks, is there a way to determine if the current Item in onPopulate() is the last one processed? I need to add an additional attribute to

Re: Best practice for component interaction

2010-08-25 Thread Igor Vaynberg
already done https://issues.apache.org/jira/browse/WICKET-1312 -igor On Wed, Aug 25, 2010 at 6:12 AM, jcgarciam jcgarc...@gmail.com wrote: Thanks for expressing your help on this, im already working on it :-), since is not that hard to implement, but i would like to see this kind of

Re: Shouldn't an IConverter also work for StringResourceModels?

2010-08-24 Thread Igor Vaynberg
file an issue, attach a patch if you can. -igor On Tue, Aug 24, 2010 at 5:33 AM, Michael Sparer michael.spa...@gmx.at wrote:  Hi, I've got an entry in a properties file that looks like this: text=I'll pay ${moneyAmount} where moneyAmount is an Object like the one below public class

Re: WicketFilter.init() being called multiple times in Glassfish 3

2010-08-24 Thread Igor Vaynberg
if filter.init is called more then once then its a problem in glassfish. -igor On Tue, Aug 24, 2010 at 5:35 AM, Wilhelmsen Tor Iver toriv...@arrive.no wrote: (Resending with some more text and less stacktrace because Apache's spam filter did not like it the first couple of times). Since we

Re: [1.5] new wicket URL-related questions

2010-08-24 Thread Igor Vaynberg
2010/8/24 Major Péter majorpe...@sch.bme.hu: well, I've tried this with this quickstart: http://aldaris.sch.bme.hu/quick.tar.gz , but this really didn't worked. Also on my bigger project I was seeing weird redirections: * the app is on / contextroot * the homepage could have parameters, but

Re: Cache key collisions (IMarkupCacheKeyProvider)

2010-08-24 Thread Igor Vaynberg
IMarkupCacheKeyProvider is for advanced users. you have to know what you are doing when you implement the interface. it makes sense to me that the key is application-scoped since there is really no other scope that makes sense, and yes, like you said, its a good idea to prefix the key with the

Re: Best practice for component interaction

2010-08-24 Thread Igor Vaynberg
usually this kind of linkage is created by pointing both the calendar and the textfield to the same model object, like a property of a common parent, etc. -igor On Tue, Aug 24, 2010 at 8:37 AM, Patrick Petermair patrick.peterm...@openforce.com wrote: Hi! Let's say I have a page with 2 panels.

Re: Best practice for component interaction

2010-08-24 Thread Igor Vaynberg
, Aug 24, 2010 at 12:56 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: usually this kind of linkage is created by pointing both the calendar and the textfield to the same model object, like a property of a common parent, etc. -igor On Tue, Aug 24, 2010 at 8:37 AM, Patrick Petermair

Re: Best practice for component interaction

2010-08-24 Thread Igor Vaynberg
ja...@carmanconsulting.com wrote: What do you mean?  What would the visitor look for? On Tue, Aug 24, 2010 at 1:12 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: you can accomplish it using a simple visitor. 1.5 has a more formalized approach for managing events between components. -igor

Re: Wicket and Netbeans

2010-08-24 Thread Igor Vaynberg
looks like netbeans is not copying the .html file into the build dir (which should be set to target/classes) after you save it. you can figure out how to toggle this setting in netbeans, or add this to your application's init: getResourceSettings().addResourceFolder(src/main/java); -igor On

Re: Best practice for component interaction

2010-08-24 Thread Igor Vaynberg
. Interesting.  What about just using a metadata key? On Tue, Aug 24, 2010 at 1:24 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: onclick(final AjaxRequestTarget target) {   getPage().visitChildren(CaresAboutMyAjaxEvent.class, new IVisitorCaresAboutMyAjaxEvent () {        Object visit

<    6   7   8   9   10   11   12   13   14   15   >