Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

richfaces - rich:modalPanel closes without Validation -


i trying validate data in inside rich:modalpanel; behavior see quite strange.

i have dropdown , add button dropdown, first time when try add data dropdown clicking add button validations successful, how oever when once user adds data first time , tries enter new data second time opening newadduserdialog; , when validation fails, modal panel hides. if remove code hiding modal panel (oncomplete event inside a4j:commadbutton), window closes on click of buttion.

        <rich:modalpanel id="newadduserdialog" autosized="true">      <a4j:outputpanel id="addname_panel"         styleclass="largepanel">          <a4j:form>              <rich:messages layout="list" showdetail="false"                 errorclass="validationerror" />              <h:panelgrid columns="2" cellpadding="10" cellspacing="10" width="100%">                  <h:outputlabel value="name:" styleclass="label" />                 <h:inputtext id="nameid"                     value="#{formbean.name}" maxlength="32"                     required="true" styleclass="width100">                     <f:validatelength minimum="3" maximum="32" />                 </h:inputtext>             </h:panelgrid>              <h:panelgrid cellpadding="10" cellspacing="10" width="100%">                 <h:panelgroup>                     <a4j:commandbutton id="addbtn" value="add"                         styleclass="stdbutton" action="doaddusername"                         rerender="addname_panel, targetsmaster">                          <rich:componentcontrol for="newadduserdialog"                             event="oncomplete"                             operation="#{(!modelvalidationmessages.hasmessages , empty facescontext.maximumseverity) ? 'hide' : 'focus'}" />                     </a4j:commandbutton>                      <a4j:commandbutton id="adduser_cancel" value="cancel"                         styleclass="stdbutton">                         <rich:componentcontrol for="newadduserdialog" event="onclick"                             operation="hide" />                     </a4j:commandbutton>                 </h:panelgroup>             </h:panelgrid>          </a4j:form>      </a4j:outputpanel>  </rich:modalpanel> 

what reason such behaviour?

yeah problem addressed richfaces team. please check out


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -