problem with ChoiceRenderer

2012-05-11 Thread Michael Jaruska
Hi folks, after hours of elaborating, searching docu and trying I'm totaly lost. My ChoiceRenderer is not working. Here is my code (not relevant code has been removed): markup: select id=1 wicket:id=zoznam/select page implementation: public class PageEshop extends PageBase{ public

Re: Ajax Error in MSIE 8

2012-05-11 Thread Martin Grigorov
Hi, Which version of Wicket ? In what conditions this happen ? I.e. do you click on a link or do you submit a form or ... On Thu, May 10, 2012 at 11:33 PM, Richard W. Adams rwada...@up.com wrote: I'm getting Ajax errors that seems to occur only in Internet Explorer 8 (same code works fine in

Re: problem with ChoiceRenderer

2012-05-11 Thread Sven Meier
Hi, Vyrobok defaultChoice = vyrobky.get(0); DropDownChoiceVyrobok vyberVyrobku = new DropDownChoiceVyrobok( zoznam, new PropertyModelVyrobok(defaultChoice, kluc), vyrobky, renderer); you're instructing

Re: Invalid URL generated when jsessionid is present

2012-05-11 Thread Martin Grigorov
On Thu, May 10, 2012 at 8:49 PM, Guillaume Smet guillaume.s...@gmail.com wrote: Hi, Under certain circumstances when we navigate on our Wicket site, Wicket generates the following URL for a bookmarkable page link: /mount/point/.;jsessionid=C94BC23C58FD2972B34E5DE145C076BB The dot before the

Re: TableComponentAsXlsHandler Problem

2012-05-11 Thread khanshan
Ok, I want to ask lastly, I dynamically generated a workbook HSSFWorkbook, and I want client to download that file inside of onclick method of a link. (BytearrayResource doesnt work, it makes problem, please another soulution) -- View this message in context:

Re: problem with ChoiceRenderer

2012-05-11 Thread Michael Jaruska
just now I have elaborated that this works: DropDownChoiceVyrobok vyberVyrobku = new DropDownChoiceVyrobok(vyberVyrobku, new PropertyModelVyrobok(defaultChoice, null), vyrobky, renderer); (note `null' in PropertyModel) but strange is that I don't know why :-( On 11.5.2012 9:36, Sven Meier

Re: Customize PagingNavigator

2012-05-11 Thread vineet semwal
btw created this https://issues.apache.org/jira/browse/WICKET-4555 On Fri, May 11, 2012 at 2:32 AM, sudeivas sureshkumar@gmail.com wrote: Works now. Thanks -Suresh -- View this message in context:

Re: TableComponentAsXlsHandler Problem

2012-05-11 Thread Girts Ziemelis
I am using ByteArrayResource and it works great (Wicket 1.5.6). It is not link.onClick, but may be will do? Code: ByteArrayResource surveyExportXlsx = new ByteArrayResource(application/vnd.ms-excel) { private static final long serialVersionUID = 1L; @Override protected

Re: Invalid URL generated when jsessionid is present

2012-05-11 Thread Guillaume Smet
Hi Martin, On Fri, May 11, 2012 at 9:43 AM, Martin Grigorov mgrigo...@apache.org wrote: Upgrade to 1.5.6. Oh? I haven't found any JIRA on this very subject but I might have missed it. I usually upgrade very quickly after a release but the issue with stateless page + feedback fixed after the

Re: Invalid URL generated when jsessionid is present

2012-05-11 Thread Martin Grigorov
On Fri, May 11, 2012 at 12:02 PM, Guillaume Smet guillaume.s...@gmail.com wrote: Hi Martin, On Fri, May 11, 2012 at 9:43 AM, Martin Grigorov mgrigo...@apache.org wrote: Upgrade to 1.5.6. Oh? I haven't found any JIRA on this very subject but I might have missed it. I usually upgrade very

Re: problem with ChoiceRenderer

2012-05-11 Thread Andrea Del Bene
Hi, the type of the model and of the renderer must be the same chosen for the DropDownChoice (Vyrobok in your case). In the first version of your code this was not true for your model because it pointed to a String field (named kluc). Your second version works fine because you don't provide

1.5 migration and border magic

2012-05-11 Thread Girts Ziemelis
I was using border in 1.4 to dynamically add different borders to the page (like - for printing, popup, plain, with header/ footer etc based on page parameters and some other criteria) and really liked this method in 1.4. Seems that 1.5 makes this approach clumsy :( Now I must override the

Re: 1.5 migration and border magic

2012-05-11 Thread Martin Grigorov
Hi, It is not very clear to me what exactly is clumsy. Can you explain in more details how it got worse. Show some code maybe. On Fri, May 11, 2012 at 2:20 PM, Girts Ziemelis girts.zieme...@gmail.com wrote: I was using border in 1.4 to dynamically add different borders to the page (like - for

Re: Ajax Error in MSIE 8

2012-05-11 Thread Richard W. Adams
Sorry. Should have provided more details: Wicket Version: 1.4.20 Operating System: Windows XP Scenario: Users clicks an icon with an Ajax onclick event. In the event handler on the server, we copy the value of one String variable to another String variable in the model, then we call

Re: Ajax Error in MSIE 8

2012-05-11 Thread Martin Grigorov
Don't see anything suspicious. You'll have to debug what happens in wicket-ajax.js ... On Fri, May 11, 2012 at 3:07 PM, Richard W. Adams rwada...@up.com wrote: Sorry. Should have provided more details: Wicket Version: 1.4.20 Operating System: Windows XP Scenario: Users clicks an icon with

Re: Two YUI DatePickers - use first date as basis for second date

2012-05-11 Thread vp143
Thanks for your answer. I was hoping that there might something in Wicket. I did look at the YUI docs but so far cant find exactly what I need to do. It seems like I need to add a listener which calls a JS method which I think I have understood but cant work out what is required to change the

Re: Two YUI DatePickers - use first date as basis for second date

2012-05-11 Thread Martin Grigorov
Hi, Wicket just wraps the JS component. I.e. you can set your settings in Java and Wicket will serialize them to JSON which YUI Calendar will use to configure itself. But if you can set the needed property in pure JavaScript then it will be faster because there wont be an Ajax roundtrip to the

Re: 1.5 migration and border magic

2012-05-11 Thread Girts Ziemelis
It is worse, because now I need to write a code, which previously I got for free in 1.4 :D and by clumsy I meant my attempt of implementing this functionality ;) Now my superclass base page add method looks like this :( @Override public MarkupContainer add(Component... childs) {

Re: Ajax Error in MSIE 8

2012-05-11 Thread Richard W. Adams
We dug into wicket-ajax.js using this version of MSIE 8: We discovered the problem occurs in this code: Wicket.Ajax.Request.prototype = { // Method that processes the request states stateChangeCallback: function() { . if (status == 200 ||

Re: Ajax Error in MSIE 8

2012-05-11 Thread Martin Grigorov
I'm not sure why this fails for you. And why it fails only from time to time. But looking at this Javascript code I think it can be improved. File a ticket with a failing test case if possible. On Fri, May 11, 2012 at 5:46 PM, Richard W. Adams rwada...@up.com wrote: We dug into wicket-ajax.js

Re: Ajax Error in MSIE 8

2012-05-11 Thread Richard W. Adams
I just found a key difference between the IE8 IE9 behaviors in this code: f (typeof(window.XMLHttpRequest) != undefined typeof(DOMParser) != undefined) { var parser = new DOMParser(); xmldoc = parser.parseFromString(responseAsText, text/xml); } else if

Re: Ajax Error in MSIE 8

2012-05-11 Thread Martin Grigorov
On Fri, May 11, 2012 at 7:46 PM, Richard W. Adams rwada...@up.com wrote: I just found a key difference between the IE8 IE9 behaviors in this code:   f (typeof(window.XMLHttpRequest) != undefined typeof(DOMParser) != undefined) {        var parser = new DOMParser();        xmldoc =

Re: Invalid URL generated when jsessionid is present

2012-05-11 Thread Guillaume Smet
On Fri, May 11, 2012 at 11:05 AM, Martin Grigorov mgrigo...@apache.org wrote: There is a workaround for this. See the ticket for 1.5.7. Thanks for the pointer. I can confirm that the problem is fixed in 1.5.6. Thanks. - To