History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: OQ-177
Type: Improvement Improvement
Status: In Progress In Progress
Priority: Major Major
Assignee: Dick Anderson
Reporter: Matthew Tomlinson
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
OpenQuote

detailsRenderHint required on questionWithDetails

Created: 29/Oct/09 07:05 PM   Updated: 30/Oct/09 12:41 PM
Component/s: None
Affects Version/s: 1.2
Fix Version/s: 2.0


 Description  « Hide
a detailsRenderHint attribute is required on questionWithDetails. Iin the following example, the render hint makes both main question and details question radio buttons, however we want the details questions to be a picklist with only the main question being radio buttons.

        <!-- Tools and goods in transit -->
        <questionWithDetails title="Do you require cover for tools and goods in transit?" binding="/section[id='Trade']/attribute[id='TC_Required']" detailsTitle="Sum of tools insured?"
          detailsBinding="/section[id='Trade']/attribute[id='TC_Limit']" styleClass="required" renderHint="radio">
          <errorText error="invalid">Please select an option</errorText>
          <hintText>Tools cover provides insurance against loss or damage to your business tools and equipment.</hintText>
        </questionWithDetails>


 All   Comments   Change History      Sort Order: Ascending order - Click to sort in descending order
Dick Anderson - 30/Oct/09 12:38 PM
Changed to "improvement" as questionWithDetail is behaving as designed.

Dick Anderson - 30/Oct/09 12:41 PM
We'll address this in 2.0. The changes required to QuestionWithDetails and the AttributeField.render*() methods are quite extensive - though it should result in less code and a better structure.