Results 1 to 6 of 6

Thread: booking-mvc sample - issues

  1. #1

    Default booking-mvc sample - issues

    I have been tracking the booking mvc sample (since we are not there yet as far as JSF goes) from M2. The sample in RC1 has some issues as follows:

    1. On entering the url, it first goes to hotel search instead of intro
    2. Ajaxification is not implemented on text boxes in search or the Enter booking details screen. Ideally booking mvc should show how to use the spring.js abstraction
    3. In enter booking details, if i make the from date field empty and submit, i get an exception stack trace.
    4. Calendar popups dont appear in booking-mvc as they appear in booking-faces. As in point 2, if spring.js helps to hide, let the booking-mvc too benefit.
    5. In listing of hotels, previous and next are no longer appearing.
    6. Validations for credit card and name are no longer asked.

    All these problems dont plague the spring-faces version. Will be useful if booking-mvc is on par with booking-faces. If a night build has these issues corrected, will be happy to know.

    We wanted to transition over from M2 to RC1 and build some prototypes.

    Also webflow is quite similar to Websphere business components composer (WSBCC) concept of processor, flow states and subflows, and goes much beyond it. Its definitely a good framework to use.

  2. #2
    Join Date
    Aug 2004
    Location
    Melbourne, FL
    Posts
    2,794

    Default

    Yes, understood, and showing how to use Spring.js directly has been a focus for us since 2.0.0.RC1. You might want to try out the latest 2.0.0 nightly build, which does show use of Spring.js for client-side validation. Jeremy should also be committing the Ajax examples shortly.

    Keith
    Last edited by Keith Donald; Apr 23rd, 2008 at 07:44 AM.
    Keith Donald
    Core Spring Development Team

  3. #3
    Join Date
    Apr 2005
    Location
    San Francisco, CA
    Posts
    1,224

    Default

    Last night's build of the MVC sample probably still has some issues as these changes are still in process. Tonight's build should have Ajax and client validation applied throughout.
    Jeremy Grelle

    Staff Engineer, Web Products Team
    SpringSource

  4. #4

    Default

    Yes, in 2.0 the booking mvc application with ajax really looks good. However, under the hood there are some observations.

    Earlier, in M2, the main hotels page and functions such as search, were also in flow definition "main.xml". These have become plain MVC now and accessed through HotelsController. I understand that you might have wanted to contrast the webflow versus plain MVC.

    But if using Webflow and taking this example as base,
    a. I rather have all possible page navigations covered through webflow.
    b. Also, earlier format was also nice in illustrating the spawning of subflow from a main flow.
    c. Finally, it would have been nice to illustrate the fragments in webflow definition in this case, i.e. without using JSF, e.g. previous and next results, popups for "Change Search" through flow control.

  5. #5

    Default

    It appears there are different versions of the booking-mvc sample application... I'd also like to look at the previous version as it appears to have more flow examples (that's not to say the current version isn't a good example, just different).

    Does anyone know how I could get the source for this?

    Much thanks in advance.

  6. #6
    Join Date
    Mar 2012
    Posts
    17

    Default

    When i am exceuting booking-mvc ,it exceuting fne,but when am modifing or add some Links into that code. it always give me exception as given below:
    plz help me.........



    org.springframework.web.util.NestedServletExceptio n: Request processing failed; nested exception is org.apache.tiles.impl.CannotRenderException: ServletException including path '/WEB-INF/layouts/standard.jsp'.
    org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:656)
    org.springframework.web.servlet.FrameworkServlet.d oGet(FrameworkServlet.java:549)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:617)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 343)
    org.springframework.security.web.access.intercept. FilterSecurityInterceptor.invoke(FilterSecurityInt erceptor.java:109)
    org.springframework.security.web.access.intercept. FilterSecurityInterceptor.doFilter(FilterSecurityI nterceptor.java:83)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    org.springframework.security.web.access.ExceptionT ranslationFilter.doFilter(ExceptionTranslationFilt er.java:97)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    org.springframework.security.web.session.SessionMa nagementFilter.doFilter(SessionManagementFilter.ja va:100)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    org.springframework.security.web.authentication.An onymousAuthenticationFilter.doFilter(AnonymousAuth enticationFilter.java:78)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    org.springframework.security.web.servletapi.Securi tyContextHolderAwareRequestFilter.doFilter(Securit yContextHolderAwareRequestFilter.java:54)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    org.springframework.security.web.savedrequest.Requ estCacheAwareFilter.doFilter(RequestCacheAwareFilt er.java:35)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    org.springframework.security.web.authentication.http://www.BasicAuthenticationFilter...lter.java:177)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    org.springframework.security.web.authentication.Ab stractAuthenticationProcessingFilter.doFilter(Abst ractAuthenticationProcessingFilter.java:188)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    org.springframework.security.web.authentication.lo gout.LogoutFilter.doFilter(LogoutFilter.java:105)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    org.springframework.security.web.context.SecurityC ontextPersistenceFilter.doFilter(SecurityContextPe rsistenceFilter.java:79)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    org.springframework.security.web.FilterChainProxy. doFilter(FilterChainProxy.java:149)
    org.springframework.web.filter.DelegatingFilterPro xy.invokeDelegate(DelegatingFilterProxy.java:237)
    org.springframework.web.filter.DelegatingFilterPro xy.doFilter(DelegatingFilterProxy.java:167)
    org.springframework.web.filter.HiddenHttpMethodFil ter.doFilterInternal(HiddenHttpMethodFilter.java:7 7)
    org.springframework.web.filter.OncePerRequestFilte r.doFilter(OncePerRequestFilter.java:76)

    root cause

    org.apache.tiles.impl.CannotRenderException: ServletException including path '/WEB-INF/layouts/standard.jsp'.
    org.apache.tiles.impl.BasicTilesContainer.render(B asicTilesContainer.java:691)
    org.apache.tiles.impl.BasicTilesContainer.render(B asicTilesContainer.java:643)
    org.apache.tiles.impl.BasicTilesContainer.render(B asicTilesContainer.java:626)
    org.apache.tiles.impl.BasicTilesContainer.render(B asicTilesContainer.java:322)
    org.springframework.web.servlet.view.tiles2.TilesV iew.renderMergedOutputModel(TilesView.java:124)
    org.springframework.js.ajax.tiles2.AjaxTilesView.r enderMergedOutputModel(AjaxTilesView.java:131)
    org.springframework.web.servlet.view.AbstractView. render(AbstractView.java:250)
    org.springframework.web.servlet.DispatcherServlet. render(DispatcherServlet.java:1047)
    org.springframework.web.servlet.DispatcherServlet. doDispatch(DispatcherServlet.java:817)
    org.springframework.web.servlet.DispatcherServlet. doService(DispatcherServlet.java:719)
    org.springframework.web.servlet.FrameworkServlet.p rocessRequest(FrameworkServlet.java:644)
    org.springframework.web.servlet.FrameworkServlet.d oGet(FrameworkServlet.java:549)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:617)
    javax.servlet.http.HttpServlet.service(HttpServlet .java:717)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 343)
    org.springframework.security.web.access.intercept. FilterSecurityInterceptor.invoke(FilterSecurityInt erceptor.java:109)
    org.springframework.security.web.access.intercept. FilterSecurityInterceptor.doFilter(FilterSecurityI nterceptor.java:83)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    org.springframework.security.web.access.ExceptionT ranslationFilter.doFilter(ExceptionTranslationFilt er.java:97)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    org.springframework.security.web.session.SessionMa nagementFilter.doFilter(SessionManagementFilter.ja va:100)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    org.springframework.security.web.authentication.An onymousAuthenticationFilter.doFilter(AnonymousAuth enticationFilter.java:78)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    org.springframework.security.web.servletapi.Securi tyContextHolderAwareRequestFilter.doFilter(Securit yContextHolderAwareRequestFilter.java:54)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    org.springframework.security.web.savedrequest.Requ estCacheAwareFilter.doFilter(RequestCacheAwareFilt er.java:35)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    org.springframework.security.web.authentication.http://www.BasicAuthenticationFilter...lter.java:177)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    org.springframework.security.web.authentication.Ab stractAuthenticationProcessingFilter.doFilter(Abst ractAuthenticationProcessingFilter.java:188)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    org.springframework.security.web.authentication.lo gout.LogoutFilter.doFilter(LogoutFilter.java:105)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    org.springframework.security.web.context.SecurityC ontextPersistenceFilter.doFilter(SecurityContextPe rsistenceFilter.java:79)
    org.springframework.security.web.FilterChainProxy$ VirtualFilterChain.doFilter(FilterChainProxy.java: 355)
    org.springframework.security.web.FilterChainProxy. doFilter(FilterChainProxy.java:149)
    org.springframework.web.filter.DelegatingFilterPro xy.invokeDelegate(DelegatingFilterProxy.java:237)
    org.springframework.web.filter.DelegatingFilterPro xy.doFilter(DelegatingFilterProxy.java:167)
    org.springframework.web.filter.HiddenHttpMethodFil ter.doFilterInternal(HiddenHttpMethodFilter.java:7 7)
    org.springframework.web.filter.OncePerRequestFilte r.doFilter(OncePerRequestFilter.java:76)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •