Re: Wicket-1.3-beta2 validation (conversion) bug?

2007-08-16 Thread Alex Objelean
If you believe that the usecase is obscure, shouldn't this approach to be reconsidered? Or at least discussed a little bit more, before the final release is done? Thank you! igor.vaynberg wrote: i believe it was jonathan who had an obscure usecase that null input was supposed to be

Re: setSerializeSessionAttributes in wicket-1.3.0-beta2

2007-08-16 Thread Alex Objelean
Eelco, you're right! The latest profiling shows where the bottleneck is... it is indeed not where I was looking for. I thought it was because of serialization because when using 1.2.x branch i found out that setSerializeSessionAttributes(false) improved a lot application responsiveness. Thank

Re: setSerializeSessionAttributes in wicket-1.3.0-beta2

2007-08-16 Thread Eelco Hillenius
Eelco, you're right! The latest profiling shows where the bottleneck is... it is indeed not where I was looking for. I thought it was because of serialization because when using 1.2.x branch i found out that setSerializeSessionAttributes(false) improved a lot application responsiveness.

Wicket-Stuff Tinymce-Editor: No toolbars in IE6

2007-08-16 Thread Benjamin Ernst
Hi, I have a problem with the wicket-stuff Tinymce-Editor in the InternetExplorer: the first time the page is loaded, there are no tool-icons, just the text-area. And IE gives the following Error: Error: 'tinyMCE is undefined' It' s an Java-Script-Error and it might be, that the scripts are

strang bug in wicket-1.3.0-beta2 when submitting a form

2007-08-16 Thread Alex Objelean
I've got the following exception when submit a form... (the same code worked fine with wicket-1.2.6) Any thougths? [10:39:10.071] ERROR [http-8080-Processor8] RequestCycle - Could not find Form parent for [MarkupContainer [Component id = editOrCancel, page =

Re: Ajax refresh of DefaultDataTable in wicket-phonebook

2007-08-16 Thread Tauren Mills
Igor, How would you suggest doing this refactor? The form really should go outside of the table, but that puts it outside the realm of DefatultDataTable since the wicket:id for it is on a table tag. If DefaultDataTable does add the form somehow, what about when you don't want filtering? Then

Re: Wicket vs. ZK

2007-08-16 Thread Gabor Szokoli
Hi, Slightly off topic, but this is the summer vacation season on this hemisphere, so I'm sure no one will mind: On 8/16/07, Eelco Hillenius [EMAIL PROTECTED] wrote: Wicket assumes that UI designers are *designers* (and not half-programmers like ZK assumes) only dealing with laying out, and

Re: How to get the html combo value in wicket?

2007-08-16 Thread Edi
My Question is how to get the html combo value using wicket methods? igor.vaynberg wrote: the final value is put into the model -igor On 8/15/07, Edi [EMAIL PROTECTED] wrote: any reply.. Edi wrote: Hi, I have ordinary html combo, select name=comboTxt

Re: Given a Page subclass and its PageParameters, how to determine the URL string?

2007-08-16 Thread Oliver Lieven
Hi, I'm doing this by mounting an alias-name to the page in the application's init()-method by calling WebApplication.mountBookmarkablePage( java.lang.String path,java.lang.Class bookmarkablePageClass) e.g. mountBookmarkablePage(verifyEmail, VerifyEmailPage.class) Then you can send an

Re: How to get the html combo value in wicket?

2007-08-16 Thread Dipu Seminlal
the selected value will get attached to the model, please take a look at FormInputExample in Wicket Examples. -dipu On 8/16/07, Edi [EMAIL PROTECTED] wrote: My Question is how to get the html combo value using wicket methods? igor.vaynberg wrote: the final value is put into the model

Re: how to indicate a model changed when item has been removed?

2007-08-16 Thread Leszek Gawron
Igor, Igor Vaynberg wrote: sounds like you are caching the list inside model returned by new PropertyModel( getModel(), thermometers) getModel() there. This is not the case. the thermometer is removed from parent entity and the parent itself is being persisted, so memory model is in sync

Re: how to indicate a model changed when item has been removed?

2007-08-16 Thread Leszek Gawron
Leszek Gawron wrote: Igor, Igor Vaynberg wrote: sounds like you are caching the list inside model returned by new PropertyModel( getModel(), thermometers) getModel() there. This is not the case. the thermometer is removed from parent entity and the parent itself is being persisted, so

[wicket stuff] wicket-contrib-bbcodecomponent released

2007-08-16 Thread Nino Saturnino Martinez Vazquez Wael
So now its working.. Knock yourselfs out crasy writing bbcode:) Take a peek at the wiki for further information; http://wicketstuff.org/confluence/display/STUFFWIKI/wicket-contrib-bbcodecomponent PS: This is a very basic version. A version with a little more spunk in it may come, if people

Re: Caching the context path

2007-08-16 Thread Jan Kriesten
Hi David, what you're doing with different brandings I do similar for different languages with Wicket 1.3. I want www.xy.de/de/ map to german and www.xy.de/en/ map to english interface of the application. What I did was extending WicketFilter to support path-extensions. I just implemented:

How to Hide/View Fields at run time combo selection

2007-08-16 Thread Edi
Hi, I have combo box with 3 items, String, Number, Date If I select String, Maximum character label with one textbox should display. some code : Initially I have hide Maximum character label and textbox using setVisible(false); In AjaxFormComponentUpdatingBehavior(onchange), protected void

Re: How to Hide/View Fields at run time combo selection

2007-08-16 Thread Gerolf Seitz
if you want to initially hide components and show them later via ajax, you have to call .setOutputMarkupPlaceHolderTrag(true) for the component. gerolf On 8/16/07, Edi [EMAIL PROTECTED] wrote: Hi, I have combo box with 3 items, String, Number, Date If I select String, Maximum character

urls and localization

2007-08-16 Thread Artur W.
Hi! I want to mount the same page with different url. eg: protected void init() { super.init(); mountBookmarkablePage(/catalog.html, Catalog.class); mountBookmarkablePage(/catalogue.html, Catalog.class); mountBookmarkablePage(/katalog.html, Catalog.class);

Re: How to Hide/View Fields at run time combo selection

2007-08-16 Thread Edi
I am using wicket1.2.3. I think this method is not available in that API Gerolf Seitz wrote: if you want to initially hide components and show them later via ajax, you have to call .setOutputMarkupPlaceHolderTrag(true) for the component. gerolf On 8/16/07, Edi [EMAIL PROTECTED] wrote:

RE: Caching the context path

2007-08-16 Thread David Leangen
Kent, Have you considered using mod_rewrite (in Apache) to convert the one URL to the other? Thanks for the suggestion. Actually, I already use mod_proxy on my proxy server to rewrite the URLs to something like this: ProxyPass /cxt/ http://192.168.x.x:8080/cxt/ ProxyPassReverse /cxt/

RE: Caching the context path

2007-08-16 Thread David Leangen
Jan, Thanks! This sounds just like what I need. Can I ask: on what context path did you mount your wicket? You must have mounted it on /*, right? Cheers, Dave -Original Message- From: Jan Kriesten [mailto:[EMAIL PROTECTED] Sent: 16 August 2007 19:02 To: users@wicket.apache.org

Re: Caching the context path

2007-08-16 Thread Al Maw
David Leangen wrote: so what exactly are you doing? Well... the end goal is to use the URL as the controlling input for the branding of my application. So I have a BrandingService with something like: I'd suggest a better way of doing this... Run a single Wicket app. For the different

Re: Requesting Focus for a component

2007-08-16 Thread Al Maw
Ayodeji Aladejebi wrote: I want to believe this is a javascript affair but after a form submits or an ajaxLink completes execution, is there any suggestion as to how to make the page focus jump to a particular component on the page See AjaxRequestTarget#focusComponent(). Regards, Al --

RE: Caching the context path

2007-08-16 Thread David Leangen
I'd suggest a better way of doing this... ... For the different inbound URLs, get Apache to add a header X-Branding with some appropriate String. ... Oh, that's interesting, too... I assume you're using 1.3.x for this? No... unfortunately, I'm stuck on 1.2.6 for now. Why? Won't this work

Re: Inheritance?

2007-08-16 Thread severian
I guess there are various ways to handle the common situation of having the same form perform multiple actions (add, update, delete etc). In your case, with multiple panels, why not just have the one-and-only implementation of onSubmit() (on the form in the panel superclass) call an abstract

Re: Inheritance?

2007-08-16 Thread Nino Saturnino Martinez Vazquez Wael
good idea:) I'll do it that way:) and thanks:) severian wrote: I guess there are various ways to handle the common situation of having the same form perform multiple actions (add, update, delete etc). In your case, with multiple panels, why not just have the one-and-only implementation of

Is there something like ValidationDelegates in Wicket?

2007-08-16 Thread Onno Scheffers
Hi, I'm new to Wicket. I worked with Tapestry before and I was wondering if there's something like the Tapestry ValidationDelegate available in Wicket? By adding a ValidationDelegate to a form I was able to override methods like writeLabelPrefix, writeLabelSuffix, writePrefix and

url mapping and wizards

2007-08-16 Thread wicket user
Hi, I've just started using Wicket and I've managed to mount pages so that the urls are cleaned up but for the life of me I can't seem to get it to work with Wizard pages. Is there a trick to this? At the moment it looks like this: http://localhost:8080/myapp/app/?wicket:interface=:12 I've

RE: Caching the context path

2007-08-16 Thread David Leangen
Looks like WicketFilter is only available in 1.3. :-( something like this should be possible with extending/modifying WicketServlet as well I assume. But I really only assume. ;-) Actually, that's pretty much what I'm doing now, so... You must have mounted it on /*, right? yes. I

Re: Wicket-1.3-beta2 validation (conversion) bug?

2007-08-16 Thread Igor Vaynberg
it is obscure but it still should be possible. anyway, you can discuss it here if you like. for example you can list some pros and cons that you think the current approach has. -igor On 8/15/07, Alex Objelean [EMAIL PROTECTED] wrote: If you believe that the usecase is obscure, shouldn't this

Re: strang bug in wicket-1.3.0-beta2 when submitting a form

2007-08-16 Thread Igor Vaynberg
unfortunately formcomponent:565 doesnt point to anything useful. mind trying again with the trunk build? it looks like formcomponent is trying to find its form, do you have it inside a form? -igor On 8/16/07, Alex Objelean [EMAIL PROTECTED] wrote: I've got the following exception when submit

Re: Revision 564878: Remove HtmlBodyContainer

2007-08-16 Thread RĂ¼diger Schulz
Hm, that's not really possible for me here (as stated in the linked post). That particular page already has a base page, so I could put this markup only into the wicket:extend block. Also, the markup is some dynamically generated JavaScript, which needs to be right after body. I think it would

Re: Caching the context path

2007-08-16 Thread Al Maw
You can use the header approach just fine on 1.2.x. If you were using 1.3.x then your pointing two paths at the same wicket app would work fine too, I think. If you're running behing mod_proxy I'd strongly recommend upgrading to 1.3.0-beta2 - it solves a bunch of issues with this by using

Re: Request Cycle TimeOut

2007-08-16 Thread Igor Vaynberg
please file a bug. also understand that if you set timeout to one hour that means the user will not be able to access any other page within that session until the original request goes through. -igor On 8/16/07, Gustavo Yoshizaki [EMAIL PROTECTED] wrote: Hi, I have some problems with the

Re: Ideas for a Wicket Based Cms

2007-08-16 Thread james yong
Martijn Dashorst wrote: Take a look at the kronos CMS first (wicketstuff), and possibly Tally-Ho (java.net). Martijn Hi, I tried to run Kronos Cms and run into the exception below. May I know where should I put the nodetype.cnd file? I am running on Tomcat. Regards, James

Re: Request Cycle TimeOut

2007-08-16 Thread Igor Vaynberg
https://issues.apache.org/jira/ -igor On 8/16/07, Gustavo Yoshizaki [EMAIL PROTECTED] wrote: Okey, Thanks for the answer. How do I report this bug? Gustavo On 8/16/07, Igor Vaynberg [EMAIL PROTECTED] wrote: please file a bug. also understand that if you set timeout to one hour that

Re: Is there something like ValidationDelegates in Wicket?

2007-08-16 Thread Igor Vaynberg
yep, i have a border implementation that does just this. it searches its hierarchy for a formcomponent(s) and adds labels, then if there are any errors it renders them after the component. so it is definetely possible, you still have to add a border/component but the chances are you are adding a

Re: Wicket vs. ZK

2007-08-16 Thread Eelco Hillenius
We've been using wicket for a couple of months now, our first application is about to be deployed, so I looked back at the templates and started wondering how much this separation of concerns applies to us. We have a base page with some panels supplied by subclasses, then those panels are

Re: Request Cycle TimeOut

2007-08-16 Thread Gustavo Yoshizaki
Okey, Thanks for the answer. How do I report this bug? Gustavo On 8/16/07, Igor Vaynberg [EMAIL PROTECTED] wrote: please file a bug. also understand that if you set timeout to one hour that means the user will not be able to access any other page within that session until the original

Re: setSerializeSessionAttributes in wicket-1.3.0-beta2

2007-08-16 Thread Alex Objelean
Well, in this case the bottleneck was caused by an expensive call which was not cashed inside a very long list... Anyway, profiling tools helps very much in such cases, so I would recommend everybody who have performance issues to use it. :) Eelco Hillenius wrote: Eelco, you're right! The

Re: url mapping and wizards

2007-08-16 Thread Igor Vaynberg
this is not how wicket works. bookmarkable urls are entry points, but once you change the state of the page you have to keep track of that instance somehow - that is what :12: is in that url - a wicket page id. so once you change the state of any page it is no longer bookmarkable and thus cannot

Re: setSerializeSessionAttributes in wicket-1.3.0-beta2

2007-08-16 Thread Eelco Hillenius
Well, in this case the bottleneck was caused by an expensive call which was not cashed inside a very long list... Anyway, profiling tools helps very much in such cases, so I would recommend everybody who have performance issues to use it. :) Yeah, for sure. Which tool are you using? We are

full path/url to page using wicket.servlet

2007-08-16 Thread Thijs
I'm migrating my app from 1.2.2 to 1.3 And the only real problem I have is getting my rss feed up. I'm adding the rss to the page head link title=foo.com rel=alternate type=application/rss+xml... I need the full path to the bookmarkable page to get this working (and generate the all links

Re: setSerializeSessionAttributes in wicket-1.3.0-beta2

2007-08-16 Thread Alex Objelean
Me too :)... YourKit rocks! :) Eelco Hillenius wrote: Well, in this case the bottleneck was caused by an expensive call which was not cashed inside a very long list... Anyway, profiling tools helps very much in such cases, so I would recommend everybody who have performance issues to use

Re: full path/url to page using wicket.servlet

2007-08-16 Thread Thijs
Thnx Al I'll do what you suggest as a temp fix (maybe store them in a db for easy redeployment) Hope you fix this though :) Thijs Al Maw wrote: Thijs wrote: I need the full path to the bookmarkable page to get this working What do I have to change to get this working again? I need to

Re: Wicket vs. ZK

2007-08-16 Thread juliez
Hi Eelco, When will the book be published? What version of Wicket it talks about? I am actually would like to view a picture of the achitecture like ZK has in its design documentation. I haven't found it yet. I bet I will learn more along the way I am using it. But it's always nice to have it

RE: Caching the context path

2007-08-16 Thread David Leangen
If you're running behing mod_proxy I'd strongly recommend upgrading to 1.3.0-beta2 - it solves a bunch of issues with this by using relative URLs everywhere instead. Hmmm... that looks like it's going to take a lot of work... but I guess I'll need to do it sooner or later. :-/ Ok, thanks

Re: Localizing title of ModalWindow

2007-08-16 Thread Igor Vaynberg
setTitle(getString(editTitle)); but that method really should take an imodel, please add an rfe -igor On 8/16/07, Tauren Mills [EMAIL PROTECTED] wrote: I'm using a panel based ModalWindow and want to localize the window title. Without localization, I'd do this: modalWindow.setTitle(Edit

Re: Localizing title of ModalWindow

2007-08-16 Thread Tauren Mills
Thanks, Added as https://issues.apache.org/jira/browse/WICKET-854 Tauren On 8/16/07, Igor Vaynberg [EMAIL PROTECTED] wrote: setTitle(getString(editTitle)); but that method really should take an imodel, please add an rfe -igor On 8/16/07, Tauren Mills [EMAIL PROTECTED] wrote: I'm