Hi,

Can somebody advise me any sensible solution.
I can't belive that there is even one person who did not meet the same 
problem as me :)

BR
Rafal

Dnia 21-04-2010 o godz. 21:23 Rafał Laczek <rafal_lac...@wp.pl> 
napisał(a):
> Hi Colleagues,
> 
> In my Wicket project I have a table where I display 2 columns: Kode,
> EditLink.
> When the page is displayed all rows are displayed as Label.
> When I click "editLink" ALL rows are displayed as TextField and ready
> for edition.
> I would like the only this row to be displayed as TextField next to
> which I click the editLink (each row has its own editlink because link
> is added to item).
> Can you advise me please how to rebuilt me below code.
> 
> Thank you in advance for your advices.
> BR
> Rafal
> 
> 
> int idpanel =1;
> 
> wmc.add(new ListView <Sym>("list", new RedigerSymbolModelClass() ){
> protected void populateItem(ListItem <Sym>item) {
> Sym s = (Sym)item.getModelObject();
> 
> if(idpanel == 0){
>   item.add(newFragment("kodePanel","k0").add(newLabel("kode0",s.getKode())));
> }else{
>   item.add(new Fragment("kodePanel","k1").add(new
> TextField<String>("kode1",new PropertyModel<String>(s,"kode"))));
> }
> 
>   final Link editLink = new Link("editLink"){
>     @Override
> public void onClick() {
>   idpanel = 1;
>    }
> };
> item.add(editLink);


-- 
You received this message because you are subscribed to the Google
Groups "Java EE (J2EE) Programming with Passion!" group.
To post to this group, send email to
java-ee-j2ee-programming-with-passion@googlegroups.com
To unsubscribe from this group, send email to
java-ee-j2ee-programming-with-passion+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/java-ee-j2ee-programming-with-passion?hl=en?hl=en

Reply via email to