• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

issue with commandlink inside a popuppanel

 
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a popuppanel which displays a list of files uploaded. it contains a delete button(which is a command link). when I click on the delete, the file is deleted but the popuppanel still displays the file and now the close also does not work.

following is my popuppanel code.

Stuck on this since 2days. Any help and advice is greatly appreciated.

Thanks in advance.
 
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
If your "a:commandLink" is actually the same tag usually coded as "a4j:commanLink", you miscoded the "reRender" attribute as "render".
 
jyothi nalam
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for the reply. I changed to reRender. but the view still has the files uploaded. After I close and reopen it then, I see that the file is deleted.
 
Tim Holloway
Saloon Keeper
Posts: 27763
196
Android Eclipse IDE Tomcat Server Redhat Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was afraid you were going to say that. Although I thought that the preferred approach in RF4 was to attach an f:ajax to a regular h:commandButton. I haven't done much with RF4 because it's going to massively break all the RF3 stuff I've got and not even give me a more civilized implementation of the shuttle control.

There's always the old standy advice, though. Make sure that the dialog is contained within a form of its own and remember that forms cannot be embedded, so it has to be done outside of any other forms.

 
jyothi nalam
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Appreciate your reply Tim. I am still having that issue. Hope I can find some solution to this.
 
jyothi nalam
Greenhorn
Posts: 25
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator






With that, I am able to delete the files and the list is updated in the popup panel. The issue is, I am able to delete all except the last one. the last one is deleted from the list but I still can see it in the popup panel.

Please advise.

Thanks in advance
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic