Re: [appfuse-user] possible to get source attachments for appfuse-web-common-2.0-m4 and various others?

2007-04-11 Thread Matt Raible
We upload sources, so I believe the only problem is that Eclipse is not attaching them. Or rather, the warpath plugin does not attach them. I believe Mike is aware of this issue. You could try manually downloading the sources and attaching them yourself. http://static.appfuse.org/repository/org

[appfuse-user] possible to get source attachments for appfuse-web-common-2.0-m4 and various others?

2007-04-11 Thread upstreamnet
Hello: I just started experimenting with appfuse. I created my first project with the JSF Basic archetype. I then build my eclipse project like this: mvn -Declipse.downloadSources=true eclipse:eclipse My goal was to get source attachments for all of the different app fuse base components tha

[appfuse-user] Extending User Class Problem

2007-04-11 Thread Krzysztof Kaczmarek
Hello, I'm trying extend user class. I've following adnotations: @Entity @Table(name="app_user") @Inheritance(strategy = InheritanceType.JOINED) public class User extends BaseObject implements Serializable, UserDetails @Entity public class Student extends User When I'm using Generic manager

Re: [appfuse-user] AppGen for 2.x

2007-04-11 Thread Matt Raible
FWIW, I've been using the code from the tutorials for the code templates. You can get these by checking out the appfuse-demos project from google-code: http://code.google.com/p/appfuse-demos/source Matt On 4/11/07, Matt Raible <[EMAIL PROTECTED]> wrote: The one I'm currently working on is in

Re: [appfuse-user] AppGen for 2.x

2007-04-11 Thread Matt Raible
The one I'm currently working on is in the sandbox, you can check it out using: svn co https://appfuse.dev.java.net/svn/sandbox/appfuse-maven-plugin After checking it out, run "mvn idea:idea" (or eclipse:eclipse if that's your preference). After doing that, you should be able to run the tests i

Re: [appfuse-user] AppGen for 2.x

2007-04-11 Thread Ömer Başar
Hi Matt, I would like to help on this plugin. At least I think I can help with the template copy/paste job. :) I used velocity and freemarker. Maybe I can help somehow and I would like to help. -- View this message in context: http://www.nabble.com/AppGen-for-2.x-tf3560149s2369.html#a9947630 Se

Re: [appfuse-user] struts2 select

2007-04-11 Thread J. David Mendoza
Without LabelValue by the way :) (Using a POJO) J. David Mendoza wrote: Thanks Matt, but it turned out to be jetty :( I just put the war in Tomcat and it worked! So I'm working with the Tomcat plug in for this project, not as good as Jetty's, but it works ;) David M. Matt Raible wrote: Can

Re: [appfuse-user] struts2 select

2007-04-11 Thread J. David Mendoza
Thanks Matt, but it turned out to be jetty :( I just put the war in Tomcat and it worked! So I'm working with the Tomcat plug in for this project, not as good as Jetty's, but it works ;) David M. Matt Raible wrote: Can you try with a LabelValue object as your population mechanism? I believe

Re: [appfuse-user] multiple questions

2007-04-11 Thread Matt Raible
On 4/11/07, sarat.pediredla <[EMAIL PROTECTED]> wrote: Why would you debug the code if the database record already exists? Just look at your DB and see if the record already exists, which should answer the question. It is a valid point about some of these questions. and this is for Matt. Matt

Re: [appfuse-user] multiple questions

2007-04-11 Thread Matt Raible
On 4/11/07, nmall <[EMAIL PROTECTED]> wrote: Michael Thanks for your reply. The strange thing is that it gives the same error for any username/password which does not exist in my database table. My question is how to debug this - don't we need to download the source jsps/servlets. If you cr

Re: [appfuse-user] AppGen for 2.x

2007-04-11 Thread Matt Raible
It's definitely not ready for prime time. I re-wrote the beginnings of this plugin from scratch last weekend (http://tinyurl.com/yo7o7l) and have been trying to find time to flush out the rest of the templates and start working on the copy/merge process. I think the foundation is good enough for

Re: [appfuse-user] AppGen for 2.x

2007-04-11 Thread sarat.pediredla
Doh! Ignore me. I didnt see this. http://issues.appfuse.org/browse/APF-490. However, it keeps saying that the plugin has moved to appfuse main site. I cant find it in components in JIRA? sarat.pediredla wrote: > > Matt, > > I am probably too hasty but any idea on when AppGen is out? I have se

[appfuse-user] AppGen for 2.x

2007-04-11 Thread sarat.pediredla
Matt, I am probably too hasty but any idea on when AppGen is out? I have seen the roadmap but just querying if you think it might be on target? -- View this message in context: http://www.nabble.com/AppGen-for-2.x-tf3560149s2369.html#a9942153 Sent from the AppFuse - User mailing list archive

Re: [appfuse-user] multiple questions

2007-04-11 Thread sarat.pediredla
Why would you debug the code if the database record already exists? Just look at your DB and see if the record already exists, which should answer the question. It is a valid point about some of these questions. and this is for Matt. Matt, Isnt it worth adding this as a sub section or link out

Re: [appfuse-user] multiple questions

2007-04-11 Thread nmall
Michael Thanks for your reply. The strange thing is that it gives the same error for any username/password which does not exist in my database table. My question is how to debug this - don't we need to download the source jsps/servlets. Michael Horwitz wrote: > > Answers below: > > On 4/11/

[appfuse-user] Eclipse Classpath issue

2007-04-11 Thread Youssef Mohammed
fyi, Following is Matt's answer to the question posted below. Sorry I wasn't aware of the user list. Regards, Youssef - Matt said: The reason there's paths to build/*

Re: [appfuse-user] multiple questions

2007-04-11 Thread Michael Horwitz
Answers below: On 4/11/07, nmall <[EMAIL PROTECTED]> wrote: Hi, 1) I downloaded appfuse source from svn and still cannot find tehe LoginServlet.java and other jsps. How do we get these so we can modify them and use them. If you run mvn war:inplace in the web module (or at the top level if

[appfuse-user] multiple questions

2007-04-11 Thread nmall
Hi, 1) I downloaded appfuse source from svn and still cannot find tehe LoginServlet.java and other jsps. How do we get these so we can modify them and use them. 2) Can we use ant with appfuse 2.x. I am quite new to Maven and not sure we can build a whole new app with it. 3) I was trying to add

Re: [appfuse-user] Role list with StrutsMenu

2007-04-11 Thread Matt Raible
On 4/11/07, devg <[EMAIL PROTECTED]> wrote: Actually role permissions do work for 2.4.2, but only at the top level, not at submenu or item level. I disagree. I tried changing AppFuse's Struts 2 module from using:

Re: [appfuse-user] Role list with StrutsMenu

2007-04-11 Thread devg
Actually role permissions do work for 2.4.2, but only at the top level, not at submenu or item level. Also, removing a functionality that used to work in older versions is not such a good thing . Regards Dev mraible wrote: > > In 2.4.2, we expect you to do the permissions checking your templa

Re: [appfuse-user] database settings multi user

2007-04-11 Thread Matt Raible
alotta-xp true jdbc:jtds:sqlserver://alotta-xp:1433/appfuse On 4/11/07, tibi <[EMAIL PROTECTED]> wrote: ok could you show me your settigns.xml with overwritten jdbs.url. i did not got it workin

Re: [appfuse-user] database settings multi user

2007-04-11 Thread tibi
ok could you show me your settigns.xml with overwritten jdbs.url. i did not got it working... (than i will try the porject.xml ;) ) tibi Matt Raible wrote: I use ~/.m2/settings.xml to override properties in pom.xml. This works, and works well, except when you get multiple AppFuse applications

Re: [appfuse-user] database settings multi user

2007-04-11 Thread Matt Raible
I use ~/.m2/settings.xml to override properties in pom.xml. This works, and works well, except when you get multiple AppFuse applications on the same machine. Adding a profile in settings.xml with a property applies the property to *all* projects. For example, I don't want to override it for Ap

Re: [appfuse-user] AppGen for JSF framework fails.

2007-04-11 Thread Matt Raible
On 4/11/07, Irshad Buchh <[EMAIL PROTECTED]> wrote: Thanks Matt. As always your help is appreciated. Yes it was the directory name issue. I have fixed it and it works ok now. One more question, I have noticed that the jsf pages are not under WEB-INF/pages directory but under the web root direct

Re: [appfuse-user] database settings multi user

2007-04-11 Thread tibi
you are right i want to give every developer its own local database to work on. with their own users. and continuum and tomcat are on the same machine using the same database. one will need a build database the other a life database. how do you guy do this kind of thing changing the pom.xml all

Re: [appfuse-user] AppGen for JSF framework fails.

2007-04-11 Thread Irshad Buchh
Thanks Matt. As always your help is appreciated. Yes it was the directory name issue. I have fixed it and it works ok now. One more question, I have noticed that the jsf pages are not under WEB-INF/pages directory but under the web root directory. Is there an issue with putting the .xhtml pages u

Re: [appfuse-user] AppFuse 2.0 AND ACEGI integration

2007-04-11 Thread Matt Raible
Yes, Acegi has been integrated into AppFuse since version 1.8 (April 2005). https://appfuse.dev.java.net/servlets/NewsItemView?newsItemID=2191 The ACL tutorial is for how to integrate ACLs (Access Control Lists) to control permissions on a per-object level. Matt On 4/11/07, nmall <[EMAIL PROTE

Re: [appfuse-user] AppFuse 2.0 AND ACEGI integration

2007-04-11 Thread nmall
Ok, I don't understand what you mean by ACEGI is integrated into Appfuse. Does it mean you have already done the following steps in 2.x or we need to perform them to get its benefits. It seems like you have already done this. What are the aCL tutorials for? Thanks ! [1.1] Add Acegi Security JARs

Re: [appfuse-user] AppGen for JSF framework fails.

2007-04-11 Thread Matt Raible
I just tried the following with the latest code from the 1.9.x branch: created new project, installed JSF cd extras/appgen ant test This does what you're trying to do - all tests pass. It's possible this issue happens because your project is located in a directory with spaces in it. I'd recomm

Re: [appfuse-user] database settings multi user

2007-04-11 Thread Matt Raible
AFAIK, you have a user.properties file that's going to be specific for each developer and won't be checked into SVN - correct? If so, you might try doing the same thing with a profiles.xml in the same directory. This allows you to override any properties with a local file, rather than doing it i

Re: [appfuse-user] database settings multi user

2007-04-11 Thread tibi
almoost the plugin: dbunit-maven-plugin will not work with the filters. all the rest seems fine but dbunit-maven-plugin* *can't pickup the url from the porperties file the strange thing will happen when there is a url in pom.xml properties part and using the filter like below. the databas

Re: [appfuse-user] Appfuse M3 and Eclipse help

2007-04-11 Thread Matt Raible
Here are instructions for setting up AppFuse 2.x to work with Eclipse and WTP: http://appfuse.org/display/APF/Eclipse#Eclipse-wtp I haven't tried these myself, so I don't know if they'll work. I have been successful in using both Candy for AppFuse (an Eclipse plugin) and Eclipse with JDT (no WT

[appfuse-user] jpa: value type mapping

2007-04-11 Thread ptuzla
Hi, My appfuse version is 2.0-M5. I have a model class named Service which is mapped to 'services' table. This model has a type property called attributes which is realized via one-to-many join table named service_attributes. 2 questions: 1- Is my mapping correct? Not sure because I can't nom

Re: [appfuse-user] Invalid org.hibernate:jtidy:pom

2007-04-11 Thread Matt Raible
I believe the pom.xml for jtidy is bad in Maven's central repo. You could fix it locally by modifying its pom: Change: Java HTML Tidy License http://svn.sourceforge.net/viewvc/*checkout*/jtidy/trunk/jtidy/LICENSE.tx

Re: [appfuse-user] Child records get saved by only saving parent record?

2007-04-11 Thread Matt Raible
Are you using annotations or hbm.xml files to define your POJO -> table metadata? Can you post the code for your persisted object? I don't think a child object should be persisted if there's no relationship specified. Matt On 4/11/07, Jong Hian Zin <[EMAIL PROTECTED]> wrote: I disabled OpenSe

Re: [appfuse-user] how to get message source without dependency Injection?

2007-04-11 Thread Matt Raible
Which version of AppFuse are you using? You should be able to grab the "messageSource" bean and get messages from it. Either that or use ResourceBundle.getBundle(Constants.BUNDLE_KEY, LocaleContextHolder.getLocale()); Matt On 4/11/07, thinkboy <[EMAIL PROTECTED]> wrote: sorry for such an ign

Re: [appfuse-user] Version ${pom.version}

2007-04-11 Thread tibi
nope it is not the filter part... i added it and the ${pom.version} still gets resolved... i have no clue why it did not for a day. anyway it works now ;) tibi tibi wrote: correct but thats default and no problem because the properties are in ApplicatioNResources.properties. some how it work

Re: [appfuse-user] Version ${pom.version}

2007-04-11 Thread tibi
correct but thats default and no problem because the properties are in ApplicatioNResources.properties. some how it works now again. i did a mvn clean jetty:run-war (alwyas a good idea) and now it is getting translated. strange... i think it has to do with the filter part i introduced to get

Re: [appfuse-user] Version ${pom.version}

2007-04-11 Thread Michael Horwitz
I notice you have excluded ApplicationResources_nl.properties in the resources section in your pom. This will prevent the file being filtered, and the properties will not be replaced. Mike. On 4/11/07, tibi <[EMAIL PROTECTED]> wrote: hi, some how i broke the translation of Version ${pom.vers

[appfuse-user] Version ${pom.version}

2007-04-11 Thread tibi
hi, some how i broke the translation of Version ${pom.version} and ${copyright.year} in mij applicationResources*.properties file. i still have the properties in my pom.xml file. and my ApplicationResources.properties has: webapp.version=Version ${pom.version} copyright.year=${copyright.year}

[appfuse-user] AppGen for JSF framework fails.

2007-04-11 Thread Irshad Buchh
Hi, After a successful Struts+Hibernate+AppFuse+Appgen project, we tried to use JSF with AppGen and we get the following build fail. ARe we missing something. --Irshad. C:\Documents and Settings\irshad\Desktop\appfuse\extras\appgen>ant Buildfile: build.xml clean: init: [mkdir] Created dir:

Re: [appfuse-user] Appfuse M3 and Eclipse help

2007-04-11 Thread wiradikusuma
hi, i also have that ugly Illegal type of archive for required library stuff. have you got a workaround? thx wnqq wrote: > > Dear Shash and Matt, > > Thanks for your great efforts. > I followed your instructions but it did not work. It is probably I made > some mistakes somewhere or maybe ther

Re: [appfuse-user] Invalid org.hibernate:jtidy:pom

2007-04-11 Thread ptuzla
The same thing started to happen to me after I upgraded my 2.0M4 spring-hibernate config to v2.0M5 and converted to spring-jpa-hibernate. But I haven't found out how to resolve this yet. wnqq wrote: > > > Environment: v2.0M4 + Struts + Hibernate > > Just wonder has anyone experienced the foll

Re: [appfuse-user] Native2ascii and Chinese character

2007-04-11 Thread Jonathan Tse
Hi all, This problem has been solved since I use in all my jsp(s) and native2ascii all my properties file. Recently I am trying to use ResourceBundleViewResolver and I can save my effort to i18n some static content by . ResourceBundleViewResolver works ok because it display the correc