• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

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: 26285
186
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: 26285
186
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
 
Beware the other head of science - it bites! Nibble on this message:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic