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: page implementation: public class PageEshop extends PageBase{ public PageEshop(){ ChoiceRendererVyrobok

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 wrote: > I'm getting Ajax errors that seems to occur only in Internet Explorer 8 > (same code works fine in IE9 & Firefox).

Re: problem with ChoiceRenderer

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

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 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 ;jsessionid= make

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: http://apache-wicket.1842946.n4.nab

Re: problem with ChoiceRenderer

2012-05-11 Thread Michael Jaruska
just now I have elaborated that this works: DropDownChoice vyberVyrobku = new DropDownChoice("vyberVyrobku", new PropertyModel(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 wrote: Hi, Vyrobok d

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 wrote: > Works now. Thanks > > -Suresh > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Customize-PagingNavigator-tp4624405p4624655.html > Sent from the

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 by

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 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 release is kinda annoy

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 wrote: > Hi Martin, > > On Fri, May 11, 2012 at 9:43 AM, Martin Grigorov 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

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 pag

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 wrote: > I was using border in 1.4 to dynamically add different borders to the page > (like - for printing, popup, plain,

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 AjaxReques

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 wrote: > Sorry. Should have provided more details: > > Wicket Version: 1.4.20 > > Operating System: Windows XP > > Scenario: Users clicks an icon with an Ajax o

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 mini

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 ser

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 || s

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 wrote: > We dug into wicket-ajax.js using this versi

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 (windo

Re: Ajax Error in MSIE 8

2012-05-11 Thread Martin Grigorov
On Fri, May 11, 2012 at 7:46 PM, Richard W. Adams 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 = parser.pa

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 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 unsubscribe, e-mail: u