Re: [appfuse-user] [Appfuse2.0] Best Practise Design Pattern for Multiple Dao Access from managers

2007-12-18 Thread Struts2 Fan
mply add something like >> >> Game game = new Game(); >> EasyMock.expect(gameDAO.getGame(1L)).andReturn(game); >> >> to replay the Mock, use EasyMock.replay(gameDAO); >> >> In order to verify a mock, call EasyMock.verify(gameDAO); >> >&g

Re: [appfuse-user] [Appfuse2.0] Best Practise Design Pattern for Multiple Dao Access from managers

2007-12-17 Thread Struts2 Fan
I have no expectation for the moveDao, must I define an expectation for each Dao I have used in methods? -- View this message in context: http://www.nabble.com/-Appfuse2.0--Best-Practise-Design-Pattern-for-Multiple-Dao-Access-from-managers-tp14116309s2369p14370264.html Sent from the AppFuse -

Re: [appfuse-user] [Appfuse2.0] Best Practise Design Pattern for Multiple Dao Access from managers

2007-12-17 Thread Struts2 Fan
Thanks for the reply, I did the same steps as you explained. I get this error, when I test the GameManagerImplTest. public class GameManagerImpl extends GameManager{ public Game autoPlay() { //. Move move = moveDao.getBestMove(); //. } } public class

Re: [appfuse-user] [Appfuse2.0] Best Practise Design Pattern for Multiple Dao Access from managers

2007-12-16 Thread Struts2 Fan
Hi all again, I want to reask the question in a different way. What I want to do is to define another dao in the manager class. What are the steps to define it in the manager and test classes? Thanks fo replies. -- View this message in context: http://www.nabble.com/-Appfuse2.0--Best-Practise

[appfuse-user] [Appfuse2.0] Best Practise Design Pattern for Multiple Dao Access from managers

2007-12-02 Thread Struts2 Fan
Hi Matt and All, I just wonder, how do you handle accessing two dao's from managers. Let me try to explain what I mean on an example. Two beans, two DAOs, two Managers I have named "GAME" and "MOVE". The relationship between them is "GAME has zero or more MOVEs" Here I want to write such a meth

[appfuse-user] Logging Entity Activity Approach

2007-09-26 Thread Struts2 Fan
Hi all, I want to add a logging entity activities mechanizm to an application. Let's think about a bean and its log table. class Person{ Long id; String name; Date birthDate; } class Person_Log{ Long id; Long personId; String name; String birthDate; Integer activityType;

Re: [appfuse-user] AppFuse 2.0 code complete

2007-09-16 Thread Struts2 Fan
mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-struts -DremoteRepositories=http://static.appfuse.org/repository -DarchetypeVersion=2.0-SNAPSHOT -DgroupId=com.mycompany.app -DartifactId=myproject mvn jetty:run-war or mvn jetty:run-exploded both

Re: [appfuse-user] AppFuse 2.0 code complete

2007-09-16 Thread Struts2 Fan
It passed after 3. try. Another one. I am using struts-basic. [INFO] Starting jetty 6.1.5 ... 2007-09-16 23:18:13.067::INFO: jetty-6.1.5 2007-09-16 23:18:13.661::INFO: No Transaction manager found - if your webapp re quires one, please configure one. 2007-09-16 23:18:14.676:/:INFO: Initializi

Re: [appfuse-user] AppFuse 2.0 code complete

2007-09-16 Thread Struts2 Fan
I didn't run "appfuse:full-source" Just created a new 2.0-SNAPSHOT and run mvn jetty:run [ERROR] FATAL ERROR [INFO] [INFO] Unable to load class declared as in the configuration: [INFO] -

Re: [appfuse-user] AppFuse 2.0 code complete

2007-09-16 Thread Struts2 Fan
It is ok now. I am moving forward. I'll inform you. mraible wrote: > > Can you try it again? > > On 9/16/07, Struts2 Fan <[EMAIL PROTECTED]> wrote: >> >> Another problem >> I created a new project. >> >> Downloading: >> http://

Re: [appfuse-user] AppFuse 2.0 code complete

2007-09-16 Thread Struts2 Fan
Another problem I created a new project. Downloading: http://static.appfuse.org/repository/org/appfuse/appfuse-hibernate/ 2.0-SNAPSHOT/appfuse-hibernate-2.0-20070916.190810-88.pom [INFO] [ERROR] BUILD ERROR [INFO] --

Re: [appfuse-user] AppFuse 2.0 code complete

2007-09-16 Thread Struts2 Fan
Nice work Matt, A problem I met http://static.appfuse.org/repository/org/appfuse/maven-warpath-plugin/2.0-SNAPSHOT/maven-warpath-plugin-2.0-SNAPSHOT.pom doesn't exist -- View this message in context: http://www.nabble.com/AppFuse-2.0-code-complete-tf4462199s2369.html#a12724955 Sent from the

Re: [appfuse-user] Advice for Hibernate mapping

2007-08-13 Thread Fan
d not it be a relationship of one-to-many between facility and facilityFee ? how do the club, facility and facilityFee POJOs look like then ? DNewfield wrote: > > Fan wrote: >> I am doing a club reservation system using Appfuse 2.0m5 struts basic. >> >> I have two POJO:

[appfuse-user] Advice for Hibernate mapping

2007-08-12 Thread Fan
I am doing a club reservation system using Appfuse 2.0m5 struts basic. I have two POJO: 1) Club 2) Facility the relationship of them is, one Club can have many Facilities, apparently it's one-to-many relationship Now, when it comes to the booking of the Facility, the facility should have diffe

[appfuse-user] RE: Hibernate mapping

2007-07-27 Thread Fan
Hey Martin: Thanks for the link, I am newbie to Appfuse and hibernate too. Martin Homik wrote: > > Hi Fan, hi Srini, > > I am just following this thread out of curiosity. I am still a newbie to > AppFuse. My question is, what was actually the problem here? Was there

Re: [appfuse-user] how to stop wiping out the data in database then restarting webapp

2007-07-26 Thread Fan
Matt: Where/How could I modify the dbunit plugin in Appfuse 2.0-m5 ? any pointer to that please mraible wrote: > > You should add your new user in sample-data.xml or modify the dbunit > plugin so it doesn't use CLEAN_INSERT (REFRESH instead). > > See "type" in the dbunit-maven-plugin's do

[appfuse-user] RE: Hibernate mapping

2007-07-25 Thread Fan
Query sqlQuery = getSession().createSQLQuery(query).addEntity(Facility.class); List facilities = sqlQuery.list(); return facilities; } Hope that helps you. Or if there is a better solution, please do let me know, thanks Srini Bobbala wrote: > >

Re: [appfuse-user] How to turn off validation

2007-07-22 Thread Fan
> Matt > > On 7/17/07, Fan <[EMAIL PROTECTED]> wrote: >> >> Help !!! Any pointer to this issue will be appreciated. Thank you in >> advance >> >> >> Fan wrote: >> > >> > I am using Appfuse 2.0-m5 struts basic module. >> &g

[appfuse-user] RE: Hibernate mapping

2007-07-21 Thread Fan
Srini: Sorry,I am still searching for the solution. Hopefully someone would like to give me a pointer to where I should focus in. Srini Bobbala wrote: > > Fan, > Did you get the solution? > I am also facing same problem. > Thanks. > > -Original Message- >

[appfuse-user] How could I turn off the validation ?

2007-07-17 Thread Fan
I am using Appfuse 2.0-m5 struts basic module. How could I turn off the validation ? I tried but the validation still being triggered, why ? p/s I posted this thread before, but it seemed like missing, so I have to re-post again -- View this message in context: http://www.nabble.com/How-co

[appfuse-user] How to turn off the validation ?

2007-07-17 Thread Fan
I am using Appfuse 2.0-m5 struts basic module. How could I turn off the validation ? I tried but the validation still being triggered, why ? -- View this message in context: http://www.nabble.com/How-to-turn-off-the-validation---tf4100477s2369.html#a11660894 Sent from the AppFuse - User mai

Re: [appfuse-user] How to turn off validation

2007-07-17 Thread Fan
Help !!! Any pointer to this issue will be appreciated. Thank you in advance Fan wrote: > > I am using Appfuse 2.0-m5 struts basic module. > > How could I turn off the validation ? > > I tried > > validate="false"> > > but the validation sti

[appfuse-user] Hibernate mapping

2007-07-15 Thread Fan
I have one POJO called Facility and another called Club, the relationship between them is many-to-many. I want to select all the facilities that belongs to one club, how should the hibernate mapping look like ? the following is my Facility POJO: packa

[appfuse-user] How to turn of validation

2007-07-15 Thread Fan
I am using Appfuse 2.0-m5 struts basic module. How could I turn off the validation ? I tried but the validation still being triggered, why ? -- View this message in context: http://www.nabble.com/How-to-turn-of-validation-tf4082132s2369.html#a11602333 Sent from the AppFuse - User mailing

[appfuse-user] screen size

2007-07-11 Thread Fan
I am using 2.0m-5 with struts as web framework and with simplicity as csstheme. I feel like the screen size is a bit small, there are lot of empty spaces around the content. How could I enlarge the screen size ? -- View this message in context: http://www.nabble.com/screen-size-tf4062881s2

[appfuse-user] Why the first field is always focused ?

2007-07-10 Thread Fan
Is there a way to only set the first field to be focused only if the field is not readonly ? -- View this message in context: http://www.nabble.com/Why-the-first-field-is-always-focused---tf4056694s2369.html#a11523718 Sent from the AppFuse - User mailing list archive at Nabble.com.

[appfuse-user] textfield cssClass

2007-07-10 Thread Fan
I want to overwrite the cssClass defined above as "text large". Is it defined in a css file ? -- View this message in context: http://www.nabble.com/textfield-cssClass-tf4056310s2369.html#a11522446 Sent from the AppFuse - User mailing list archive at Nabble.com.

Re: [appfuse-user] override User code class and link OneToMany to any other class

2007-07-10 Thread Fan
> @ManyToOne(fetch = FetchType.LAZY) > @JoinColumn(name = "clubID", nullable=false, updatable=false) > public User getUsers() { >return user; > } > > > Hopes this help. > > > On 7/5/07, Fan <[EMAIL PROTECTED]> wrote: >> >> >>

Re: [appfuse-user]

2007-07-08 Thread Fan
Yup, it works perfectly. Sorry, what do you mean by "controller code" and "property editor code" ? I am using struts and hibernate Aled Rhys Jones wrote: > > Hi Fan > > Does the below save ok, i.e. when you change club does it save the > selected club?

Re: [appfuse-user]

2007-07-08 Thread Fan
es wrote: > > What about: > > SELECTED> > > Lemme know if it works, been having trouble getting drop-down lists > working myself. > My issue is that the drop down list appears, and the correct value > selected, but saving doesn't work. > > Cheers > Aled

[appfuse-user]

2007-07-08 Thread Fan
I have a dropdown with a list of club POJO: " //if club.clubID equals user.club.clubID then selected > My problem is , what's the syntaxfor checking if club.clubID equals u

[appfuse-user] LookupDaoHibernate

2007-07-08 Thread Fan
I have modified the LookupDaoHibernate with the following method: public List getClubs(){ log.debug("retrieving all clubs..."); return getHibernateTemplate().find("from club order by clubName"); } When I run "mvn jetty:run-war", I encounter the following error: [INFO]

Re: [appfuse-user] Generate serialVersionUID

2007-07-07 Thread Fan
Ohh, got it. Thanks Aled Aled Rhys Jones wrote: > > Hi Fan > > If the class is serializable then if you haven't defined a > serialVersionUID you'll get a warning icon on the left next to the > public class myModel line. Click on that icon and some options will

Re: [appfuse-user] Generate serialVersionUID

2007-07-07 Thread Fan
I am using Eclipse 3.2.2, How could I generate serialVersionUID with eclipse ? Matt Raible-3 wrote: > > I use Eclipse 3.0+ - it'll do this for you. > > On 11/30/05, Sam <[EMAIL PROTECTED]> wrote: >> >> Hi, >> >> What algorithm are used to generate serialVersionUID for objects >> that extend Ba

Re: [appfuse-user] override User code class and link OneToMany to any other class

2007-07-05 Thread Fan
#x27; defined in URL [jar:file:/C:/Documents and Settings/fan/.m2/repository/org/appfuse/appfuse-hibernate/2.0-m5/appfuse-hibernate-2.0-m5.jar!/applicationContext-dao.xml]: Invocation of init method failed; nested exception is org.hibernate.AnnotationException: mappedBy reference an

Re: [appfuse-user] struts combo box

2007-07-04 Thread Fan
service and web actions. > > The actual JSP tag looks right and there doesn't seem to be anything wrong > with your Club model object. > > -D > > > Fan wrote: >> >> I put the following line in my userForm, but it just did not show on the >> screen

Re: [appfuse-user] override User code class and link OneToMany to any other class

2007-07-04 Thread Fan
ted but when I have saved the user record with "clubID" being saved successfully in user table, nothing did happen in "club_app_user" , in other words, the "club_app_user" still empty record, or do I need to save the record in "c

Re: [appfuse-user] struts combo box

2007-07-03 Thread Fan
ssigning users to clubs. It would be a custom > Action and jsp page you write yourself. > > The other option is to encapsulate the Appfuse User object in your own > super object. Its not inheritance buy composition so that the Appfuse > User is a property of your new obj

[appfuse-user] How to make hibernate3 Plugin to make Relationships cascade delete

2007-07-03 Thread Struts2 Fan
Hi Appfuse Users, I am using Appfuse 2.0-M5, Struts2, mysql and Hibernate. In my project I have a one-to-many relationship. Here is the sample code public class School extends BaseObject{ // @OneToMany(cascade = CascadeType.ALL, mappedBy = ("school")) public Set getStudents(

Re: [appfuse-user] How to initialise other Dao or Manager in UserAction

2007-07-01 Thread Fan
property of userManager in > applicationContext-service.xml in the resources directory. > > > Arvinder > > > Fan wrote: >> >> Hey All: >> >> I want to initialise a ClubDao or ClubManager in UserAction, how >> could I do that ? >

[appfuse-user] How to initialise other Dao or Manager in UserAction

2007-07-01 Thread Fan
Hey All: I want to initialise a ClubDao or ClubManager in UserAction, how could I do that ? -- View this message in context: http://www.nabble.com/How-to-initialise-other-Dao-or-Manager-in-UserAction-tf4008081s2369.html#a11382614 Sent from the AppFuse - User mailing list archive at Nabble

Re: [appfuse-user] struts combo box

2007-07-01 Thread Fan
e Appfuse > User is a property of your new object. (public User myuser.getUser();) > > So you can see there are many options, and it depends on what you need and > what you are comfortable implementing on your own. As usual I rambled too > much, but I hope it helps ;-)

Re: [appfuse-user] override User code class and link OneToMany to any other class

2007-06-30 Thread Fan
te3:hbm2ddl and check database for > user table structure. If it does not contains fields defined in User pojo > of your project then AppFuse Data Common Package is not excluded. > > What is your version of appfuse, M5? > > Regards, > ros > > > > Fan

[appfuse-user] struts combo box

2007-06-28 Thread Fan
I am using struts framework in Appfuse 2.0-m5. I have a POJO called Club, now I want to retrieve the list of clubs from DB then populate them into userForm.jsp as a combo box. How could I do that ? Any pointer please p/s ** The relationship between User and Club POJO is ManyToOne. -- View this

Re: [appfuse-user] AW: Add ManyToOne relationship between user and a new pojo

2007-06-28 Thread Fan
class-tf3217084s2369.html Michael Horwitz wrote: > > If you get the full source, then your project should no longer contain a > reference to either the warpath plugin or any of the appfuse dependencies > (you do have all the source, after all... :-) > > Mike. > > On 6/28/07,

Re: [appfuse-user] AW: Add ManyToOne relationship between user and a new pojo

2007-06-28 Thread Fan
urces. You can also just modify the core classes (only the domain > objects). > See: http://appfuse.org/display/APF/AppFuse+Core+Classes > > Kind regards, > Tobias > > -Ursprüngliche Nachricht- > Von: Fan [mailto:[EMAIL PROTECTED] > Gesendet: Donnerstag, 28. Juni 20

[appfuse-user] Add ManyToOne relationship between user and a new pojo

2007-06-28 Thread Fan
I want to add ManyToOne relationship between user and a new pojo. 1) Should I extend the user pojo instead of modifying the user pojo to build the relationship ? 2) Is there any implication when I run "mvn appfuse:full-source" ? -- View this message in context: http://www.nabble.com/Add-Many

Re: [appfuse-user] override User code class and link OneToMany to any other class

2007-06-27 Thread Fan
t; I just checked the archetype for AppFuse 2.0M5 Struts 2 Basic and the > definition for the maven-warpath-plugin should definitely be there. > > Mike. > > On 6/27/07, Fan <[EMAIL PROTECTED]> wrote: >> >> >> I am using struts basic module. >> >&g

Re: [appfuse-user] override User code class and link OneToMany to any other class

2007-06-27 Thread Fan
martclub Michael Horwitz wrote: > > I just checked the archetype for AppFuse 2.0M5 Struts 2 Basic and the > definition for the maven-warpath-plugin should definitely be there. > > Mike. > > On 6/27/07, Fan <[EMAIL PROTECTED]> wrote: >> >> >> I am using s

Re: [appfuse-user] override User code class and link OneToMany to any other class

2007-06-27 Thread Fan
> > > > This should be in the build section of your pom.xml, either at the top > level > if using a Basic project archetype or at the web module level if using a > modular archetype. > > Mike. > > On 6/27/07, Fan <[EMAIL

Re: [appfuse-user] override User code class and link OneToMany to any other class

2007-06-27 Thread Fan
Could you please show me the original definition for the warpath plugin in pom.xml ? Michael Horwitz wrote: > > Have you removed the definition for the warpath plugin in your pom.xml? > Looks like it is no longer being resolved. > > Mike. > > On 6/27/07, Fan <

Re: [appfuse-user] override User code class and link OneToMany to any other class

2007-06-27 Thread Fan
AppFuse Data Common Package is not excluded. > > What is your version of appfuse, M5? > > Regards, > ros > > > > Fan wrote: >> >> Hey Ros: >> >> I did add the related Object to both hibernate.cfg.xml and >> applicationContext.xml. But it just

Re: [appfuse-user] AW: missing required library

2007-06-27 Thread Fan
un: > mvn eclipse:clean eclipse:eclipse > > -Ursprüngliche Nachricht- > Von: Fan [mailto:[EMAIL PROTECTED] > Gesendet: Dienstag, 26. Juni 2007 17:55 > An: users@appfuse.dev.java.net > Betreff: Re: [appfuse-user] missing required library > > > Yup, I did,

Re: [appfuse-user] missing required library

2007-06-26 Thread Fan
Yup, I did, I even restarted it Michael Horwitz wrote: > > Have you refreshed your eclipse project after running mvn install? > > On 6/26/07, Fan <[EMAIL PROTECTED]> wrote: >> >> >> I had run the "mvn install", it showed "BUILD SUCCESSFUL

Re: [appfuse-user] missing required library

2007-06-26 Thread Fan
ject. > > Mike. > > On 6/26/07, Fan <[EMAIL PROTECTED]> wrote: >> >> >> I have errors showing in my eclipse IDE: >> >> 1)Project clubber is missing required library: >> 'target/warpath/appfuse-struts-2.0-m5.warpath.jar' >> 2)Pr

Re: [appfuse-user] override User code class and link OneToMany to any other class

2007-06-26 Thread Fan
? ros wrote: > > Hi! > > I resolve that by add my Contact object to both hibernate.cfg.xml and > applicationContext.xml. > > Reffer to http://www.appfuse.org/display/APF/AppFuse+Core+Classes > > Hope this helps. > > ros > > > > Fan wrote: >> &g

[appfuse-user] missing required library

2007-06-26 Thread Fan
I have errors showing in my eclipse IDE: 1)Project clubber is missing required library: 'target/warpath/appfuse-struts-2.0-m5.warpath.jar' 2)Project clubber is missing required library: 'target/warpath/appfuse-web-common-2.0-m5.warpath.jar' 3)The project cannot be built until build path errors

Re: [appfuse-user] override User code class and link OneToMany to any other class

2007-06-25 Thread Fan
Ros, What's the fix ? I am facing the same error as you did ros wrote: > > Right. Thanks Matt! > -- View this message in context: http://www.nabble.com/override-User-code-class-and-link-OneToMany-to-any-other-class-tf3217084s2369.html#a11289531 Sent from the AppFuse - User mailing list ar

Re: [appfuse-user] override User code class and link OneToMany to any other class

2007-06-25 Thread Fan
that sort being needed some while back. > > Mike. > > On 6/25/07, Fan <[EMAIL PROTECTED]> wrote: >> >> >> I face the same problem: >> >> In my user POJO, I have: >> >> @ManyToOne >> public Club getClub() >> { >>

Re: [appfuse-user] override User code class and link OneToMany to any other class

2007-06-25 Thread Fan
I face the same problem: In my user POJO, I have: @ManyToOne public Club getClub() { return club; } in my club POJO, I have: @OneToMany(mappedBy = "club") public Set getUsers() { return users; } Here is my hibernate.cfg.xml Here is m

Re: [appfuse-user] Appfuse 2.0-m5 does not support UTF8 ?

2007-06-17 Thread Fan
27;s the encoding between ApplicationResources_zh_CN.properties and ApplicationResources.properties ? Are they encoded differently ? 2) There are several places to define the ApplicationResources, why are they ? i) web.xml ii) struts.xml mraible wrote: > > On 6/17/07, Fan <[EMAIL PROTECTED]>

Re: [appfuse-user] Appfuse 2.0-m5 does not support UTF8 ?

2007-06-17 Thread Fan
t when I create a new project from an >> archetypes. >> >> I've entered an issue for this at: >> >> http://issues.appfuse.org/browse/APF-791 >> >> Please let us know if you figure out what's causing the problem. >> >> Matt >> >

Re: [appfuse-user] [Appfuse2][S2]Anyone who used s:tabbedPanel?

2007-06-13 Thread Struts2 Fan
e barely using any of its features. > > Matt > > On 6/13/07, Struts2 Fan <[EMAIL PROTECTED]> wrote: >> >> Hi all, >> >> I couldn't make the s:tabbedPanel work in appfuse 2.0-M5. I copied a >> simple >> jsp file from the showcase

[appfuse-user] [Appfuse2][S2]Anyone who used s:tabbedPanel?

2007-06-13 Thread Struts2 Fan
Hi all, I couldn't make the s:tabbedPanel work in appfuse 2.0-M5. I copied a simple jsp file from the showcase application in the struts-core, but it is not working in my appfuse project. It gives the following javascript error. djConfig.baseScriptUri has no properties getBaseScriptUri()dojo.js

Re: [appfuse-user] Struts2 taglibs

2007-06-07 Thread Fan
Any online tutorial for writing a customised tag ? mraible wrote: > > On 6/7/07, Martin Ravell <[EMAIL PROTECTED]> wrote: >> Thanks Matt. Will check this out. >> >> Another issue: If I have an old taglib which is expecting an object to be >> passed into it is there some syntax I can use in the

Re: [appfuse-user] Help & Advice on Hibernate JP

2007-06-05 Thread Fan
wrote: > > Is the relationship between Club to Facility is a One-To-Many > bidirectional > r/ship? > > On 6/5/07, Fan <[EMAIL PROTECTED]> wrote: >> >> >> Hey All: >> >>I am new to Hibernate Annotations, currently I am building a club >

[appfuse-user] Help & Advice on Hibernate JPA

2007-06-05 Thread Fan
Hey All: I am new to Hibernate Annotations, currently I am building a club membership system using Appfuse 2.0-m5. I have designed the database structure & relationship for this project. However I have a problem of using hibernate to generate the tables and maintaining persistence. I hope

Re: [appfuse-user] button style in IE

2007-06-04 Thread Fan
Well done Matt, it works !!! mraible wrote: > > Try adding theme="simple": > > theme="simple"/> > > If this works, maybe we need to update the tutorial? > > Matt > > On 6/4/07, Fan <[EMAIL PROTECTED]> wrote: >> >> th

[appfuse-user] button style in IE

2007-06-04 Thread Fan
the submit buttons tag in Appfuse 2.0-m5 e.g. will render differently in firefox & IE In IE, the save, delete, cancel buttons will be aligned to right hand side. And they are arranged in vertical order. i.e. How could I change the style so that the

Re: [appfuse-user] Appfuse 2.0-m5 does not support UTF8 ?

2007-06-01 Thread Fan
his is fixed > in the next release. > > http://issues.appfuse.org/browse/APF-787 > > Switching to EhCache for our GZipFilter has caused a lot of headaches. > If these headaches continue, we'll switch back to the one we used in > 1.x. > > Matt > > On 6/1/07, Fan <

Re: [appfuse-user] Appfuse 2.0-m5 does not support UTF8 ?

2007-06-01 Thread Fan
hen >> rendering characters - I've seen that caused by different versions of >> the gzipFilter. >> >> Does it happen on the demo site too? >> >> http://demo.appfuse.org >> >> Matt >> >> On 5/31/07, Fan <[EMAIL PROTECTED]> wrote

Re: [appfuse-user] Appfuse 2.0-m5 does not support UTF8 ?

2007-06-01 Thread Fan
for me to produce the problem locally? Of > course, you can do this in a JIRA issue if it makes more sense. > > Thanks, > > Matt > > On 5/31/07, Fan <[EMAIL PROTECTED]> wrote: >> >> I did key in japanese characters in the address field of the demo site&

Re: [appfuse-user] What would you want in a 10-15 page chapter on AppFuse?

2007-06-01 Thread Fan
Hey Matt: The topics you mentioned about are essential to have. But I would like to see more of the following: 1) Explanation for how different frameworks being glued together 2) Explanation for the how does configuration in Appfuse work 3) Possibly with few sample applications with hibernat

Re: [appfuse-user] Appfuse 2.0-m5 does not support UTF8 ?

2007-05-31 Thread Fan
be nothing different as far as form handling. Have you > made sure your database supports UTF-8? There may be differences when > rendering characters - I've seen that caused by different versions of > the gzipFilter. > > Does it happen on the demo site too? > > http://demo.appfu

Re: [appfuse-user] how to check Appfuse 2.0-mX version ?

2007-05-31 Thread Fan
=com.mycompany.app -DartifactId=myproject I still get 4.0.0 in the pom.xml, or someone forgot to change the tag for 2.0-m5 ? :P tibi-3 wrote: > > the pom.xml ?! > > tibi > > Fan wrote: >> Is there a way to tell which version of Appfuse 2.0-mX from the source

[appfuse-user] how to check Appfuse 2.0-mX version ?

2007-05-31 Thread Fan
Is there a way to tell which version of Appfuse 2.0-mX from the source or configuration file ? -- View this message in context: http://www.nabble.com/how-to-check-Appfuse-2.0-mX-version---tf3847298s2369.html#a10896589 Sent from the AppFuse - User mailing list archive at Nabble.com.

[appfuse-user] Appfuse 2.0-m5 does not support UTF8 ?

2007-05-31 Thread Fan
I had tried using Appfuse 2.0-mX before Appfuse2.0-m5. The previous version of appfuse 2.0 seems like no problem with UTF8 character. But when I use Appfuse2.0-m5 on the same MySql database as I used for previous version, the UTF8 character does not show correctly, all showing "" What missed

[appfuse-user] How to use touch script in windows:

2007-05-27 Thread Fan
Hey all -- View this message in context: http://www.nabble.com/How-to-use-touch-script-in-windows%3A-tf3825697s2369.html#a10830331 Sent from the AppFuse - User mailing list archive at Nabble.com. - To unsubscribe, e-mail: [EMAI

[appfuse-user] one user with two addresses

2007-05-24 Thread Fan
I want to have residential address & company address for user, how should the JPA annotation look like in the user POJO ? or is that possible ?? Anyone can point me to Hibernate JPA quick start guide ? Thank in advance -- View this message in context: http://www.nabble.com/one-user-with-two-ad

Re: [appfuse-user] How to change struts version to 2.1.0-SNAPSHOT

2007-05-13 Thread Struts2 Fan
Thanks Matt, They made all the names of interceptors camel type. But when I changed that there were more errors when I run the application, so until they release 2.1.0 GA release, I don't use it in my project. I will test them in their struts-showcase project. -- View this message in context:

Re: [appfuse-user] How to change struts version to 2.1.0-SNAPSHOT

2007-05-11 Thread Struts2 Fan
> > org.springframework > spring-web > > > > > > Mike > > On 5/11/07, Struts2 Fan <[EMAIL PROTECTED]> wrote: >> >> >> Hi all, >

Re: [appfuse-user] How to change struts version to 2.1.0-SNAPSHOT

2007-05-11 Thread Struts2 Fan
it couldn't find the interceptor defined "servlet-config" it is struts related or appfuse related? - Caused by: Unable to find interceptor class referenced by ref-name servlet-config - interceptor-ref - file:/D:/Projects/test/target/test-1.2-SNAPSHOT/WEB-INF/classes/struts

[appfuse-user] How to change struts version to 2.1.0-SNAPSHOT

2007-05-11 Thread Struts2 Fan
Hi all, I just couldn't find how to change the struts-2.0.6 version to 2.1.0-SNAPSHOT. I know it is not stable but I want to test its ajax support. Thanks in advance. -- View this message in context: http://www.nabble.com/How-to-change-struts-version-to-2.1.0-SNAPSHOT-tf3725933s2369.html#a104

[appfuse-user] Which plugin creates the Database reading the POJOs

2007-04-26 Thread Struts2 Fan
Hi all, I sent here a message to learn how to set the database characterEncoding to latin5. But no answer were posted. So I will try to look somewhere else. :) Can anyone show me a way where do I start searching? For Example which plugin makes this creation. Thanks in advance. -- View this mes

[appfuse-user] [S2] How to make type Conversion

2007-04-26 Thread Struts2 Fan
Hi all, I wonder if any of you used the Type conversion as explained here http://struts.apache.org/2.x/docs/type-conversion.html I am trying to dynamically fill a table. I have a bean Person and Person has "List". What did I do is step by step. 1 - I defined "List houseList" in the PersonA

Re: [appfuse-user] RequiredString message in struts2

2007-04-23 Thread Struts2 Fan
:) You are right but I have a problem with Turkish characters :) When I change the errors_tr.properties in the target/.../WEB-INF/classes as you said the message seems wrong again. It doesn't show the "ı" character correct. For this in appfuse it is written with unicode. The bundles in target/..

Re: [appfuse-user] RequiredString message in struts2

2007-04-23 Thread Struts2 Fan
errors.twofields="şifrenizi Onaylayın" alanı "şifre" alanı ile aynı > değerde olmak zorunda. > > Matt > > On 4/23/07, Struts2 Fan <[EMAIL PROTECTED]> wrote: >> >> Thanks Matt. >> Yes it is there but it is defined as >> >> error

Re: [appfuse-user] RequiredString message in struts2

2007-04-23 Thread Struts2 Fan
Thanks Matt. Yes it is there but it is defined as errors.required=${getText(fieldName)} alan\u00c4\u00b1 doldurulmas\u00c4\u00b1 gerekli bir alan. But it doesn't seem correct. Why can it be? Kategori Adı alanı doldurulması gerekli bir alan. it seems but it must seem Kategori Adı alanı doldur

[appfuse-user] RequiredString message in struts2

2007-04-23 Thread Struts2 Fan
Hi all, I use locale=tr and I had a strange problem when I run the example Person in the tutorials It puts a message between the required field message and I couldn't find what puts it in there. The bundle in the ApplicationResources_tr.xml errors.required={0} gerekli bir alan. The name of th

Re: [appfuse-user] How To Get All Users in an Action

2007-04-22 Thread Struts2 Fan
>> > class="org.appfuse.tutorial.webapp.action.PersonAction" >> scope="prototype"> >> >> I added this to the ApplicationContext-struts.xml already but still it gets null. Do I put it ApplicationContext.xml? I know that we define Struts2-Actions in the ApplicationContext-struts.xml Thank

[appfuse-user] How To Get All Users in an Action

2007-04-22 Thread Struts2 Fan
Hi All, I have a problem. I created the PersonAction as shown in the tutorials and in this PersonAction I want to use the userManager which defined in the BaseAction. And the userManager is null. What am I supposed to define to make it not null? userManager.get(User.class,"1"); doesn't work. It

[appfuse-user] How To Change field charsets automaticly

2007-04-17 Thread Struts2 Fan
Hi all, I am using 2.0m4 and making a project. You know the database is generated and I want to change the characterEncoding. It creates the database with latin5 character encoding but it doesn't make the column charsets latin5 and also the table charsets. What would I do to make this create the

Re: [appfuse-user] What is the best way to modify UserManager

2007-04-16 Thread Struts2 Fan
dding, but not before 2.0 is released. > > Another thing you could do is to checkout AppFuse from SVN, make the > changes in the core and then install it in your local repository. If > you change the groupId from org.appfuse to com.yourcompany, you > shouldn't have to worry ab

[appfuse-user] What is the best way to modify UserManager

2007-04-16 Thread Struts2 Fan
Hi all, I created a new project, and put a table which has a one2many relationship between org.appfuse.model.User class. User has a list of this new class. I got the source from svn (using tutorial "Appfuse Core Classes"). I need to modify the UserManager and UserDao to write new methods. I also

[appfuse-user] How to reach the personManager in DWR's Demo class

2007-04-08 Thread Struts2 Fan
Hi all, I wonder what is the best way to call personManager.findByLastName(String) method in the class file used to dynamically update html using dwr? In other words what should I add to applicationContext.xml and how to define the personManager in Demo class. I am new to springframework so it w

Re: [appfuse-user] Many-to-Many Users/Roles

2007-04-05 Thread Struts2 Fan
Hi there, It is many-to-many relationship so the reverse version of the Person.getRoles annotation will help you I guess. private List users; @ManyToMany(fetch = FetchType.EAGER) @JoinTable( name = "user_role", joinColumns = [EMAIL PROTECTED](name = "role_id")},

[appfuse-user] How to set a DateTime field in sample-data.xml

2007-04-01 Thread Struts2 Fan
Hi all, I wonder how can I set a datetime value with sample-data.xml. Thanks in advance. -- View this message in context: http://www.nabble.com/How-to-set-a-DateTime-field-in-sample-data.xml-tf3500766s2369.html#a9776781 Sent from the AppFuse - User mailing list archive at Nabble.com.

[appfuse-user] RE: Maven behind a proxy

2007-03-30 Thread Fan
the username & password should be my network login username & password ? pgarvey wrote: > > Fan: > > I am using Maven behind a firewall as well and here is how you setup > the proxy in your settings.xml: > > > > true >

Re: [appfuse-user] Maven behind a proxy

2007-03-29 Thread Fan
22:26 SGT 2007 [INFO] Final Memory: 1M/2M [INFO] D:\source> mraible wrote: > > On Windows, you'll want to unzip this to c:\Documents and > Settings\yourusername\.m2\repository. On *nix, you'll want to use > ~/.m2/repository. > > M

Re: [appfuse-user] Possible to load two set of ApplicationResources.properties ?

2007-03-29 Thread Fan
ct as > well. > > Hope this helps, > > Matt > > > On 3/28/07, Fan <[EMAIL PROTECTED]> wrote: >> >> Matt, thank you for the explaination. >> >> I think I need to go futher by extending or changing the ResourceBundle >> handling, I am thin

  1   2   >