]
Pete Muir closed JBSEAM-2330.
-----------------------------
Resolution: Done
Assignee: Pete Muir
Thanks.
list.xhtml - Create Button disappearing when navigating
-------------------------------------------------------
Key: JBSEAM-2330
URL:
https://jira.jboss.org/jira/browse/JBSEAM-2330
Project: Seam
Issue Type: Bug
Components: Tools
Affects Versions: 2.0.0.GA
Reporter: Gonzalez Adrian
Assignee: Pete Muir
Fix For: 2.1.0.BETA1
When using seam-gen (2.0.0) I have the following issue : in list page, button 'Create
entity' can disappear.
To reproduce the problem, you'll need 2 associated entities (i.e. @ManyToOne) :
1 - navigate to entity A list.
2 - click 'Create entity A' button.
3 - click 'Select entity B' button.
4 - on entity B edit page, just click on the menu link 'Entity A List'
5 - you're back to 'Entity A List' page, but the 'Create entity A'
button just disappeared.
This issue is because Create button is rendered only if 'from' parameter is empty
:
<s:div styleClass="actionButtons" rendered="#{empty from}">
This isn't the case in interaction 4->5.
Modifying menu.xhtml to force from parameter to '' and resolves this issue :
changed from
<s:link view="/CustomerList.xhtml"
value="Customer List"
propagation="none"/>
to :
<s:link view="/CustomerList.xhtml"
value="Customer List"
propagation="none">
<f:param name="from" value=""/>
</s:link>
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: