DDC and page reload

2008-01-30 Thread Sébastien Piller
Hello, I have a little problem with drop down choices. I have one on my page. It stores some currencies. In the same page, I've got a Flash module, who needs the actual currency to work. I pass it using the usual flashvars. But when I change a currency on the DDC (ie from USD to EUR), the

Re: DDC and page reload

2008-01-30 Thread Johan Compagner
how are you listening to the change of the DDC? If through ajax then you have to set the response page again to get a real refresh of everything (or just refresh th flash markup part) if through normal submit (onSelection) then the page is completely refreshed anyway maybe you cache at some place

Re: DDC and page reload

2008-01-30 Thread Edvin Syse
I have a little problem with drop down choices. I have one on my page. It stores some currencies. In the same page, I've got a Flash module, who needs the actual currency to work. I pass it using the usual flashvars. But when I change a currency on the DDC (ie from USD to EUR), the actual

Re: DDC and page reload

2008-01-30 Thread Sébastien Piller
I found a patch (very ugly but works). On the onSelectionChange, I wrote this: if (MyAbstractPage.this instanceof MyPageWithTheRefreshIssue) { setResponsePage(new MyPageWithTheRefreshIssue()); } But I wonder: is this a normal behavior? I guessed I need not to refresh it manually, need I?

Re: DDC and page reload

2008-01-30 Thread Igor Vaynberg
swf.setValue(flashvars, somevar= + somevalue+ currency= + curr); ^ that should instead take an IModel so that it renders a fresh value on each new request instead of always rendering the value you passed in at page construction. in fact, it should take the same model instance as is use by the