[Building Sakai] Synoptic Announcements change limit.
Chris Ribble
cribble at uwindsor.ca
Mon Mar 14 08:26:35 PDT 2011
Thank you so much Savitha, that worked perfectly!
Chris
From: Savitha Prakash <savithap at umich.edu>
To: Chris Ribble <cribble at uwindsor.ca>
Cc: sakai-dev at collab.sakaiproject.org
Date: 03/14/2011 10:37 AM
Subject: Re: [Building Sakai] Synoptic Announcements change limit.
Sent by: savithasprakash at gmail.com
Chris,
The announcement messages are getting filtered out to 20 in
AnnouncmentAction.buildMainPanelContext method at
Line 938 messages = prepPage(sstate);
The prepPage(sstate) is a method in PagedResourceActionII class in the
velocity project. In this method, it determines the pageSize from the
STATE_PAGESIZE attribute, which in null in the case of synoptic
announcement, hence it resorts to the default value, which is set to be
20, in this class.
protected List prepPage(SessionState state)
{
// access the page size
int pageSize = state.getAttribute(STATE_PAGESIZE) != null ?
((Integer) state.getAttribute(STATE_PAGESIZE)).intValue() :
DEFAULT_PAGE_SIZE;
If you want to change the value, you will need to set the state attribute
STATE_PAGESIZE in the announcement side. I would hesitate to make any
changes in PagedResourceActionII, as other projects has dependencies on
Velocity.
Hope this helps,
Savitha
On Mon, Mar 14, 2011 at 9:21 AM, Chris Ribble <cribble at uwindsor.ca> wrote:
Hi Savitha,
Thanks for the reply. I've tried changing the items property in
sakai.synoptic.announcement.xml but it still only yields a display of 20
messages. I've even changed the SAK-13116 code in AnnouncementAction.java
to allow more than 20 posts to be set in the tool options. I've also
changed the properties in admin sites tool. Yet, it still only shows 20
posts. Have I missed somewhere else in the code where that number is set?
Thanks again,
Chris
From: Savitha Prakash <savithasprakash at gmail.com>
To: Chris Ribble <cribble at uwindsor.ca>
Cc: sakai-dev at collab.sakaiproject.org
Date: 03/14/2011 08:44 AM
Subject: Re: [Building Sakai] Synoptic Announcements change limit.
Hi Chris,
The default limit can be changed by changing the properties (days, items)
in the registration file of synoptic announcement, which can be found at
announcement-tool/tool/src/webapp/tools/sakai.synoptic.announcement.xml.
Also as a sakai admin, one can change the value of these properties by
admin sites tool
- Savitha
On Fri, Mar 11, 2011 at 3:11 PM, Chris Ribble <cribble at uwindsor.ca> wrote:
Hi All,
I'm currently working on our 2.7.1 test environment trying to get it to
function similarly to our 2.5.2 production environment. It has been noted
that in our 2.5.2 environment we had no limit on Recent Announcement
postings through the Synoptic Announcements Tool. In 2.7.1 however it is
limited at 20. I've checked through the code for some sort of property
relating to this hard limit and I cannot find it. I have found the
SAK-13116 patched area of AnnouncementAction.java and it only allows me to
remove the warning that only 20 posts will be displayed.
We need to be able to set this to a higher number for our sites as some
Profs have raised this as an issue in the past.
Can anyone point me in the right direction?
Thanks
Chris
Chris Ribble
LMS Application Developer
Information Technology Services
University of Windsor
cribble at uwindsor.ca
_______________________________________________
sakai-dev mailing list
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 with a subject of
"unsubscribe"
--
Savitha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20110314/a36c807b/attachment.html
More information about the sakai-dev
mailing list