just click the button, find following info:

14:06:01,791 INFO  [STDOUT] beforePhase: RESTORE_VIEW(1)
  | 14:06:01,822 INFO  [STDOUT] afterPhase: RESTORE_VIEW(1)
  | 14:06:01,822 INFO  [STDOUT] beforePhase: APPLY_REQUEST_VALUES(2)
  | 14:06:01,854 INFO  [STDOUT] afterPhase: APPLY_REQUEST_VALUES(2)
  | 14:06:01,854 INFO  [STDOUT] beforePhase: PROCESS_VALIDATIONS(3)
  | 14:06:01,885 INFO  [STDOUT] afterPhase: PROCESS_VALIDATIONS(3)
  | 14:06:01,885 INFO  [STDOUT] beforePhase: UPDATE_MODEL_VALUES(4)
  | 14:06:01,900 INFO  [STDOUT] afterPhase: UPDATE_MODEL_VALUES(4)
  | 14:06:01,916 INFO  [STDOUT] beforePhase: RENDER_RESPONSE(6)
  | 14:06:02,072 INFO  [STDOUT] afterPhase: RENDER_RESPONSE(6)

Also, here are the code:

<h:form id="projectSearchForm">
  |             <table class="jiraform  maxWidth">
  |             <tbody>
  |               <tr>
  |                 <td class="jiraformheader" colspan="7">
  |                 <a href="#" 
  |                   target="_jirahelp">
  |                   <h:graphicImage url="/img/help_blue.gif"
  |                       border="0" width="16" align="right"
  |                      title="Get online help about Defining Project Versions"
  |                                      alt="Get help!" />
  |                   </a> 
  |                   <h3 class="formtitle">Administration</h3></td></tr>
  |               <tr>
  |                 <td class="jiraformbody" colspan="7">
  |                   <p>Below is the list of all 1 projects for this 
installation 
  |                   of JIRA. </p>
  |                     <p>
  |                             <h:graphicImage url="/img/bullet_creme.gif"
  |                                     border="0" height="8" width="8" 
align="absMiddle" />
  |                                                     <b><a id="add_project" 
href="#">Add Project</a></b>
  |                                     </p>
  |                                     <p>
  |                                             Displaying proects 
<b><h:outputText value="#{projectQueryAction.startIndex}" /></b>
  |                                              to <b><h:outputText 
value="#{projectQueryAction.endIndex}" /></b> 
  |                                              of <b><h:outputText 
value="#{projectQueryAction.totalCount}" /></b>. 
  |                                             <font size="1">(<a 
href="#">Reset Filter</a>) </font>
  |                                     </p>
  |                             </td>
  |                       </tr>
  |                       
  |                       <tr bgcolor="#ffffff">
  |                 <td align="right" bgcolor="#fffff0"><b>Project Per 
Page:</b></td>
  |                 <td>
  |                                      <h:selectOneMenu 
value="#{projectQueryAction.pageSize}">
  |                                     <f:selectItem itemLabel="All" 
itemValue="1000000"/>
  |                                     <f:selectItem itemLabel="3" 
itemValue="3"/>
  |                                     <f:selectItem itemLabel="20" 
itemValue="20"/>
  |                                     <f:selectItem itemLabel="50" 
itemValue="50"/>
  |                                     </h:selectOneMenu>
  |                             </td>
  |                 <td align="right" bgcolor="#fffff0">
  |                     <b>Name Contains:</b>
  |                 </td>
  |                 <td>
  |                     <h:inputText id="searchString" 
value="#{projectQueryAction.searchString}" size="15" />
  |                 </td>
  |                 <td align="right" bgcolor="#fffff0">
  |                     <b>Status:</b>
  |                 </td>
  |                 <td>
  |                      <h:selectOneMenu 
value="#{projectQueryAction.searchStatus}">
  |                                     <f:selectItem itemLabel="Any" 
itemValue=""/>
  |                                     <f:selectItem itemLabel="Open" 
itemValue="open"/>
  |                                     <f:selectItem itemLabel="Closed" 
itemValue="closed"/>
  |                                     </h:selectOneMenu>
  |                             </td>
  |                 <td>
  |                     <h:commandButton id="findButton" value="Filter" 
action="#{projectQueryAction.find2}" /> 
  |                     </td>
  |               </tr>
  |                     </tbody>
  |             </table>        
  |     </h:form>

package com.eastidea.qaforum.action;
  | 
  | import java.io.Serializable;
  | import java.util.List;
  | 
  | import javax.ejb.Remove;
  | import javax.ejb.Stateful;
  | import javax.persistence.EntityManager;
  | import javax.persistence.PersistenceContext;
  | import javax.persistence.Query;
  | 
  | import org.jboss.seam.ScopeType;
  | import org.jboss.seam.annotations.Destroy;
  | import org.jboss.seam.annotations.Factory;
  | import org.jboss.seam.annotations.Name;
  | import org.jboss.seam.annotations.Scope;
  | import org.jboss.seam.annotations.datamodel.DataModel;
  | import org.jboss.seam.annotations.datamodel.DataModelSelection;
  | import org.jboss.seam.annotations.security.Restrict;
  | 
  | import com.eastidea.qaforum.entity.Project;
  | 
  | @Stateful
  | @Name("projectQueryAction")
  | @Scope(ScopeType.SESSION)
  | @Restrict("#{identity.loggedIn}")
  | public class ProjectQueryAction implements ProjectQueryInterface, 
Serializable {
  | 
  |     @PersistenceContext
  |     public EntityManager em;
  |     
  |     @DataModel
  |     private List<Project> projectList;
  | 
  |     @Factory("projectList")
  |     public void initProjectList() {
  |             find();
  |     }
  |     
  |     public void find() {
  |             if (curPage == -1)      curPage = 1;
  |             dealConditions();
  |             doQuery();
  |     }
  |     
  |     public String searchString;
  |     public String searchStatus;
  |     public String conditions;

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4021887#4021887

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4021887
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to