Craig,
Your patch looks good, very similar to mine. I was wondering if you want to
integrate ours together. One thing I added that you did not is a way to
create customized views instead of the 3 stock SUCCESS, INPUT, ERROR.
It involves putting 0..* @webwork.view name="foo" value="bar.jsp" tags at
either the class level or the method level.
It will create <view name="foo">bar.jsp</view> either at the <action> level,
or the <command> level.
What do you think?
Frank
----- Original Message -----
From: "Craig Walls" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, April 04, 2003 5:37 PM
Subject: Re: [Xdoclet-user] WebWork actions.xml template.
>
> I submitted a patch that adds a <webworkactionsxml> subtask (see JIRA
issue XDT-138) a few
> weeks ago. It hasn't been applied yet, though. The committers are quite
busy and just haven't
> gotten around to it yet.
>
> Frank Febbraro wrote:
>
> > For those that care,
> >
> > I wrote (see attachment) an XDoclet Template to produce an actions.xml
file
> > for WebWork. It might be nice to get this, or something like this
integrated
> > into 1.2 before final release (not sure of how or if this can be done).
> > Ideally a new tag/ task class (not <webworkconfigproperties>) should be
used
> > as to not need overriding the templateFile and destinationFile. It would
> > extend XmlSubTask, etc.
> >
> > Here is how it works as of now. Hopefully it will help someone.
> >
> > In your build file:
> > <webworkconfigproperties
> > destdir="${classes}"
> > templateFile="${xdoclet.merge.dir}/webwork_actions.xdt"
> > destinationFile="actions.xml"
> > />
> >
> > It operates on the following tags.
> >
> > Class Tag: @webwork.action
> > Params: name, success, input, error
> >
> > Method Tag: @webwork.command
> > Params: name, success, input, error
> > Comment: If name is not specified it takes a method called "doSave" and
> > makes the name "save"
> >
> > Class AND/OR Method Tag: @webwork.view
> > Params: name, value
> >
> > Examples:
> > Class Tag:
> > /**
> > * @webwork.action
> > * name="document"
> > * error="/error.jsp"
> > * @webwork.view name="test" value="one.jsp"
> > * @webwork.view name="test2" value="two.jsp"
> > */
> >
> > Method tag:
> > /**
> > * @webwork.command
> > * success="/document/documentViewer.jsp"
> > * @webwork.view name="foo" value="one.jsp"
> > * @webwork.view name="bar" value="two.jsp"
> > */
> >
> > Produces the following actions.xml:
> > <?xml version="1.0" encoding="UTF-8"?>
> > <actions>
> >
> > <action name="xxx.action.DocumentAction" alias="document">
> > <view name="error">/error.jsp</view>
> > <view name="test">one.jsp</view>
> > <view name="test2">two.jsp</view>
> >
> > <command name="save" alias="document!save">
> > <view name="success">/document/documentViewer.jsp</view>
> > <view name="foo">one.jsp</view>
> > <view name="bar">two.jsp</view>
> > </command>
> >
> > </action>
> >
> > </actions>
> >
> > Thanks,
> > Frank
> >
>
------------------------------------------------------------------------
> > Name: webwork_actions.xdt
> > webwork_actions.xdt Type: XDT File
(application/x-unknown-content-type-xdt_auto_file)
> > Encoding: quoted-printable
>
>
>
> -------------------------------------------------------
> This SF.net email is sponsored by: ValueWeb:
> Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
> No other company gives more support or power for your dedicated server
> http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
> _______________________________________________
> xdoclet-user mailing list
> [EMAIL PROTECTED]
> https://lists.sourceforge.net/lists/listinfo/xdoclet-user
-------------------------------------------------------
This SF.net email is sponsored by: ValueWeb:
Dedicated Hosting for just $79/mo with 500 GB of bandwidth!
No other company gives more support or power for your dedicated server
http://click.atdmt.com/AFF/go/sdnxxaff00300020aff/direct/01/
_______________________________________________
xdoclet-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-user