[Wicket-user] 13 classes where needed for HelloWorld example ?

2006-05-31 Thread Pierre-Yves Saumont
Hi, I just started to try Wickets. It' supposed to be so simple to use ! I first discovered that the Helloworld example won't work. WebApplication has no getPages() method, but has an abstract getHomePages() method that needs to be implemented by the HelloWorldApplication class. Obviously,

Re: [Wicket-user] Is there a shuttle(?) component?

2006-06-01 Thread Pierre-Yves Saumont
Double clicking on the right arrow give the same result as clicking the left arrow. Furthermore, selecting an entry in the left pane and clicking on the left arrow twice in a row will put the selected entry in the right pane and back in the left one. (So that the second clic, although not a

Re: [Wicket-user] How to programatically link to a css or a script ?

2006-07-23 Thread Pierre-Yves Saumont
Thanks Igor ! It looks really smart and works perfectly. I have now to read Eelco's explanations to understand how all this is working, and try 1.2.1. Igor Vaynberg a écrit : class MyImage extends WebComponent { private int width; private int height; private string url; private

[Wicket-user] Controlling 'class' parameter for a link element

2006-07-24 Thread Pierre-Yves Saumont
hi, I am now struggling with a new problem : I need to programmatically set the class attribute of a html link (a element). I tried to extend the Link element, but unfortunately, the onComponentTag method is final. (for some reasons, I cannot use another clickable element). Any idea ? Thanks,

Re: [Wicket-user] Controlling 'class' parameter for a link element

2006-07-25 Thread Pierre-Yves Saumont
Thanks to Justin, Franck, Eelco and Igor for the instant answers ! I am now going to spend a few hours on the next problem before bothering you again ! Pierre-Yves Eelco Hillenius a écrit : link.add(new SimpleAttributeModifier(class, myclass)); or use AttributeModifier if you need more

Re: [Wicket-user] How change character encoding

2006-07-29 Thread Pierre-Yves Saumont
Hi, I am new in using Wicket, but I had this problem with all the Frameworks I used before. In Wicket, it was absolutely no problem since I just added : meta http-equiv=Content-Type content=text/html; charset=iso-8859-1 in the HTML template to make it work. It seems Wicket managed this

[Wicket-user] JavaScriptReference not working with IE6

2006-07-31 Thread Pierre-Yves Saumont
Hi, I have a page with the head element loading a script file using JavaScript reference. It works fine with Firefox, but when I try to load the page in IE6, it displays an error message saying IE cannot load the page. However, if I inline the script, it works. The static version of the page

Re: [Wicket-user] How change character encoding

2006-08-01 Thread Pierre-Yves Saumont
). This approach has proven to be working very well and there are numerous discussions in the various archives why we are doing it that way in case you are interested. Juergen On 7/29/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: Hi, I am new in using Wicket, but I had this problem with all

Re: [Wicket-user] JavaScriptReference not working with IE6

2006-08-01 Thread Pierre-Yves Saumont
like (copy from show source in your browser). It should be something like script type=text/javascript src=... /. Could there be anything wrong with that? Eelco On 7/31/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: Hi, I have a page with the head element loading a script file using

Re: [Wicket-user] How change character encoding

2006-08-01 Thread Pierre-Yves Saumont
look at the same css page in FF and IE without the declaration.) johan On 8/1/06, *Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Thanks for the information. However, it appears that saving the files in the correct encoding, is not enough. One

Re: [Wicket-user] How change character encoding

2006-08-01 Thread Pierre-Yves Saumont
().setStripXmlDeclarationFromOutput(false) removes the XML decl from the output to the browser. Juergen On 8/1/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: Hi Johan, Very good advice indeed ! It appears (from http://hsivonen.iki.fi/doctype/) that : !DOCTYPE html PUBLIC -//W3C//DTD XHTML 1.0 Transitional

Re: [Wicket-user] HTML tools

2006-08-01 Thread Pierre-Yves Saumont
By hand ! On reason for choosing Wicket was the hability to edit HTML template in an HTML WYSIWYG editor. When I started to create my first application with wicket, I decided to switch to full CSS design. Although I could make a rather complicated design that display the same in IE and

[Wicket-user] WicketMessage: No get method defined for class: class java.lang.Integer expression: id

2006-08-03 Thread Pierre-Yves Saumont
Hello, Wicket's error message are generally full of useful details, but this one is a bit more tricky : WicketMessage: No get method defined for class: class java.lang.Integer expression: id It does not say anything about where the problem happens. As I had several classes that had ids of

Re: [Wicket-user] WicketMessage: No get method defined for class: class java.lang.Integer expression: id

2006-08-03 Thread Pierre-Yves Saumont
. The POJO you use doesn't have a get method for the property defined. Frank On 8/3/06, *Pierre-Yves Saumont * [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello, Wicket's error message are generally full of useful details

[Wicket-user] Question about ChoiceRenderer

2006-08-03 Thread Pierre-Yves Saumont
In the Javadoc, it is written that only with this syntax : new DropDownChoice(users, new Model(selectedUser), listOfUsers) will toString() be used for display value. However, what happens with a syntax like : DropDownChoice laboratoireDropDown = new DropDownChoice( users, new

Re: [Wicket-user] Question about ChoiceRenderer

2006-08-03 Thread Pierre-Yves Saumont
Sorry, I made a mistake. The object do have a user property, but Wicket is still using toString(). Is it normal ? Pierre-Yves Pierre-Yves Saumont a écrit : In the Javadoc, it is written that only with this syntax : new DropDownChoice(users, new Model(selectedUser), listOfUsers

Re: [Wicket-user] VOTE: how should localized attributes work?

2006-08-03 Thread Pierre-Yves Saumont
2 [x] Eelco Hillenius a écrit : For localized attributes - so that you don't have to attach attribute modifiers all over the place for that sole reason - we have two alternative approaches in mind. For end-users this would either look like: 1) input type=submit value=wicket:i18n:my_key/

[Wicket-user] no-cache in development mode

2006-08-04 Thread Pierre-Yves Saumont
Hi, I like to have browser be automatically instructed not to cache anything when in Wicket development mode. (I can't count the times I did not remember to clear the cache after making some modification in a CSS and couldt not find why the changes were not visible). May be it's there and I

Re: [Wicket-user] static progress bar component

2006-08-05 Thread Pierre-Yves Saumont
Mais be I do not fully understand your need, but a static progress bar can be made very easily in HTML by just creating a rectangular div of the width you want to represent 100%, with for example a black border and a white background. Inside that div, you put another one with colored

[Wicket-user] Exception with AjaxTabbedPanel

2006-08-06 Thread Pierre-Yves Saumont
Hello, I am trying to understand how to use AjaxTabbedPanel by running the corresponding example. However, I am getting the exception below. I looked to the sources but could not find the reason. Any Idea ? Pierre-Yves 18:43:55,156 ERROR [[ajax]] Servlet.service() for servlet ajax threw

Re: [Wicket-user] CSS not found

2006-08-06 Thread Pierre-Yves Saumont
I would be very interested to know how you compare Wicket and Stripes and why you're leaning toward Wicket. (I didn't know about Stripes, but at first glance, it seems much simpler than Wicket, which I have been struggling with for two weeks now without much success!). Pierre-Yves Bill Bruyn

[Wicket-user] HTML template missing

2006-08-07 Thread Pierre-Yves Saumont
Hello, I am trynig to run the PageablesPage example after having copied the bare minimum to my project. Obviously, something is missing but I can't figure what. I get the followinig error message : Markup of type 'html' for component 'com.volgadev.aloha.web.AjaxTest' not found. Enable debug

Re: [Wicket-user] HTML template missing

2006-08-07 Thread Pierre-Yves Saumont
inheritence. Hence you need the parents markup as well. Look at AjaxTest.java and what classes it is derived from and copy the *.java and *.html as well. E.g. PageablesPage is derived from BasePage and BasePage.html. Juergen On 8/7/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: Hello, I

Re: [Wicket-user] CSS not found

2006-08-07 Thread Pierre-Yves Saumont
some more here: http://www.virtuas.com/articles/webframework-sweetspots.html Eelco On 8/6/06, Pierre-Yves Saumont [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I would be very interested to know how you compare Wicket and Stripes

[Wicket-user] Ajax Tab Panel

2006-08-07 Thread Pierre-Yves Saumont
Hi, Is there a way to control the AbstractTabPanel HTML template ? What I need to do is to have the tabs in a div and the panels in another one (so they can be formated as a whole). I also needs to have the tabs div come AFTER the panels div in the template (because I cannot use z-index and

Re: [Wicket-user] CSS not found

2006-08-07 Thread Pierre-Yves Saumont
in Action* over and over again. Cheers, Wilko *) I hope Wicket in Action will turn out to be a bit more functional btw Pierre-Yves Saumont wrote: I will also by the book as soon as it is available... unless I give up before :-( Pierre-Yves James Cook a écrit : I wouldn't

Re: [Wicket-user] CSS not found

2006-08-07 Thread Pierre-Yves Saumont
Karthik Gurumurthy is working on another book on Wicket, pro Wicket: http://www.apress.com/book/bookDisplay.html?bID=10189, which should be out and of which you can download parts today. Yes, according to APres web site, it is possible to buy the Beta eBook now and download immediatly the 0

[Wicket-user] Problem with Javascript function calls in AJAX loaded document with IE6

2006-08-08 Thread Pierre-Yves Saumont
Hello, I have an AJAX tabbed panel that works smoothly except for one little thing. The first tab contains a form with an OnSubmit event handler. For testing purpose, the handler is as follow : onsubmit=alert('On Submit');return alertOnSubmit('alertOnSubmit') The alertOnSubmit function just

[Wicket-user] Wicket Ajax form example not finding script

2006-08-08 Thread Pierre-Yves Saumont
hi, I tried to test the Ajax form example. If the servlet mapping is : servlet-mapping servlet-nameajax/servlet-name url-pattern/app/ajax/url-pattern /servlet-mapping The ajax script can't be found because the path (in the sources) is script type=text/javascript

[Wicket-user] Problem with empty markupId

2006-08-08 Thread Pierre-Yves Saumont
Hi, I am trying to implement an ajax form. The form is supposed to update a listView. Basically, the onSubmit handler create a new listView after having updated the database. It ends with those instructions : myList = DataObjectsFactory.getMyList(); myListView = new MyListView(id, myList);

Re: [Wicket-user] Problem with empty markupId

2006-08-09 Thread Pierre-Yves Saumont
)); and then in the ajax handler all you have to do is to add the listview to the target so it is queued for repainting : target.add(mylistview); -Igor On 8/8/06, *Frank Bille* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: On 8/9/06, *Pierre-Yves Saumont* [EMAIL PROTECTED] mailto

[Wicket-user] Ajax Submit default to Non Ajax Submit ?

2006-08-09 Thread Pierre-Yves Saumont
Hello, I am still trying to make my Ajax form working, with no success until now. I have made a simple example that works in a standalone page. I have then copied this example in a page of my app, and it don't work. What is surprising is that no code in the Ajax OnSubmit handler is executed,

Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)

2006-08-10 Thread Pierre-Yves Saumont
() itself. In IE6, THREE objects are added because getMyObjectList() is called twice : once before adding the object from the file and once after. The end result is the list contains two more object from the method and one from the form. Isn't that surprising ? Pierre-Yves Pierre-Yves Saumont

Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)

2006-08-10 Thread Pierre-Yves Saumont
the test case ? If you do, can you tell me what to send exactly ? A self contained working archive of the quickstart project is about 3Mb. Is that OK ? Pierre-Yves Johan Compagner a écrit : do you have a simple test case in a quickstart project? On 8/10/06, *Pierre-Yves Saumont* [EMAIL PROTECTED

Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)

2006-08-10 Thread Pierre-Yves Saumont
, Pierre-Yves -Igor On 8/10/06, * Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I eventually could not reproduce the problem in a test case. However, I have been able (??) to produce another problem of the same kind, ie something that does

Re: [Wicket-user] Mounted URL Differences

2006-08-10 Thread Pierre-Yves Saumont
When one gets an url like : http://localhost:8081/test/app?wicket:interface=:2:3: What does the rightmost digit (3) means ? Pierre-Yves Igor Vaynberg a écrit : On 8/10/06, *spencer.c* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I have an app that I've created for testing

Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)

2006-08-10 Thread Pierre-Yves Saumont
Windows. Is there a way to track what is happening ? Pierre-Yves Igor Vaynberg a écrit : a tab is by istelf a panel, set the ajax target to the panel itself. and please do continue this on the list so that others can also benefit from the discussion. -Igor On 8/10/06, *Pierre-Yves Saumont

Re: [Wicket-user] ListView updated twice in IE6 (Was : Ajax Submit default to Non Ajax Submit ?)

2006-08-11 Thread Pierre-Yves Saumont
, *Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I am sorry, I just hit reply and although sometimes it goes to the list, sometimes not :-( I tried to use the enclosing tab as the target, as well as the panel that was used in the standalone version

[Wicket-user] Component created 18 times in IE versus twice in Firefox

2006-08-11 Thread Pierre-Yves Saumont
Hi, I was curious to see how many instance of components were created, so I just added a counter to a panel. I appears that when I load the page for the first time in Firefox, the panel component is created twice. (I would have guess once...) In IE6, in the same situation (server restarted),

Re: [Wicket-user] Component created 18 times in IE versus twice in Firefox

2006-08-11 Thread Pierre-Yves Saumont
!) I'll see if I can strip down the application and isolate what is causing the problem. Pierre-Yves Matej Knopp a écrit : I'm not sure I understand what's going on. Could you provide a test-case or a quick start application? -Matej Pierre-Yves Saumont wrote: Hi, I was curious

Re: [Wicket-user] Best practice to clear a form ?

2006-08-11 Thread Pierre-Yves Saumont
No, I mean that after submiting the form, a component in the same page is updated through Ajax. The form itself is updated from the XML data received as a response to the Ajax call. So I want to clear the form data so that the form is automatically reset. Pierre-Yves Jean-Baptiste Quenot a

Re: [Wicket-user] Component created 18 times in IE versus twice in Firefox

2006-08-11 Thread Pierre-Yves Saumont
:com.volgadev.cea.pages.PageReponses On each reload, the number in the url is incremented by 1 and two instances are created ! Pierre-Yves Pierre-Yves Saumont a écrit : no, it is mapped to /app/* The url displayed in the browser is: http://localhost:8080/ceagrap/app?wicket:bookmarkablePage=wicket-18

Re: [Wicket-user] Component created 18 times in IE versus twice in Firefox

2006-08-11 Thread Pierre-Yves Saumont
Pierre-Yves Saumont wrote: After searching the documentation, I realized I should not have called super() in my page constructor. By removing this, I made things a little better : In Firefox, it works smoothly. One instance is created on the first access. One instance is created again

[Wicket-user] Customizing AjaxSubmitButton

2006-08-11 Thread Pierre-Yves Saumont
Hello, I am trying to customize an AjaxSubmitButton. If a certain condition is detected in the onSubmit handler, it should trigger my own Javascript function. I have tried to do this : onSubmit(AjaxRequestTarget target, Form form) { if (condition) {

Re: [Wicket-user] Customizing AjaxSubmitButton

2006-08-11 Thread Pierre-Yves Saumont
target.appendjavascript(foo) -Igor On 8/11/06, *Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello, I am trying to customize an AjaxSubmitButton. If a certain condition is detected in the onSubmit handler, it should trigger my own Javascript function. I

Re: [Wicket-user] AjaxEventBehavior + TR element + IE6

2006-08-12 Thread Pierre-Yves Saumont
Hi Lorin, Quoting Igor : you cannot update tr/tbody/etc tags via outerhtml (see http://www.nabble.com/Ajax-Submit-default-to-Non-Ajax-Submit---tf2081101.html#a5751334) I had a similar problem with TBODY. Although it was supposed not to work, it worked in Firefox, but not in IE6 (which was

Re: [Wicket-user] Woogle and Woogle

2006-08-15 Thread Pierre-Yves Saumont
The-Mean-Search-Machine-For-Finding-The-Coolest-Resources-About-The-Hottest-Tech-Evah! (or TMSMFFTCRATHTE.com) I love this one ;-) Pierre-Yves Frank Bille a écrit : Hmm well.. I'm not expecting Woogle to be popular, but maybe you're right anyway. I lige Woogle, but I'm no fanatic

[Wicket-user] How to set the src attribute for a AjaxSubmitButton of type image ?

2006-08-19 Thread Pierre-Yves Saumont
Hello, Can someone tell me how to set the src attribute for a AjaxSubmitButton of type image ? I tried using an AttributeModifier, but in that case, the url is not translated. I was able to hard code the translated url, but this is ugly. What is the correct way to do this ? Thanks,

Re: [Wicket-user] Component created 18 times in IE versus twice in Firefox

2006-08-25 Thread Pierre-Yves Saumont
The origin of the problem was that I was calling super() in the constructor and it happens that this made the pages bookmarkable. By removing super(), it is now nearly working. Nearly only since with IE6, the page get called twice, but I can afford that ! (I hope this problem, as well as many

Re: [Wicket-user] Component created 18 times in IE versus twice in Firefox

2006-08-25 Thread Pierre-Yves Saumont
are in in. because it shoudl be the same requests. So it looks like IE does an extra request? This can only happen if the window detectection says it needs to do a refresh (1.2 was based on cookies, 1.2.1 on window name) johan On 8/25/06, *Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL

[Wicket-user] Double quotes in AjaxCall Decorator scripts

2006-08-28 Thread Pierre-Yves Saumont
Hello, When defining a script to use with decorateOnFailureScript in AjaxCallDecorator, it is not possible do write: public CharSequence decorateOnFailureScript(CharSequence script) { return alert(\message\); } one can only use single quotes: public CharSequence

Re: [Wicket-user] Double quotes in AjaxCall Decorator scripts

2006-08-29 Thread Pierre-Yves Saumont
-Yves Igor Vaynberg a écrit : not that much we can do since the event script is already in quotes when in html eg onclick=foo(); if its a big problem write out the message in a standalone js function and call that func from the call decorator. -Igor On 8/28/06, * Pierre-Yves Saumont

[Wicket-user] [Fwd: [Re: Double quotes in AjaxCall Decorator scripts]]

2006-08-29 Thread Pierre-Yves Saumont
=foo(); if its a big problem write out the message in a standalone js function and call that func from the call decorator. -Igor On 8/28/06, * Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL PROTECTED] mailto:[EMAIL

[Wicket-user] Testing Wicket application

2006-09-07 Thread Pierre-Yves Saumont
Hello, I would be interested to hear about your experience in testing Wicket application, particularly using Ajax. My experience, after one week trying several solutions, is not so good. I tried jWebUnit and ad a lot of problems with scripts. So I downgrade to HtmlUnit to found that the

Re: [Wicket-user] Testing Wicket application

2006-09-07 Thread Pierre-Yves Saumont
into it yet. Regards Nino -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Pierre-Yves Saumont Sent: 7. september 2006 10:50 To: wicket-user@lists.sourceforge.net Subject: [Wicket-user] Testing Wicket application Hello, I would be interested

[Wicket-user] How to use Javascript Alert

2006-09-09 Thread Pierre-Yves Saumont
Hello, What is the best way to call a Wicket url from Javascript? Is it possible to have Wicket embed a link in a script? Or should I use a normal link, make it invisible an programmatically click on it from the script? Thanks Pierre-Yves

[Wicket-user] How to fire an onClick event programmatically ? (works in Firefox, not in IE6)

2006-09-10 Thread Pierre-Yves Saumont
Hello, I need to call the onClick event handler containing a Wicket generated URL from a script. The id of the component holding the onClick event handler is rightColumn_pagePanel_dialogBoxReponses_tabs_panel_dialogBoxContent_confirmLink On first page load, the event handler is: onclick=var

Re: [Wicket-user] How to fire an onClick event programmatically ? (works in Firefox, not in IE6)

2006-09-10 Thread Pierre-Yves Saumont
strange behavior: If I place some HTML code that is to produce a Wicket error, such as wicket:head inside a wicket:panel, no error is detected if this code is loaded through Ajax. Only if I reload the page (so that everything is loaded normally) is the error detected. Pierre-Yves Pierre-Yves

Re: [Wicket-user] How to fire an onClick event programmatically ? (works in Firefox, not in IE6)

2006-09-11 Thread Pierre-Yves Saumont
. this will be fixed in 1.3 and is already implemented in 2.0 with lots of sweat and pain. meanwhile if you want wicket to execute some javascript you can use ajaxtarget.addjavascript(), dont know if it helps your usecase. -Igor On 9/10/06, *Pierre-Yves Saumont* [EMAIL PROTECTED] mailto

Re: [Wicket-user] How to fire an onClick event programmatically ? (works in Firefox, not in IE6)

2006-09-11 Thread Pierre-Yves Saumont
in 2.0 with lots of sweat and pain. meanwhile if you want wicket to execute some javascript you can use ajaxtarget.addjavascript(), dont know if it helps your usecase. -Igor On 9/10/06, *Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I eventually figured

[Wicket-user] How to detect page switch

2006-09-12 Thread Pierre-Yves Saumont
Hi, Is there a Wicket (ie really smart) way to detext when the user switch to another page? The use case is to release locks that a user might have put on database records with pessimistic locking when the user switch to another page. Pierre-Yves

Re: [Wicket-user] How to detect page switch

2006-09-12 Thread Pierre-Yves Saumont
I already tried this method, but it is called just before the user can see the page. What I need is to do something when he leaves the page. However, I think I have found an acceptable solution. I would make all my data objects implements an interface (let's say Lockable) and retain the last

Re: [Wicket-user] How to detect page switch

2006-09-12 Thread Pierre-Yves Saumont
the session (clustering). -Matej Pierre-Yves Saumont wrote: I already tried this method, but it is called just before the user can see the page. What I need is to do something when he leaves the page. However, I think I have found an acceptable solution. I would make all my data objects

Re: [Wicket-user] How to detect page switch

2006-09-12 Thread Pierre-Yves Saumont
/06, Pierre-Yves Saumont [EMAIL PROTECTED] wrote: Matej, I do not understand your point :-( The object does not get replicated when a reference to it is stored in the session. So I understand point b, but in case no clustering is used, why would there be a memory problem? Putting a reference

Re: [Wicket-user] Developing a Wicket CMS

2006-09-13 Thread Pierre-Yves Saumont
Hello, What is the intended audience? Do you intend to create a product suitable for CMS administrators needs? In that case, we (the list) might not really be the ones to ask. Most people here would probably be more interested in a Wicket-CMS extension, something that would help us to create

Re: [Wicket-user] Developing a Wicket CMS

2006-09-13 Thread Pierre-Yves Saumont
a Wicket-extension and the CMS could be used by others. Ted Rick On 9/13/06, *Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hello, What is the intended audience? Do you intend to create a product suitable for CMS administrators needs? In that case

[Wicket-user] setStripXmlDeclarationFromOutput(true) does not always work

2006-09-13 Thread Pierre-Yves Saumont
Hello, Although setStripXmlDeclarationFromOutput() is set to true in the application class, the XML declaration is somtimes removed and somtimes not. It is removed on each normal page load. However, it is not when the page is reloaded by clicking the reload button in the browser and the

Re: [Wicket-user] How to detect page switch

2006-09-13 Thread Pierre-Yves Saumont
to merge it) johan On 9/12/06, *Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: Hi, Is there a Wicket (ie really smart) way to detext when the user switch to another page? The use case is to release locks that a user might have put

Re: [Wicket-user] How to detect page switch

2006-09-14 Thread Pierre-Yves Saumont
Thanks Martijn, Your implementation is inspiring. I will rewrite mine following your example. Merging adds some problems in itself, and some more if you want to be smart to the user when some field conflict. There even is a problem when no fields conflict because the resulting record might not

Re: [Wicket-user] How to detect page switch

2006-09-14 Thread Pierre-Yves Saumont
states needed to merge correctly. -Igor On 9/13/06, *Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: I eventually implemented something very close to what you describe. Basically it is a sort of optimistic locking with field merging so

Re: [Wicket-user] Pro Wicket: Great first book on wicket

2006-09-14 Thread Pierre-Yves Saumont
This book was (and still is) a very valuable help to me. I did not read it cover to cover, although I should have. (I wish I had enough time for this !). It's a very good introductory book, the kind that gives the best value for the time you spend reading it. In a perfect world, it would have

Re: [Wicket-user] [Wicket-develop] Developing a Wicket CMS

2006-09-15 Thread Pierre-Yves Saumont
Is there any good reason - for the user, not for the developpers;-) not to be JSR-170 compliant ? It would normally be possible to use an existing repository for start. After all Wicket seems to be much more usefull to developp the client application than the repository itself. Pierre-Yves

Re: [Wicket-user] SUSPECT: RE: Pro Wicket: Great first book onwicket

2006-09-15 Thread Pierre-Yves Saumont
Che, One thing I have learned is that you learn much more from your errors than from your successes. The reason is that when you make an error, you have to figure why it didn't work and how to fix it. When you have success, you already know the reason: it's just because you are very good at

[Wicket-user] DatePicker configuration

2006-09-16 Thread Pierre-Yves Saumont
Hello, Can somebody tell me how to use setStyle() with a DatePicker ? I tried to use : DatePickerSettings datePickerSetting = new DatePickerSettings(); datePickerSetting.setAlign(cr); add(new DatePicker(dateFieldPicker, dateField, datePickerSetting)); but this does not work. With this

Re: [Wicket-user] DatePicker configuration

2006-09-18 Thread Pierre-Yves Saumont
Just don't use an ajax link to switch the locale. That's not a super idea anyway, as you would typically want the the whole page, with all it's markup etc to reload. Change the switch locale link to a normal link and all should be good. One use case is the need to have the page in ono

[Wicket-user] Simple test case for DatePicker Broken in IE6

2006-09-18 Thread Pierre-Yves Saumont
Hello, I tried to make the simplest test case for DatePicker. I just modified Helloworld.java in wicket examples: public HelloWorld() { add(new Label(message, Hello World!)); TextField dateField = new TextField(dateField, Date.class); add(dateField); add(new

Re: [Wicket-user] DatePicker broken in IE6

2006-09-19 Thread Pierre-Yves Saumont
idea where to look for? Pierre-Yves Pierre-Yves Saumont a écrit : Just don't use an ajax link to switch the locale. That's not a super idea anyway, as you would typically want the the whole page, with all it's markup etc to reload. Change the switch locale link to a normal link and all

Re: [Wicket-user] DatePicker broken in IE6

2006-09-20 Thread Pierre-Yves Saumont
problem.) Any idea where to look for? Pierre-Yves Pierre-Yves Saumont a écrit : Just don't use an ajax link to switch the locale. That's not a super idea anyway, as you would typically want the the whole page, with all it's markup etc to reload. Change the switch locale link to a normal

Re: [Wicket-user] DatePicker broken in IE6

2006-09-22 Thread Pierre-Yves Saumont
encountered this behavior. I'd like to look at it but I'd need to reproduce it. -Matej Pierre-Yves Saumont wrote: It appears that under some conditions, the script associated with the date picker in the HTML is not executed when the HTML is loaded through Ajax. So Calendar.setup never get called. I

Re: [Wicket-user] DatePicker broken in IE6

2006-09-22 Thread Pierre-Yves Saumont
The file calendar-fr.js is in DOS format. Is this OK? (By the way, it also contains some spelling errors in messages, but this is another story.) Pierre-Yves Johan Compagner a écrit : 1) The following configuration is mandatory if you use the french language with IE6 :

Re: [Wicket-user] DatePicker broken in IE6

2006-09-22 Thread Pierre-Yves Saumont
johan On 9/22/06, *Pierre-Yves Saumont* [EMAIL PROTECTED] mailto:[EMAIL PROTECTED] wrote: The file calendar-fr.js is in DOS format. Is this OK? (By the way, it also contains some spelling errors in messages, but this is another story.) Pierre-Yves Johan Compagner

Re: [Wicket-user] DatePicker broken in IE6

2006-09-22 Thread Pierre-Yves Saumont
at the system what the encoding is. But if you ask me, what you sent to the browser should always be full utf8 because then you never have problems who ever you target.. The projects i work with it is all utf8 browser - app server - database johan On 9/22/06, *Pierre-Yves Saumont

Re: [Wicket-user] ajax refresh on date picker

2006-09-24 Thread Pierre-Yves Saumont
And in some conditions (see my other post with a quickstart example), the setup script is not even executed !! Pierre-Yves samyem a écrit : The header contribution logic seems to be still flawed. The javascript references were not added to the HTML's HEAD at all when the component is added

Re: [Wicket-user] Wicket2: table inside of tabpanel

2006-09-25 Thread Pierre-Yves Saumont
It's up to you to use a div instead of a span. Just change your html markup, replacing span wicket:id=myid class=tab-panel with div wicket:id=myid class=tab-panel Pierre-Yves Stefan Lindner a écrit : The content of tabpanel is always surronded with a span tag, e.g. span

Re: [Wicket-user] ajax refresh on date picker

2006-09-25 Thread Pierre-Yves Saumont
/ Checkout reported version # 7486. Pierre-Yves Matej Knopp a écrit : I've tested your quick start example with current svn and I worked as it should. Tested with FF1.5, IE6 and opera 9. Can you please test your project with current svn, if the problem persists? -Matej Pierre-Yves

Re: [Wicket-user] ajax refresh on date picker

2006-09-25 Thread Pierre-Yves Saumont
tests completed with no problem for me, in 2.0 there are 4 errors and 1 failure. I don't know where the problem can be. Have you tried clean build? -Matej Pierre-Yves Saumont wrote: I tried to build the last version from trunk, but it fails the tests (32 failures) most failures report

Re: [Wicket-user] ajax refresh on date picker

2006-09-25 Thread Pierre-Yves Saumont
test (look at older posts, it's certainly mentioned somewhere). -Matej Pierre-Yves Saumont wrote: Yes. I have even deleted everything and checked out a new complete fresh version, tried mvn clean, deleted manually the target and tried again !! I have no problem with wicket-extensions

Re: [Wicket-user] ajax refresh on date picker

2006-09-26 Thread Pierre-Yves Saumont
Is it fixed only in trunk or also in releases ? Pierre-Yves Matej Knopp a écrit : The problem was that AjaxRequestTarget called component.renderHead(), without calling rendered() on component behaviors after that (co the thread local has not been cleaned). The fix is in SVN. Can you

Re: [Wicket-user] ajax refresh on date picker

2006-09-26 Thread Pierre-Yves Saumont
Matej Knopp a écrit : It also is fixed in wicket-1.x -Matej Pierre-Yves Saumont wrote: Is it fixed only in trunk or also in releases ? Pierre-Yves Matej Knopp a écrit : The problem was that AjaxRequestTarget called component.renderHead(), without calling rendered() on component

Re: [Wicket-user] Wicket2: table inside of tabpanel

2006-09-26 Thread Pierre-Yves Saumont
Sorry I misunderstood. I use the TabbedPanel through extending AjaxTabbedPanel which itslef extends TabbedPanel. So I provide the markup. By the way, I had not noticed that the parent class TabbedPanel had it's own markup. So I am now a bit confused: what happen to the parent markup if the

Re: [Wicket-user] ajax refresh on date picker

2006-09-26 Thread Pierre-Yves Saumont
Well, I believe a functionnality should work whatever teh reason you have to use it. I agree it make sense to refresh the whole page... if it is what you want. If it is not what you need, it makes very little sense. Of course, it it does not work, I will not use it. No choice. But I think it

Re: [Wicket-user] ajax refresh on date picker

2006-09-27 Thread Pierre-Yves Saumont
Hi Eelco, I did not feel irritated by your answers and I apologize for having let you think I was. I understand perfectly your position and I acknowledge the immense amount of work there is behind Wicket and I want to thank every one working on it for making such a smart framework available.

Re: [Wicket-user] ajax refresh on date picker

2006-09-27 Thread Pierre-Yves Saumont
if it works for you? -Matej Pierre-Yves Saumont wrote: Hi Eelco, I did not feel irritated by your answers and I apologize for having let you think I was. I understand perfectly your position and I acknowledge the immense amount of work there is behind Wicket and I want to thank every

Re: [Wicket-user] ajax refresh on date picker

2006-09-27 Thread Pierre-Yves Saumont
I remember the first days of Java: UNICODE (UTF16) was the ultimate encoding scheme that would definitely solve the problem for all languages on earth. There was plenty of unused room for future use. The Java designers even create a special type (char) for this. They would have been much

Re: [Wicket-user] ajax refresh on date picker

2006-09-27 Thread Pierre-Yves Saumont
What should already be in? Is it your fix? Or are you talking about the edited file I sent to the list few days ago? This is no complete since at that time I had not noticed the tuesday error! Pierre-Yves Matej Knopp a écrit : btw. it should be already in. Pierre-Yves Saumont wrote: Hi

Re: [Wicket-user] ajax refresh on date picker

2006-09-27 Thread Pierre-Yves Saumont
I can't find it in releases/wicket-1.2.2, only in trunk, but my app does not work with 2.0 :-( Pierre-Yves Matej Knopp a écrit : Sorry for ambiguity. The fix should be already in. -Matej Pierre-Yves Saumont wrote: What should already be in? Is it your fix? Or are you talking about

Re: [Wicket-user] ajax refresh on date picker

2006-09-27 Thread Pierre-Yves Saumont
it will be enough Pierre-Yves Matej Knopp a écrit : You won't find it there. It's wicket-1.x (and trunk). 1.2.2 is release. Current branch for 1.2 is under 1.x -Matej Pierre-Yves Saumont wrote: I can't find it in releases/wicket-1.2.2, only in trunk, but my app does not work with 2.0 :-( Pierre

Re: [Wicket-user] progress indicator

2006-09-28 Thread Pierre-Yves Saumont
Hi Nino, You can use the IndicatingAjaxLink, but I do not use it because I had developped my own WaitingAjaxLink before I discovered this one ;-) AFAIK, IndicatingAjaxLink add a progress indicator at the right of the corresponding control. My WaitingAjaxLink as a script before that make a

Re: [Wicket-user] progress indicator

2006-09-28 Thread Pierre-Yves Saumont
regards -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Pierre-Yves Saumont Gesendet: Donnerstag, 28. September 2006 11:29 An: wicket-user@lists.sourceforge.net Betreff: Re: [Wicket-user] progress indicator I guess the question is how

Re: [Wicket-user] progress indicator

2006-09-28 Thread Pierre-Yves Saumont
... and the basic problem the thread started with, cant be solved by ajax, it has to be solved by the server checking the current state of the process thats going on... -Ursprüngliche Nachricht- Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Im Auftrag von Pierre-Yves Saumont

  1   2   >