From: <jbo...@li...> - 2006-05-24 22:34:16
|
Author: unibrew Date: 2006-05-24 18:34:09 -0400 (Wed, 24 May 2006) New Revision: 4411 Modified: labs/jbossforums/trunk/forums/src/main/org/jboss/portlet/forums/ui/action/ModeratorAction.java labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views/moderator/modcp_body.xhtml Log: [JBFORUMS-39] Modified: labs/jbossforums/trunk/forums/src/main/org/jboss/portlet/forums/ui/action/ModeratorAction.java =================================================================== --- labs/jbossforums/trunk/forums/src/main/org/jboss/portlet/forums/ui/action/ModeratorAction.java 2006-05-24 22:31:43 UTC (rev 4410) +++ labs/jbossforums/trunk/forums/src/main/org/jboss/portlet/forums/ui/action/ModeratorAction.java 2006-05-24 22:34:09 UTC (rev 4411) @@ -30,6 +30,7 @@ import java.util.ResourceBundle; +import javax.faces.application.FacesMessage; import javax.faces.component.UIComponent; import javax.faces.component.UIViewRoot; import javax.faces.component.html.HtmlInputHidden; @@ -142,6 +143,8 @@ public String deleteTopic () { + //System.out.println("HELLO"); + //FacesContext.getCurrentInstance().addMessage("message",new FacesMessage(FacesMessage.SEVERITY_INFO,"ehhh","ehhh")); return ""; } @@ -152,6 +155,11 @@ public String lockTopic () { + Iterator it = checkboxes.keySet().iterator(); + while (it.hasNext()) + { + Integer topicId = (Integer)it.next(); + } return ""; } @@ -172,13 +180,11 @@ { // start with a stub implementation this.forum = BaseController.getForumsModule().findForumById(new Integer(forumId)); - //checkboxes = new HashMap(forum.getTopicCount()); checkboxes=new HashMap(); Iterator it = forum.getTopics().iterator(); while (it.hasNext()) { Topic topic = (Topic)it.next(); - //checkboxes.put(topic.getId(),Boolean.FALSE); } } } Modified: labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views/moderator/modcp_body.xhtml =================================================================== --- labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views/moderator/modcp_body.xhtml 2006-05-24 22:31:43 UTC (rev 4410) +++ labs/jbossforums/trunk/forums/src/resources/portal-forums-war/views/moderator/modcp_body.xhtml 2006-05-24 22:34:09 UTC (rev 4411) @@ -11,10 +11,10 @@ <!-- TODO: <n:errors/> -<n:success/> +<n:success/>--> <h:messages layout="table" infoStyle="color:green" warnStyle="color:red" /> ---> + <h:form> <table width="100%" cellspacing="2" cellpadding="2" border="0" align="center"> <tr> @@ -79,7 +79,7 @@ <td class="catBottom" colspan="5" height="29"> <h:commandButton action="#{moderator.deleteTopic}" class="liteoption" value="${resource.Delete}"> - <f:param name="f" value="#{forum.forum.id}"/> + <f:param name="f" value="#{forum.forum.id}"/> </h:commandButton> &nbsp; <h:commandButton action="#{moderator.moveTopic}" class="liteoption" value="${resource.Move}"> @@ -118,6 +118,7 @@ </td> </tr> </table> +<ui:debug hotkey="l" /> </ui:define> </ui:composition> </div> |