Is your component visible in browser source when your refresh it ?? Ajax cannot referesh invisible components ....
** Martin 2010/7/12 Anna Simbirtsev <asimbirt...@gmail.com>: > <span wicket:id="fragment" class="results-table">fragments contents come > here</span> > <wicket:fragment wicket:id="fragmentid"> > <wicket:enclosure child="loans"> > <table id="results-table"> > <thead> > <tr> > <th scope="col">Loan ID</th> > <th scope="col">Comment</th> > <th></th> > </tr> > </thead> > <tbody> > <tr wicket:id="loans"> > <td wicket:id="id"></td> > <td> > <input wicket:id="comment" name="large" > type="text" onfocus="this.className='';"/> > </td> > <td> > <div class="submitarea"><a wicket:id="rsubmit" > href="#" class="button">SUBMIT</a></div> > </td> > > </tr> > </tbody> > </table> > </wicket:enclosure> > </wicket:fragment> > > On Mon, Jul 12, 2010 at 10:47 AM, Martin Makundi < > martin.maku...@koodaripalvelut.com> wrote: > >> what is your fragment about ? <container> <div> does it have markupid? >> >> 2010/7/12 Anna Simbirtsev <asimbirt...@gmail.com>: >> > Hi, >> > >> > I have a listview inside a fragment. Listview has a text field comment. >> > >> > >> > Fragment f = new Fragment("fragment", "fragmentid", form2); >> > f.setOutputMarkupId(true); >> > form.add(f); >> > >> > final ListView<Loan> lv = new ListView<Loan>("loans", data >> > .getLoans()) { >> > >> > private static final long serialVersionUID = 1L; >> > >> > �...@override >> > protected void populateItem(ListItem<Loan> item) >> > { >> > finalLoan loan = (Loan) item.getModelObject(); >> > >> > item.add(new Label("id", loan.getId())); >> > >> > final TextField<Loan> comment = new TextField<Loan>( >> > "comment", new PropertyModel<Loan>(loan, >> "comment") >> > ); >> > >> > item.add(comment); >> > >> > item >> > .add(addLoanSubmitButton(loan)); >> > } >> > }; >> > >> > f.add(lv); >> > >> > In onSubmit, I refresh data.getLoans() and try to refresh fragment using >> > target.addComponent(f);. >> > But it does not get refreshed. >> > >> > Any ideas? >> > >> > Thanks >> > >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> > > > -- > Anna Simbirtsev > (416) 729-7331 > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org