I finally solved my own problem. I found a very good example that does the exactly same thing as I do. If anybody has the same problem please refer to the source code of the following plugin.
HttpPublisher <https://github.com/andreich/httppublisher> The trick is that you need to fully understand the Jetty data binding mechanism. Thanks. On Tuesday, July 2, 2013 3:15:30 PM UTC-7, Zhengyuan Shen wrote: > > These are the code for saving the configuration data. > > public boolean configure(StaplerRequest req, JSONObject formData) > throws FormException { > req.bindJSON(this, formData); > ConfigString = formData.toString(); > save(); > return super.configure(req, formData); > } > > The data can be saved properly in the ConfigString and everything is OK. > However, when I open up the configure page again, all the saved data is > not showing again. Does anyone know how to fix this problem? I have got > stuck on this for quite a long time. Although it is not a big problem since > all the data are saved in the database, I still hope I can have them show > up when I open the page again. > I will appreciate that if anybody can help me on this. > > BTW, the form I have in the global.config is a repeatable item > <f:repeatable></f:repeatable> > > Thanks. > -- You received this message because you are subscribed to the Google Groups "Jenkins Developers" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
