[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1939) Only the first action is executed inside a page node in a jPDL pageflow
by Matthew Lieder (JIRA)
Only the first action is executed inside a page node in a jPDL pageflow
-----------------------------------------------------------------------
Key: JBSEAM-1939
URL: http://jira.jboss.com/jira/browse/JBSEAM-1939
Project: JBoss Seam
Issue Type: Bug
Components: BPM
Affects Versions: 2.0.0.CR1
Environment: JRE 1.5, Tomcat 5.5.23
Reporter: Matthew Lieder
Multiple <action> elements are allowed as children of <page> and <start-page> elements in a jPDL pageflow, but only the first <action> is executed. Please fix it so that all <action> elements are executed (like they are when children of <transition> elements).
Example:
<page name="page1" view-id="/page1.xhtml">
<action expression="#{someMethodThatIsExecuted} />
<action expression="#{someMethodThatIsNotExecuted} />
<transition name="save" to="terminate">
<action expression="#{someMethodThatIsExecuted} />
<action expression="#{someMethodThatIsExecuted} />
</transition>
</page>
--
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
17 years, 1 month
[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-1801) Add attribute to <s:selectItems> allowing arbitrary values to be used as form "value"'s
by Matthew Lieder (JIRA)
Add attribute to <s:selectItems> allowing arbitrary values to be used as form "value"'s
---------------------------------------------------------------------------------------
Key: JBSEAM-1801
URL: http://jira.jboss.com/jira/browse/JBSEAM-1801
Project: JBoss Seam
Issue Type: Feature Request
Components: JSF
Affects Versions: 2.0.0.BETA1
Reporter: Matthew Lieder
Say we have the following:
<h:selectOneMenu value="#{curPerson.favoritePerson}">
<s:selectItems value="#{people}" var="person" label="#{person.fullName}" />
</h:selectOneMenu>
The problem is that when the form is submitted, the value of "person.toString()" is stored in curPerson.favoritePerson. In some situations that might be acceptable, but not if the class doesn't have a guaranteed unique toString implementation. In this specific example, person.SSN would be the wanted field.
To solve this problem, I recommend adding an "index" attribute functioning like the "label" attribute, except that the evaluated value is used for the "value" attribute in the generated HTML (the value that is submitted by the form). Should be pretty easy, I'm guessing?
--
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
17 years, 1 month