No, I don't think so.:( On Mon, Jul 12, 2010 at 11:15 AM, Martin Makundi < martin.maku...@koodaripalvelut.com> wrote:
> No validation error? > > ** > Martin > > 2010/7/12 Anna Simbirtsev <asimbirt...@gmail.com>: > > I took out the wicket enclosure, still does not work. The value in the > > textfield still stays the same, instead of being empty. Printing out > > loans.getComment(), prints an empty value. > > > > On Mon, Jul 12, 2010 at 11:01 AM, Martin Makundi < > > martin.maku...@koodaripalvelut.com> wrote: > > > >> 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 > >> > >> > > > > > > -- > > Anna Simbirtsev > > (416) 729-7331 > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Anna Simbirtsev (416) 729-7331