-
1. Re: Reusable Action Buttons tag through Facelets Composition
matt.drees Jul 12, 2007 3:41 PM (in response to sjmenden)Cool.
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. -
2. Re: Reusable Action Buttons tag through Facelets Composition
hstang Jul 12, 2007 3:47 PM (in response to sjmenden)Thanks Samuel for the tip.
Just a question, is this Jboss-el because I didn't know you could do this.backingBean[create]
You can't do backingBean.create instead ? -
3. Re: Reusable Action Buttons tag through Facelets Composition
sjmenden Jul 12, 2007 4:00 PM (in response to sjmenden)hstang, not the way EL resolves, doing backingBean.create would literally resolve to backingBean and not the value of backingBean.
-Samuel -
4. Re: Reusable Action Buttons tag through Facelets Composition
pmuir Jul 13, 2007 10:59 AM (in response to sjmenden)Matt, can you put a FR in JIRA?
-
5. Re: Reusable Action Buttons tag through Facelets Composition
matt.drees Jul 13, 2007 2:47 PM (in response to sjmenden)My pleasure.
http://jira.jboss.com/jira/browse/JBSEAM-1661 -
6. Re: Reusable Action Buttons tag through Facelets Composition
franciscoacb Aug 6, 2007 1:30 PM (in response to sjmenden)Hi all.
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.
Francisco Antônio -
7. Re: Reusable Action Buttons tag through Facelets Composition
franciscoacb Aug 6, 2007 1:48 PM (in response to sjmenden)Hi all again.
I has been solved. I changed the location of actionButtons.xhtml from WEB-INF to the view folder. -
8. Re: Reusable Action Buttons tag through Facelets Composition
franciscoacb Aug 6, 2007 2:17 PM (in response to sjmenden)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.
Any ideas?
Thanks! -
9. Re: Reusable Action Buttons tag through Facelets Composition
sjmenden Aug 16, 2007 1:15 PM (in response to sjmenden)The redirection after create and delete is handled by default by the some.page.xml controlling some.xhtml. Ex.
<navigation from-action="#{someHome.persist}">
<redirect view-id="/Some.xhtml"/>
<navigation from-action="#{someHome.update}">
<redirect view-id="/Somen.xhtml"/>
<navigation from-action="#{someHome.remove}">
<end-conversation/>
<redirect view-id="/SomeList.xhtml"/>
-Samuel -
10. Re: Reusable Action Buttons tag through Facelets Composition
franciscoacb Aug 17, 2007 2:29 PM (in response to sjmenden)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).