[jboss-user] [JBoss Seam] - Re: how to set #{invalid} in action

tynor do-not-reply at jboss.com
Thu Jul 19 10:32:22 EDT 2007


Thanks Gavin.

In fact, it's _not_ working in the booking example either.   Here's the rendered HTML for failed "date must be in the future" message set by the action class: 

<span id="booking:checkinDateDecorate">
  |                  
  |     <div class="entry"><label class="label " for="booking:checkinDate">Check In Date:<span id="booking:_id57" class="required">*</span></label>
  |         <span class="input "><input id="booking:checkinDate" name="booking:checkinDate" type="text" value="07/19/2006" onblur="A4J.AJAX.Submit('_viewRoot','booking',event,{'parameters':{'booking:_id61':'booking:_id61'},'actionUrl':'/seam-booking/book.seam'})" /><script type="text/javascript"><!--
  | 
  | var CAL_DAYS_SHORT = 'Su,Mo,Tu,We,Th,Fr,Sa';
  | var CAL_DAYS_MEDIUM = 'Sun,Mon,Tue,Wed,Thu,Fri,Sat';
  | var CAL_DAYS_LONG = 'Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday';
  | var CAL_MONTHS_MEDIUM = 'Jan,Feb,Mar,Apr,May,Jun,Jul,Aug,Sep,Oct,Nov,Dec';
  | var CAL_MONTHS_LONG = 'January,February,March,April,May,June,July,August,September,October,November,December';
  | var CAL_FIRST_DAY_OF_WEEK = 0;
  | var CAL_DATE_FORMAT = 'MM/dd/yyyy';
  | //--></script><script type="text/javascript" src="/seam-booking/seam/resource/web/date/calendar.js"><!--
  | 
  | //--></script><span onclick="__selectDate('booking:checkinDate', 'booking:checkinDate');"><img src="img/dtpick.gif" style="margin-left:5px;cursor:pointer" /></span>
  |         </span><span class="error errors">Check in date must be a future date</span>
  |     </div></span>

         
Note that the message is properly rendered, but the label and controls do not have the errors class added to their CSS style as the edit.xhtml template intends. (should see <label class="label errors" , but instead just see <label class="label " ).


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

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



More information about the jboss-user mailing list