Sure, they are in a form. That's why I'm wondering about this behaviour.

Here's the page:
<ui:define name="content">
  |  <h:form>
  |   <div class="errors"><h:messages globalOnly="true" /></div>
  |   <div class="buttonLine">
  |    <h:commandButton action="#{showTestactionForDevelopers.saveTestaction}" 
image="img/showTestaction.save.gif" styleClass="graphical" />
  |    <h:commandButton 
action="#{showTestactionForDevelopers.saveTestactionAndNext}" 
image="img/showTestaction.saveAndNext.gif" styleClass="graphical" />
  |      
  |    <h:commandButton action="#{showTestactionForDevelopers.prevTestaction}" 
image="img/showTestaction.prev.gif" styleClass="graphical" immediate="true" />
  |    <h:outputText value="#{showTestactionForDevelopers.testactionIndexHR} | 
#{showTestactionForDevelopers.testactionsSize}" styleClass="indexAndSize" />
  |    <h:commandButton action="#{showTestactionForDevelopers.nextTestaction}" 
image="img/showTestaction.next.gif" styleClass="graphical" immediate="true" 
style="margin-left: 0px; margin-right: 15px;" />
  |   </div>
  |   
  |   <table cellpadding="0" cellspacing="0" border="0">
  |    <tr>
  |     <th><h:outputText value="#{ares_messages.label_testaction_ID}" /></th>
  |     <th><h:outputText value="#{ares_messages.label_testaction_TDate}" 
/></th>
  |     <th><h:outputText value="#{ares_messages.label_testaction_TCaseID}" 
/></th>
  |     <th><h:outputText value="#{ares_messages.label_testaction_TesterUsrID}" 
/></th>
  |     <th><h:outputText value="#{ares_messages.label_testaction_EnvID}" 
/></th>
  |     <th><h:outputText value="#{ares_messages.label_testaction_SevID}" 
/></th>
  |     <th><h:outputText value="#{ares_messages.label_testaction_EditorUsrID}" 
/></th>
  |     <th><h:outputText value="#{ares_messages.label_testaction_DevUsrID}" 
/></th>
  |     <th><h:outputText value="#{ares_messages.label_testaction_RevID}" 
/></th>
  |     <th><h:outputText value="#{ares_messages.label_testaction_ChnglistID}" 
/></th>
  |     <th><h:outputText 
value="#{ares_messages.label_testaction_ValidatorUsrID}" /></th>
  |     <th> </th>
  |    </tr>
  |    <tr>
  |     <td><h:outputText value="#{currentTestaction.ID}" /></td>
  |     <td><h:outputText value="#{currentTestaction.TDate}" /></td>
  |     <td>
  |      <h:selectOneMenu value="#{currentTestaction.TCaseID}">
  |       <f:selectItems value="#{showTestactionForDevelopers.testcases}" />
  |       <f:convertNumber />
  |      </h:selectOneMenu>
  |     </td>
  |     <td><h:outputText value="#{currentTestaction.testerUsrID}" /></td>
  |     <td><h:outputText value="#{currentTestaction.envID}" /></td>
  |     <td><h:outputText value="#{currentTestaction.sevID}" /></td>
  |     <td><h:outputText value="#{currentTestaction.editorUsrID}" /></td>
  |     <td>
  |      <h:selectOneMenu value="#{currentTestaction.devUsrID}">
  |       <f:selectItems value="#{showTestactionForDevelopers.developers}" />
  |       <f:convertNumber />
  |      </h:selectOneMenu>
  |     </td>
  |     <td>
  |      <h:selectOneMenu value="#{currentTestaction.revID}">
  |       <f:selectItems value="#{showTestactionForDevelopers.revisions}" />
  |       <f:convertNumber />
  |      </h:selectOneMenu>
  |     </td>
  |     <td><h:inputText 
value="#{currentTestaction.chnglistID}"><f:convertNumber /></h:inputText></td>
  |     <td><h:outputText value="#{currentTestaction.validatorUsrID}" /></td>
  |     <td> </td>
  |    </tr>
  |   </table>
  |   
  |   <table cellpadding="0" cellspacing="0" border="0">
  |    <tr>
  |     <th><h:outputText value="#{ares_messages.label_testaction_CompID}" 
/></th>
  |     <th><h:outputText value="#{ares_messages.label_testaction_TCaseToken}" 
/></th>
  |     <th><h:outputText value="#{ares_messages.label_testaction_Cost}" /></th>
  |    </tr>
  |    <tr>
  |     <td><h:outputText value="#{currentTestaction.compID}" /></td>
  |     <td><h:outputText value="#{currentTestaction.TCaseToken}" /></td>
  |     <td><h:inputText value="#{currentTestaction.cost}"><f:convertNumber 
/></h:inputText></td>
  |    </tr>
  |   </table>
  |   
  |   <table cellpadding="0" cellspacing="0" border="0">
  |    <tr>
  |     <th><h:outputText value="#{ares_messages.label_testaction_TestBNrID}" 
/></th>
  |     <th><h:outputText value="#{ares_messages.label_testaction_DevRelID}" 
/></th>
  |     <th><h:outputText value="#{ares_messages.label_testaction_DevBNrID}" 
/></th>
  |     <th><h:outputText value="#{ares_messages.label_testaction_DefCID}" 
/></th>
  |     <th> </th>
  |    </tr>
  |    <tr>
  |     <td><h:outputText value="#{currentTestaction.testBNrID}" /></td>
  |     <td><h:outputText 
value="#{showTestactionForDevelopers.developerReleaseHR} 
(#{currentTestaction.devRelID})" /></td>
  |     <td><h:outputText value="#{currentTestaction.devBNrID}" /></td>
  |     <td><h:outputText value="#{currentTestaction.defCID}" /></td>
  |     <td> </td>
  |    </tr>
  |   </table>
  |   
  |   <table cellpadding="0" cellspacing="0" border="0">
  |    <tr>
  |     <th colspan="2"><h:outputText 
value="#{ares_messages.label_testaction_TCaseDescr}" /></th>
  |    </tr>
  |    <tr>
  |     <td colspan="2"><h:outputText value="#{currentTestaction.TCaseDescr}" 
styleClass="largeOutput" /></td>
  |    </tr>
  |    <tr>
  |     <th colspan="2"><h:outputText 
value="#{ares_messages.label_testaction_TCaseExpResult}" /></th>
  |    </tr>
  |    <tr>
  |     <td colspan="2"><h:outputText 
value="#{currentTestaction.TCaseExpResult}" styleClass="largeOutput" /></td>
  |    </tr>
  |    <tr>
  |     <th colspan="2"><h:outputText 
value="#{ares_messages.label_testaction_DefectDescr}" /></th>
  |    </tr>
  |    <tr>
  |     <td colspan="2"><h:outputText value="#{currentTestaction.defectDescr}" 
styleClass="largeOutput" /></td>
  |    </tr>
  |    <tr>
  |     <th><h:outputText value="#{ares_messages.label_testaction_DevRemark}" 
/></th>
  |     <th><h:outputText value="#{ares_messages.label_testaction_ValRemark}" 
/></th>
  |    </tr>
  |    <tr>
  |     <td><h:inputTextarea value="#{currentTestaction.devRemark}" /></td>
  |     <td><h:inputTextarea value="#{currentTestaction.valRemark}" /></td>
  |    </tr>
  |   </table>
  |  </h:form>
  | </ui:define>

And here is the component:
@Stateful
  | @Scope(ScopeType.SESSION)
  | @LoggedIn
  | @Name("showTestactionForDevelopers")
  | @Interceptors(SeamInterceptor.class)
  | public class ShowTestactionForDevelopers implements 
IShowTestactionForDevelopers{
  |     @PersistenceContext(unitName = "aresDatabase", type = 
PersistenceContextType.EXTENDED)
  |     private EntityManager em;
  |     
  |     @In
  |     @Valid
  |     private User user;
  |     
  |     @In
  |     private FacesContext facesContext;
  |     
  |     @In
  |     private Context sessionContext;
  |     
  |     @In(required=false)
  |     private List<Testaction> currentTestactions;
  |     @In(required=false)
  |     private Integer currentTestactionIndex;
  |     @In(required=false)
  |     @Out(required=false, scope=ScopeType.EVENT)
  |     @Valid
  |     private Testaction currentTestaction;
  |     
  |     private transient List<Testcase> testcases;
  |     private transient List<User> developers;
  |     private transient List<Revisionclass> revisions;
  |             
  |     public String saveTestaction() {
  |             saveCurrentTestaction();
  |             return "backToList";
  |     }
  | }

Sorry, that I didn't post the code, but I thought this problem was known.

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

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3930571


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to