[appfuse-user] Re: mvn appfuse:gen-model problem

2010-05-19 Thread Dike
I sent sql script to u,please check out,thank u -- View this message in context: http://appfuse.547863.n4.nabble.com/mvn-appfuse-gen-model-problem-tp446p2223849.html Sent from the AppFuse - User mailing list archive at Nabble.com. ---

Re: [appfuse-user] Re: mvn appfuse:gen-model problem

2010-05-19 Thread Matt Raible
In reality, gen-model should work, but running "gen" after than on your classes might cause issues. If you're using a MySQL database, can you do a dump (or send a SQL file to create the database) and send it to my so I can try and reproduce the problem? Thanks, Matt On May 19, 2010, at 7:32 P

[appfuse-user] Re: mvn appfuse:gen-model problem

2010-05-19 Thread Dike
Than u very much! If like u say that,Appfuse framework only can generate my basic skeleton and test my dao,others eg action pages i must be wirte by hand??? -- View this message in context: http://appfuse.547863.n4.nabble.com/mvn-appfuse-gen-model-problem-tp446p2223826.html Sent from the Ap

Re: [appfuse-user] A bug whe using theme="css_xhtml"

2010-05-19 Thread Juan Antonio
Oh, you are right. Sorry ¡Vergüenza de mis hijos! Greetings. - Original Message - From: "DUSTIN PEARCE" To: Sent: Thursday, May 20, 2010 2:59 AM Subject: Re: [appfuse-user] A bug whe using theme="css_xhtml" Try changing the name of the select field. I don't think it likes size.

Re: [appfuse-user] Re: mvn appfuse:gen-model problem

2010-05-19 Thread Matt Raible
Here's what I would suggest: 1. Write your Entities by hand. 2. Write DAO tests using the Generic DAO and Manager (you won't have to write new classes) 3. Write your Action/Controller classes and view pages. If you get all that done, you will have the knowledge you need to develop w/o appfuse:gen

[appfuse-user] Re: mvn appfuse:gen-model problem

2010-05-19 Thread Dike
Thank u replay me so quickly! I want to know when i must use one to many relationships,what can i do??? and another question is the command "mvn appfuse:gen" can't generate DAO,SERVICE,ACTION with batch size??? -- View this message in context: http://appfuse.547863.n4.nabble.com/mvn-appfuse-gen-

Re: [appfuse-user] A bug whe using theme="css_xhtml"

2010-05-19 Thread DUSTIN PEARCE
Try changing the name of the select field. I don't think it likes size. It may be eval'ng that as OGNL and getting confused. Change the field name and see what happens. On May 19, 2010, at 5:52 PM, "Juan Antonio" wrote: I don't know how to reproduce it, i have only located it in this

Re: [appfuse-user] A bug whe using theme="css_xhtml"

2010-05-19 Thread Juan Antonio
I don't know how to reproduce it, i have only located it in this tags: headerKey="AUTO" headerValue="AUTO" label="Tamaño" /> headerKey="AUTO" headerValue="AUTO" label="Tamaño" /> expect it helps. Greetings. - Original Message - From: "Matt Raible" To: Sent:

Re: [appfuse-user] A bug whe using theme="css_xhtml"

2010-05-19 Thread Matt Raible
Is this out-of-the-box, or did you change something to make this happen? I need to know how to reproduce the problem in order to fix it. On May 19, 2010, at 4:43 PM, Juan Antonio wrote: > Only to report > > ?size is unsupported for: freemarker.ext.beans.SimpleMethodModel > The problematic inst

[appfuse-user] A bug whe using theme="css_xhtml"

2010-05-19 Thread Juan Antonio
Only to report ?size is unsupported for: freemarker.ext.beans.SimpleMethodModel The problematic instruction: -- ==> list fieldErrors[parameters.name] as error [on line 38, column 9 in template/css_xhtml/controlheader.ftl] in include "/${parameters.templateDir}/${parameters.theme}/contro

[appfuse-user] Re: When Generated CRUD operation for more than one model using appfuse:gen, its giving error while Listing the data

2010-05-19 Thread itsdipak
Resolved. added in each bean of applicationContext.xml E.g.: -- View this message in context: http://appfuse.547863.n4.nabble.com/When-Generated-CRUD-operation-for-more-than-one-model-using-appfuse-gen-i

Re: [appfuse-user] main

2010-05-19 Thread Matt Raible
You might look into Spring Batch or just use ClasspathApplicationContext to load up your context files in your main method. http://stackoverflow.com/questions/707355/simple-spring-use-of-classpathapplicationcontext-for-standalone-apps-how-to-reu On Wed, May 19, 2010 at 8:57 AM, wrote: > > Is it

[appfuse-user] Re: Trying to save some data in database when login

2010-05-19 Thread Juan Antonio
I don't undertand. Could you give me an example? Thanks. - Original Message - From: mraible [via AppFuse] To: Juan Antonio Sent: Wednesday, May 19, 2010 5:50 PM Subject: Re: Trying to save some data in database when login I would try adding a super.flush() after you per

Re: [appfuse-user] Adding CSS Style of my own

2010-05-19 Thread Richard Nduka
Hi Gang, I am sure somebody must have asked this question previously but please bear with me as i ask it again. How easy would it be to integrate a third party CSS Design into appfuse? Thanks.

Re: [appfuse-user] Re: Trying to save some data in database when login

2010-05-19 Thread Matt Raible
I would try adding a super.flush() after you persist the data. On Wed, May 19, 2010 at 9:44 AM, Juan Antonio wrote: > > I am experience a problem with a query. > > Previous to save data to database, i try to find if there is already data > related to the user: > > The final query, in UserDataDao.

[appfuse-user] Re: Trying to save some data in database when login

2010-05-19 Thread Juan Antonio
I am experience a problem with a query. Previous to save data to database, i try to find if there is already data related to the user: The final query, in UserDataDao.java is this: public UserData findByIdClient(long userId) throws NoSuchUserDataException { List usersData = getHibernateTemp

[appfuse-user] main

2010-05-19 Thread tibi
Is it possible to add a main method entry point to a struts/spring/hibernate project? so i can make an commandline version? i need to read a file into the database every 24 hours and would like to reuse all the code. thanks, tibi --

Re: [appfuse-user] mvn appfuse:gen-model problem

2010-05-19 Thread Matt Raible
I haven't seen this error in a while, but I suspect it's because the appfuse:gen program does not support one-to-many relationships. On Wed, May 19, 2010 at 2:09 AM, Dike wrote: > > Hello,everyone! > I can create my project with appfuse2.1.0M successful,but when i use mvn > appfuse:gen-model ,in

[appfuse-user] mvn appfuse:gen-model problem

2010-05-19 Thread Dike
Hello,everyone! I can create my project with appfuse2.1.0M successful,but when i use mvn appfuse:gen-model ,in order to generate the model with two tables and this relationship are one to many,it display flow: [INFO] Scanning for projects... [INFO] -

[appfuse-user] Re: Populate a select with a list from servletcontext

2010-05-19 Thread Juan Antonio
#application['foo'] or #application.foo ServletContext attributes 'foo' #attr['foo'] or #attr.foo Access to PageContext if available, otherwise searches request/session/application respectively If I have stored the ArrayList in the ServletContext, Why it only works with attr? I am confused.

[appfuse-user] Re: Populate a select with a list from servletcontext

2010-05-19 Thread Juan Antonio
It works!! Thanks. When I said "sometimes" I mean sometimes the error appears in the log, and sometimes no. Maybe the level debug, maybe a log size too long. Thank you dusty. - Original Message - From: dusty [via AppFuse] To: Juan Antonio Sent: Wednesday, May 19, 2010 7:21 A