[Building Sakai] Samigo publishing question

Kevin Carruth kcarruth at virginia.edu
Fri Aug 5 10:05:57 PDT 2011


Hello-

When publishing a test/quiz in Samigo 2.7.1, after setting all the 
release details, the user is presented with a screen that allows them to 
send a notification email. This is done via dropdown whose default value 
is not to send notification, but upon changing it, a small form is 
generated with the quiz title for email subject and a text box for the 
email body.

I'm trying to change the default behavior on this page so that sending 
notification is the default option, but I'm getting stuck. So far I 
believe I've tracked it down to these three files:
   /samigo-app/src/webapp/jsf/author/publishAssessment.jsp
 
/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/bean/author/PublishRepublishNotificationBean.java
 
/samigo-app/src/java/org/sakaiproject/tool/assessment/ui/listener/author/PublishRepublishNotificationListener.java

I was able to change the default selection of the dropdown by changing 
the "value" of the "<h:selectOneMenu ... >" in publishAssessment.jsp, 
but this doesn't provide the associated form that a user would get by 
changing the value themselves.

 From what I can see, the reason for this is that the text on that form 
(including site title, quiz title, etc), as well as the boolean value 
determining whether it shows up at all, is only set in the listener for 
the onChange event, and thus nothing happens until the "selectOneMenu" 
is changed and the onChange event fires off the listener.

Is there a way to fix this without copying the listener's change event 
code into the bean class that it manipulates?

Thanks,
Kevin Carruth @ UVa


More information about the sakai-dev mailing list