Hi,

I am a stripes beginner and am struggling with the following:

I have a checkbox inside a form. Whenever the user checks the checkbox I
would like the form to be submitted and some extra piece of the form to show
up. 

In the jsp I have the following code

<td>Add Category?</td>
                                        <td class="field">
                                        <s:checkbox name="addCategory" 
value="${actionBean.addCategory}"
onclick="javascript:submit(this.form.name);" />
                                                </td>


<c:if test="${not empty actionBean.addCategory && actionBean.addCategory}">
some html
</c:if>

addCategory is a property in an ActionBean. 

This is not working: Every time I uncheck the checkbox, it checks it again.
So I imagine I have to do something in the ActionBean to addCategory but
what?

Thanks much

deb
-- 
View this message in context: 
http://www.nabble.com/how-to-handle-a-checkbox-tp25195596p25195596.html
Sent from the stripes-users mailing list archive at Nabble.com.


------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Stripes-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/stripes-users

Reply via email to