wood burning stoves 2.0*
The moose likes JSF and the fly likes issue with commandlink inside a popuppanel Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "issue with commandlink inside a popuppanel" Watch "issue with commandlink inside a popuppanel" New topic
Author

issue with commandlink inside a popuppanel

jyothi nalam
Greenhorn

Joined: Oct 25, 2006
Posts: 24
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.
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 16014
    
  20

If your "a:commandLink" is actually the same tag usually coded as "a4j:commanLink", you miscoded the "reRender" attribute as "render".


Customer surveys are for companies who didn't pay proper attention to begin with.
jyothi nalam
Greenhorn

Joined: Oct 25, 2006
Posts: 24
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

Joined: Jun 25, 2001
Posts: 16014
    
  20

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

Joined: Oct 25, 2006
Posts: 24
Appreciate your reply Tim. I am still having that issue. Hope I can find some solution to this.
jyothi nalam
Greenhorn

Joined: Oct 25, 2006
Posts: 24






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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: issue with commandlink inside a popuppanel