How to save data from editable fields (input,textarea) in display:table (display tag library)

StackOverflow https://stackoverflow.com/questions/16706526

  •  30-05-2022
  •  | 
  •  

Question

I need to save data from input tag inside display:table. I am expecting some listener or some mechanism to process my current shown table. Please guide me. Thanks

Technology in use: Struts 1.2, Display tag library, jsp.

Code:

<display:column style="text-align: left;" class="align_left"   property="masterAppQuestions.quesDescription"  title="Performance Criteria"   headerClass="sortable" >
</display:column>
<display:column style="text-align: left;" class="align_center"    title="Rating"   headerClass="sortable" >
    <input type="text" name="performance_rating1" size="5" value='<bean:write name="answerList" property="rating"/>'/>
</display:column>
<display:column style="text-align: left;" class="align_center"  title="Comments"   headerClass="sortable" >
    <textarea  name="performance_comment" rows="2" cols="60" >
        <bean:write name="answerList" property="ansDescription"/>
    </textarea>
</display:column>

Was it helpful?

Solution

If you want to save rating after change you can use this: http://api.jquery.com/change/

OTHER TIPS

I got the solution, Thanks Alex. when onchange event happens i assigned the hidden field with the input field value and by nature hidden field submits the value on submitting the page. Thanks again.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top