Xpages Login (SQLite)


...

				<table align="center" width="300" height="100">
					<tr>
						<td style="background-color:rgb(128,128,64)">

							<xp:span style="font-weight:bold">UserID</xp:span></td>
						<td style="background-color:rgb(128,128,64)">

							<xp:inputText id="userID1" value="#{LoginBeanSQL.userID}" defaultValue="#{javascript:session.getCommonUserName()}"></xp:inputText>
						</td>
					</tr>
					<tr>
						<td style="background-color:rgb(128,128,64)">

							<xp:span style="font-weight:bold;background-color:rgb(128,128,64)"></xp:span><xp:span style="font-weight:bold">PassWord
						</xp:span></td>
						<td style="background-color:rgb(128,128,64)">

							<xp:inputText id="passWord1"
								value="#{LoginBeanSQL.passWord}" password="true">
							</xp:inputText>
						</td>
					</tr>
					<tr>
						<td style="background-color:rgb(128,128,128)"></td>
						<td style="background-color:rgb(128,128,128)">
														
								<xp:button value="Submit"
										id="button1">
										<xp:eventHandler event="onclick"
											submit="true" refreshMode="complete" immediate="false"
											save="true" id="eventHandler1">

											<xp:this.action><![CDATA[#{javascript:LoginBeanSQL.doGetUserCreds()}]]></xp:this.action>
										</xp:eventHandler>
									</xp:button>
									
									<xp:button value="Reset"
										id="button2">
										<xp:eventHandler event="onclick"
											submit="true" refreshMode="complete" immediate="false"
											save="true" id="eventHandler2">

											<xp:this.action><![CDATA[#{javascript:context.redirectToPage("xploginform");}]]></xp:this.action>
										</xp:eventHandler>
									</xp:button>
								
								
								
								
						</td>
					</tr>
				</table>

...
All code submitted to OpenNTF XSnippets, whether submitted as a "Snippet" or in the body of a Comment, is provided under the Apache License Version 2.0. See Terms of Use for full details.
No comments yetLogin first to comment...