We have 2 cases where we need to display a matrix with checkboxes. In the
first case, the matrix has 3 columns, in the second, it has 8.

Both are working, and both were implemented as ListViews. But is there a way
to make this a Shared Component, with a more elegant design? The problem is
the HTML needs to list out the columns of every row. This makes it necessary
to implement the 2 cases separately. We would like a reusable component.

Example from Case 1, with 3 checkbox columns:

                   

                          
                            

                                Document Type
                                <input type="checkbox"
onclick="checkAll(this, 'cbView');"> View
                                <input type="checkbox"
onclick="checkAll(this, 'cbUpload');"> Upload
                                <input type="checkbox"
onclick="checkAll(this, 'cbDelete');"> Delete
                            
                          
                          
                          

                                <strong wicket:id="docType"></strong>()
                                <input class="cbView" type="checkbox"
value="checkbox" wicket:id="view_flag" />
                                <input class="cbUpload" type="checkbox"
value="checkbox" wicket:id="upload_flag" />
                                <input class="cbDelete" type="checkbox"
value="checkbox" wicket:id="delete_flag" />
                          
                          
                        


Thanks



--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Make-a-Shared-Variable-Length-ListView-checkbox-matrix-with-N-columns-tp4661825.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to