JSF Coding The TaskList JSF Page

Coding The TaskList JSF Page

  • Edit tool/src/webapp/tasklist/TaskList.jsp"
  • Just print the user's display name on a page
    <%@ taglib uri="http://sakaiproject.org/jsf/sakai" prefix="sakai" %>
    <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
    <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %> 
     
    <f:view>
    	<sakai:view_container title="Task List Tool">
    		<sakai:view_content>
    			<h:form id="tasks">
    			 	<sakai:view_title value="Task List"/>
    			 	<h:outputText value="Hello, #{TaskListBean.currentUserDisplayName}"/>
    			 </h:form>
      		</sakai:view_content>	
    	</sakai:view_container>
    </f:view> 
    
  • Screen capture
    • !TaskListShowDisplayName!