Hi, Anyone can guide me? I am struck in calender.
Regards, Naresh On Jun 25, 4:44 pm, naresh <[email protected]> wrote: > Hi , > > <s:decorate id="endDateDecorate" template="../layout/edit.xhtml"> > <ui:define name="label">#{label.title_end_date}:</ui:define> > <rich:calendar value="#{eventBean.instance.endDate}" > timeZone="#{org.jboss.seam.international.timeZone}" > enableManualInput="true" datePattern="dd-MM-yyyy" id="endDate"/> </ > s:decorate> > > HTML code generated for above calnder,can anyone guide me how to click > calendar in watir script > > <div id="globalForm:startDateDecorate"> > <div class="prop"><label > for="globalForm:startDateDecorate:startDate" class="name ">Start > Date:</label> > <span class="value "><span > id="globalForm:startDateDecorate:startDatePopup"> > <input class="rich-calendar-input " > id="globalForm:startDateDecorate:startDateInputDate" > name="globalForm:startDateDecorate:startDateInputDate" style="vertical- > align: middle; " type="text" /><img alt="" class="rich-calendar-button > " id="globalForm:startDateDecorate:startDatePopupButton" > style="vertical-align: middle" src="/venus/a4j/g/ > 3_3_1.GAorg.richfaces.renderkit.html.iconimages.CalendarIcon/DATB/ > eAE7fv4Kw6znAA4mA-w_" /><input > id="globalForm:startDateDecorate:startDateInputCurrentDate" > name="globalForm:startDateDecorate:startDateInputCurrentDate" > style="display:none" type="hidden" value="06/2010" /></span><div > id="globalForm:startDateDecorate:startDateIFrame" style="display: > none;"></div><div id="globalForm:startDateDecorate:startDate" > style="display: none;"></div><div > id="globalForm:startDateDecorate:startDateScript" style="display: > none;"><script type="text/javascript">new > Calendar('globalForm:startDateDecorate:startDate', {dayListTableId: > 'globalForm:startDateDecorate:startDateDay', > weekNumberBarId: > 'globalForm:startDateDecorate:startDateWeekNum', > weekDayBarId: > 'globalForm:startDateDecorate:startDateWeekDay', > currentDate: new Date(2010,5,25), > selectedDate: null, > datePattern: 'dd-MM-yyyy', > jointPoint: 'bottom-left', > direction: 'bottom-right', > boundaryDatesMode:'inactive', > popup: true, > enableManualInput: true, > showInput: true, > disabled: false, > readonly: false, > ajaxSingle: true, > verticalOffset:0, > horizontalOffset: 0, > style:'z-index: 3; ', > firstWeekDay: 0, > minDaysInFirstWeek: 1, > todayControlMode:'select', > showHeader:true, > showFooter:true, > showWeeksBar:true, > showWeekDaysBar:true, > showApplyButton:false, > resetTimeOnDateSelect:false, > defaultTime:{hours:12,minutes:0}, > labels:{apply:'Apply', today:'Today', clean:'Clean', cancel:'Cancel', > ok:'OK', close:'x'}, > 'monthLabels': > ['January','February','March','April','May','June','July','August','September','October','November','December'] > , > 'monthLabelsShort': > ['Jan','Feb','Mar','Apr','May','Jun','Jul','Aug','Sep','Oct','Nov','Dec'] , > 'weekDayLabels': > ['Sunday','Monday','Tuesday','Wednesday','Thursday','Friday','Saturday'] , > 'weekDayLabelsShort': > ['Sun','Mon','Tue','Wed','Thu','Fri','Sat'] }).load();</script></div> > </span> > <span class="error"> > </span> > </div></div> > > Regards, > Naresh > > On Jun 24, 10:23 pm, orde <[email protected]> wrote: > > > I google'd up a RichFaces > > example:http://livedemo.exadel.com/richfaces-demo/richfaces/calendar.jsf. > > It looks like you don't enter the date into the text field, but-- > > rather--you click on the calendar icon and select a date. > > > Peeking at the (ajax-heavy) HTML, you'll probably need to click on the > > calender image and then use the fire_event method to trigger the event > > handlers in the elements that you need to access. > > > Here's the link to the fire_event > > documentation:http://wtr.rubyforge.org/rdoc/1.6.5/classes/Watir/Element.html#M000557 > > > Hope it helps. > > > orde > > > On Jun 24, 4:17 am, naresh <[email protected]> wrote: > > > > Hi , > > > > Fot input text , text_field method is available. > > > What method is available for following rich calender > > > > <rich:calendar value="#{eventBean.instance.endDate}" > > > timeZone="#{org.jboss.seam.international.timeZone}" > > > enableManualInput="true" datePattern="dd-MM-yyyy" id="endDate"/> > > > > Regards > > > > On Jun 24, 4:10 pm, Željko Filipin <[email protected]> > > > wrote: > > > > > On Thu, Jun 24, 2010 at 1:07 PM, naresh <[email protected]> > > > > wrote: > > > > > Can anyone guide me how to do that in watir? > > > > > What is the problem? What have you tried? Is the calendar public, so we > > > > could try too? > > > > > Željko > > > > -- > > > > watir.com - community manager > > > > watirpodcast.com - host > > > > testingpodcast.com - audio podcasts on software testing. all of them > > > > vidipodkast.com - pričamo o hardveru, softveru i časopisu Vidi -- Before posting, please read http://watir.com/support. In short: search before you ask, be nice. You received this message because you are subscribed to http://groups.google.com/group/watir-general To post: [email protected] To unsubscribe: [email protected]
