Personally, I'd like to see more templating in seam-gen'd apps. They tend to look very copy-pasted, which makes it tedious to take a seam-gen'd app and tweak it.
Thanks Samuel for the tip.
Just a question, is this Jboss-el because I didn't know you could do this.
You can't do backingBean.create instead ?
hstang, not the way EL resolves, doing backingBean.create would literally resolve to backingBean and not the value of backingBean.
Matt, can you put a FR in JIRA?
I've been testing ReusableActionButtons. It works well except that when it is in use (I change the action buttons Seam-Gen'd code with this code: ReusableActionButtons) and I perform a create ou delete, for example, the next page is not the list page, as it used to be with the Seam-Gen generated code.
I have also tried ui:componet instead of ui:composition at the custom tag, but without success.
Hi all again.
I has been solved. I changed the location of actionButtons.xhtml from WEB-INF to the view folder.
Folks, I'm very sorry.
The issue is NOT closed. I thought it worked but it didn´t. I' went back to Seam-Gen code and just forgot to turn it to ReusableActionButtons again when I made the tests.
The redirection after create and delete is handled by default by the some.page.xml controlling some.xhtml. Ex.
Hi Samuel, thanks for the response.
But I do have a some.page.xml.
When I do not use ReusableActionButtons the page that is displayed after the action is a list of the entity (configured at *page.xml).
When I use the custom tag the page displayed is the same edit page (with an action success message).