[jbossseam-issues] [JBoss JIRA] Created: (JBSEAM-2330) list.xhtml - Create Button disappearing when navigating

Dupont Dupont (JIRA) jira-events at lists.jboss.org
Fri Nov 30 14:55:46 EST 2007

list.xhtml - Create Button disappearing when navigating

                 Key: JBSEAM-2330
                 URL: http://jira.jboss.com/jira/browse/JBSEAM-2330
             Project: JBoss Seam
          Issue Type: Bug
          Components: Tools
    Affects Versions: 2.0.0.GA
            Reporter: Dupont Dupont

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" 
to : 
<s:link view="/CustomerList.xhtml" 
       value="Customer List" 
 	<f:param name="from" value=""/>

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


More information about the seam-issues mailing list