[Building Sakai] Samigo publishing question

Kevin Carruth kcarruth at virginia.edu
Fri Aug 5 11:48:59 PDT 2011


Karen-

Thanks! That appears to have done the trick.

K

On 8/5/2011 1:42 PM, Karen Tsao wrote:
> Hi Kevin,
>
> You can make the change to ConfirmPublishAssessmentListener.java by
> setting publishRepublishNotification.setSendNotification(*true*). I
> think the text box will be displayed by default.
>
> Thanks,
> Karen
>
> On Fri, Aug 5, 2011 at 10:05 AM, Kevin Carruth <kcarruth at virginia.edu
> <mailto:kcarruth at virginia.edu>> wrote:
>
>     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
>     _______________________________________________
>     sakai-dev mailing list
>     sakai-dev at collab.sakaiproject.org
>     <mailto:sakai-dev at collab.sakaiproject.org>
>     http://collab.sakaiproject.org/mailman/listinfo/sakai-dev
>
>     TO UNSUBSCRIBE: send email to
>     sakai-dev-unsubscribe at collab.sakaiproject.org
>     <mailto:sakai-dev-unsubscribe at collab.sakaiproject.org> with a
>     subject of "unsubscribe"
>
>


More information about the sakai-dev mailing list