Here are the functions in my module that call the setters and getters:

  |    public void displayConfiguration(Page page)
  |    {
  |       if (!secAuthAction("configuration::", Constants.SEC_ACCESS_ADMIN))
  |       {
  |         displayError(page, "${kingpin.NO_AUTH}");
  |         return;
  |       }
  |       
  |       String authId = getApi().generateAuthKey(getName()),
  |       newNumberPackagesPerPage =
  |       page.getParameter("numberPackagesPerPage", 
Integer.toString(getNumberPackagesPerPage())),
  |       newThresholdEvent = page.getParameter("thresholdEvent", getThresholdEvent()),
  |       newThresholdDay1 = page.getParameter("thresholdDay1", 
Integer.toString(getThresholdDay1())),
  |       newThresholdDay2 = page.getParameter("thresholdDay2", 
Integer.toString(getThresholdDay2())),
  |       newThresholdDay3 = page.getParameter("thresholdDay3", 
Integer.toString(getThresholdDay3())),
  |       newThresholdColor1 = page.getParameter("thresholdColor1", 
getThresholdColor1()),
  |       newThresholdColor2 = page.getParameter("thresholdColor2", 
getThresholdColor2()),
  |       newThresholdColor3 = page.getParameter("thresholdColor3", 
getThresholdColor3()),
  |        newRavenFeedbackLink = page.getParameter("ravenFeedbackLink", 
getRavenFeedbackLink()),
  |        newRequirementsPageLink = page.getParameter("requirementsPageLink", 
getRavenFeedbackLink());
  |       DelegateContext configurationContext = new DelegateContext();
  | 
  |       configurationContext.put("NUMBER_PACKAGES_PER_PAGE", 
newNumberPackagesPerPage);
  |       configurationContext.put("THRESHOLD_EVENT", newThresholdEvent);
  |       configurationContext.put("THRESHOLD_DAY_1", newThresholdDay1);
  |       configurationContext.put("THRESHOLD_DAY_2", newThresholdDay2);
  |       configurationContext.put("THRESHOLD_DAY_3", newThresholdDay3);
  |       configurationContext.put("THRESHOLD_COLOR_1", newThresholdColor1);
  |       configurationContext.put("THRESHOLD_COLOR_2", newThresholdColor2);
  |       configurationContext.put("THRESHOLD_COLOR_3", newThresholdColor3);
  |       configurationContext.put("RAVEN_FEEDBACK_LINK", newRavenFeedbackLink);
  |       configurationContext.put("REQUIREMENTS_PAGE_LINK", newRequirementsPageLink);
  |     
  |       configurationTemplate.render(configurationContext, page.getBodyWriter());
  |    }
  | 
  |    public void configure(Page page)
  |    {
  |       if (!secAuthAction("configuration::", Constants.SEC_ACCESS_ADMIN))
  |       {
  |         displayError(page, "${kingpin.NO_AUTH}");
  |         return;
  |       }
  |       
  |       String authId = getApi().generateAuthKey(getName()),
  |       newNumberPackagesPerPage = page.getParameter("numberPackagesPerPage", ""),
  |       newThresholdEvent = page.getParameter("thresholdEvent", ""),
  |       newThresholdDay1 = page.getParameter("thresholdDay1", ""),
  |       newThresholdDay2 = page.getParameter("thresholdDay2", ""),
  |       newThresholdDay3 = page.getParameter("thresholdDay3", ""),
  |       newThresholdColor1 = page.getParameter("thresholdColor1", ""),
  |       newThresholdColor2 = page.getParameter("thresholdColor2", ""),
  |       newThresholdColor3 = page.getParameter("thresholdColor3", ""),
  |       newRavenFeedbackLink = page.getParameter("ravenFeedbackLink",""),
  |       newRequirementsPageLink = page.getParameter("requirementsPageLink","");
  |     
  |       if (newNumberPackagesPerPage.equals(""))
  |       {
  |          displayConfiguration(page);
  | 
  |          DelegateContext errorContext = new DelegateContext();
  | 
  |          if (newNumberPackagesPerPage.equals("")
  |          || newNumberPackagesPerPage.equals("0")
  |          || newThresholdEvent.equals("")
  |          || newThresholdDay1.equals("")
  |          || newThresholdDay2.equals("")
  |          || newThresholdDay3.equals("")
  |          || newThresholdColor1.equals("")
  |          || newThresholdColor2.equals("")
  |          || newThresholdColor3.equals(""))
  |          {
  |             DelegateContext errorMessageContext = 
errorContext.next("errorMessageLoop");
  |             errorMessageContext.put("ERROR_TEXT", "Number Packages Per Page must 
be greater than 0 and not null.");
  |          }
  |          if (newThresholdEvent.equals(""))
  |          {
  |             DelegateContext errorMessageContext = 
errorContext.next("errorMessageLoop");
  |             errorMessageContext.put("ERROR_TEXT", "Threshold Event can not be 
null.");
  |          }
  |          if (newThresholdDay1.equals(""))
  |          {
  |             DelegateContext errorMessageContext = 
errorContext.next("errorMessageLoop");
  |             errorMessageContext.put("ERROR_TEXT", "Threshold Day 1 can not be 
null.");
  |          }
  |          if (newThresholdDay2.equals(""))
  |          {
  |             DelegateContext errorMessageContext = 
errorContext.next("errorMessageLoop");
  |             errorMessageContext.put("ERROR_TEXT", "Threshold Day 2 can not be 
null.");
  |          }
  |          if (newThresholdDay3.equals(""))
  |          {
  |             DelegateContext errorMessageContext = 
errorContext.next("errorMessageLoop");
  |             errorMessageContext.put("ERROR_TEXT", "Threshold Day 3 can not be 
null.");
  |          }
  |          if (newThresholdColor1.equals(""))
  |          {
  |             DelegateContext errorMessageContext = 
errorContext.next("errorMessageLoop");
  |             errorMessageContext.put("ERROR_TEXT", "Threshold Color 1 can not be 
null.");
  |          }
  |          if (newThresholdColor2.equals(""))
  |          {
  |             DelegateContext errorMessageContext = 
errorContext.next("errorMessageLoop");
  |             errorMessageContext.put("ERROR_TEXT", "Threshold Color 2 can not be 
null.");
  |          }
  |          if (newThresholdColor3.equals(""))
  |          {
  |             DelegateContext errorMessageContext = 
errorContext.next("errorMessageLoop");
  |             errorMessageContext.put("ERROR_TEXT", "Threshold Color 3 can not be 
null.");
  |          }
  | 
  |          errorDisplayTemplate.render(errorContext, page.getBodyWriter());
  | 
  |          return;
  |       }
  |       setNumberPackagesPerPage(Integer.parseInt(newNumberPackagesPerPage));
  |       setThresholdEvent(newThresholdEvent);
  |       setThresholdDay1(Integer.parseInt(newThresholdDay1));
  |       setThresholdDay2(Integer.parseInt(newThresholdDay2));
  |       setThresholdDay3(Integer.parseInt(newThresholdDay3));
  |       setThresholdColor1(newThresholdColor1);
  |       setThresholdColor2(newThresholdColor2);
  |       setThresholdColor3(newThresholdColor3);
  |        setRavenFeedbackLink(newRavenFeedbackLink);
  |        setRequirementsPageLink(newRequirementsPageLink);
  | 
  |       page.sendHTMLRedirect(
  |       "Modified configuration completed successfully",
  |       "index.html?module=html&op=main&authid=" + 
getApi().generateAuthKey("kingpin"));
  |    }
  | 

When I use the configuration page to set the values this is what I see:

1) In the JMX module the values are changed
2) In the nukes.nuke_services_attributes table the values are not changed
3) The values are changed on my configuration page

When I use the JMX module to change the values this is what I see:

1) In the JMX module the values are changed
2) In the nukes.nuke_services_attributes table the values are changed
3) The values are changed on my configuration page

Why does it work in the JMX module but the getters and setters are not setting the 
values in the database?

View the original post : 
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3849340#3849340

Reply to the post : 
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3849340


-------------------------------------------------------
This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170
Project Admins to receive an Apple iPod Mini FREE for your judgement on
who ports your project to Linux PPC the best. Sponsored by IBM.
Deadline: Sept. 24. Go here: http://sf.net/ppc_contest.php
_______________________________________________
JBoss-Development mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-development

Reply via email to