[Building Sakai] Preserving a UISelectChoice state across validation failures

Lovemore Nalube lovemore.nalube at uct.ac.za
Wed Apr 1 02:43:38 PDT 2009


Hi Aaron and Antranig
 
As you know there is work being done on course evaluations.
 
There is one use case that is giving me some trouble viz. re-rendering the take_eval page that has a validation error on it. 
 
It seems to me that RSF magically "remembers" the state of form fields and restores this when rendering the page when showing the validation error. This was the case when I used a UIBoundBoolean checkbox. Unfortunately I had to change this to a UISelectChoice checkbox upon realizing that the boxes needed to hold values other than a boolean. Now RSF doesn't remember the state of the checkboxes.
 
Now my question(s) is this: 
- How can I make RSF remember if a UISelect checkbox was checked - and restore its state? 
- If I got this wrong and RSF simply holds the submitted POST values somewhere and then fills those in again on re-render, then how can I get them and use them to re-render the UI components appropriately?
 
Regards
--
Lovemore Nalube
UCT

>>> On 2009/03/31 at 06:07 PM, in message <684492008.1238515661217.JavaMail.sakai at c1n1.IST.Berkeley.EDU>, "Lovemore Nalube (JIRA)" <bugs-admin at sakaiproject.org> wrote:

    [ http://jira.sakaiproject.org/jira/browse/EVALSYS-694?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=77970#action_77970 ] 

Lovemore Nalube commented on EVALSYS-694:
-----------------------------------------

Rsf will remember UIBoundBoolean form values and restore them, then the JS acts on these states to render the proper divs. Unfortunately, the change to using UISelectChoice from UIBoundBoolean meant that we lost this feature of RSF. So the latest trunk doesn't re-open the selections properly.

> Lecturer/Tutor selections not consistently preserved across validation failures
> -------------------------------------------------------------------------------
>
>                 Key: EVALSYS-694
>                 URL: http://jira.sakaiproject.org/jira/browse/EVALSYS-694 
>             Project: Contrib: Evaluation System
>          Issue Type: Sub-task
>            Reporter: Stephen Marquard
>            Assignee: Lovemore Nalube
>         Attachments: screenshot-1.jpg
>
>
> Create an evaluation with course, lecturer and TA categories. One question in the course category is compulsory.
> Use selection options: one lecturer, multiple TAs
> As a student, take the evaluation.
> Select a lecturer and TAs to evaluate. Do not complete the compulsory course question. Click Submit.
> Evaluation re-renders with a validation error. The Lecturer selection is shown in the drop-down. The TA selections are not shown in the checkboxes. Neither the lecturer nor TA divs are rendered.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.sakaiproject.org/jira/secure/Administrators.jspa 
-
For more information on JIRA, see: http://www.atlassian.com/software/jira 

        


 
______________________________________________________________________________________________ 

UNIVERSITY OF CAPE TOWN 

This e-mail is subject to the UCT ICT policies and e-mail disclaimer published on our website at http://www.uct.ac.za/about/policies/emaildisclaimer/ or obtainable from +27 21 650 4500. This e-mail is intended only for the person(s) to whom it is addressed. If the e-mail has reached you in error, please notify the author. If you are not the intended recipient of the e-mail you may not use, disclose, copy, redirect or print the content. If this e-mail is not related to the business of UCT it is sent by the sender in the sender's individual capacity.

_____________________________________________________________________________________________________
 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://collab.sakaiproject.org/pipermail/sakai-dev/attachments/20090401/0258f373/attachment-0001.html 


More information about the sakai-dev mailing list