This issue has been created
 
 
XWiki Platform / cid:jira-generated-image-avatar-38aecb1e-10c6-4eea-b5a2-3737fa47fdca XWIKI-23611 Open

Form data within a gadget are not saved.

 
View issue   ยท   Add comment
 

Issue created

 
cid:jira-generated-image-avatar-541c071c-55fb-47b8-8da2-ecf4989d8138 Andreas Rosenstiel created this issue on 17/Oct/25 14:27
 
Summary: Form data within a gadget are not saved.
Issue Type: cid:jira-generated-image-avatar-38aecb1e-10c6-4eea-b5a2-3737fa47fdca Bug
Affects Versions: 17.8.0
Assignee: Unassigned
Components: Dashboard
Created: 17/Oct/25 14:27
Environment: XWiki Debian 17.8.0
Priority: cid:jira-generated-image-static-major-b886ed6e-5768-4929-b16b-1e4e6332b076 Major
Reporter: Andreas Rosenstiel
Description:

I created a simple macro to save their XWiki favorites in the users profile and show it in the menu:
velocity
#set($u=$xcontext.getUser())
#set($d=$xwiki.getDocument($u))
#set($o=$d.getObject("Macros.Favorites", 0))
#if("$!o" == "")
  #set($o=$d.newObject("Macros.Favorites"))
  #set($x=$d.save())
#end
#if("$xcontext.action" != "edit")
  $d.display("Links", "view", $o)
#else
  $d.display("Links", "edit", $o)
#end
/velocity

The Macros.Favorites class contains the field Links, which is of type TextArea.

To enable easy access, the user added the Favorites macro as a gadget to their dashboard in the profile. This provided a simple way to save favorites within XWiki, which remained up to date even when the referenced page was moved.

Since the upgrade from XWiki 12.10.9 to 17.8.0, the entered data is no longer saved, and new favorites cannot be added.