struts-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Benjamin McCann (JIRA)" <>
Subject [jira] Updated: (WW-2754) Source code for GXP result
Date Wed, 16 Dec 2009 07:59:43 GMT


Benjamin McCann updated WW-2754:


Ok, finally got this fully working!  Thanks for sitting through my million questions on DI.
 Hopefully we can get it committed to SVN to share the goodness?

Here's a quick tutorial on how to use it.  I'll write up a blog post or real tutorial or something
in the near future after the code is checked in.  The main pain point right now is the lacking
integration between GXP and Maven (there needs to be an easier way to generate the .java files
from .gxp), but all is good on the Struts side!

Now you can make Actions that have a result of type gxp:
  <package name="test" extends="gxp-default">
    <action name="TestAction" class="com.benmccann.test.gxp.TestAction">
      <result type="gxp">com/benmccann/test/gxp/Index.gxp</result>

Here's a sample GXP page I was using to test.  It takes a message parameter provided by my

<!DOCTYPE gxp:template SYSTEM "">

<gxp:template name="com.benmccann.test.gxp.Index"

<gxp:param name="message" type="String" />

<html gxp:doctype="strict" gxp:ispace="normalize" gxp:espace="normalize">
    <title>Test GXP Page</title>
    Welcome to my GXP page!<br />
    <gxp:eval expr="message" />

> Source code for GXP result 
> ---------------------------
>                 Key: WW-2754
>                 URL:
>             Project: Struts 2
>          Issue Type: Temp
>            Reporter: Musachy Barroso
>             Fix For: Future
>         Attachments: gxp.webwork.tar.gz,,,,
> Thanks to the google and the GXP guys for sending us the code

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message