[jboss-svn-commits] JBL Code SVN: r10668 - in labs/jbossforums/branches/forums101P26/forums/src: main/org/jboss/portlet/forums and 6 other directories.

jboss-svn-commits at lists.jboss.org jboss-svn-commits at lists.jboss.org
Fri Mar 30 21:45:25 EDT 2007


Author: unibrew
Date: 2007-03-30 21:45:25 -0400 (Fri, 30 Mar 2007)
New Revision: 10668

Modified:
   labs/jbossforums/branches/forums101P26/forums/src/bin/portal-forums-war/default_graphics/forums_styles.css
   labs/jbossforums/branches/forums101P26/forums/src/main/org/jboss/portlet/forums/ForumsModule.java
   labs/jbossforums/branches/forums101P26/forums/src/main/org/jboss/portlet/forums/impl/ForumsModuleImpl.java
   labs/jbossforums/branches/forums101P26/forums/src/main/org/jboss/portlet/forums/ui/action/ForumWatchController.java
   labs/jbossforums/branches/forums101P26/forums/src/main/org/jboss/portlet/forums/ui/view/ViewMyForums.java
   labs/jbossforums/branches/forums101P26/forums/src/resources/portal-forums-war/WEB-INF/classes/ResourceJSF.properties
   labs/jbossforums/branches/forums101P26/forums/src/resources/portal-forums-war/WEB-INF/forums-config.xml
   labs/jbossforums/branches/forums101P26/forums/src/resources/portal-forums-war/views/myforums/myforums_main.xhtml
Log:
[JBFORUMS-175] I finished up NewTopicsView for MyForums.

Modified: labs/jbossforums/branches/forums101P26/forums/src/bin/portal-forums-war/default_graphics/forums_styles.css
===================================================================
--- labs/jbossforums/branches/forums101P26/forums/src/bin/portal-forums-war/default_graphics/forums_styles.css	2007-03-30 23:49:30 UTC (rev 10667)
+++ labs/jbossforums/branches/forums101P26/forums/src/bin/portal-forums-war/default_graphics/forums_styles.css	2007-03-31 01:45:25 UTC (rev 10668)
@@ -84,21 +84,20 @@
 	margin: 5px auto;
 	color:#CC0000;
 	font-size:12px;
-}	font-weight:bold;	
-
+	font-weight: bold;	
+}	
 /* --------------------------- Buttons ---------------------------------- */
 
-
 .buttonMed {
 	font-size: 10px;
-   font-weight: bold;
-   color: #FFFFFF;
-   background-color: #4a5d75;
-   border-top: 1px solid #94aebd;
-   border-left: 1px solid #94aebd;
-   border-right: 1px solid #233345;
-   border-bottom: 1px solid #233345;
-   height:20px;
+	font-weight: bold;
+	color: #FFFFFF;
+	background-color: #4a5d75;
+	border-top: 1px solid #94aebd;
+	border-left: 1px solid #94aebd;
+	border-right: 1px solid #233345;
+	border-bottom: 1px solid #233345;
+	height: 20px;
 }
 
 .actionbuttons {

Modified: labs/jbossforums/branches/forums101P26/forums/src/main/org/jboss/portlet/forums/ForumsModule.java
===================================================================
--- labs/jbossforums/branches/forums101P26/forums/src/main/org/jboss/portlet/forums/ForumsModule.java	2007-03-30 23:49:30 UTC (rev 10667)
+++ labs/jbossforums/branches/forums101P26/forums/src/main/org/jboss/portlet/forums/ForumsModule.java	2007-03-31 01:45:25 UTC (rev 10668)
@@ -542,9 +542,9 @@
 
    List findForumWatchByUser(User user) throws ModuleException;
 
-   List findForumWatchByUserFetchForum(User user) throws ModuleException;
+   List findForumWatchedByUserFetchForumWatches(User user) throws ModuleException;
    
-   List findTopicWatchByUserFetchTopic(User user) throws ModuleException;
+   List findTopicWatchedByUserFetchTopicWatches(User user) throws ModuleException;
    
    Attachment findFindAttachmentById(Integer attachID)
         throws ModuleException;

Modified: labs/jbossforums/branches/forums101P26/forums/src/main/org/jboss/portlet/forums/impl/ForumsModuleImpl.java
===================================================================
--- labs/jbossforums/branches/forums101P26/forums/src/main/org/jboss/portlet/forums/impl/ForumsModuleImpl.java	2007-03-30 23:49:30 UTC (rev 10667)
+++ labs/jbossforums/branches/forums101P26/forums/src/main/org/jboss/portlet/forums/impl/ForumsModuleImpl.java	2007-03-31 01:45:25 UTC (rev 10668)
@@ -1552,40 +1552,46 @@
       }
    }
    
-   public List findForumWatchByUserFetchForum(User user) throws ModuleException
+   public List findForumWatchedByUserFetchForumWatches(User user) throws ModuleException
    {
       try
       {
          Session session = getSession();
-         Query query = session.createQuery("from ForumWatchImpl as f " +
-                                           "join fetch f.forum " +
-                                           "where f.poster.userId = :userId ");
+         Query query = session.createQuery("select f " +
+                                           "from ForumImpl as f " +
+                                           "where f.id IN ( "+
+                                           "    select fw.forum.id " +
+                                           "    from ForumWatchImpl fw " +
+                                           "    where fw.poster.userId = :userId )");
          query.setString("userId", user.getId().toString());
          return query.list();
       }
       catch (HibernateException e)
       {
-         String message = "Cannot find forum watch";
+         String message = "Cannot find forum watched";
          log.error(message, e);
          throw new ModuleException(message, e);
       }
    }
    
-   public List findTopicWatchByUserFetchTopic(User user) throws ModuleException
+   public List findTopicWatchedByUserFetchTopicWatches(User user) throws ModuleException
    {
       try
       {
          Session session = getSession();
-         Query query = session.createQuery("from TopicWatchImpl as t " +
-                                           "join fetch t.topic to " +
-                                           "where t.poster.userId = :userId " +
-                                           "order by to.lastPostDate ");
+         Query query = session.createQuery("select t " +
+                                           "from TopicImpl as t " +
+                                           "where t.id IN ( " +
+                                           "    select tw.topic.id " +
+                                           "    from TopicWatchImpl tw " +
+                                           "    where tw.poster.userId = :userId ) " +
+                                           "order by t.lastPostDate ");
          query.setString("userId", user.getId().toString());
          return query.list();
       }
       catch (HibernateException e)
       {
-         String message = "Cannot find forum watch";
+         String message = "Cannot find topic watched";
          log.error(message, e);
          throw new ModuleException(message, e);
       }

Modified: labs/jbossforums/branches/forums101P26/forums/src/main/org/jboss/portlet/forums/ui/action/ForumWatchController.java
===================================================================
--- labs/jbossforums/branches/forums101P26/forums/src/main/org/jboss/portlet/forums/ui/action/ForumWatchController.java	2007-03-30 23:49:30 UTC (rev 10667)
+++ labs/jbossforums/branches/forums101P26/forums/src/main/org/jboss/portlet/forums/ui/action/ForumWatchController.java	2007-03-31 01:45:25 UTC (rev 10668)
@@ -195,13 +195,32 @@
         String navState = null;
         try
         {
+            int watchId = -1;
+            
 	        String w = JSFUtil.getRequestParameter(Constants.p_watchId);
-	        int watchId = Integer.parseInt(w);
+            if (w!=null && w.trim().length()>0)
+            {
+	           watchId = Integer.parseInt(w);
+            }
 	        
-	        this.getForumsModule().removeWatch(this.getForumsModule().findForumWatchById(new Integer(watchId)));
+            if (watchId==-1)
+            {
+                String f = JSFUtil.getRequestParameter(Constants.p_forumId);
+                if (f!=null && f.trim().length()>0)
+                {
+                   int forumId = Integer.parseInt(f);
+                   ForumWatch forumWatch = getForumsModule().findForumWatchByUserAndForum(PortalUtil.getUser(), forumId);
+                   watchId = forumWatch!=null ? forumWatch.getId().intValue() : -1;
+                }
+            }
+            
+            if (watchId!=-1)
+            {
+	           this.getForumsModule().removeWatch(this.getForumsModule().findForumWatchById(new Integer(watchId)));
 	        
-	        //refresh the watch list
-	        this.reloadWatches();
+    	        // refresh the watch list
+	           this.reloadWatches();
+            }
         }
         catch(Exception e)
         {

Modified: labs/jbossforums/branches/forums101P26/forums/src/main/org/jboss/portlet/forums/ui/view/ViewMyForums.java
===================================================================
--- labs/jbossforums/branches/forums101P26/forums/src/main/org/jboss/portlet/forums/ui/view/ViewMyForums.java	2007-03-30 23:49:30 UTC (rev 10667)
+++ labs/jbossforums/branches/forums101P26/forums/src/main/org/jboss/portlet/forums/ui/view/ViewMyForums.java	2007-03-31 01:45:25 UTC (rev 10668)
@@ -23,7 +23,9 @@
 
 import java.util.Collection;
 import java.util.HashMap;
+import java.util.HashSet;
 import java.util.Map;
+import java.util.Set;
 import java.util.LinkedList;
 import java.util.Iterator;
 import java.util.Date;
@@ -32,9 +34,11 @@
 import org.jboss.portlet.forums.ui.Constants;
 import org.jboss.portlet.forums.ui.JSFUtil;
 import org.jboss.portlet.forums.ui.PortalUtil;
+import org.jboss.portlet.forums.ui.ThemeHelper;
 import org.jboss.portlet.forums.ui.action.PreferenceController;
+import org.jboss.portlet.forums.model.Post;
 import org.jboss.portlet.forums.model.Topic;
-import org.jboss.portlet.forums.model.TopicWatch;
+import org.jboss.portlet.forums.model.Forum;
 
 /**
  * 
@@ -54,6 +58,8 @@
     private Map topicsLastPosts;
     
     private Collection watchedForums;
+    private Map forumImageDescriptions;
+    private Map forumImages;
     private Collection watchedTopics;
     private Collection watchedTopicsWithNewPosts;
     private Map topicNavigator = new HashMap();
@@ -67,7 +73,7 @@
         {
             try
             {
-                watchedForums = BaseController.getForumsModule().findForumWatchByUserFetchForum(PortalUtil.getUser());
+                watchedForums = BaseController.getForumsModule().findForumWatchedByUserFetchForumWatches(PortalUtil.getUser());
             } catch (Exception e)
             {
                 JSFUtil.handleException(e);
@@ -85,6 +91,29 @@
     }
     
     /**
+     * @return Returns the forumImageDescriptions.
+     */
+    public Map getForumImageDescriptions() 
+    {
+        if(this.forumImageDescriptions==null)
+        {
+            this.forumImageDescriptions = new HashMap();
+        }
+        return this.forumImageDescriptions;
+    }
+    /**
+     * @return Returns the forumImages.
+     */
+    public Map getForumImages() 
+    {
+        if(this.forumImages==null)
+        {
+            this.forumImages = new HashMap();
+        }
+        return forumImages;
+    }
+    
+    /**
      * 
      */
     public Collection getWatchedTopics()
@@ -93,7 +122,7 @@
         {
             try
             {
-                watchedTopics = BaseController.getForumsModule().findTopicWatchByUserFetchTopic(PortalUtil.getUser());
+                watchedTopics = BaseController.getForumsModule().findTopicWatchedByUserFetchTopicWatches(PortalUtil.getUser());
             } catch (Exception e)
             {
                 JSFUtil.handleException(e);
@@ -127,8 +156,7 @@
             Iterator it = topics.iterator();
             while (it.hasNext())
             {
-                TopicWatch topicWatch = (TopicWatch)it.next();
-                Topic topic = topicWatch.getTopic();
+                Topic topic = (Topic)it.next();
                 if (topic.getLastPostDate().compareTo(lastLoginDate)>0)
                 {
                     watchedTopicsWithNewPosts.add(topic);
@@ -155,7 +183,15 @@
         {
             try
             {
-                topicsLastPosts = BaseController.getForumsModule().findLastPostsOfTopics(getWatchedTopics());
+                Collection watched = getWatchedTopics();
+                Set temporaryContainer = new HashSet(watched.size());
+                Iterator it = watched.iterator();
+                while (it.hasNext())
+                {
+                    Topic topic = (Topic)it.next();
+                    temporaryContainer.add(topic);
+                }
+                topicsLastPosts = BaseController.getForumsModule().findLastPostsOfTopics(temporaryContainer);
             } catch (Exception e)
             {
                 JSFUtil.handleException(e);
@@ -206,7 +242,25 @@
         return this.topicNavigator;
     }
     
+    //------------user preferences-------------------------------------------------------------------------------------------------------------  
     /**
+     * @return Returns the userPreferences.
+     */
+    public PreferenceController getUserPreferences() 
+    {
+        return userPreferences;
+    }
+    /**
+     * @param userPreferences The userPreferences to set.
+     */
+    public void setUserPreferences(PreferenceController userPreferences) 
+    {
+        this.userPreferences = userPreferences;    
+    }
+    
+    // -------- Business logic ----------------------------------------------------------------------------------------------------------------
+    
+    /**
      * 
      */
     public ViewMyForums ()
@@ -235,7 +289,7 @@
     /**
      * 
      */
-    public void execute()
+    public void execute() throws Exception
     {
         // Forcing initialization of collections
         getWatchedForums();
@@ -248,23 +302,50 @@
         // setup dummy pageNavigators for all topics being displayed for topic minipaging
         for(Iterator itr=topics.iterator();itr.hasNext();)
         {
-            TopicWatch courTopicWatch = (TopicWatch)itr.next();
-            Topic cour = courTopicWatch.getTopic();
-            if(cour.getReplies()>0)
+            Topic courTopic = (Topic)itr.next();
+            if(courTopic.getReplies()>0)
             {
-                PageNavigator topicNav = new PageNavigator(cour.getReplies()+1,
+                PageNavigator topicNav = new PageNavigator(courTopic.getReplies()+1,
                 Integer.parseInt(this.userPreferences.getPreference(Constants.POSTS_TOPIC_KEY)), //this is user's posts per page preference
                 0 //current page of the navigator
                 ) {
-
                        protected Collection initializePage() {
                            return null;
                        }
                        
                    };
-                this.topicNavigator.put(cour.getId(),topicNav);
+                this.topicNavigator.put(courTopic.getId(),topicNav);
             }
         }
+        
+        Collection forums = getWatchedForums();
+        Date userLastLogin = PortalUtil.getUserLastLoginDate(); 
+        
+        for (Iterator iter = forums.iterator(); iter.hasNext();)
+        {
+            Forum currentForum = (Forum) iter.next();
+        
+            // setup folderLook based on whats specified in the theme
+            String folderImage = ThemeHelper.getInstance().getResourceForumURL();
+            String folderAlt = "No_new_posts"; //bundle key
+            if (this.forumsLastPosts!=null && this.forumsLastPosts.containsKey(currentForum.getId()))
+            {
+                Post lastPost = (Post)this.forumsLastPosts.get(currentForum.getId());
+                Date lastPostDate = lastPost.getCreateDate();
+                if (lastPostDate!=null && userLastLogin!=null && lastPostDate.compareTo(userLastLogin)>0)
+                {
+                    folderAlt = "New_posts"; //bundle key
+                    folderImage = ThemeHelper.getInstance().getResourceForumNewURL();
+                }
+            }
+            if (currentForum.getStatus() == Constants.FORUM_LOCKED)
+            {
+               folderImage = ThemeHelper.getInstance().getResourceForumLockedURL();
+               folderAlt = "Forum_locked"; //bundle key
+            }              
+            this.getForumImages().put(currentForum.getId(),folderImage);
+            this.getForumImageDescriptions().put(currentForum.getId(),folderAlt);
+        }
     }
 
 }

Modified: labs/jbossforums/branches/forums101P26/forums/src/resources/portal-forums-war/WEB-INF/classes/ResourceJSF.properties
===================================================================
--- labs/jbossforums/branches/forums101P26/forums/src/resources/portal-forums-war/WEB-INF/classes/ResourceJSF.properties	2007-03-30 23:49:30 UTC (rev 10667)
+++ labs/jbossforums/branches/forums101P26/forums/src/resources/portal-forums-war/WEB-INF/classes/ResourceJSF.properties	2007-03-31 01:45:25 UTC (rev 10668)
@@ -2018,9 +2018,10 @@
 MyForums_info=This is your personalized forum view. From here, you can view and manage your subscribed forums, subscribed topics and email notifications.
 Subscribed_topics_info=Subscribed Topics with New Posts
 Subscribed_forums_info=Subscribed Forums
+NoNewPosts=There are no new posts to your subscribed threads.
+ViewAllSubscribed=View All Subscribed Topics
 
 
-
 #
 # From the mod "Watched Topics List" (http://www.netclectic.com/)
 # plus some custom for the forum watches

Modified: labs/jbossforums/branches/forums101P26/forums/src/resources/portal-forums-war/WEB-INF/forums-config.xml
===================================================================
--- labs/jbossforums/branches/forums101P26/forums/src/resources/portal-forums-war/WEB-INF/forums-config.xml	2007-03-30 23:49:30 UTC (rev 10667)
+++ labs/jbossforums/branches/forums101P26/forums/src/resources/portal-forums-war/WEB-INF/forums-config.xml	2007-03-31 01:45:25 UTC (rev 10668)
@@ -520,5 +520,10 @@
         <managed-bean-name>myForums</managed-bean-name>
         <managed-bean-class>org.jboss.portlet.forums.ui.view.ViewMyForums</managed-bean-class>
         <managed-bean-scope>request</managed-bean-scope>
+        <managed-property>
+            <property-name>userPreferences</property-name>
+            <property-class>org.jboss.portlet.forums.ui.action.PreferenceController</property-class>
+            <value>#{prefController}</value>
+        </managed-property>
      </managed-bean>
 </faces-config>

Modified: labs/jbossforums/branches/forums101P26/forums/src/resources/portal-forums-war/views/myforums/myforums_main.xhtml
===================================================================
--- labs/jbossforums/branches/forums101P26/forums/src/resources/portal-forums-war/views/myforums/myforums_main.xhtml	2007-03-30 23:49:30 UTC (rev 10667)
+++ labs/jbossforums/branches/forums101P26/forums/src/resources/portal-forums-war/views/myforums/myforums_main.xhtml	2007-03-31 01:45:25 UTC (rev 10668)
@@ -51,6 +51,7 @@
         <td class="forumheadercentered">${resource.Delete}</td>
     </tr>
     
+    <c:if test="${forums:collectionSize(myForums.watchedTopicsWithNewPosts) gt 0}">
     <c:forEach items="#{myForums.watchedTopicsWithNewPosts}" var="topicrow" varStatus="status" >
     <tr class='${(status.index%2==0)?"evenRow":"oddRow"}'>
         <td class="forumlisticon">
@@ -126,7 +127,7 @@
                     </c:when>
                     
                     <c:otherwise>
-                        #{forum.topicsLastPosts[topicrow.id].message.subject}
+                        #{myForums.topicsLastPosts[topicrow.id].message.subject}
                     </c:otherwise>
                     
                 </c:choose>
@@ -136,7 +137,7 @@
             <c:choose>
             
                 <c:when test="#{myForums.anonymous}">
-                    ${forum.topicsLastPosts[topicrow.id].poster.user.userName}
+                    ${myForums.topicsLastPosts[topicrow.id].poster.user.userName}
                 </c:when>
                             
                 <c:otherwise>
@@ -148,9 +149,10 @@
                             
             </c:choose>
             <br />
-            #{forum.topicsLastPosts[topicrow.id].createDate}
+            #{myForums.topicsLastPosts[topicrow.id].createDate}
         </td>
         <td class="forumlistcentered">
+        <h:form>
             <div class="actionbuttons">
                 <ul>
                     <li>
@@ -165,15 +167,25 @@
                     </li>
                 </ul>
             </div>
+        </h:form>
         </td>
     </tr>
     </c:forEach>
+    </c:if>
     
+    <c:if test="${forums:collectionSize(myForums.watchedTopicsWithNewPosts) eq 0}">
+        <tr>
+            <td class="nonewpostRow" colspan="6">
+                ${resource.NoNewPosts}
+            </td>
+        </tr>
+    </c:if>
+    
 <!-- TODO: MOUNT VIEW ALL SUBSCRIBED TOPICS ACTION -->
     <tr>
         <td class="footerrow" colspan="6">
             <a href="#">
-                View All Subscribed Topics
+                ${resource.ViewAllSubscribed}
             </a>
         </td>
     </tr>
@@ -188,141 +200,97 @@
 <table width="100%"  border="0" cellpadding="0" cellspacing="0" class="forumtablestyle">
     <tr class="header">
         <td class="forumheaderfirst" colspan="2">${resource.Subscribed_forums_info}</td>
-        <td class="forumheadercentered">Topics</td>
-        <td class="forumheadercentered">Posts</td>
-        <td class="forumheaderopen">Last Post </td>
-	    <td class="forumheadercentered">Delete</td>
+        <td class="forumheadercentered">#{resource.Topics}</td>
+        <td class="forumheadercentered">#{resource.Posts}</td>
+        <td class="forumheaderopen">#{resource.Last_Post}</td>
+	    <td class="forumheadercentered">${resource.Delete}</td>
     </tr>
+    
+    <c:forEach items="#{myForums.watchedForums}" var="forumrow">
+    <forums:isAllowed fragment="acl://readForum" contextData="#{forumrow}">
     <tr>
         <td class="forumlisticon">
-            <img src="images/forum_ico_new_open.gif" width="11" height="14" />
+            <img src="#{myForums.forumImages[forumrow.id]}" width="11" height="14"
+                 alt="#{resource[myForums.forumImageDescriptions[forumrow.id]]}" 
+                 title="#{resource[myForums.forumImageDescriptions[forumrow.id]]}" />
         </td>
         <td>
             <h3>
-                <a href="a">Forum 1 </a>
+                <h:outputLink value="#{forums:outputLink(shared.links['forum'],true)}">
+                    <f:param name="f" value="#{forumrow.id}"/>
+                    <h:outputText value="#{forumrow.name}"/>
+                </h:outputLink>
             </h3>
-            Forum description
+            ${forumrow.description}
         </td>
-        <td class="forumlistcentered">76</td>
-        <td class="forumlistcentered">2,000</td>
+        <td class="forumlistcentered">${forumrow.topicCount}</td>
+        <td class="forumlistcentered">${forumrow.postCount}</td>
         <td class="forumlistlast">
-            <a href="#">New release of JBoss AS&#8230;</a>
-            <br />
-            by 
-            <a href="#">scriptoverloard</a><br />
-            Today 10:26 PM
+        
+            <c:choose>
+                <c:when test="#{myForums.forumsLastPosts[forumrow.id]!=null}">
+        
+                    <a href="#{forums:postPermlink(myForums.forumsLastPosts[forumrow.id].id)}">
+                    <c:choose>
+                        <c:when test="#{forums:isLongerThan(myForums.forumsLastPosts[forumrow.id].message.subject,25)}">
+                            #{forums:subString(myForums.forumsLastPosts[forumrow.id].message.subject,25)}&#8230;
+                        </c:when>
+                        <c:otherwise>
+                            #{myForums.forumsLastPosts[forumrow.id].message.subject}
+                        </c:otherwise>
+                    </c:choose>
+                    </a>
+                    
+                    <br></br>
+                    ${resource.By}&#160;
+                    
+                    <c:choose>
+                    
+                        <c:when test="#{myForums.anonymous}">
+                            ${myForums.forumsLastPosts[forumrow.id].poster.user.userName}
+                        </c:when>
+                        
+                        <c:otherwise>
+                            <h:outputLink value="#{forums:outputLink(shared.links['profile'],true)}">
+                                <f:param name="uid" value="#{myForums.forumsLastPosts[forumrow.id].poster.user.id}"/>
+                                <h:outputText value="${myForums.forumsLastPosts[forumrow.id].poster.user.userName}"/>
+                            </h:outputLink>
+                        </c:otherwise>
+                        
+                    </c:choose>
+                    
+                    <br></br>
+                    #{myForums.forumsLastPosts[forumrow.id].createDate}
+                    
+                </c:when>
+                
+                <c:otherwise>
+                    #{resource.No_Posts}
+                </c:otherwise>
+                
+            </c:choose>
         </td>
         <td class="forumlistcentered">
+        <h:form>
             <div class="actionbuttons">
                 <ul>
                     <li>
-                        <a href="#">
-                            <img src="images/forum_ico_admindelete_norm.gif" alt="Delete" name="delete" border="0" />
-                        </a>
+                        <h:commandLink action="#{forumWatch.deActivateWatch}">
+                            <f:param name="w" value="#{forums:isWatchingForum(forumrow)}" />
+                            <img src="#{forums:themeURL('resourceTopicModeDeleteURL')}"
+                                 alt="${resource.Unsubscribe_from_forum}"
+                                 name="unSubscribe"
+                                 border="0"
+                                 id="unSubscribe" />
+                        </h:commandLink>
                     </li>
                 </ul>
             </div>
+        </h:form>
         </td>
     </tr>
-    
-    
-    
-    
-          <tr>
-            <td class="forumlisticon"><img src="images/forum_ico_nonew_open.gif" width="11" height="14" /></td>
-            <td><h3><a href="a">Forum 2 </a></h3>
-              Forum description</td>
-            <td class="forumlistcentered">76</td>
-            <td class="forumlistcentered">2,000</td>
-            <td class="forumlistlast"><a href="#">New release of JBoss AS&#8230;</a><br />
-              by <a href="#">scriptoverloard</a><br />
-              Today 10:26 PM</td>
-            <td class="forumlistcentered"><div class="actionbuttons">
-              <ul>
-                <li><a href="#"><img src="images/forum_ico_admindelete_norm.gif" alt="Delete" name="delete" border="0" /></a></li>
-              </ul>
-            </div></td>
-          </tr>
-          <tr>
-            <td class="forumlisticon"><img src="images/forum_ico_new_open.gif" width="11" height="14" /></td>
-            <td><h3><a href="a">Forum 3 </a></h3>
-              Forum description</td>
-            <td class="forumlistcentered">76</td>
-            <td class="forumlistcentered">2,000</td>
-            <td class="forumlistlast"><a href="#">New release of JBoss AS&#8230;</a><br />
-              by <a href="#">scriptoverloard</a><br />
-              Today 10:26 PM</td>
-            <td class="forumlistcentered"><div class="actionbuttons">
-              <ul>
-                <li><a href="#"><img src="images/forum_ico_admindelete_norm.gif" alt="Delete" name="delete" border="0" /></a></li>
-              </ul>
-            </div></td>
-          </tr>
-          <tr>
-            <td class="forumlisticon"><img src="images/forum_ico_nonew_open.gif" width="11" height="14" /></td>
-            <td><h3><a href="a">Forum 4 </a></h3>
-              Forum description</td>
-            <td class="forumlistcentered">76</td>
-            <td class="forumlistcentered">2,000</td>
-            <td class="forumlistlast"><a href="#">New release of JBoss AS&#8230;</a><br />
-              by <a href="#">scriptoverloard</a><br />
-              Today 10:26 PM</td>
-            <td class="forumlistcentered"><div class="actionbuttons">
-              <ul>
-                <li><a href="#"><img src="images/forum_ico_admindelete_norm.gif" alt="Delete" name="delete" border="0" /></a></li>
-              </ul>
-            </div></td>
-          </tr>
-          <tr>
-            <td class="forumlisticon"><img src="images/forum_ico_new_open.gif" width="11" height="14" /></td>
-            <td><h3><a href="a">Forum 5 </a></h3>
-              Forum description</td>
-            <td class="forumlistcentered">76</td>
-            <td class="forumlistcentered">2,000</td>
-            <td class="forumlistlast"><a href="#">New release of JBoss AS&#8230;</a><br />
-              by <a href="#">scriptoverloard</a><br />
-              Today 10:26 PM</td>
-            <td class="forumlistcentered"><div class="actionbuttons">
-              <ul>
-                <li><a href="#"><img src="images/forum_ico_admindelete_norm.gif" alt="Delete" name="delete" border="0" /></a></li>
-              </ul>
-            </div></td>
-          </tr>
-          <tr>
-            <td class="forumlisticon"><img src="images/forum_ico_nonew_open.gif" width="11" height="14" /></td>
-            <td><h3><a href="a">Forum 6 </a></h3>
-              Forum description</td>
-            <td class="forumlistcentered">76</td>
-            <td class="forumlistcentered">2,000</td>
-            <td class="forumlistlast"><a href="#">New release of JBoss AS&#8230;</a><br />
-              by <a href="#">scriptoverloard</a><br />
-              Today 10:26 PM</td>
-            <td class="forumlistcentered"><div class="actionbuttons">
-              <ul>
-                <li><a href="#"><img src="images/forum_ico_admindelete_norm.gif" alt="Delete" name="delete" border="0" /></a></li>
-              </ul>
-            </div></td>
-          </tr>
-          <tr>
-            <td class="forumlisticon"><img src="images/forum_ico_nonew_locked.gif" width="11" height="14" /></td>
-            <td><h3><a href="a">Forum 7 </a></h3>
-              Forum description</td>
-            <td class="forumlistcentered">76</td>
-            <td class="forumlistcentered">2,000</td>
-            <td class="forumlistlast"><a href="#">New release of JBoss AS&#8230;</a><br />
-              by <a href="#">scriptoverloard</a><br />
-              Today 10:26 PM</td>
-            <td class="forumlistcentered"><div class="actionbuttons">
-              <ul>
-                <li><a href="#"><img src="images/forum_ico_admindelete_norm.gif" alt="Delete" name="delete" border="0" /></a></li>
-              </ul>
-            </div></td>
-          </tr>
-          
-          
-          
-          
-          
+    </forums:isAllowed>
+    </c:forEach>
 </table>
 
 <div class="forumlegend">




More information about the jboss-svn-commits mailing list