Click here to Skip to main content
15,889,909 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
Hello, I've a grid like
HTML
<div id="GridContainer">
		<s:url id="loadGridURl" namespace="/workflow" action="getAll" />
		 <sjg:grid 
		 	id="PROCESS_LIST_GRID"
		 	autowidth="true"
		 	caption="Process List"
			dataType="json"
			filter="true"
			filterOptions="{searchOnEnter : false}" 
			gridModel="gridData" 
			height="'223px'"
			href="%{loadGridURl}"
			loadonce="true" 
			pager="true"
			rowNum="10"
			rowList="10,20,30" 
			rownumbers="true" >
									
		<sjg:gridColumn name="processName" index="processName" title="Process Name" search="true"
                searchoptions="{sopt:['cn']}"/>
		<sjg:gridColumn name="description" index="description" title="Description" search="false" />	
		<sjg:gridColumn name="createdDate" index="createdDate" title="Create Date" search="false" />
	        <sjg:gridColumn name="id" title="Action" formatter="processModifyDelete" search="false"/>
	        
		</sjg:grid>
		</div>
, in which I'm adding some processes names through
HTML
<sj:textfield name="workflowProcess.processName" id="PROCESS_NAME" cssClass="input_txt required" ></sj:textfield>
. And for submission I'm using
HTML
<sj:submit/>
. Now I need a client side validation, such that if I try to add another process with the same name to grid, it should give a field error. Pls help. Thanks in advance :)
Posted
Updated 26-Jun-12 21:46pm
v3

1 solution

...and the internet did not know anything about that?

Javascript Validation Tutorial[^]
 
Share this answer
 
Comments
Vincent Ghomus 27-Jun-12 7:14am    
Well, this was not what I need. Thanks for responding anyway

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900