[jbossseam-issues] [JBoss JIRA] Commented: (JBSEAM-1042) s:selectDate in CVS not working - javascipt error

Bradley Smith (JIRA) jira-events at lists.jboss.org
Wed Mar 14 09:28:32 EDT 2007


    [ http://jira.jboss.com/jira/browse/JBSEAM-1042?page=comments#action_12356038 ] 
            
Bradley Smith commented on JBSEAM-1042:
---------------------------------------

Does the booking example require JBoss 4.0.5?  I am using JBoss 4.0.4 EJBRC8 and am having some troubles getting the booking example to deploy:

09:15:46,503 ERROR org.jboss.deployment.scanner.URLDeploymentScanner - Incomplete Deployment listing:

--- MBeans waiting for other MBeans ---
ObjectName: persistence.units:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,unitName=bookingDatabase
  State: NOTYETINSTALLED
  I Depend On:
    jboss.jca:name=bookingDatasource,service=ManagedConnectionFactory
  Depends On Me:
    jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=AuthenticatorAction,service=EJB3
    jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=BookingListAction,service=EJB3
    jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=ChangePasswordAction,service=EJB3
    jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=HotelBookingAction,service=EJB3
    jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=HotelSearchingAction,service=EJB3
    jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=RegisterAction,service=EJB3

ObjectName: jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=AuthenticatorAction,service=EJB3
  State: NOTYETINSTALLED
  I Depend On:
    persistence.units:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,unitName=bookingDatabase

ObjectName: jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=BookingListAction,service=EJB3
  State: NOTYETINSTALLED
  I Depend On:
    persistence.units:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,unitName=bookingDatabase

ObjectName: jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=ChangePasswordAction,service=EJB3
  State: NOTYETINSTALLED
  I Depend On:
    persistence.units:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,unitName=bookingDatabase

ObjectName: jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=HotelBookingAction,service=EJB3
  State: NOTYETINSTALLED
  I Depend On:
    persistence.units:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,unitName=bookingDatabase

ObjectName: jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=HotelSearchingAction,service=EJB3
  State: NOTYETINSTALLED
  I Depend On:
    persistence.units:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,unitName=bookingDatabase

ObjectName: jboss.j2ee:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,name=RegisterAction,service=EJB3
  State: NOTYETINSTALLED
  I Depend On:
    persistence.units:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,unitName=bookingDatabase

--- MBEANS THAT ARE THE ROOT CAUSE OF THE PROBLEM ---
ObjectName: jboss.jca:name=bookingDatasource,service=ManagedConnectionFactory
  State: NOTYETINSTALLED
  Depends On Me:
    persistence.units:ear=jboss-seam-booking.ear,jar=jboss-seam-booking.jar,unitName=bookingDatabase

You should come up with simpler test cases for the UI stuff - mainly, a simple war that puts the Seam UI components through their paces and requires no persistence stuff.

Also, again, <s:selectDate> worked fine in 1.1.6, then, 1.2.0 required the resources servlet, but worked, now it's not working - I haven't changed my tag usages or my web.xml once I got it working in 1.2.0 - do you know what changes you've made?  I see that <s:selectDate> has date.css, calendar.js, the resource servlet, the web.xml configuration - that's a lot of moving parts and touch points.  I would stick with Seam 1.2.0 Patch 1, however, there are changes in the seam-email functionality that are only in CVS.


> s:selectDate in CVS not working - javascipt error
> -------------------------------------------------
>
>                 Key: JBSEAM-1042
>                 URL: http://jira.jboss.com/jira/browse/JBSEAM-1042
>             Project: JBoss Seam
>          Issue Type: Bug
>          Components: JSF
>    Affects Versions: 1.2.0.GA
>            Reporter: Bradley Smith
>         Assigned To: Shane Bryzak
>             Fix For: 1.2.1.GA
>
>
> The s:selectDate is not working in the nightly build from CVS of Seam.
> When I click the button for the calendar, I get:
> "Expected ':' but found 'seam-date'. Declaration dropped.
> Code in JSF Facelet Page:
>             <td class="fieldLabel">Provisioned Date:</td>
>             <td>
>               <h:inputText value="#{accessRequest.provisionedDate}" id="provisionedDate" required="true">
>                 <f:convertDateTime pattern="MM/dd/yyyy"/>
>               </h:inputText>
>               <s:selectDate for="provisionedDate" dateFormat="MM/dd/yyyy">
>                 <h:graphicImage url="img/calendar.gif" style="margin-left:5px;"/>
>               </s:selectDate>
>               (mm/dd/yyyy)
>               <br/>
>               <h:message for="provisionedDate" styleClass="errors"/>
>             </td>
> Generated Code:
>           <tr valign="top">
>             <td class="fieldLabel">Provisioned Date:</td>
>             <td><input id="_id15:provisionedDate" name="_id15:provisionedDate" type="text" value="" /><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="/access/seam/resource/web/date/calendar.js"><!--
> //--></script><span onclick="__selectDate('_id15:provisionedDate', '_id15:provisionedDate');"><img src="img/calendar.gif" style="margin-left:5px;" /></span>
>               (mm/dd/yyyy)
>               <br />
>             </td>
>           </tr>
> web.xml:
>   <servlet>
>     <servlet-name>Seam Resource Servlet</servlet-name>
>     <servlet-class>org.jboss.seam.servlet.ResourceServlet</servlet-class>
>   </servlet>
>   <servlet-mapping>
>     <servlet-name>Seam Resource Servlet</servlet-name>
>     <url-pattern>/seam/resource/*</url-pattern>
>   </servlet-mapping>
> Browsers:  Firefox 1.5, 2.0,    IE 6

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        



More information about the seam-issues mailing list