[jboss-user] [JBoss Seam] - seam-gen : list.xhtml - Create Button issue
gonzalad
do-not-reply at jboss.com
Thu Nov 29 03:55:31 EST 2007
Hello,
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.
I've just modified menu.xhtml to force from parameter to '' and it 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>
Should I raise a JIRA ? Or have I misunderstood sthing ?
Thank you
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4108794#4108794
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4108794
More information about the jboss-user
mailing list