[jboss-user] [JBoss Seam] - Re: h:commandLink action method does not execute when using

jtsimikas do-not-reply at jboss.com
Fri Nov 9 10:03:18 EST 2007


Here is the code as requested:




  | <!DOCTYPE html PUBLIC 
  | "-//W3C//DTD XHTML 1.0 Transitional//EN" 
  | "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  | 
  | 
  | <div class='divPage' xmlns:ui="http://java.sun.com/jsf/facelets"
  | 	xmlns:h="http://java.sun.com/jsf/html"
  | 	xmlns:f="http://java.sun.com/jsf/core" 
  | 	xmlns:s="http://jboss.com/products/seam/taglib" 
  | 	xmlns:corejsf="http://java.sun.com/upload" 
  | 	align='center'>
  | 
  | 
  | 
  |     <h:form id="physicalInsertForm">
  | 	
  | 	<h:panelGrid columns="1" styleClass="solidBorder"  headerClass="largeHeader" >
  |         <f:facet name="header">
  |           <h:outputText value="SCS - Physical Inserts" />
  |         </f:facet>
  | 
  | 
  | 
  | 	<h:panelGrid columns="3" cellpadding='2' cellspacing='2' 
  | 	              styleClass="width100"
  | 	              columnClasses='width40,width30,width30'>
  | 		<h:panelGroup  style="display:block; text-align:left">
  | 			<h:outputText value="Institution : " styleClass='labelTD'/>
  | 			<h:outputText value="#{mainClientInfo.institutionName}" styleClass='selectTD'/>
  | 		</h:panelGroup>
  | 		<h:panelGroup  >
  | 			<h:outputText value="Charter : " styleClass='labelTD'/>
  | 			<h:outputText value="#{cuClientInfo.charterNbr}" styleClass='selectTD'/>
  | 		</h:panelGroup>
  | 		<h:panelGroup  >
  | 			<h:outputText value="Client Id : " styleClass='labelTD'/>
  | 			<h:outputText value="#{fdrClientId}" styleClass='selectTD'/>
  | 		</h:panelGroup>
  | 	</h:panelGrid>
  | 
  | 	<h:panelGrid columns="1" cellpadding='2' cellspacing='2' 
  | 	              styleClass="width100" 
  | 	              columnClasses='width100' >
  | 		<h:panelGroup style="display:block; text-align:left">
  | 			<h:outputText value="User Name : " styleClass='labelTD'/>
  | 			<h:outputText value="#{identity.userFullName}" styleClass='selectTD'/>
  | 		</h:panelGroup>
  | 	</h:panelGrid>
  | 
  | 	<h:panelGrid columns="1" cellpadding='4' cellspacing='4' 
  | 	              styleClass='divider' style="">
  | 		<h:panelGroup  >
  | 			<h:outputText value=" " styleClass='labelTD'/>
  | 		</h:panelGroup>
  | 	</h:panelGrid>
  | 
  | 	<h:panelGrid columns="1" cellpadding='4' cellspacing='4' 
  | 	              styleClass='width100' >
  | 		<h:panelGroup  styleClass="InsertTable">
  |             <h:dataTable id="PhysicalInserts" 
  |                     value="#{scsGraphicInserts}" var="inserts"
  |                      styleClass="width100" >
  | 
  |             <h:column styleClass="InsertTable" >
  |                 <f:facet name="header" styleClass="">
  |                     <h:outputText value="This page allows you to include Physical Inserts with the statement." 
  |                     styleClass='pageHeaderText'/>
  |                 </f:facet>
  |                 
  |                 
  | 				<h:panelGrid columns="2" cellpadding='4' cellspacing='4' 
  | 				              columnClasses='width50,width50'
  | 				              styleClass='width100' >
  | 					<h:panelGroup>
  |                       <h:outputText value="Insert Description " styleClass='insertLabel'/>
  |                       <h:inputText value="#{inserts.description}" size="40" maxlength="50" 
  |                                   styleClass='selectTD'/>
  |                     </h:panelGroup>
  |                     
  | 					<h:panelGroup>
  |                       <h:outputText value="Disclosure " styleClass='insertLabel'/>
  |                       <h:selectBooleanCheckbox value="#{inserts.disclosure}" id="Disclosure" >
  |                       </h:selectBooleanCheckbox>
  | 					</h:panelGroup>
  | 				</h:panelGrid>
  | 				
  | 				<h:panelGrid  columns="2" cellpadding='4' cellspacing='4' 
  | 				              columnClasses='width50,width50'
  | 				              styleClass='width100' >
  | 					<h:panelGroup>
  |                         <h:outputText value="Destroy Excess Inventory " styleClass='insertLabel'/>
  | 		                <h:selectBooleanCheckbox value="#{inserts.destroyInventory}" 
  | 		                                      id="DestroyInventory" 
  | 		                                      onclick="enableDisableShipping();" >
  | 		                </h:selectBooleanCheckbox>
  | 					</h:panelGroup>
  | 					
  | 					<h:panelGroup>
  |                       <h:outputText value="Retain Future Use " styleClass='insertLabel'/>
  | 		                <h:selectBooleanCheckbox value="#{inserts.retainFutureUse}" 
  | 		                                      id="RetainFutureUse" >
  | 		                </h:selectBooleanCheckbox>
  | 					</h:panelGroup>
  | 				</h:panelGrid>
  | 				
  | 
  | 				<h:panelGrid id="panelGridShip" columns="4" cellpadding='4' cellspacing='4' 
  | 				              columnClasses='width25,width25,width25,width25'
  | 				              styleClass='width100' >
  | 
  | 					<h:panelGroup>
  |                         <h:outputText id="labelAddress" value="Address " styleClass='insertLabel'/>
  | 		                <h:inputText id="Address" value="#{inserts.addr}" styleClass='selectTD'/>
  | 					</h:panelGroup>
  | 
  | 					<h:panelGroup>
  | 		                <h:outputText id="labelCity"  value="City " styleClass='insertLabel'/>
  | 		                <h:inputText id="City" value="#{inserts.city}" styleClass='selectTD'/>
  | 					</h:panelGroup>
  | 
  | 					<h:panelGroup>
  | 		                <h:outputText id="labelState"  value="State " styleClass='insertLabel'/>
  | 		                <h:inputText id="State" value="#{inserts.state}" size="2" styleClass='selectTD'/>
  | 					</h:panelGroup>
  | 
  | 					<h:panelGroup>
  | 		                <h:outputText id="labelZipcode"  value="Zipcode " styleClass='insertLabel'/>
  | 		                <h:inputText id="Zipcode" value="#{inserts.zipcode}" 
  | 		                       size="10" styleClass='selectTD'/>
  | 					</h:panelGroup>
  | 
  |   			    </h:panelGrid>
  | 
  | 				<h:panelGrid id="panelGridContact" columns="2" cellpadding='4' cellspacing='4' 
  | 				              columnClasses='width50,width50'
  | 				              styleClass='width100' >
  | 					<h:panelGroup>
  |                         <h:outputText id="labelContact"  value="Contact Person " styleClass='insertLabel'/>
  | 		                <h:inputText id="Contact" size="30"
  | 		                 value="#{inserts.contact}" styleClass='selectTD'/>
  | 					</h:panelGroup>
  | 					
  | 					<h:panelGroup>
  | 		                <h:outputText id="labelPhone"  value="Telephone Nbr " styleClass='insertLabel'/>
  | 		                <h:inputText id="Phone" value="#{inserts.phone}" size="15" 
  | 		                styleClass='selectTD'/>
  | 					</h:panelGroup>
  | 
  | 				</h:panelGrid>
  |   			    
  | 				<h:panelGrid columns="2" cellpadding='4' cellspacing='4' 
  | 				              styleClass='width100' 
  | 				              columnClasses="width75,width25">
  | 					
  | 					<h:panelGroup >
  | 						<h:outputText value="File : " styleClass='labelTD'/>
  | 		                <h:outputText value="No attachment" styleClass='selectTD'/>
  | 					</h:panelGroup>
  | 
  | 					<h:panelGroup >
  | 						<h:commandButton value="Attach Insert.." 
  | 					           		     styleClass='attachFileButton' 
  | 					           		     action="#{scsMain.gotoAttachInserts}" immediate="true" />
  | 					</h:panelGroup>
  | 					
  | 				</h:panelGrid>
  | 				
  | 				<h:panelGrid columns="1" cellpadding='4' cellspacing='4' 
  | 				              styleClass='divider' style="">
  | 					<h:panelGroup  >
  | 					</h:panelGroup>
  | 				</h:panelGrid>
  | 				
  | 				
  |             </h:column>
  |             
  |             </h:dataTable>
  |        </h:panelGroup>
  |        
  |        <h:panelGroup>
  | 			<h:commandButton value=" Apply Changes " 
  | 		           		     styleClass='attachFileButton' 
  | 		           		     immediate="true" />
  |        </h:panelGroup>
  |        
  |     </h:panelGrid>
  | 
  | 
  | 
  | 	<h:panelGrid columns="1" cellpadding='4' cellspacing='4'         >
  | 		<h:panelGroup  >
  | 			<h:outputText value="To select a Statement Page click on the thumbnail below." 
  | 			styleClass='grayText'/>
  | 			
  | 		</h:panelGroup>
  |     </h:panelGrid>
  |     
  | 
  | 	<h:panelGrid columns="1" cellpadding='2' cellspacing='2' styleClass="thumbnailTable" >
  | 		<h:panelGroup styleClass="thumbnailTR">
  | 		
  | 		<h:commandLink styleClass="thumbLink" action="#{scsMain.gotoPage1}"   >
  |        	   <h:graphicImage styleClass="thumbnail" value='/images/page1thumb.png'/>
  |      	</h:commandLink>
  |      	
  | 		<h:outputText styleClass="thumbSep"  value=" " />
  |      	
  | 		<h:commandLink styleClass="thumbLink" action="#{scsMain.gotoPage2}" >
  |        	   <h:graphicImage styleClass="thumbnail" value='/images/page2thumb.png'/>
  |      	</h:commandLink>
  |      	
  | 		<h:outputText styleClass="thumbSep"  value=" " />
  |      	
  |      	
  | 		<h:commandLink styleClass="thumbLink" action="#{scsMain.gotoPage3}">
  |      	   <h:graphicImage styleClass="thumbnail" value='/images/page3thumb.png'/>
  |      	</h:commandLink>
  |      	
  | 		<h:outputText styleClass="thumbSep"  value=" " />
  | 
  | 		<h:commandLink styleClass="thumbLink" action="#{scsMain.gotoConvCheckFront}" 
  |             rendered="#{scsMainBackBean.couponOrCheck eq 'Check'}"	>
  |      	  <h:graphicImage styleClass="thumbnail" value='/images/page4-convcheck-thumb.png'/>
  |      	</h:commandLink>
  |      	
  | 		<h:outputText styleClass="thumbSep"  value=" " 
  | 		   rendered="#{scsMainBackBean.couponOrCheck eq 'Check'}"	/>
  | 
  | 		<h:commandLink styleClass="thumbLink" action="#{scsMain.gotoConvCheckBack}"
  |             rendered="#{scsMainBackBean.couponOrCheck eq 'Check'}"	>
  |      	  <h:graphicImage styleClass="thumbnail" value='/images/page5-convcheck-thumb.png'/>
  |      	</h:commandLink>
  |      	
  | 		<h:outputText styleClass="thumbSep" value=" " 
  | 		     rendered="#{scsMainBackBean.couponOrCheck eq 'Check'}"	/>
  | 
  | 		<h:commandLink styleClass="thumbLink" action="#{scsMain.gotoCouponFront}"
  |             rendered="#{scsMainBackBean.couponOrCheck eq 'Coupon'}"	>
  |      	  <h:graphicImage styleClass="thumbnail" value='/images/page4-coupon-thumb.png'/>
  |      	</h:commandLink>
  | 
  | 		<h:outputText styleClass="thumbSep"  value=" " 
  | 		       rendered="#{scsMainBackBean.couponOrCheck eq 'Coupon'}"	/>
  | 		
  | 		<h:commandLink styleClass="thumbLink" action="#{scsMain.gotoCouponBack}"
  |             rendered="#{scsMainBackBean.couponOrCheck eq 'Coupon'}"	>
  |      	<h:graphicImage styleClass="thumbnail" value='/images/page5-124-125-127-thumb.png'/>
  |      	</h:commandLink>
  | 
  | 
  | 		</h:panelGroup>
  | 	</h:panelGrid>
  | 
  | 	<h:panelGrid columns="1" cellpadding='4' cellspacing='4'         >
  | 		<h:panelGroup  >
  | 		<h:commandLink action="#{scsMain.gotoMainPage}" styleClass='goBackLink'>
  | 			<h:outputText value="[Back To Main Page] " />
  | 		</h:commandLink>
  | 		
  | 		<h:outputText value="   " />
  | 		
  | 		<h:commandLink action="#{scsMain.gotoCriteria}" styleClass='goBackLink'>
  | 			<h:outputText value=" [Edit/View Criteria Sets]" />
  | 		</h:commandLink>
  | 		</h:panelGroup>
  |     </h:panelGrid>
  | 
  | 
  | 	
  | </h:panelGrid>
  | 
  | 
  | 
  | </h:form>
  | 
  | </div>
  | 


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

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



More information about the jboss-user mailing list