I dont know how to do that...this is how part of my abstract component look
like now:

if (menuItemIdList != null && menuItemIdList.size() > 0) {
                        writer.begin("ul");
                        writer.attribute("class", "categories");
                        for (Long menuItemId : menuItemIdList) {
                                MenuItemDTO menuItemDTO =
articleLinkDTO.getMenuItemDTOMap().get(menuItemId);
                                List<Long> articleIdList = 
menuItemDTO.getArticleIdList();

                                /* More than one article, generat the links in 
lvl 2 */                                 
                                String menuItemName = 
menuItemDTO.getMenuItem().getName();
                                writer.begin("li");
                                writer.attribute("class", "menuItems_lvl_1");
                                
                                menuNameStr = menuNameStr.replace(" ", 
"").toLowerCase();
                                
                                writer.begin("div");
                                writer.attribute("id", "lvl_1_" + menuItemName);
                                writer.attribute("class", "subCategory");
                                writer.begin("a");
                                writer.attribute("href", "");
                                writer.begin("span");
                                writer.print(menuItemName);
                                writer.end(); // end span
                                writer.end(); // end a
                                writer.end(); // end div
                                if (articleIdList != null && 
articleIdList.size() > 0) {
                                        writer.begin("ul");
                                        writer.attribute("class", 
"subMenuItems_lvl_2");
                                        int index = 0;
                                        for (Long articleId : articleIdList) {
                                                Article currentArticle =
articleLinkDTO.getArticleMap().get(articleId);
                                                writer.begin("li");
                                                writer.attribute("class", 
"lvl_2");
                                                writer.begin("div");
                                                writer.attribute("id", "lvl_2_" 
+ currentArticle.getName());
                                                writer.attribute("class", 
"from_lvl_2");                                                
                                                /* add the checkbox */
                                                writer.begin("input");
                                                writer.attribute("type", 
"checkbox");
                                                writer.attribute("name", index);
                                                writer.attribute("value", 
articleId.toString());
                                                if 
(currentRepSiteArticleIdSet.contains(articleId)) {
                                                        
writer.attribute("checked", "true");
                                                }
                                                writer.end(); // end input
                                                /* the link open up the article 
in a pop up window */
                                                writer.begin("a");
                                                writer.attribute("target", 
"_blank");
                                                writer.attribute("href", 
currentArticle.getText());
                                                writer.begin("span");
                                                
writer.print(currentArticle.getName());
                                                writer.end(); //end span
                                                writer.end(); // end a
                                                writer.end(); // end div
                                                writer.end(); // end li
                                                
                                                index++;
                                        }
                                        writer.end(); // end ul
                                        writer.end(); // end li                 
                
                                }                               
                        }
                        writer.end(); // end ul
                } 

do you have any pointers on how to generate and retrieve the checkboxes that
would help a lot....

Thanks,
Jacob

-- 
View this message in context: 
http://www.nabble.com/How-to-get-the-values-from-a-checkBoxes-in-a-abstract-component-tf2713574.html#a7567652
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to