Re: [Wicket-user] AjaxLink setresponse

2006-08-17 Thread Igor Vaynberg
RequestCycle.java:    /**     * Returns a URL that references the given page. It also     * [EMAIL PROTECTED] Session#touch(Page) touches} the page in the session so that it is     * put in the front of the page stack. Use this method only if you plan to      * use it the next request.     *      *

Re: [Wicket-user] AjaxLink setresponse

2006-08-17 Thread samyem
Unlike setResponsePage, urlFor does not seem to take an instance of a Page, but only Class. What if I want to pass an instance of Page itself? igor.vaynberg wrote: > > if you update to latest code from svn wicket_1_2 branch setresponsepage() > will work. if you cannot upgrade then you have to

Re: [Wicket-user] Pro Wicket beta book available

2006-08-17 Thread Igor Vaynberg
the change is applicable to >1.2.1-IgorOn 8/17/06, Gwyn Evans <[EMAIL PROTECTED]> wrote: One thing that I noticed that might be worth a quick check is theexact state of the Spring integration, as I think Igor did some work that simplified the annotated usage.See http://www.wicket-wiki.org.uk/wiki/i

Re: [Wicket-user] Buttons and Forms

2006-08-17 Thread Eelco Hillenius
Yep. Eelco On 8/17/06, Bruno Borges <[EMAIL PROTECTED]> wrote: > Will this patch be available in WICKET_1_2 ? > > :D > > > > > On 8/17/06, Eelco Hillenius <[EMAIL PROTECTED] > wrote: > > Thanks. I submitted that change. Please anyone, whenever you feel like > > you have to implement some hack to

Re: [Wicket-user] Pro Wicket beta book available

2006-08-17 Thread Gwyn Evans
One thing that I noticed that might be worth a quick check is the exact state of the Spring integration, as I think Igor did some work that simplified the annotated usage. See http://www.wicket-wiki.org.uk/wiki/index.php/Spring#Annotation-based_Approach for what I think the latest is, although I'

Re: [Wicket-user] Buttons and Forms

2006-08-17 Thread Bruno Borges
Will this patch be available in WICKET_1_2 ?:DOn 8/17/06, Eelco Hillenius <[EMAIL PROTECTED] > wrote:Thanks. I submitted that change. Please anyone, whenever you feel like you have to implement some hack to get a Wicket component workingproperly, send this list a note so that we can either confirm

Re: [Wicket-user] AjaxLink setresponse

2006-08-17 Thread Igor Vaynberg
if you update to latest code from svn wicket_1_2 branch setresponsepage() will work. if you cannot upgrade then you have to do target.appendJavascript("window.location="+urlFor(page, IRedirectListener.INTERFACE)); -IgorOn 8/17/06, samyem <[EMAIL PROTECTED]> wrote: What do I need to do to go to a di

Re: [Wicket-user] Creating Panel to display a list of Panels

2006-08-17 Thread Igor Vaynberg
ahh - but RefreshingView doesnt care about ids of its direct children - it can be anything as long as they are unique. it even has a newChildId() which generates unique ids so you dont have to.-Igor On 8/17/06, Frank Silbermann <[EMAIL PROTECTED]> wrote: Excellent suggestion to use Repeater in

[Wicket-user] AjaxLink setresponse

2006-08-17 Thread samyem
What do I need to do to go to a different page as a result the user pressing an ajax link? My problem is that depending on the result of state the page is on, pressing on the link could either lead to a different or change portion of the same page (it's a bit more complex than this, but this shoul

Re: [Wicket-user] Creating Panel to display a list of Panels

2006-08-17 Thread Frank Silbermann
Excellent suggestion to use Repeater instead of ListView.   However, it seemed to me that Charles was having trouble getting the Wicket:id of his sub-panels to match the Wicket:id used in his panel-aggregating HTML. That problem has to be solved whether one uses a ListView or a Repeater.  My

Re: [Wicket-user] Maven2 archetypes

2006-08-17 Thread Nathan Hamblen
There's always... mvn archetype:create -DarchetypeGroupId=net.databinder \ -DarchetypeArtifactId=data-app -DarchetypeVersion=0.6 \ -DgroupId=example -DartifactId=myExample Nathan Martin Funk wrote: > Verry nice, thank you. > > Personally I wouldn't mind seeing a couple wicket-archetypes on

Re: [Wicket-user] Creating Panel to display a list of Panels

2006-08-17 Thread Igor Vaynberg
a better way for creating layout with arbitrary number of panels is to use RepeatingView from extensions - you just keep adding children to it that are panels - much better then creating empty panels ahead of time and there is no overhead. -IgorOn 8/17/06, Frank Silbermann <[EMAIL PROTECTED]> wrote

Re: [Wicket-user] Creating Panel to display a list of Panels

2006-08-17 Thread Frank Silbermann
I had a similar need.  I wanted a panel that would display several arbitrary sub-panels side-by-side:   abstract public class HorizontalPanelGrouper extends Panel{    public HorizontalPanelGrouper( String id ) {   super(id);   add( "wicketIdForPanel1", createPanel1("wicketIdForPan

Re: [Wicket-user] Creating Panel to display a list of Panels

2006-08-17 Thread Igor Vaynberg
i got started on building the component a while back - but dropped the idea because ajax header contributions didnt work yet - o you couldnt wrap anything that had ajax in it. now that they do work i will give it another go. -IgorOn 8/17/06, Juergen Donnerstag <[EMAIL PROTECTED]> wrote: Do you thin

Re: [Wicket-user] Creating Panel to display a list of Panels

2006-08-17 Thread Juergen Donnerstag
Do you think it is worth a quick wicket-example? Juergen On 8/17/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > the best way, imho, to do the collapsable panels is to use borders in > combination with setborderbodyvisible(). that way you can wrap any component > or components into this collapsabl

Re: [Wicket-user] Creating Panel to display a list of Panels

2006-08-17 Thread Igor Vaynberg
the best way, imho, to do the collapsable panels is to use borders in combination with setborderbodyvisible(). that way you can wrap any component or components into this collapsable border and not be limited to only wrapping a panel. the border will contain a header panel that will toggle the visi

Re: [Wicket-user] Creating Panel to display a list of Panels

2006-08-17 Thread Nick Heudecker
This might help:http://www.wicket-wiki.org.uk/wiki/index.php/Forms_with_dynamic_elementsAs far as expandable panels, that's easily accomplished with Wicket's AJAX support.  Email me if you need more help with it.  - Using Tom

[Wicket-user] Creating Panel to display a list of Panels

2006-08-17 Thread Charles A Deal
I am in the process of attempting to rebuild our non-framework, completely homegrown web application as a Wicket application.  So, I am very new to the Wicket way and find myself struggling with different things such as proper page construction techniques for relatively complex data-enabled pages.

Re: [Wicket-user] body onload contributors

2006-08-17 Thread Juergen Donnerstag
I would need the quickstart or even better a junit test for it to follow up. Juergen On 8/17/06, Igor Vaynberg <[EMAIL PROTECTED]> wrote: > actually we should. i remember bugging Juergen about this a long while back > and he fixed it but something mustve broken it again. > > -Igor > > > > On 8/17

Re: [Wicket-user] LoadableDetachableModels and Trees

2006-08-17 Thread Eelco Hillenius
What do you want to use the model for? Eelco On 8/15/06, Bruno Borges <[EMAIL PROTECTED]> wrote: > Is it possible to use LDMs and Trees? > > I find quite difficult to understand how to put them toguether. Could anyone > give some hint? :) > > Thanks > -- > Bruno Borges > Summa Technologies Inc.

Re: [Wicket-user] Buttons and Forms

2006-08-17 Thread Eelco Hillenius
Thanks. I submitted that change. Please anyone, whenever you feel like you have to implement some hack to get a Wicket component working properly, send this list a note so that we can either confirm it is a known issue, or discuss alternatives or like in this case apply a patch. Cheers, Eelco O

Re: [Wicket-user] How to disable some dates in wicket DatePicker ?

2006-08-17 Thread Eelco Hillenius
This seems not to be supported with the component itself. What you could do is extend DatePickerSettings and override method toScript: public String toScript(Locale locale, String format) { String s = super.toScript(locale, format); s += ... your initializat

Re: [Wicket-user] AJAX causes submit to display expired page

2006-08-17 Thread Igor Vaynberg
its probably because your ajax urls are creating new versions of pages - and when you submit the form it unrolls the page version. why cant you use the self updating behavior? if you dont - which is fine - you have to construct the url exactly like it does - those urls do not construct/nor rollback

Re: [Wicket-user] body onload contributors

2006-08-17 Thread Igor Vaynberg
actually we should. i remember bugging Juergen about this a long while back and he fixed it but something mustve broken it again.-IgorOn 8/17/06, Eelco Hillenius <[EMAIL PROTECTED]> wrote: I can imagine something like this yes; we probably don't have a niftyfilter mechanism for onload contribs as

Re: [Wicket-user] A wicket Problem?

2006-08-17 Thread wired
Thank you all for replying. I thought Gwyn's reply was closest to the money - maybe the dtd was to blame as there was a slight difference between the examples. So I removed the data type definition from the wicket page. Alas, no improvement. In the end I went to a good layout resource (http://w

Re: [Wicket-user] Pro Wicket beta book available

2006-08-17 Thread Korbinian Bachl
Hi Karthik, if its not too late for a small wish: i'd love to see the EJB3 part of chapter 5 extended to a full chapter, as wicket+ejb3 looks like the future for me (sb. in the list called it the "holy grail of web development")... e.g. session (stateful / less)beans & messaging beans as well as a

Re: [Wicket-user] Maven2 archetypes

2006-08-17 Thread Martin Funk
I agree completly. Bringing it to ibiblio would mean to set up jet another continuing process of deployment for someone of the wicket team. To make the move towards wicket a little easier I just added patch. https://sourceforge.net/tracker/index.php?func=detail&aid=1541969&group_id=134391&atid=730

Re: [Wicket-user] Pro Wicket beta book available

2006-08-17 Thread karthik Guru
Thank you Per, Korbinian, Ingram, all for for considering the book. Needless to say any kind of feedback would be greatly appreciated. It's a good book you're working with. I do have some comments and have found > a few errors, but I will mail them to you when daytime work is over. Yes ,

Re: [Wicket-user] Maven2 archetypes

2006-08-17 Thread Gwyn Evans
Hadn't thought about it - might be worth leaving it 'till it's on the Wicket repo at least? Maybe wait till Martijn's back to see what he says about ibiblio, but sounds good to me, at least. /Gwyn On 17/08/06, Martin Funk <[EMAIL PROTECTED]> wrote: > Verry nice, thank you. > > Personally I wouldn

Re: [Wicket-user] help: markup in different filename and folder

2006-08-17 Thread Juergen Donnerstag
Look at MarkupContainer.newMarkupResourceStream() or IMarkupResourceStreamProvider in CVS trunk. There even exists an example: custom markup loading Juergen On 8/17/06, Otan <[EMAIL PROTECTED]> wrote: > > > On 8/17/06, Johan Compagner <[EMAIL PROTECTED]> wrote: > > > > But do try to just keep it

Re: [Wicket-user] Pro Wicket beta book available

2006-08-17 Thread Per
Karthik, sorry for misspelling your name. Will not happen again. :) Anyhow, I promise to stand up towards any evil attacks. It's a good book you're working with. I do have some comments and have found a few errors, but I will mail them to you when daytime work is over. /Per On Thursday, August

Re: [Wicket-user] help: markup in different filename and folder

2006-08-17 Thread Otan
On 8/17/06, Johan Compagner <[EMAIL PROTECTED]> wrote: But do try to just keep it besides your classes, in the end it most people are used to that and like it. But this time, my app's requirement is different from the ordinary use case. My app has to load an html markup personalized by users and us

Re: [Wicket-user] Buttons and Forms

2006-08-17 Thread Tymur Porkuyan
By the way, the current implementation of default button ruins design sometimes (I do not exactly remember the case right now, but I can try to reproduce if necessary). I was forced to rewrite the appendDefaultButtonField to add position: absolute to the default pseudo-button. @Overridepro

Re: [Wicket-user] Internationalization support in Wicket

2006-08-17 Thread Johan Compagner
that is not how resource/i18n works.Then the keys in the property file has somehow the locale it it???johanOn 8/17/06, sathya81 < [EMAIL PROTECTED]> wrote:Thanq Johan, well iam able to solve my problem, but still i need to create that number of property files based on the number of locales present,

Re: [Wicket-user] Pro Wicket beta book available

2006-08-17 Thread Korbinian Bachl
so im bad now ;)   on page 4, chapter 1, the listing 1-1 reads a config to bring jetty to port 8080, instead it shows us a 8081   but to be nice, it is the only error i found so far, and this at a beta-book level is really good (im at chapter 3 at moment)   and you should tell apress that th

Re: [Wicket-user] Pro Wicket beta book available

2006-08-17 Thread karthik Guru
Yes, as long as you promise me that you will only have nice things to say about the book :) thanks,karthikOn 8/17/06, Eelco Hillenius < [EMAIL PROTECTED]> wrote:Kathrik, can we - Martijn and me - buy your book too? No copy 'n pasting, we promise! :)EelcoOn 8/15/06, Per <[EMAIL PROTECTED]> wrote:>

Re: [Wicket-user] A wicket Problem?

2006-08-17 Thread Ayodeji Aladejebi
yeah i have had this same problem too. html works fine  from DW but when it is wrapped into a wicket component, it sorts of renders improperly. most times it may be an improper use of div and span combination that litters each component generated and you can use  setStripWicketTags(true) from init

Re: [Wicket-user] Internationalization support in Wicket

2006-08-17 Thread sathya81
Thanq Johan, well iam able to solve my problem, but still i need to create that number of property files based on the number of locales present, but it wud have been better if only a single property file can be used for all the locales...but i think its a bit silly idea to have a single property f

Re: [Wicket-user] Internationalization support in Wicket

2006-08-17 Thread Johan Compagner
you don't need to have 4 html filesWe should rewrite that FormInput example asap for 2.0So that it uses property files and only have 1 markup file.johanOn 8/17/06, sathya81 <[EMAIL PROTECTED]> wrote: hi Juergen,I have gone through the examples, but i dont need that way, there theycreate locale bas

Re: [Wicket-user] Wicket 1.2 and Hibernate 3 slow

2006-08-17 Thread Nino Wael
Completly true, the base of my problems was that I called out dbprovider in a listview which were rerendered at postbacks.   Regards Nino   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Johan Compagner Sent: 17. august 2006 11:37 To: wicket-user@lists.sourceforg

[Wicket-user] AJAX causes submit to display expired page

2006-08-17 Thread Nili Adoram
Hi all, I have a submit button that sets response page to some other page after form is submitted (I override Form.delegateSubmit). In addition there is an AJAX link in that page that refreshes some components in the page every 5 seconds. Since we cannot disable AjaxSelfUpdatingTimerBehavior we u

Re: [Wicket-user] Wicket 1.2 and Hibernate 3 slow

2006-08-17 Thread Nino Wael
Please discard the previous mail… It was another problem..   Regards Nino   From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Nino Wael Sent: 17. august 2006 10:55 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Wicket 1.2 and Hibernate 3 slow   Hi

Re: [Wicket-user] Wicket 1.2 and Hibernate 3 slow

2006-08-17 Thread Johan Compagner
wicket will not sniff (call getModelObject()) on all the components when it just have a request to it.It does ofcourse do that when rendering the page. Because the objects are needed then.And that could be the thing that is different with ajax. Because you don't render the complete page. johanOn 8/

Re: [Wicket-user] help: markup in different filename and folder

2006-08-17 Thread Johan Compagner
you need to make your own resourceloader thenIf you do keep the package structure then it is possible to relocate it to a different folder (IResourceFinder)But do try to just keep it besides your classes, in the end it most people are used to that and like it. johanOn 8/17/06, Otan <[EMAIL PROTECTE

Re: [Wicket-user] Wicket 1.2 and Hibernate 3 slow

2006-08-17 Thread Korbinian Bachl
How are you retrieving the data? (hibernate beans are just data-containers, wich are persistent in the database) Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Nino WaelGesendet: Donnerstag, 17. August 2006 10:55An: wicket-user@lists.sourceforge.netBetreff:

Re: [Wicket-user] help: markup in different filename and folder

2006-08-17 Thread Otan
Or it could also be/home/ludius/myapp/templates/com.company.Page1.htmlOn 8/17/06, Otan <[EMAIL PROTECTED] > wrote:/var/webapps/myapp/WEB-INF/ com.company.Page1.html - Using Tomcat but need to do more? Need to support web ser

[Wicket-user] Wicket 1.2 and Hibernate 3 slow

2006-08-17 Thread Nino Wael
Hi   I have some pages where I use Hibernate beans to hold the contents of my wicket componts, for example if I have a listbox then each dataItem is a Hibernate bean. There seem to be a performance problem with this when I have postbacks to the page, when using AJAX it does not seem to be

[Wicket-user] help: markup in different filename and folder

2006-08-17 Thread Otan
Currently, as suggested by Wicket, my html markup is in the directory where its corresponding java file is located./var/webapps/myapp/WEB-INF/classes/ com/company/Page1.java/var/webapps/myapp/WEB-INF/classes/ com/company /Page1.htmlwhat I want to do now is put Page1.html into different directory a

Re: [Wicket-user] Buttons and Forms

2006-08-17 Thread Eelco Hillenius
Also check out Form#appendDefaultButtonField /** * If a default button was set on this form, this method will be called to * render an extra field with an invisible style so that pressing enter in * one of the textfields will do a form submit using this button.

Re: [Wicket-user] Buttons and Forms

2006-08-17 Thread Eelco Hillenius
There is a best attempt to do this via Wicket, in Form#defaultButton: /** * Sets the default button. If set (not null), a hidden submit button will * be rendered right after the form tag, so that when users press enter in a * textfield, this button's action wil

Re: [Wicket-user] TinyMCE issues with resources

2006-08-17 Thread Eelco Hillenius
Could you please try with Wicket 1.2.1? From that version on we got rid of demanding pre-registration of shared resources, and the SNAPSHOT version - if that is the same as what is in svn - has preregistration removed. Eelco On 8/15/06, Robert McClay <[EMAIL PROTECTED]> wrote: > I'm using wicket

Re: [Wicket-user] Pro Wicket beta book available

2006-08-17 Thread Eelco Hillenius
Kathrik, can we - Martijn and me - buy your book too? No copy 'n pasting, we promise! :) Eelco On 8/15/06, Per <[EMAIL PROTECTED]> wrote: > It covers 1.2, and has some information about what 2.0 will add/change. So > there will definitively be a reason to also get Wicket in Action when it's >

Re: [Wicket-user] Internationalization support in Wicket

2006-08-17 Thread Nino Wael
Im not sure if this helps, but take a look at: http://www.wicket-library.com/wicket-examples/pub regards -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of sathya81 Sent: 17. august 2006 07:34 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Int

Re: [Wicket-user] Internationalization support in Wicket

2006-08-17 Thread sathya81
hi Juergen, I have gone through the examples, but i dont need that way, there they create locale based html files, so if there are 4 locales, i need to create 4 html files for each locale, but in my i cannot do that, so i used the tag. actually inthe index page ,(user login page), wicket is loadi

Re: [Wicket-user] Maven2 archetypes

2006-08-17 Thread Martin Funk
Verry nice, thank you. Personally I wouldn't mind seeing a couple wicket-archetypes on ibiblio, that way a 'simple': - mvn archetype:create -DarchetypeGroupId=wicket -DarchetypeArtifactId=wicket-archetype-template -DgroupId=de.mywicket.app -DartifactId=myfirstwicketapp could get you started with

Re: [Wicket-user] body onload contributors

2006-08-17 Thread Eelco Hillenius
I can imagine something like this yes; we probably don't have a nifty filter mechanism for onload contribs as we have for header contributions. If you could open up an issue for this, we could take a look. Thanks, Eelco On 8/16/06, Nili Adoram <[EMAIL PROTECTED]> wrote: > Hi, > > I have attached

Re: [Wicket-user] Internationalization support in Wicket

2006-08-17 Thread Juergen Donnerstag
Did you look at wicket-examples already? The form example and the pub example both suppport multiple locales. There should be no need for you load the properties file explicitly not should you add a locale variable to the session. Juergen --

Re: [Wicket-user] body onload contributors

2006-08-17 Thread Juergen Donnerstag
Could provide us a quickstart application for us? Make debugging easier. thanks. Juergen On 8/17/06, Nili Adoram <[EMAIL PROTECTED]> wrote: > Hi, > > I have attached a AjaxSelfUpdatingTimerBehavior to one of the page > components and discovered that when I navigate from on link to the other > the