struts-issues mailing list archives

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

     [ https://issues.apache.org/struts/browse/WW-2754?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Benjamin McCann updated WW-2754:
--------------------------------

    Attachment: struts-gxp-plugin.zip

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>
    </action>
  </package>


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

<!DOCTYPE gxp:template SYSTEM "http://gxp.googlecode.com/svn/trunk/resources/xhtml.ent">

<gxp:template name="com.benmccann.test.gxp.Index"
    xmlns="http://www.w3.org/1999/xhtml"
    xmlns:gxp="http://google.com/2001/gxp">

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

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


> Source code for GXP result 
> ---------------------------
>
>                 Key: WW-2754
>                 URL: https://issues.apache.org/struts/browse/WW-2754
>             Project: Struts 2
>          Issue Type: Temp
>            Reporter: Musachy Barroso
>             Fix For: Future
>
>         Attachments: gxp.webwork.tar.gz, struts-gxp-plugin.zip, struts-gxp-plugin.zip,
struts-gxp-plugin.zip, struts-gxp-plugin.zip
>
>
> 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.


Mime
View raw message