Advertisement

03.10.2008 at 08:55AM PDT, ID: 23228798
[x]
Attachment Details

Rich Faces

Asked by vkchaitu82 in Java Server Faces (JSF)

In my login page , when I click LOGIN , the validation should be done and also a modalpanel should be opened if the user enters correct username and password. But in my case , the validation is done ,but the ModalPanel is not opening.Start Free Trial
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:
51:
52:
53:
54:
55:
56:
57:
58:
59:
60:
61:
62:
63:
64:
65:
66:
67:
68:
<rich:panel header="User Login">
										<TABLE WIDTH="100%" CELLPADDING="5" CELLSPACING="0">
											
											<TR>
												<TD ALIGN=RIGHT NOWRAP><b><font COLOR="#0F218B">User ID:</font></b></TD>
												<TD><h:inputText size="15" value="#{loginbean.userid}"/></TD>
											</TR>
											<TR>
												<TD ALIGN=RIGHT NOWRAP><b><font COLOR="#0F218B">Password:</font></b></TD>
												<TD><h:inputSecret  size="15" value="#{loginbean.password}"/></TD>
											</TR>
											<TR>
												<TD ALIGN=CENTER COLSPAN="2">
												
												<a4j:commandButton value="Login" action="#{loginbean.validate}" reRender="result,mp"
                                                  onmouseover="this.style.color='#d30100'"  onmouseout="this.style.color='#ffffff'" style="background:url(images/toolbar-Menu-Back.gif) repeat-x;border:1px solid #5f8cc3;color:#ffffff"
                                                  oncomplete="Richfaces.showModalPanel('storerForm:mp',{top:320,left:450});" />
												
												</TD>
											</TR>
										</TABLE>									
									</rich:panel></div>						
								
						</TD></TR>
				</TABLE></div>
		
				<P><HR SIZE="2" WIDTH="700"></HR>
				<P align = center>2008 &copy; Copyright Kintetsu World Express, Inc. All rights reserved. 
				
				</TR>
				
			</TABLE>
		</div>
		</TD>
		</TR>
		</TABLE>
		</div>	
			</div>
			</div>
   	 	
<div id="bottom"  class="mainbottom">		
</div>
</h:form>
			<h:form id="storerForm">
				<rich:modalPanel  id="mp" height="180" width="230" moveable="true"  zindex="1" left="5" top="5" styleClass="rich-mpnl-text">
                    <f:facet name="header">
                     <h:outputText value=" Please Select Warehouse  /  Storer" />
                     </f:facet>
                      <f:facet name="controls">
                      <h:graphicImage value="/images/close.png" style="cursor:pointer" onclick="Richfaces.hideModalPanel('mp')" />
                     </f:facet>
                      <b> Warehouse</b>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<b> Storer </b>
                   <rich:scrollableDataTable width="230px" height="80px" rows="7"  
                   value="#{WareHouseBean.warID}" var="category">
                      <rich:column id="wareHouseID" width="100">
						<f:facet name="header"><h:outputText styleClass="headerText" value="Warehouse" /></f:facet>
						<h:outputText value="#{category.wareHouseID}" />
					</rich:column>
					<rich:column id="storerkey" width="110">
						<f:facet name="header"><h:outputText styleClass="headerText" value="Storer" /></f:facet>
						<h:outputText value="#{category.storerkey}" />
					</rich:column>		
                  </rich:scrollableDataTable>  
			 			<br></br>
			 			&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
			 			<a4j:commandButton value="Select"  reRender="mp"  />                        
        
                  </rich:modalPanel>
[+][-]03.11.2008 at 12:49AM PDT, ID: 21093700

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.11.2008 at 07:24AM PDT, ID: 21095970

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.11.2008 at 08:04AM PDT, ID: 21096380

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.11.2008 at 08:17AM PDT, ID: 21096523

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.11.2008 at 12:44PM PDT, ID: 21099341

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.11.2008 at 03:10PM PDT, ID: 21100918

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.12.2008 at 12:19AM PDT, ID: 21103678

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]03.12.2008 at 07:29AM PDT, ID: 21106303

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]03.13.2008 at 12:54AM PDT, ID: 21114090

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Java Server Faces (JSF)
Sign Up Now!
Solution Provided By: Bart_Cr
Participating Experts: 1
Solution Grade: B
 
 
[+][-]03.13.2008 at 12:24PM PDT, ID: 21119848

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32 / EE_QW_2_20070628