Announcement Announcement Module
No announcement yet.
wedding tutorial on 1.1.0 m1 Page Title Module
Move Remove Collapse
Conversation Detail Module
  • Filter
  • Time
  • Show
Clear All
new posts

  • wedding tutorial on 1.1.0 m1

    hi, the code generated for 1.1.0 m1 is slightly changed . i'm trying tutorial at

    but for part

    Next copy src/main/webapp/WEB-INF/views/rsvp/create.jspx to src/main/webapp/WEB-INF/views/publicrsvp.jspx. This page should then be edited. You can safely delete the "code" and "confirmed" sections, as both are taken care of by the PublicRsvpController. You should also change the "form_url" variable assignment to <c:url value="/publicrsvp" var="form_url"/>.

    there is no 'form_url' inside create.jspx . can someone guide on this?

  • #2
    I will update the wedding RSVP application tutorial blog once Roo 1.1.0 goes final, as the new JSPX tags are likely to continue to change in the interim.


    • #3
      I would appreciate a lot if you could update the wedding tutorial now that Roo 1.1.0 is final.

      I got stuck here at the "last step" :
      The very last step is to edit src/main/webapp/WEB-INF/urlrewrite.xml and change the URL rewrite rule for /. The /app/index should be modified to /app/publicrsvp/, which indicates to perform a GET of the new PublicRsvpController by default
      There's no urlrewrite.xml with Roo 1.1.1 generated files, so I tried by renaming "index" with "publicrsvp" in webmvc-config.xml like this :

      <!-- selects a static view for rendering without the need for an explicit controller -->
      <mvc:view-controller path="/login"/>
      <mvc:view-controller path="/" view-name="publicrsvp"/>
      <mvc:view-controller path="/uncaughtException"/>
      <mvc:view-controller path="/resourceNotFound"/>
      <mvc:view-controller path="/dataAccessFailure"/>

      I din't know what was the right this to do here, but it was not enough : publicrsvp.jspx gets rendered without going first to where rsvp gets set, generate then this error.

      SEVERE: Servlet.service() for servlet jsp threw exception
      java.lang.IllegalStateException: Neither BindingResult nor plain target object for bean name 'rsvp' available as request attribute
      at .<init>(
      at org.springframework.web.servlet.tags.form.Abstract DataBoundFormElementTag.getBindStatus(AbstractData
      at org.springframework.web.servlet.tags.form.Abstract DataBoundFormElementTag.getPropertyPath(AbstractDa
      at org.springframework.web.servlet.tags.form.Abstract DataBoundFormElementTag.getName(AbstractDataBoundF
      at org.springframework.web.servlet.tags.form.Abstract DataBoundFormElementTag.writeDefaultAttributes(Abs
      at org.springframework.web.servlet.tags.form.Abstract HtmlElementTag.writeDefaultAttributes(AbstractHtml
      at org.springframework.web.servlet.tags.form.InputTag .writeTagContent(
      at org.springframework.web.servlet.tags.form.Abstract FormTag.doStartTagInternal( 2)
      at org.springframework.web.servlet.tags.RequestContex tAwareTag.doStartTag( 9)
      at org.apache.jsp.tag.web.form.fields.input_tagx._jsp x_meth_form_005finput_005f0(
      at org.apache.jsp.tag.web.form.fields.input_tagx._jsp x_meth_c_005fotherwise_005f2(
      at org.apache.jsp.tag.web.form.fields.input_tagx._jsp x_meth_c_005fchoose_005f2(
      at org.apache.jsp.tag.web.form.fields.input_tagx.doTa g(
      at org.apache.jsp.WEB_002dINF.views.publicrsvp_jspx._ jspx_meth_field_005finput_005f0(publicrsvp_jspx.ja va:120)
      at org.apache.jsp.WEB_002dINF.views.publicrsvp_jspx.a ccess$0(
      at org.apache.jsp.WEB_002dINF.views.publicrsvp_jspx$H elper.invoke0(
      at org.apache.jsp.WEB_002dINF.views.publicrsvp_jspx$H elper.invoke(
      at org.apache.jsp.tag.web.form.create_tagx$Helper.inv oke0(
      at org.apache.jsp.tag.web.form.create_tagx$Helper.inv oke(
      at org.apache.jsp.tag.web.util.panel_tagx._jspx_meth_ c_005fif_005f0(
      at org.apache.jsp.tag.web.util.panel_tagx.doTag(panel
      at org.apache.jsp.tag.web.form.create_tagx.doTag(crea

      I found a solution later by changing the @RequestMapping in to this :
      @RequestMapping(value = {"/publicrsvp/**", "/"})

      It's probably trivial to many, but I am getting up to speed with Roo, but it took me more than a day to understand what
      s going on and what's the problem.

      Thanks got this tutorial, it's a nice example of customizing an Roo app so I really wanted to get it done.