Re: [Wicket-user] set an anchor to land on in onSubmit

2006-03-13 Thread kurt heston
I figured it out. I was changing the model in a place that was being executed every time. False alarm. :) kurt heston wrote: Thanks, Arto. I'm using it, works fine. Arto Arffman wrote: Well, I have used different approach; with javascript you can scroll to where you were before hitting sub

Re: [Wicket-user] set an anchor to land on in onSubmit

2006-03-13 Thread kurt heston
Thanks, Arto. I'm using it, works fine. Arto Arffman wrote: Well, I have used different approach; with javascript you can scroll to where you were before hitting submit. I once posted a behaviour that automatically takes care of that. I found it from archives ( http://sourceforge.net/mailarch

[Wicket-user] two forms on the same page

2006-03-13 Thread kurt heston
I've got a page with two forms on it. They both use a CompoundPropertyModel and work perfectly aside from one thing: they don't update when their model changes. I've passed a reference of the same POJO instance to each of them. public class MyPage extends WebPage { SomePojoClass pojo = new So

Re: [Wicket-user] AjaxSubmitButton How To?

2006-03-13 Thread Igor Vaynberg
i added an example of ajaxsubmitbutton to the ajax examples in wicket. go to form example and there will be two buttons, the ajax submit and a regular submit. the ajax submit will validate the form and update the feedback panel via ajax. there is also a wicket ajax debug feature that might help you

Re: [Wicket-user] Evaluation question

2006-03-13 Thread Igor Vaynberg
you can use markup inheritance and add the common components to the super class. there is an explanation on our wiki.-IgorOn 3/13/06, Matthias Albert <[EMAIL PROTECTED]> wrote:Thank you for your very quick response. I found out myself what caused this error. I used one of my orginal HTMLpages that

Re: [Wicket-user] Evaluation question

2006-03-13 Thread Matthias Albert
Thank you for your very quick response. I found out myself what caused this error. I used one of my orginal HTML pages that didn't have a wicket id. But this raises my nect question: Is there a way to automatically use the same component id for a navigation component in all pages so that thes

[Wicket-user] Re: Request for a feature!

2006-03-13 Thread nato
Disregard this message of mine. It's nonsense. (I think I must learn Wicket first or exert some of my brains effort before sending to this list a foolish question like this so that noone's valuable time is wasted.) Hmmm. I think I love Wicket now. If Wicket were a lady, I would kiss and hug her. :

[Wicket-user] Re: Request for a feature!

2006-03-13 Thread nato
Disregard this message of mine. It's nonsense. (I think I must learn Wicket first or exert some of my brains effort before sending to this list a foolish question like this so that noone's valuable time is wasted.) Hmmm. I think I love Wicket now. If Wicket were a lady, I would kiss and hug her. :

Re: [Wicket-user] WicketTester replaces Application class

2006-03-13 Thread Ingram Chen
yea... That's one of major drawback of WicketTester since it heavily relies on MockWebApplication. so I personnally avoid to use Application to manage resources.To test with Spring, wiki has an excellent integration and testing, see:    http://www.wicket-wiki.org.uk/wiki/index.php/SpringYou may got

Re: [Wicket-user] nesting components

2006-03-13 Thread Vincent Jenks
Thank you!On 3/13/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: As you nest them, you should do:add(currentLink);currentLink.add(new Label("linkName", linkName));instead of:add(currentLink);add(new Label("linkName", linkName)); which adds those two components at the same level.EelcoOn 3/13/06, Vin

Re: [Wicket-user] nesting components

2006-03-13 Thread Eelco Hillenius
As you nest them, you should do: add(currentLink); currentLink.add(new Label("linkName", linkName)); instead of: add(currentLink); add(new Label("linkName", linkName)); which adds those two components at the same level. Eelco On 3/13/06, Vincent Jenks <[EMAIL PROTECTED]> wrote: > I'm trying

[Wicket-user] nesting components

2006-03-13 Thread Vincent Jenks
I'm trying to nest a Label within a Link so the name of the link displayed is dynamic (please fill me in if there's a better way.)Here's my Link & Label on the page:link Here's the panel class:public class TrailPanel extends Panel{    public TrailPanel(String id, String linkName)    {        super(

Re: [Wicket-user] Request for a feature!

2006-03-13 Thread nato
You're right. I was actually looking at the wrong page that's why I did not see the querystring. On 3/14/06, Johan Compagner <[EMAIL PROTECTED]> wrote: > what do you mean? > you can append anything you want as a page parameter as long as it can be > presented in a string. > You just have to make i

Re: [Wicket-user] Request for a feature!

2006-03-13 Thread Johan Compagner
what do you mean?you can append anything you want as a page parameter as long as it can be presented in a string.You just have to make in visible in the url just like i did in the example i gave you:> new BookmarkablePageLink("id", MyPage.class, new> PageParameters().put("locale",locale.toString()

Re: [Wicket-user] Request for a feature!

2006-03-13 Thread nato
But the locale param is not bookmarkable; the param is not visible in the URL. BTW I'm using Wicket 1.2beta On 3/13/06, Johan Compagner <[EMAIL PROTECTED]> wrote: > make youre bookmarkable url with the locale param yourself: > > new BookmarkablePageLink("id", MyPage.class, new > PageParameters().p

Re: [Wicket-user] IllegalStateException in WebSession.valueUnbound 1.2beta1 on Tomcat 5.5.15

2006-03-13 Thread Johan Compagner
and i agreeIt is a stupid implementation or stupid spec or what everit doesn't make any sense that you get an value unboundBut can't do anything with it (just asking for stuff not setting then it can throw an error) johanOn 3/13/06, Jerry Smith <[EMAIL PROTECTED]> wrote: Undeploying and redeploying

Re: [Wicket-user] IllegalStateException in WebSession.valueUnbound 1.2beta1 on Tomcat 5.5.15

2006-03-13 Thread Johan Compagner
already fixed in head.On 3/13/06, Jerry Smith <[EMAIL PROTECTED]> wrote: Undeploying and redeploying my webapp I'm getting:java.lang.reflect.InvocationTargetExceptionat sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)atsun.reflect.NativeMethodAccessorImpl.invoke (NativeMe

[Wicket-user] 2 days until end of vote for the OScars

2006-03-13 Thread Martijn Dashorst
Vote for Wicket if you haven't done so already! There is some stiff competition in the development category, so we need your vote!http://www.wilsonresearch.com/2006/ostgawards06/ostgawards4.php Martijn-- Nominate Wicket for the SourceForge.net's Choice awards!http://www.wilsonresearch.com/2006/ostg

[Wicket-user] WicketTester replaces Application class

2006-03-13 Thread Nick Heudecker
The problem with WicketTester is it replaces your Application subclass, so if you're using something like Spring, you no longer have access to Spring-managed beans.  Is there a convenient workaround for this?

Re: [Wicket-user] AjaxSubmitButton How To?

2006-03-13 Thread Ali Zaid
Eelco :), nothing till this moment about wicket I don't like, my only hope is that wicket in Action be realesed soon, and I cover my weak points, which I still have allot, other wise, I'm finishing my 2ed application using wicket, and I have never been as productive and impressive as I am now using

Re: [Wicket-user] AjaxSubmitButton How To?

2006-03-13 Thread Eelco Hillenius
Good to hear. Just remember there is no perfect framework, and you *will* find things about Wicket you don't like. Anyway, if you find them, it's open source and please help our community to improve it. Eelco > Igor you will not believe the amount of popularity wicket is gaining > (in my working

[Wicket-user] IllegalStateException in WebSession.valueUnbound 1.2beta1 on Tomcat 5.5.15

2006-03-13 Thread Jerry Smith
Undeploying and redeploying my webapp I'm getting: java.lang.reflect.InvocationTargetException at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.jav a:39) at sun.reflect.DelegatingMethodAcc

Re: [Wicket-user] JavaOne, Wicket, NetBeans

2006-03-13 Thread Riyad Kalla
This is fantastic headway, keep it up guys. IDE support for Wicket is in high demand and I'm sure most people on this list appreciate the exposure and time you are putting towards this. Best, Riyad Geertjan Wielenga wrote: Hi all, OK, Petr Pisl (my co-presenter for JavaOne, see previous e-m

Re: [Wicket-user] JavaOne, Wicket, NetBeans

2006-03-13 Thread Geertjan Wielenga
Hi all, OK, Petr Pisl (my co-presenter for JavaOne, see previous e-mail for details) and I have made some progress on our Wicket plugin. Here it is described: http://blogs.sun.com/roller/page/geertjan?entry=wicket_increasing_productivity_even_further So, now you can select the Wicket librar

Re: [Wicket-user] Best practice for handling exceptions?

2006-03-13 Thread Igor Vaynberg
you dont do anything fancy. wrap that exception in a runtime exception and throw that. wicket will show the default error page by default. if you want to have a custom one simple create a page and set its class into application settings.seterrorpage() or whatever that method is called.-IgorOn 3/13

[Wicket-user] Best practice for handling exceptions?

2006-03-13 Thread Frank Silbermann
I have a DataTable (Wicket-extensions) that gets data from JDBC.  My implementation of:   java.util.Iterator IDataProvider.iterator(int first, int count)   throws a variety of API exceptions (e.g. SQLException) which I have to catch, because the IDataProvider interface does not allow m

Re: [Wicket-user] reference to image within CSS

2006-03-13 Thread Eelco Hillenius
What he needs is the ability to relatively address those images from CSS. This works, but currently not without those images being registered as package resources yet. See DatePicker for an example. Eelco On 3/13/06, Johan Compagner <[EMAIL PROTECTED]> wrote: > that won't fix Siddharth problem >

Re: [Wicket-user] reference to image within CSS

2006-03-13 Thread Johan Compagner
that won't fix Siddharth problemBecause he needs an url that is dynamic inside a css.johanOn 3/13/06, Eelco Hillenius < [EMAIL PROTECTED]> wrote:I am currently investigating if we can do without the explicit registration. We can't totally do without, as we need at leastclassloader to load any resou

Re: [Wicket-user] reference to image within CSS

2006-03-13 Thread Eelco Hillenius
I am currently investigating if we can do without the explicit registration. We can't totally do without, as we need at least classloader to load any resources like that, but the intend now is to make it at least easier. More about this later this week. Eelco On 3/13/06, Siddharth Agarwal <[EMAIL

Re: [Wicket-user] AjaxSubmitButton How To?

2006-03-13 Thread Igor Vaynberg
On 3/13/06, Ali Zaid <[EMAIL PROTECTED]> wrote: Igor you will not believe the amount of popularity wicket is gaining(in my working group), it's becoming like the savior of our life.awesome to hear! enjoy :)-Igor

Re: [Wicket-user] ListView: Rendering table row id attribute

2006-03-13 Thread Michael K
Title: Re: [Wicket-user] ListView: Rendering table row id attribute Hi Karl,I thought it will be much easier if I use row (or may be I 'm wrong) instead of retrieving 'tr' element. In real situation I 'm going to use it against a nested table and use _javascript_ to toggle (hide/visible) for each r

Re: [Wicket-user] Ajax tree view

2006-03-13 Thread Christophe Lombart
ok thanks I will investigate the ajaxfallbacklinks On 3/13/06, Matej Knopp <[EMAIL PROTECTED]> wrote: > Well, few months ago I took wicket tree view and "converted" it to ajax > tree view in basicaly in couple of minutes, just replacing links with > ajaxfallbacklinks. But since then the wicket aj

Re: [Wicket-user] Ajax tree view

2006-03-13 Thread Matej Knopp
Well, few months ago I took wicket tree view and "converted" it to ajax tree view in basicaly in couple of minutes, just replacing links with ajaxfallbacklinks. But since then the wicket ajax implementation change a bit so it wouldn't work now (even if it had i would have hard time finding the

Re: [Wicket-user] Testing form with multiple submit buttons?

2006-03-13 Thread Ingram Chen
I recall that last week I suggest trying this: FormTester formTester = wicketTester.newFormTester(false); formTester.setValue("myButton", "whatever"); formTester.submit() ;Does this not work for you ?On 3/13/06, Nino Wael <[EMAIL PROTECTED] > wrote:HiI have a form with multiple submit buttons, how

Re: [Wicket-user] Ajax tree view

2006-03-13 Thread Juergen Donnerstag
Not as far as I know, unfortunately. Juergen On 3/13/06, Christophe Lombart <[EMAIL PROTECTED]> wrote: > Hi all, > > First of all, you are making a very nice job - just a couple of > minutes to build a ajax tab pane with a very limited wicket knowledge. > > Is there already an ajax treeview comp

[Wicket-user] Ajax tree view

2006-03-13 Thread Christophe Lombart
Hi all, First of all, you are making a very nice job - just a couple of minutes to build a ajax tab pane with a very limited wicket knowledge. Is there already an ajax treeview component somewhere ? Thanks -- Best regards, Christophe --- Th

Re: [Wicket-user] reference to image within CSS

2006-03-13 Thread Johan Compagner
don't know if the base wicket core should handle this.This means some kind of parser in wicket for those kind of files.please make a RFE for this.johanOn 3/13/06, Siddharth Agarwal <[EMAIL PROTECTED]> wrote: Thanks Johan !  So having something like this hardcoded..   background: url(contextroot/wi

Re: [Wicket-user] reference to image within CSS

2006-03-13 Thread Siddharth Agarwal
Thanks Johan !  So having something like this hardcoded..   background: url(contextroot/wicketservlet/resources/my.com.package.MyCom/images/hello.gif) ; is probably ruled out since if i were to ship a component, I would not have any idea of the user's contextroot etc?.   So the only way left is to

[Wicket-user] Testing form with multiple submit buttons?

2006-03-13 Thread Nino Wael
Hi I have a form with multiple submit buttons, how do I click the correct button? On formtester I can only set the submit method. Which does not allow med to specify which button to click. -regards Nino

Re: [Wicket-user] reference to image within CSS

2006-03-13 Thread Johan Compagner
fist of all you have to do this:com -something   -component   -MyComp.java   -style.css     -images - hello.gif   or thiscom -something   -compon

[Wicket-user] reference to image within CSS

2006-03-13 Thread Siddharth Agarwal
Hi,   I have a CSS that has something like this .. style.css---.style1 { width:16px; height:22px;  background: url(../../images/hello.gif) ; }--- I have style.css in the same package as the components and have added it as aStyleSheetReference. How do i make sure that the images insi

Re: [Wicket-user] getMarkupSettings().setStripWicketTags(true);

2006-03-13 Thread Johan Compagner
move that call from youre web application constructor to the init method of the webapplication.You shouldn't configure anything anymore in the constructor of youre WebApplicationAlways do everything in the init() johanOn 3/13/06, Dorel Vaida <[EMAIL PROTECTED]> wrote: this doesn't have any effect i

Re: [Wicket-user] ListView: Rendering table row id attribute

2006-03-13 Thread Karl-Erik Rønsen
Title: Re: [Wicket-user] ListView: Rendering table row id attribute Why do you need to set an id for each row? Instead you can set an id for the table element and call: var myRow = document.getElementById( “tableId” ).getElementsByTagName( “tr” )[indexOfRowYouWant]; Karl-Erik On 13-03-06 12

Re: [Wicket-user] ListView: Rendering table row id attribute

2006-03-13 Thread Dirk Markert
Well,   actually it is   protected void populateItem(final ListItem listItem) {listItem.add(new AttributeModifier("id", .., new Model("row" + listItem.getIndex() )); }  Dirk  2006/3/13, Dirk Markert <[EMAIL PROTECTED]>: Hi Michael,   you need an AttributeModifier. Something like   protected v

Re: [Wicket-user] ListView: Rendering table row id attribute

2006-03-13 Thread Dirk Markert
Hi Michael,   you need an AttributeModifier. Something like   protected void populateItem(final ListItem listItem) {    add(new Label("name","Scooby").new AttributeModifier("id", .., new Model("row" + listItem.getIndex())); }  Dirk   2006/3/13, Michael K <[EMAIL PROTECTED]>: Hi,I want to be

[Wicket-user] getMarkupSettings().setStripWicketTags(true);

2006-03-13 Thread Dorel Vaida
this doesn't have any effect in version 1.2 beta1 getMarkupSettings().setStripWicketTags(true); Can someone chech that out please. Maybe I'm doing something wrong. Thanks --- This SF.Net email is sponsored by xPML, a groundbreaking scripting

[Wicket-user] ListView: Rendering table row id attribute

2006-03-13 Thread Michael K
Hi,I want to be able to render id="row" attribute when using ListView. I need it to code _javascript_ using getElementById(). Please find the examples below:Html code:---    name    name    nameJava code:---add(new ListView("rowToRender",someArrayList){   protected void popu

Re: [Wicket-user] AjaxSubmitButton How To?

2006-03-13 Thread Ali Zaid
Yes :), I'm working on it again now, I will inform you of the result as soon I'm done. Igor you will not believe the amount of popularity wicket is gaining (in my working group), it's becoming like the savior of our life. Regards, Ali On 3/13/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > did yo

Re: [Wicket-user] wiki in wicket?

2006-03-13 Thread David Leangen
Cool! I'm very interested. I'm also interested in any blogging impl that may be availabled based on wicket. Now... try to get some normal sleep! ;-) On Fri, 2006-03-10 at 01:05 -0800, Igor Vaynberg wrote: > there was some talk about building a wiki/cms with wicket in ##wicket > and i had a bit

Re: [Wicket-user] Re: Snapshots at some maven2 repo?

2006-03-13 Thread Gwyn Evans
I think that's the right level - betas (& RC's, I presume) fine but snapshots would be too ephemeral. /Gwyn On 13/03/06, Nathan Hamblen <[EMAIL PROTECTED]> wrote: > Yeah it was no problem. They've gotten a lot better at handling the > upload requests to Maven repos, including source attachments.

Re: [Wicket-user] Request for a feature!

2006-03-13 Thread Johan Compagner
make youre bookmarkable url with the locale param yourself:new BookmarkablePageLink("id", MyPage.class, new PageParameters().put("locale",locale.toString()));And then in youre constructor of the page set the locale you are given. johanOn 3/12/06, nato <[EMAIL PROTECTED]> wrote: [Warning: my English

Re: [Wicket-user] AjaxSubmitButton How To?

2006-03-13 Thread Igor Vaynberg
did you call form.setOutputMarkupId(true) ?-IgorOn 3/12/06, Ali Zaid <[EMAIL PROTECTED]> wrote: I did, but it's abstract and I have to override onSubmit, still Idid,and it didn't work, Iwill give it more try. Thanks! :)On 3/13/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote:> all you have to do is atta