-
1. Re: Problems with persistence
noel.rocher Feb 21, 2003 7:14 AM (in response to julien1)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? -
2. Re: looking for module/block developpers
sanne Feb 21, 2003 11:42 AM (in response to julien1)Hi,
A quickstart/overview might be encouraging,
always interested in good software...
Regards,
Sanne -
3. Re: looking for module/block developpers
julien1 Feb 21, 2003 12:50 PM (in response to julien1)you're right,
I was thinking about it and I will do it.
julien -
4. Re: looking for module/block developpers
kabb Feb 25, 2003 7:51 AM (in response to julien1)Hi,
I've been wanting to get involved for a while, but due to a high workload I have not been able to find the time so far. However, things have cooled off a bit now, so count me in!
Do you have a list of modules you would like ported?
Kab -
5. Re: looking for module/block developpers
cmyers Mar 31, 2003 3:52 PM (in response to julien1)Just read marcf's message - and have been waiting for something like this for Jboss - how can I help?
-
6. Re: looking for module/block developpers
crypto Apr 1, 2003 2:23 AM (in response to julien1)just let me know how i can help and what blocks you want developed. I have been developing J2EE apps on JBoss with EJB's and JSP's(Struts) for the last 2 years so i might be of some help. ;-)
Werner
http://www.shiftat.com/blog/page/werner -
7. Re: looking for module/block developpers
julien1 Apr 1, 2003 9:56 AM (in response to julien1)it's good to see you all wanting to contribute.
kevin viet has started to develop the "news" module. He has already done the "sections" module.
I am going to post a whish list for modules/blocks with priority + difficulty.
I want all the questions about developement done in forum so people can follow us.
First of all, port a module or block, then we give you CVS access and you integrate within nukes. We won't give RW CVS for nothing.
Please also understand that we don't like blahblah, it means don't make us big promises.
Start small, make something valuable and show us by writing code that you want to contribute, that's the only thing we want.
julien -
8. Re: looking for module/block developpers
jmatt Apr 1, 2003 12:10 PM (in response to julien1)I will be willing to write some modules/blocks as well. Looking forward to seeing the wish list so we can pick a module and run with it. Will the wish list be posted here or on a project page?
tx
Matt -
9. Re: looking for module/block developpers
julien1 Apr 1, 2003 12:44 PM (in response to julien1)in this forum tonight or tomorrow.
julien -
10. Module list
julien1 Apr 3, 2003 6:15 PM (in response to julien1)here are the module we wish ported :
they are small, that means they can be ported
in a fair amount of time. it won't take you
1 month, not even 2 weeks.
Kevin ported sections in 10 days and its size
is relatively big. We think learning curve for nukes
is fairly small though we don't have enough
doco. Doco will come soon.
FAQ : provides a faq
downloads : provides downloads to users
Admin_Messages : allow the admin to leave a message visible to all users on website
LostPassword : enalbe password recovery sent by email
Web Links : web link management
In progress ------------------------------
news it encompass 4 postnuke modules : comments, AddStory, Submit_News, Topics
Done so far -----------------------------
youraccount, user, journal, sections
Howto : ----------------------------------
first read the small doco we have provided.
there are no clear rules about how to do it.
first, look at other module ports like journal for instance, which is pretty simple.
if you choose to port a module please leave a message on this forum.
You can ask questions here about module development. We will answer them the best we can and we will help you.
You should install postnuke on your system
and see what the modules are able to do.
There are php installation packages that bundles apache http + php + mysql. With that it take you 15 minutes to install postnuke on your system.
To understand PHP language : php.net
thank you
julien -
11. Re: looking for module/block developpers
julien1 Apr 3, 2003 6:17 PM (in response to julien1)here are the module we wish ported :
they are small, that means they can be ported
in a fair amount of time. it won't take you
1 month, not even 2 weeks.
Kevin ported sections in 10 days and its size
is relatively big. We think learning curve for nukes
is fairly small though we don't have enough
doco. Doco will come soon.
FAQ : provides a faq
downloads : provides downloads to users
Admin_Messages : allow the admin to leave a message visible to all users on website
LostPassword : enalbe password recovery sent by email
Web Links : web link management
In progress ------------------------------
news it encompass 4 postnuke modules : comments, AddStory, Submit_News, Topics
Done so far -----------------------------
youraccount, user, journal, sections
Howto : ----------------------------------
first read the small doco we have provided.
there are no clear rules about how to do it.
first, look at other module ports like journal for instance, which is pretty simple.
if you choose to port a module please leave a message on this forum.
You can ask questions here about module development. We will answer them the best we can and we will help you.
You should install postnuke on your system
and see what the modules are able to do.
There are php installation packages that bundles apache http + php + mysql. With that it take you 15 minutes to install postnuke on your system.
To understand PHP language : php.net
thank you
julien -
12. Re: looking for module/block developpers
h2o_polo Apr 4, 2003 11:10 AM (in response to julien1)
julien, is there any paln to port forums (adapt your old version to nukes)?
I mean I can't stress enough how much I hate the current setup, but then again I would not say anything new. -
13. Re: looking for module/block developpers
julien1 Apr 4, 2003 1:26 PM (in response to julien1)yes they are planned, no I won't take the shit I did 5 month ago.
I can't stand these forum also. I think nobody can.
julien -
14. Re: Module list
rsaccon Apr 9, 2003 10:22 PM (in response to julien1)I was playing with Nukes (unfortunately sections and journal were throwing exceptions, instead of doing something useful)
Well, I liked it, and if nobody else has done so far, I will take the following module from your wishlist:
LostPassword : enalbe password recovery sent by email
regards
Roberto