Re: [appfuse-user] Missing jars from Struts2 Archetype

2008-04-28 Thread Matt Raible
Using "mvn appfuse:full-source" works best if you do it at the beginning of a project, not after you've already started creating entities. Matt On Mon, Apr 28, 2008 at 12:18 AM, Ryan Withers <[EMAIL PROTECTED]> wrote: > Vincent / Matt, > > I was successful at pulling down the sources with mvn a

Re: [appfuse-user] What is best for Ajaxing web app?

2008-04-28 Thread Dustin Pearce
I hear good things about JQuery from people who are supposed to know things like that. Ajaxing a web app is a rather vague concept. You may be making the things on your page do dynamic things like fly around and disappear, or you may be making the data in your page do dynamic things; like

[appfuse-user] How to access collection fields in Struts2?

2008-04-28 Thread Martin Homik
Problem: * I have a "Group" POJO which keeps a list of its "members" (ManyToMany relation). * The GroupAction class stores a list of my current groups and it has a group field for accessing information of a single group. In principle, the stucture is very similar to the PersonActi

Re: [appfuse-user] Missing jars from Struts2 Archetype

2008-04-28 Thread Alex Worden
On Mon, Apr 28, 2008 at 5:49 AM, Matt Raible <[EMAIL PROTECTED]> wrote: > Using "mvn appfuse:full-source" works best if you do it at the > beginning of a project, not after you've already started creating > entities. > > Matt Hi Matt, I fear that it doesn't work at all. I tried this with the S

Re: [appfuse-user] Missing jars from Struts2 Archetype

2008-04-28 Thread Matt Raible
On Mon, Apr 28, 2008 at 9:23 AM, Alex Worden <[EMAIL PROTECTED]> wrote: > On Mon, Apr 28, 2008 at 5:49 AM, Matt Raible <[EMAIL PROTECTED]> wrote: > > Using "mvn appfuse:full-source" works best if you do it at the > > beginning of a project, not after you've already started creating > > entitie

Re: [appfuse-user] How to access collection fields in Struts2?

2008-04-28 Thread Matt Raible
You should be able to get members.size() if you use OGNL and a tag. You can also use JSTL functions and the "length" function. http://java.sun.com/j2ee/1.4/docs/tutorial-update2/doc/JSTL8.html Matt On Mon, Apr 28, 2008 at 9:16 AM, Martin Homik <[EMAIL PROTECTED]> wrote: > > Problem: > * I ha

Re: [appfuse-user] How to access collection fields in Struts2?

2008-04-28 Thread Alex Worden
On Mon, Apr 28, 2008 at 8:16 AM, Martin Homik <[EMAIL PROTECTED]> wrote: > > Problem: > * I have a "Group" POJO which keeps a list of its "members" (ManyToMany > relation). > * The GroupAction class stores a list of my current groups and it has a > group field for > accessing informatio

Re: [appfuse-user] Missing jars from Struts2 Archetype

2008-04-28 Thread Alex Worden
On Mon, Apr 28, 2008 at 8:42 AM, Matt Raible <[EMAIL PROTECTED]> wrote: > On Mon, Apr 28, 2008 at 9:23 AM, Alex Worden <[EMAIL PROTECTED]> wrote: > > On Mon, Apr 28, 2008 at 5:49 AM, Matt Raible <[EMAIL PROTECTED]> wrote: > > > Using "mvn appfuse:full-source" works best if you do it at the > >

Re: [appfuse-user] Missing jars from Struts2 Archetype

2008-04-28 Thread Seba
Hi! i'm getting the same errors on both Ubuntu 7.10 and Windows. I'm trying to start a new proyect but i can't make it woks enviroment: maven 2.09 (new repo) jdk1.5.0_06 mysql-5.0.51b my steps were: 1) C:\Source>mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifa

Re: [appfuse-user] Missing jars from Struts2 Archetype

2008-04-28 Thread Matt Raible
Adding the following to your pom.xml should do the trick. org.springframework spring-web ${spring.version} Matt On Mon, Apr 28, 2008 at 10:58 AM, Seba <[EMAIL PROTECTED]> wrote: > Hi! i'm getting the same errors on both Ubuntu 7.10 and Window

Re: [appfuse-user] Missing jars from Struts2 Archetype

2008-04-28 Thread Seba
i have already added that dependency into dependencies tag: ... org.springframework spring-test ${spring.version} true * org.springframework spring-web ${spring.version} *

[appfuse-user] Servlet.service() for servlet default threw exception java.lang.NullPointerException

2008-04-28 Thread Aakhunaten
Hi, There is this error that shows up in my logs. << [default].invoke(250) | Servlet.service() for servlet default threw exception java.lang.NullPointerException at XX at sun.reflect.GeneratedMethodAccessor147.invoke(Unknown Source) at sun.reflect.DelegatingMethod

Re: [appfuse-user] Missing jars from Struts2 Archetype

2008-04-28 Thread Matt Raible
If you do mvn -X, do you see different versions of Spring in your dependencies list? Matt On Mon, Apr 28, 2008 at 11:09 AM, Seba <[EMAIL PROTECTED]> wrote: > i have already added that dependency into dependencies tag: > > >... > > >org.springframework >spring-tes

Re: [appfuse-user] Servlet.service() for servlet default threw exception java.lang.NullPointerException

2008-04-28 Thread Matt Raible
Is X coming from your code or from AppFuse's code? Matt On Mon, Apr 28, 2008 at 11:44 AM, Aakhunaten <[EMAIL PROTECTED]> wrote: > > Hi, > > There is this error that shows up in my logs. > > << > [default].invoke(250) | Servlet.service() for servlet default threw > exception > java.lang.

Re: [appfuse-user] How to access collection fields in Struts2?

2008-04-28 Thread Martin Homik
I actually tried to solve the problem by using OGNL. Group name: Size: members In my second attempt, I called a non-property method: In JSP: ... Size: members ... In POJO: @Transient public int getMembersSize() { return members.size(); }

Re: [appfuse-user] How to access collection fields in Struts2?

2008-04-28 Thread Matt Raible
Have you tried uncommenting the OpenSessionInViewFilter in your web.xml? Matt On Mon, Apr 28, 2008 at 12:11 PM, Martin Homik <[EMAIL PROTECTED]> wrote: > > I actually tried to solve the problem by using OGNL. > > > Group name: > Size: members > > > In my second attempt, I called a

Re: [appfuse-user] Servlet.service() for servlet default threw exception java.lang.NullPointerException

2008-04-28 Thread Aakhunaten
Sorry I wasnt very clear. X could be some line in my code. The rest of the error stack is always the same. I have pasted one such complete exception stack. Thanks, praveen mraible wrote: > > Is X coming from your code or from AppFuse's code? > > Matt > > On Mon, Apr 28, 2008 at 11:4

Re: [appfuse-user] Missing jars from Struts2 Archetype

2008-04-28 Thread Seba
really i don't know where to look for. i attached 'mvn -X' log file (sorry for my english!) Seba Matt Raible escribió: If you do mvn -X, do you see different versions of Spring in your dependencies list? Matt On Mon, Apr 28, 2008 at 11:09 AM, Seba <[EMAIL PROTECTED]> wrote: i have alread

Re: [appfuse-user] How to access collection fields in Struts2?

2008-04-28 Thread Alex Worden
On Mon, Apr 28, 2008 at 11:11 AM, Martin Homik <[EMAIL PROTECTED]> wrote: > > I actually tried to solve the problem by using OGNL. > > > Group name: > Size: members > > > In my second attempt, I called a non-property method: > > In JSP: > ... > Size: members > ... > In POJO

Re: [appfuse-user] How to access collection fields in Struts2?

2008-04-28 Thread Martin Homik
Thanks a lot, uncommenting OpenSessionInViewFilter worked. What is its drawback? Why is it commented by default? One more observation. While the OGNL expression 'members.size()' worked in both jetty:run and jetty:run-war, the call to the non-property method 'membersSize()' was successful only wit

Re: [appfuse-user] How to access collection fields in Struts2?

2008-04-28 Thread Martin Homik
I see your point. On the long run, your advice will pay off, I guess. Thanks a lot for your explanations! Martin alexworden wrote: > > On Mon, Apr 28, 2008 at 11:11 AM, Martin Homik <[EMAIL PROTECTED]> wrote: >> >> I actually tried to solve the problem by using OGNL. >> >> >> Group n

Re: [appfuse-user] Missing jars from Struts2 Archetype

2008-04-28 Thread Seba
Solved! i added the dependency at the beginning of the dependencies tag Matt Raible escribió: If you do mvn -X, do you see different versions of Spring in your dependencies list? Matt On Mon, Apr 28, 2008 at 11:09 AM, Seba <[EMAIL PROTECTED]> wrote: i have already added that dependency in

Re: [appfuse-user] How to access collection fields in Struts2?

2008-04-28 Thread Matt Raible
On Mon, Apr 28, 2008 at 1:20 PM, Martin Homik <[EMAIL PROTECTED]> wrote: > > Thanks a lot, uncommenting OpenSessionInViewFilter worked. What is its > drawback? Why is it commented by default? It's commented out by default so we can support iBATIS w/o having different web.xml files. > > One mor

Re: [appfuse-user] How to access collection fields in Struts2?

2008-04-28 Thread Dustin Pearce
I would not be that afraid of the collection. There are things you can do to try and mitigate the problems. For a group+members I think I would look to EAGER fetch, rather than LAZY. That will get you the collection in a single query rather than n+1 query for each members look up. I do

Re: [appfuse-user] failed after mvn jetty:run-war

2008-04-28 Thread ftjn689
thank you very much! ftjn689 wrote: > > i just learn appfuse 2.0.1 and try to create modular struts, but i found > some problem. > I did following steps : > > 1.mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes > -DarchetypeArtifactId=appfuse-basic-struts > -DremoteRepositories=

[appfuse-user] problem occurred after running mvn jetty:run-war

2008-04-28 Thread ftjn689
I'm trying to start a new proyect but i can't make it woks. enviroment: maven 2.09 (new repo) jdk1.5.0_06 mysql-5.0.51b my steps were: 1. C:\Source>mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-struts -DremoteRepositories=http://static.appf