[
http://jira.jboss.com/jira/browse/JBSEAM-1631?page=comments#action_12368436 ]
Dan Allen commented on JBSEAM-1631:
-----------------------------------
Exactly. Remember, this is a preference. A style. An alternate approach. A chance to
eliminate the XML file. If you store it in XML, then you just have to go digging through
XML files to locate the page actions. Personally, I think it would be a very nice addition
to Seam for people who are really buying into the whole annotation thing. You could argue
that there are a lot of other places in Seam where one setting is easier to locate than
other. Some people's brains work differently.
The only other option that would really bring the method close to the source is to put it
in the view, as Gavin suggests in
http://blog.hibernate.org/cgi-bin/blosxom.cgi/2007/07/09#ee6part2. However, I have never
liked the way that looks. But I could just be a narrow-minded fool.
add @PageAction annotation to method
------------------------------------
Key: JBSEAM-1631
URL:
http://jira.jboss.com/jira/browse/JBSEAM-1631
Project: JBoss Seam
Issue Type: Feature Request
Components: Tools
Affects Versions: 2.0.0.BETA1
Reporter: Dan Allen
Original Estimate: 2 days
Remaining Estimate: 2 days
I cannot help but to conclude that a page action ought to be able to be declared as an
annotation on a method. Why not? It is very similar to a @WebRemote method in a sense. It
would also eliminate the need for the XML file if you prefer to return view ids directly
in the action handler methods. Think about the love Seam would get by removing the
dependency on the XML for this feature. No XMLHell, remember?
The way it would work is that when Seam spots the annotation during initialization time,
it just registers that method with the Page framework just as if it had found it in the
XML file.
I wouldn't be broken-hearted if this is rejected, but it seems consistent with the
goals of Seam.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira