Re: Page.onPageAttached() never gets called in 1.5?

2011-03-07 Thread Igor Vaynberg
, but keeping this in Wicket 1.5 would be very convenient for some use cases, for example to get current page instance in component constructor without passing page instance as a constructor param. Robin --- On Mon, 3/7/11, Igor Vaynberg igor.vaynb...@gmail.com wrote: From: Igor Vaynberg igor.vaynb

Re: 1.5 IEventSink adapted as behavior

2011-03-07 Thread Igor Vaynberg
hrm. add an rfe to add behaviors to event chain. -igor On Mon, Mar 7, 2011 at 11:21 AM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Hello, I am currently using the new inter-component events system to communicate between components. My primary use is to bubble up requests (ajax

Re: Page.onPageAttached() never gets called in 1.5?

2011-03-07 Thread Igor Vaynberg
there. This might not be a common use case. Anyway, thanks for the extensive infrastructure of Wicket, I can call the onPageAttahched() method by myself by subclassing PersistentManagementPage. Regards Robin --- On Tue, 3/8/11, Igor Vaynberg igor.vaynb...@gmail.com wrote: From: Igor Vaynberg

Re: Page.onPageAttached() never gets called in 1.5?

2011-03-06 Thread Igor Vaynberg
i think this method should be removed from Page, for code that needs access to a page you can use onInitialize() for one-time code and onConfigure() for every request. -igor On Sun, Mar 6, 2011 at 7:33 PM, Robin Shine ro...@pmease.com wrote: Hi All, We rely on this method to store the page

Re: Panel factories and @SpringBean

2011-03-05 Thread Igor Vaynberg
http://wicketinaction.com/2008/10/creating-pluggable-applications-with-wicket-and-spring/ -igor 2011/3/4 Leszek Gawron lgaw...@apache.org: Hello, Let's say I want to write some UI to edit some complicated configuration split into multiple entities in multiple maven modules. The UI needs to

Re: DiskPageStore - Error FileNotFoundException

2011-03-05 Thread Igor Vaynberg
something else, other then wicket, may be eating up your filehandles. just because wicket gets the exception doesnt mean its causing it. ask your admin to list the files that are held open to see what they are. and, yes, also upgrade to latest ver. -igor On Fri, Mar 4, 2011 at 7:53 AM, Jeffrey

Re: How to stop concurrent logins?

2011-03-04 Thread Igor Vaynberg
a much simpler way is to set a guid in both a cookie and session every time they login, then on every request make sure the guid matches. if it doesnt it means its a stale login. -igor On Wed, Mar 2, 2011 at 11:33 AM, shetc sh...@bellsouth.net wrote: Hi All, Following a security assessment, I

Re: ajax refresh of ListItems

2011-02-28 Thread Igor Vaynberg
does the listitem have setoutputmarkupplaceholdertag(true)? -igor On Mon, Feb 28, 2011 at 5:01 PM, Scott Swank scott.sw...@gmail.com wrote: I have an html table with a ListView generating the rows.  Certain rows in the middle of the table are initially hidden via setVisible(false), but then

Re: Fixing redirect with relative part for mobile device

2011-02-22 Thread Igor Vaynberg
it is part of the spec that servlet container rewrites any relative redirect urls to absolute ones. you may want to file a glassfish bug. -igor On Tue, Feb 22, 2011 at 10:13 AM, Pepijn de Geus pdeg...@me.com wrote: Hi all, I'm working on a mobile website to be accessed by all kinds of

Re: Select All Non-Disabled Items in CheckBoxMultipleChoice

2011-02-22 Thread Igor Vaynberg
your code figures out if they are disabled or not, so use the code to filter your add... -igor On Tue, Feb 22, 2011 at 1:06 PM, eugenebalt eugeneb...@yahoo.com wrote: Can anyone help with this? Thanks -- View this message in context:

Re: Wicket-Spring Hibernate dao

2011-02-22 Thread Igor Vaynberg
you should be doing cat=new cat() anyways. i assume the default cat is a singleton in your application context, in which case you do not want it to be persisted anyways. -igor On Tue, Feb 22, 2011 at 1:59 PM, ookpalm ookp...@gmail.com wrote: Hi I have a question about wicket spring. My

Re: Implementing AjaxBehavior with decoration

2011-02-20 Thread Igor Vaynberg
see org.apache.wicket.extensions.ajax.markup.html.AjaxLazyLoadPanel in extensions -igor On Sun, Feb 20, 2011 at 4:07 AM, Nishant Neeraj nishant.has.a.quest...@gmail.com wrote: What is the easiest way to get following behavior: 1. When I click a link, a hidden DIV pops-up. The content of the

Re: Making Ajax Download Work With Validator Messages (in FeedbackPanel)

2011-02-20 Thread Igor Vaynberg
whatever you are using to submit the form with ajax has an onError(target) method that you can override and update the feedback panel with. -igor On Sun, Feb 20, 2011 at 10:24 AM, eugenebalt eugeneb...@yahoo.com wrote: My code is below. 1) In Form Constructor:    public MyForm(String id) {

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-18 Thread Igor Vaynberg
, Feb 18, 2011 at 7:22 AM, Daniel Stoch daniel.st...@gmail.com wrote: On Thu, Feb 17, 2011 at 10:37 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: validation is there to make sure the user of the webapp cannot push an illegal value into a model. it doesnt matter if its just the component

Re: RepeatingView/RefreshingView: Inform children about being deleted

2011-02-18 Thread Igor Vaynberg
file a bug with a quickstart. onremove() should be called on all removed components. -igor On Fri, Feb 18, 2011 at 5:38 AM, Benedikt Rothe benedikt.ro...@qleo.de wrote: Hi Are the existing children of a RepeatingView/RefreshingView being informed, when the View is newly populated

Re: 1.5RC1 url mounting/encoding

2011-02-18 Thread Igor Vaynberg
try mountPage(${username}, MyPage.class) and access username through pageparameters -igor On Fri, Feb 18, 2011 at 8:41 AM, nimmy nim_sa...@hotmail.com wrote: Hi Christian, Thanks for your reply. I have already set the Index page as the homepage. I was trying to figure out how to handle

Re: Disable Individual Checkboxes in CheckBoxMultipleChoice

2011-02-17 Thread Igor Vaynberg
override protected boolean isDisabled(final E object, int index, String selected) -igor On Thu, Feb 17, 2011 at 8:15 AM, eugenebalt eugeneb...@yahoo.com wrote: I have a CheckBoxMultipleChoice in my form, and I need to disable individual checkboxes (not all), say the 1st and 3rd one. (But I

Re: Adding pages in clean URLs

2011-02-17 Thread Igor Vaynberg
debug it and see why its not matched. -igor On Thu, Feb 17, 2011 at 9:12 AM, Suraj Chandran chandransu...@gmail.com wrote: I tried this: this.mount(/home, PackageName.forPackage(Main.class.getPackage())); But it doesn't work. I tried hitting both /home/Main and /home/Main.html. Any idea

Re: Dynamic Tag substitution

2011-02-17 Thread Igor Vaynberg
override oncomponenttag and call tag.setname() -igor On Thu, Feb 17, 2011 at 9:14 AM, Arjun Dhar dhar...@yahoo.com wrote: One correction I'd make to my own code is instead of allowing to add a Component; I'd enforce WebComponent. That would make the case stronger for using and enforcing HTML

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-17 Thread Igor Vaynberg
if you want to push a null value into a component you marked required then dont mark it as required. if you have inter-dependent validation use a formvalidator or override form's onsubmit. -igor On Thu, Feb 17, 2011 at 8:51 AM, Daniel Stoch daniel.st...@gmail.com wrote: There is a situation

Re: Erase Previous Error Messages in Feedback Panel after Download

2011-02-17 Thread Igor Vaynberg
target.addcomponent(feedbackpanel); target.appendjavascript('window.location=url to download'); -igor On Thu, Feb 17, 2011 at 1:09 PM, eugenebalt eugeneb...@yahoo.com wrote: I have a FeedbackPanel which may contain previous error messages. Once the form is successfully submitted, it's not

Re: Erase Previous Error Messages in Feedback Panel after Download

2011-02-17 Thread Igor Vaynberg
yes, it would go to button's ajax onsubmit. you are sending the file somehow by redirecting the browser to some url... -igor On Thu, Feb 17, 2011 at 1:27 PM, eugenebalt eugeneb...@yahoo.com wrote: Does this code go in the SubmitButton's onClick Ajax behavior? What if I don't have a URL? I'm

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-17 Thread Igor Vaynberg
make sense. -igor On Thu, Feb 17, 2011 at 1:33 PM, Daniel Stoch daniel.st...@gmail.com wrote: On Thu, Feb 17, 2011 at 10:01 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: if you want to push a null value into a component you marked required then dont mark it as required. No, because

Re: FeedbackPanel Message issues

2011-02-17 Thread Igor Vaynberg
try also detaching feedbackpanel's model. -igor On Thu, Feb 17, 2011 at 2:10 PM, sheadley3228 steven.head...@cats.usdoj.gov wrote: In my current project, I am using the feedbackpanel to display both informational and error messages. When I move to my webpage, i display an informational

Re: Extend AjaxFormComponentUpdatingBehavior functionality for required FormComponents

2011-02-17 Thread Igor Vaynberg
On Thu, Feb 17, 2011 at 2:32 PM, Daniel Stoch daniel.st...@gmail.com wrote: On Thu, Feb 17, 2011 at 10:37 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: validation is there to make sure the user of the webapp cannot push an illegal value into a model. it doesnt matter if its just

Re: Stop at Validator X in case of error, do not run Validator Y

2011-02-16 Thread Igor Vaynberg
if X and Y are on the same component then Y will not run if X fails. -igor On Wed, Feb 16, 2011 at 9:20 AM, eugenebalt eugeneb...@yahoo.com wrote: Wicket seems to accumulate all error messages and display them at once. But I have a case where, if Validator X doesn't pass, I should *NOT*

Re: JQueryBehavior rendering javascript with renderString() vs renderJavascript() method

2011-02-16 Thread Igor Vaynberg
wicketstuff is hosted on github, you can make the issue yourself. -igor On Wed, Feb 16, 2011 at 10:58 AM, Zilvinas Vilutis cika...@gmail.com wrote: I've found that one of the core JQuery classes renders javascript with response.renderString method (

Re: Adding pages in clean URLs

2011-02-16 Thread Igor Vaynberg
i believe it will be available without the .html so www.xyz.com/home/Main -igor On Wed, Feb 16, 2011 at 11:15 AM, Suraj Chandran chandransu...@gmail.com wrote: Hi I have a class Main.class(bookmarkable) and its associated Main.html in package com.xyz What I want is Main.html be able to be

Re: Just 100K per session? That would be my dream come true! (Anyone here who has tuned session size before?)

2011-02-15 Thread Igor Vaynberg
since you are using refreshingview for things you do not need to keep across requests you can try autoAdd(component) instead of add. those should be removed at the end of request. since refreshingview is rebuilt those things will be readded at next render. notice you cannot autoadd any components

Re: Hibernate lazy collections and Wicket Serializable Checker

2011-02-14 Thread Igor Vaynberg
you really should not reference hibernate entities directly. use a loadable detachable model for that. otherwise when the page is deserialized the entity is detached from the session... -igor On Mon, Feb 14, 2011 at 8:23 AM, Alexandru Artimon aarti...@dgfoundation.org wrote: Hello, I'm

Re: Page with no markup - can be done better than with empty TextTemplate?

2011-02-12 Thread Igor Vaynberg
class mypage extends webpage { public mypage() { service.reset(); getsession().info(..); throw new restartResponseException(getapplication().gethomepage()); } } -igor 2011/2/12 Marcin Zajączkowski msz...@wp.pl: Hi, In the application I need to have an util page which

Re: [1.5 MIGRATION] State handling / inter-page events / versioning

2011-02-11 Thread Igor Vaynberg
starting with 1.4 we have advocated that passing page instances to other pages is a bad idea, whether directly or via anonymous classes. -igor On Fri, Feb 11, 2011 at 5:21 AM, Carl-Eric Menzel cmen...@wicketbuch.de wrote: On Fri, 11 Feb 2011 11:51:12 +0100 Carl-Eric Menzel

Re: [1.5 MIGRATION] State handling / inter-page events / versioning

2011-02-11 Thread Igor Vaynberg
no, this is why page references were created -igor On Fri, Feb 11, 2011 at 10:01 AM, Alexander Morozov alexander.v.moro...@gmail.com wrote: What about passing page _references_ to other pages ? Are there any reefs here ? Thanks Igor Vaynberg-2 wrote: starting with 1.4 we have

Re: Generic Search Form Results Display

2011-02-11 Thread Igor Vaynberg
class searchpage extends webpage { private string keywords; private class provider implements idataprovider { iterator(...) { return service.search(keywords).iterator(); } } public searchpage() { form f=new form(...); f.add(new textfield(keywords, new propertymodel(this,

Re: onInitialize / onBeforeRender

2011-02-10 Thread Igor Vaynberg
create a quickstart that reproduces this, oninitialize() should always be called on components after they are added to the page. -igor On Thu, Feb 10, 2011 at 8:49 AM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: Version: wicket1.4.13 Is there any reason onInitialize would not be

Re: onInitialize / onBeforeRender

2011-02-10 Thread Igor Vaynberg
failing to do so will throw an exception. -igor On Thu, Feb 10, 2011 at 8:58 AM, Matthias Keller matthias.kel...@ergon.ch wrote: On 2011-02-10 17:49, Brown, Berlin [GCG-PFS] wrote: Version: wicket1.4.13 Is there any reason onInitialize would not be called?  And is it always called before

Re: Wicket 1.5 and custom request cycle

2011-02-10 Thread Igor Vaynberg
i just fixed this last night, will be part of rc2. -igor On Thu, Feb 10, 2011 at 10:46 AM, Bertrand Guay-Paquet ber...@step.polymtl.ca wrote: Hello, Disclaimer: I am a relatively new Wicket user I use a custom session to store the current user Id and I want to use the request cycle to

Re: Wicket 1.5 and custom request cycle

2011-02-10 Thread Igor Vaynberg
estimate on the release date of RC2? Zhubin -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: February 10, 2011 1:54 PM To: users@wicket.apache.org Subject: Re: Wicket 1.5 and custom request cycle i just fixed this last night, will be part of rc2. -igor

Re: [1.5 MIGRATION] State handling / inter-page events / versioning

2011-02-10 Thread Igor Vaynberg
the problem is indeed that you are sharing state between pages which is not allowed. you are doing it via one page passing in an anonymous SelectionCallback to another page, which is the same as passing in an instance of one page to another. what you should do instead, especially since you

Re: When 1.4.16 going to be released

2011-02-09 Thread Igor Vaynberg
is there anything particularly important in it that you need? -igor On Wed, Feb 9, 2011 at 3:18 AM, Przemek Kubicki prze...@consol.pl wrote: Hi folks, anyone know when 1.4.16 will get released? Cheers - To unsubscribe,

Re: ajax versioning

2011-02-09 Thread Igor Vaynberg
mount it with hybrid url coding strategy -igor On Wed, Feb 9, 2011 at 8:01 AM, Istvan De surf-ki...@freemail.hu wrote: Hi! In case I have a bookmarkable page with some AJAX on it (form+table) and the user can navigate away and back to this page (using the back button). How can I make sure

Re: StatelessForm growing url when there is errorvalidation

2011-02-09 Thread Igor Vaynberg
hrm. i thought this was fixed a long time ago. please file a bug with a quickstart. -igor On Wed, Feb 9, 2011 at 2:09 AM, Olivier Dutrieux olivier.dutri...@pasteur.fr wrote: Hello, I have a strange problem with statelessForm : I would like a stateless application with 2 statelessForm and

Re: When 1.4.16 going to be released

2011-02-09 Thread Igor Vaynberg
is crucial for us. It is already fixed. We need to release our product version asap. Without 1.4.16 we would need to patch the wicket, but i'd like to avoid it. Cheers, W dniu 09.02.2011 17:25, Igor Vaynberg pisze: is there anything particularly important in it that you need? -igor On Wed

Re: Question about Unit Testing with custom Session

2011-02-08 Thread Igor Vaynberg
. After debuggin the tests I have seen that my appcontext instance was created and the .xml file was correctly recognized :( But I still get the exception... On 8 February 2011 07:37, Igor Vaynberg igor.vaynb...@gmail.com wrote: make sure your setup() code runs before wicket tester instance

Re: partial Updating dataview with ajax

2011-02-08 Thread Igor Vaynberg
http://wicketinaction.com/2008/10/repainting-only-newly-created-repeater-items-via-ajax/ -igor 2011/2/8 LePirlouit Benoît lepirlo...@hotmail.com: Hi All, I'm currently using an AbstractAjaxTimerBehavior witch refresh onTimer the dataview I want to append some components to

Re: WicketTester and the test of image visibility

2011-02-07 Thread Igor Vaynberg
most of our unit tests check the markup, see there. -igor On Fri, Feb 4, 2011 at 1:19 AM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Could you provide me a simple exmaplte how can I do that? Thank you! On 3 February 2011 18:33, Igor Vaynberg igor.vaynb...@gmail.com wrote

Re: [1.5 MIGRATION] - Where did StringHeaderContributor / TextTemplateHeaderContributor go?

2011-02-07 Thread Igor Vaynberg
now every component and behavior implement iheadercontributor (have a renderhead method) and the response has the same methods that the old contributors had. you want to contribute something, just override renderhead(). you can contribute the template using

Re: Question about Unit Testing with custom Session

2011-02-07 Thread Igor Vaynberg
make sure your setup() code runs before wicket tester instance is created. -igor On Mon, Feb 7, 2011 at 7:41 AM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Hi, of course. The point is if I delete this: InjectorHolder.getInjector().inject(this); from my session class everything

Re: wicket-ajax.js header contribution with script that includes a less than character

2011-02-03 Thread Igor Vaynberg
wicket should do this for you. please file a bug. -igor On Thu, Feb 3, 2011 at 6:09 AM, Randy S. randypo...@gmail.com wrote: Matthias: of course, reversing the options should be the easiest and most obvious workaround. Thank you. Pedro: I could try to escape the . Presumably this would be

Re: IndicatingAjaxSubmitLink missing?

2011-02-03 Thread Igor Vaynberg
roll your own, they are pretty trivial. look at the source of IndicatingAjaxLink -igor On Wed, Feb 2, 2011 at 11:51 PM, rolandpeng rolandp...@cht.com.tw wrote: Will any later version of wicket add IndicatingAjaxSubmitLink? It seems this class was missed. Or any other Class similar to this

Re: WicketTester and the test of image visibility

2011-02-03 Thread Igor Vaynberg
visibility can be triggered from a lot of places, isvisible() only checks the visibility flag. the best way to test it is to see if the image tag appears in the rendered markup. -igor On Thu, Feb 3, 2011 at 1:16 AM, Dmitriy Neretin dmitriy.nere...@googlemail.com wrote: Hello everybody! Is the

Re: RequestCycle.onRequestTargetSet(IRequestTarget requestTarget) equivalant in Wicket 1.5

2011-02-02 Thread Igor Vaynberg
dont think that hook exists yet, file a jira -igor On Wed, Feb 2, 2011 at 12:13 PM, Zhubin Salehi zhubin.sal...@route1.comwrote: Hi all, I’m in process of migrating from Wicket 1.4 to Wicket 1.5. I have the following method in the 1.4 version of my AuthenticatedWebApplicationsubclass:

Re: AjaxButton's onSubmit goes into Form Submit? Why?

2011-02-02 Thread Igor Vaynberg
then make it an AjaxLink -igor On Wed, Feb 2, 2011 at 2:12 PM, eugenebalt eugeneb...@yahoo.com wrote: I have an Ajax Button which is NOT a submit button; it's a custom button that does my own action. AjaxButton reportButton = new AjaxButton(reportButton) {        @Override        

Re: AjaxButton's onSubmit goes into Form Submit? Why?

2011-02-02 Thread Igor Vaynberg
you dont need an ajax link to start a download. use a regular link instead. -igor On Wed, Feb 2, 2011 at 3:08 PM, eugenebalt eugeneb...@yahoo.com wrote: OK thanks, that did the trick. But I have one more question: That AjaxLink is supposed to start a browser File Download. The code that I

Re: [1.4.15] FLAG_INHERITABLE_MODEL and default model change

2011-02-01 Thread Igor Vaynberg
please file a jira -igor On Tue, Feb 1, 2011 at 8:16 AM, Alexander Morozov alexander.v.moro...@gmail.com wrote: Hi, I have the question about correctness of Component#setDefaultModel (Component#setModelImpl) method behavior. I expect that the flag FLAG_INHERITABLE_MODEL should be checked

Re: Set default locale when suitable locale not found

2011-02-01 Thread Igor Vaynberg
if no matches are made the user should fall back to page.html and page.properties. so put your default locale into those files instead of specific locales. otherwise you can call session.setlocale() to force it. -igor On Tue, Feb 1, 2011 at 11:36 AM, planime planime...@mailforspam.com wrote:

Re: Newbie Question

2011-01-31 Thread Igor Vaynberg
onclick (target) { setvisible(false); target.add(this); } -igor On Mon, Jan 31, 2011 at 4:46 PM, Fernando O. fot...@gmail.com wrote: Hi All, how are you?   I'm new in this list, actually I'm new to wicket and I'm trying to learn it. So far I hadn't found any issues and it worked great until

Re: User configuration files

2011-01-29 Thread Igor Vaynberg
that actually looks pretty simple to me... -igor On Sat, Jan 29, 2011 at 8:17 AM, Christian Grobmeier grobme...@gmail.com wrote: Hello I tried to figure out how one can load own configuration files into wicket, for example with configuration on smtp host or something like that. It seems

Re: User configuration files

2011-01-29 Thread Igor Vaynberg
not do it. as a last note, you can leverage wicket's i18n to load properties stored in your MyApplication.properties. getString(myproperty) is all you need. -igor On Sat, Jan 29, 2011 at 11:02 AM, Christian Grobmeier grobme...@gmail.com wrote: On Sat, Jan 29, 2011 at 6:27 PM, Igor Vaynberg

Re: Add Component if markup exists?

2011-01-29 Thread Igor Vaynberg
28.01.2011 23:37, schrieb Igor Vaynberg: if it only needs to live during render there is IComponentResolver if you need it to have a normal lifecycle you can analyze the markup and add the component if not already added. in 1.5 you can use getmarkup in onmarkupattached() or oninitialize() -igor

Re: Best practice on i18n

2011-01-29 Thread Igor Vaynberg
properties do follow inheritance afair. -igor On Sat, Jan 29, 2011 at 7:31 PM, Arjun Dhar dhar...@yahoo.com wrote: The only relevant technical point here is Inheritance. If Component A inherits Component B, then the properties would have to be repeated in the property file corresponding to

Re: Add Component if markup exists?

2011-01-28 Thread Igor Vaynberg
if it only needs to live during render there is IComponentResolver if you need it to have a normal lifecycle you can analyze the markup and add the component if not already added. in 1.5 you can use getmarkup in onmarkupattached() or oninitialize() -igor On Fri, Jan 28, 2011 at 2:11 PM,

Re: Can i catch urls like http://localhost:8080/ShowThemePage-ti325-Twilight.html by IRequestTargetUrlCodingStrategy?

2011-01-27 Thread Igor Vaynberg
instead of mounting it set in the settings. mounting is for intercepting path segments. also set a breakpoint and see if its being hit. -igor On Thu, Jan 27, 2011 at 2:56 AM, Mike Mander wicket-m...@gmx.de wrote: Hi, urls in my shop look like this code

Re: How to deal with vertical tabs?

2011-01-27 Thread Igor Vaynberg
Martin Grigorov mgrigo...@apache.org This is fixed in 1.5 only. https://issues.apache.org/jira/browse/WICKET-2264 https://issues.apache.org/jira/browse/WICKET-3330 On Wed, Jan 26, 2011 at 5:10 PM, Igor Vaynberg igor.vaynb...@gmail.com wrote: wicket should already be escaping such characters

Re: Can i catch urls like http://localhost:8080/ShowThemePage-ti325-Twilight.html by IRequestTargetUrlCodingStrategy?

2011-01-27 Thread Igor Vaynberg
parameters. Thanks again Mike Original-Nachricht Datum: Thu, 27 Jan 2011 08:04:53 -0800 Von: Igor Vaynberg igor.vaynb...@gmail.com An: users@wicket.apache.org Betreff: Re: Can i catch urls like http://localhost:8080/ShowThemePage-ti325-Twilight.html

Re: 1.5 Javascript HeaderContribution

2011-01-27 Thread Igor Vaynberg
response.renderJavaScriptReference(SomeClassInThePackage.class, js/fb-auth-redirect.js); -igor On Thu, Jan 27, 2011 at 3:44 PM, Todd Wolff todd.wo...@utsa.edu wrote: Hi, Struggling with new HeaderContribution semantics ...  Trying to dynamically add a javascript reference to header

Re: Submit form from ajaxlink not a part of the form

2011-01-27 Thread Igor Vaynberg
add(new ajaxsubmitlink(submit, form)); -igor On Thu, Jan 27, 2011 at 7:46 PM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: So, I was able to submit a form WITHOUT ajax.  Now, how can I submit a form with ajax but from a link not associated with that form.  I tried the following.  

Re: 1.5-RC1 maven source, javadoc, and tests

2011-01-26 Thread Igor Vaynberg
see this thread: [discuss] How to resolve wicket aggregate classes / sources jar issues -igor On Wed, Jan 26, 2011 at 6:54 AM, Steve Lowery slow...@gatessolutions.com wrote: Looks like the source, javadoc and test artifacts for 1.5-RC1 published to the maven repo are empty.  Can this be fixed

Re: Calculate property value on form submission

2011-01-26 Thread Igor Vaynberg
dont use a cpm, write a model that chains the entity model and does the right thing in get/set. -igor On Wed, Jan 26, 2011 at 1:25 AM, Xavier López xavil...@gmail.com wrote: Hi, I've got a form with some fields, backed by an entity with a cpm. I've got one property on the entity which value

Re: RadioChoice keeps null rawInput after required validation?

2011-01-26 Thread Igor Vaynberg
clearinput() is a good way to deal with it, but the component should still set no_raw_input if it is submitted in a disabled state. please file a jira issue, preferably with a quickstart. -igor On Wed, Jan 26, 2011 at 3:05 AM, Xavier López xavil...@gmail.com wrote: Hi, I've got a form with a

Re: How to deal with vertical tabs?

2011-01-26 Thread Igor Vaynberg
wicket should already be escaping such characters in markup. please file a jira with a quickstart. -igor On Wed, Jan 26, 2011 at 6:36 AM, Carsten Luckmann carsten.luckm...@freiheit.com wrote: Hello, I have a problem with a Wicket Ajax response not being processed. Here the details: I have

Re: FormComponentPanel and invalid child FormComponents question

2011-01-26 Thread Igor Vaynberg
your form component panel should check if any of its children have error messages as well. use a visitor. -igor On Wed, Jan 26, 2011 at 8:32 AM, Sam Zilverberg samzilverb...@gmail.com wrote: I have a FormComponentPanel that represents a Time object - not java.sql.Time but my own Time object.

Re: FormComponentPanel and invalid child FormComponents question

2011-01-26 Thread Igor Vaynberg
of it's children is invalid. I'd like to also steal its' feedback message. I want this to happen because I have a feedback panel next to the form component that shows feedback messages registered to it. Is there a simple way to achieve this? On Wed, Jan 26, 2011 at 6:39 PM, Igor Vaynberg

Re: Class-only inheritance

2011-01-26 Thread Igor Vaynberg
if your DerivedClass1.java does not have markup and your BaseClass.html does not have a wicket:child tag then DerivedClass1 will use BaseClass' markup. so it should already work as you want, just remove wicket:child tag. -igor On Wed, Jan 26, 2011 at 9:13 AM, DCarr listobser...@gmail.com wrote:

Re: http 500 status on GitHub

2011-01-26 Thread Igor Vaynberg
works for me :/ -igor On Wed, Jan 26, 2011 at 11:42 AM, Martin Funk mafulaf...@googlemail.com wrote: Hi, anyone experiencing something similar, as I described here? http://support.github.com/discussions/site/2640-wiki-git-access-leads-to-500 mf

Re: setOutputMarkupId(true) on org.apache.wicket.markup.html.panel.Panel

2011-01-26 Thread Igor Vaynberg
calling setoutputmarkupid on a panel will output an id to the tag to which the panel is attached, eg add(new mypanel(foo)) div wicket:id=foo -- the tag that will have markup id output since you attach a panel to wicket:container tag and call setoutputmarkupid(true) on it, the id will never be

Re: Call onAfterRender and change default model without error

2011-01-25 Thread Igor Vaynberg
whats the usecase? -igor On Tue, Jan 25, 2011 at 9:37 AM, Brown, Berlin [GCG-PFS] berlin.br...@primerica.com wrote: I tried to do the following below but I got an error could not update component hierarchy. WicketMessage: Cannot modify component hierarchy after render phase has started (page

Re: Call onAfterRender and change default model without error

2011-01-25 Thread Igor Vaynberg
(state1));  }  onAfterRender() {   getDefaultModel().set(state2)); } -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Tuesday, January 25, 2011 12:40 PM To: users@wicket.apache.org Subject: Re: Call onAfterRender and change default model without error

Re: Call onAfterRender and change default model without error

2011-01-25 Thread Igor Vaynberg
- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Tuesday, January 25, 2011 1:01 PM To: users@wicket.apache.org Subject: Re: Call onAfterRender and change default model without error you didnt answer my question -igor On Tue, Jan 25, 2011 at 9:58 AM, Brown, Berlin [GCG-PFS

Re: Call onAfterRender and change default model without error

2011-01-25 Thread Igor Vaynberg
. Is there an other type of event method that I could use to set a value, render the component and then return to the original value? -Original Message- From: Igor Vaynberg [mailto:igor.vaynb...@gmail.com] Sent: Tuesday, January 25, 2011 2:32 PM To: users@wicket.apache.org Subject

Re: Ajax Response xml showing in browser

2011-01-24 Thread Igor Vaynberg
please attach a quickstart that reproduce it to a jira issue. -igor On Sun, Jan 23, 2011 at 10:40 PM, Jeffrey Schneller jeffrey.schnel...@envisa.com wrote: Got an odd issue occurring where the Ajax Response xml is showing in the browser rather than modifying the DOM of the page as it usually

Re: Problem with links on page if multiple mounts

2011-01-22 Thread Igor Vaynberg
hrm. i think one of the problems we have solved in 1.5, or at least i thought we did, is that we always normalize the last slash in the url (remove it), so the url should actually be: /view/52?0-1.ILinkListener-markAbuseLink, notice to slash between 52 and ?. hrm. create a quickstart. -igor On

Re: Is it possible to change the /wicket path?

2011-01-22 Thread Igor Vaynberg
https://issues.apache.org/jira/browse/WICKET-3368 -igor On Sat, Jan 22, 2011 at 9:38 AM, Willis Blackburn wbo...@panix.com wrote: (Sorry if this seems familiar to anyone.  I accidentally posted it to the Nabble Apache Wicket forum the first time, instead of Users.) I have an application in

Re: ModalWindow containing form in Wicket 1.5 RC1

2011-01-22 Thread Igor Vaynberg
yes, unfortunately it is the correct behavior. ajax submits were deviating from normal submits where form.onsubmit() is called after button.onsubmit(). in rc1 we fixed the deviating ajax behavior so now it works like normal non-ajax submits. a long time ago i wanted to change it so

Re: Question regarding AjaxFormSubmitBehavior

2011-01-21 Thread Igor Vaynberg
...@gmail.com wrote: Adding to Igor's comment, 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 [via

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(a);

Re: About AbstractLink

2011-01-21 Thread Igor Vaynberg
no, they will replace the span. and iirc em was changed to span a while back as the default -igor On Fri, Jan 21, 2011 at 8:42 AM, Martin Grigorov mgrigo...@apache.org wrote: On Fri, Jan 21, 2011 at 5:26 PM, Igor Vaynberg igor.vaynb...@gmail.comwrote: afaik anchors in html do not support

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 d.ba...@comsysto.com wrote: Have a small question regarding using

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 alecs...@gmail.com 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

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 mgrigo...@apache.org wrote: On Thu, Jan 20, 2011 at 6:32 PM, Andrew Lombardi and...@mysticcoders.comwrote: I've been

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 ja...@carmanconsulting.com wrote: On Thu, Jan 20, 2011 at 3:34 PM, Martin Makundi martin.maku...@koodaripalvelut.com wrote: The largest production I am responsible for is stuck with

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

2011-01-20 Thread Igor Vaynberg
on that page, and convert it over.  Thanks! On Jan 20, 2011, at 1:00 PM, Igor Vaynberg wrote: 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 mgrigo...@apache.org wrote: On Thu

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 nino.martinez.w...@gmail.com 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: 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.

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 nsegu...@gmail.com 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

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 doug...@douglasferguson.us wrote: tomcat On Jan 18, 2011, at 2:49 PM, Igor Vaynberg wrote: not sure then. seems rather strange that you cant reproduce it locally. what

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 doug...@douglasferguson.us 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 pretty

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 majorpe...@sch.bme.hu: So is this a bug? Should I create a JIRA issue for this? Thanks, Peter 2011-01-15 23:14 keltezéssel, Igor Vaynberg

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 alecs...@gmail.com 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

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 eric@uwa.edu.au 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

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