-
1. Re: persist method overriding
vata2999 Jan 15, 2011 4:54 AM (in response to pouria62)Hi,
would you please provide more information including your stack trace
and how to persist ,..... -
2. Re: persist method overriding
pouria62 Jan 15, 2011 5:17 AM (in response to pouria62)thanx for your attention
foreign key from table B is primary key of table A and when table B is persisting should automatically persist this column.and why we need this column?cause when we go to page C foreign key of table B is the navigation key to show the content of table B in page C.but i dont know how to write and i have no stack trace.
-
3. Re: persist method overriding
vata2999 Jan 15, 2011 10:57 AM (in response to pouria62)b.xhtml
<s:button action="#{bHome.persistB}" actionListener="#{bHome.setA}" value="Set A And persistB" />
BHome.java
@Name("bHome") public class BHome extends EntityHome { @Begin(join=true,FlushMode=Manual) public void setA(){ getInstance.setA(selectedA) //wherever it comes from } @End public String persistB(){ super.persist(); } }
As a piece of cake ...!
if you need more help take a look at seam examples -
4. Re: persist method overriding
pouria62 Jan 16, 2011 6:59 AM (in response to pouria62)you know your peace of cake was very useful
i really appreciate
i solved it finally.when it got final face(final release) i'll show the details.
and another thing is that i found something about Adempiere in your site.
i found a pdf namedAdempiere by Bayu Cahya Pamungkas
and i want to know how to run Adempiere
let me know if u know sth about how to install itThanks in advance
Pouria