[
http://jira.jboss.com/jira/browse/JBSEAM-903?page=comments#action_12360231 ]
Andrew commented on JBSEAM-903:
-------------------------------
I wanted to propose an alternative to the "@Biject/@InOut" of just using @Scope
to clear a variable. So I created a new bug as another approach to the issue. That new bug
is:
http://jira.jboss.com/jira/browse/JBSEAM-1233
As for use cases for @InOut, they may be limited, but it would come in handy if you wanted
to have a "by reference" type of functionality where a bean instead of changing
an object, created a new object instead. So, for example, if you had a page that searches
for a type of object, its backing bean would use @In to get the value of the currently
selected value and use @Out if the user changed the selection.
@Bidirectional to combine @In and @Out
--------------------------------------
Key: JBSEAM-903
URL:
http://jira.jboss.com/jira/browse/JBSEAM-903
Project: JBoss Seam
Issue Type: Feature Request
Affects Versions: 1.1.6.GA
Reporter: Andrew
Assigned To: Shane Bryzak
Priority: Minor
IMO, it would be great to have an InOut annotation that can combine In and Out to avoid
excessive typing. Examples:
Now:
@In(required=false, value="someString", scope=ScopeType.EVENT)
@Out(required=false, value="someString", scope=ScopeType.EVENT)
private String localVariableName;
Easier as:
@Bidirectional(required=false, value="someString", scope=ScopeType.EVENT)
private String localVariableName;
--
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