Re: Disable Ajax Buttons/Links while a in request progress

2009-09-23 Thread tdelesio
I assume you meant to do this: AjaxLink favLink = new AjaxLink("fav") { @Override protected IAjaxCallDecorator getAjaxCallDecorator() {

Re: Defaulting a DropDownChoice

2009-09-21 Thread tdelesio
tdelesio wrote: > > > final DropDownChoice downChoice = new DropDownChoice("name", new > CompoundPropertyModel(playerModel), playersModel, new > ChoiceRenderer("username", "id")); > > This would work fine w/o serialization except that t

Re: Defaulting a DropDownChoice

2009-09-18 Thread tdelesio
Thanks for the response. How do I bind the playerModel to the DDC? If I did the below extract the object out of the playerModel it would probably work. Player player = (Player)playerModel.getObject(); final DropDownChoice downChoice = new DropDownChoice("name", new Model(Player), playersModel,

Re: Passing LoadableDetachableModels

2008-08-20 Thread tdelesio
Just to updateI read in another forum thread that using LoadableDetachabeModels is not the desired model type for mutliple page forms (wizards). I guess compoundproperty model is the correct approach. tdelesio wrote: > > Hi, > > I have a couple of forms which "share&quo

Passing LoadableDetachableModels

2008-08-20 Thread tdelesio
Hi, I have a couple of forms which "share" the same model. On the first page I create the model and pass it to the rest of the pages. On each page a little more information is stored in the model. At the end of the process I want to write it to a database. Currently I'm trying to use Detachab

Re: Flash on Bookmarkable Page

2008-06-18 Thread tdelesio
I solved the problem. In order to get it to work I had to remove the mountBookmarkablePage("watchVideo.html", WatchVideoPage.class); in the Application. I can't mount to a url but at least it works. Is this possibly a bug? Tim tdelesio wrote: > > Hi, > > I&#

Flash on Bookmarkable Page

2008-06-17 Thread tdelesio
Hi, I'm trying to add a flash file to a bookmarkablepage. I used the ShockwaveComponent and Objectcomponent from the following link: http://cwiki.apache.org/WICKET/object-container-adding-flash-to-a-wicket-application.html The BookmarkablePage is being passed a parm in the url to identify whic

Dropdown Choices

2008-03-24 Thread tdelesio
Is it possible to use two objects in a dropdown choice. For instance in the below code I want to use the class Pizza for the model of the form but load it with a list of toppings. When I do it the model of the form is getting set to Topping when I expect it to be Pizza. Thanks for the help. pu

Re: AJAX Dropdown Choices cleared on submit

2008-03-24 Thread tdelesio
get target) { target.addComponent(weeksDropDown); } }); tdelesio wrote: > > Hi, > > I have two dropdowns. Once you select a value from the first dropdown the > second dropdown is populated using ajax. I got this to work based on the > example on wic

AJAX Dropdown Choices cleared on submit

2008-03-24 Thread tdelesio
Hi, I have two dropdowns. Once you select a value from the first dropdown the second dropdown is populated using ajax. I got this to work based on the example on wicketstuff. But when I submit the form the model is null-ed out. I tried to remove the ajax call and then re-submit the form and t