I have a RefreshingView followed by (not in) a Form.
On form submit, an object is added to the db list
associated with the RefreshingView.

I'm wondering why the small change (see comments)
to my RV causes it to not refresh automatically.
A browser refresh shows the changes.

Thanks,
-troy

        private class FooRV extends RefreshingView
        {
                public FooRV(String id, IModel listModel)
                {
                        super(id, listModel);
                }

                @Override
                protected Iterator getItemModels()
                {
                        return new ModelIteratorAdapter(
                                // THIS LINE WORKS
                                        Hibby.getAllFoo().iterator()
                                // THIS LINE DOESN'T  -- My model is an LDM 
calling Hibby.getAllFoo()
                                //      ((List)getModelObject()).iterator()
                                                                        ) {
                                private static final long serialVersionUID = 1L;
                                @Override
                                protected IModel model(Object o)
                                {
                                        Foo r = (Foo)o;
                                        return new CompoundPropertyModel(
                                                new EntityModel<Foo>(Foo.class,
                                                                r.getId()));
                                }
                        };
                }

                // ...
        }

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to