[appfuse-user] Dropdown box in appfuse 2 Struct2+Spring+Hibernate (Newbie)

2007-11-23 Thread Jimmy
Hi, There is a many-to-one relationship just as Department to employee.There is a DepartmentID in the employee table in my database. When I create a employee,there should be a dropdown box to select the Department.Is there any tutorial or source code of Appfuse 2 available to show how to implemen

[appfuse-user] JSF Basic - UserForm.id not getting set on IE, fine on FireFox

2007-11-23 Thread Enrico Goosen
Hi, I'm not sure if anyone has picked this up, but I noticed that the id field in UserForm is not getting set when I test the JSF generated app in IE, but it works fine in Firefox. Whoever wrote this code, took this into consideration, so if the id is null, the current logged-in user is being re

Re: [appfuse-user] Appfuse 2.0 "fullversion" Issue

2007-11-23 Thread Michael Horwitz
On 11/23/07, Muthu Velappan <[EMAIL PROTECTED]> wrote: > > > Hi, > > Thanks for your response... My intention was to work around with Appfuse > and > built a base framework for our internal projects and thats y i went on to > change the package names using fullversion command... > > However, Now I

Re: [appfuse-user] Problem with jetty:run in Tapestry basic archetype

2007-11-23 Thread Michael Horwitz
On 11/23/07, traceon <[EMAIL PROTECTED]> wrote: > > > i've done the following: > - run mvn package > - copied changes (see below) > "myproject\target\myproject- > 1.0-SNAPSHOT\META-INF\maven\org.appfuse\appfuse-tapestry\pom.xml" > to > "myproject\pom.xml" > - run mvn clean > - run mvn package > - o

Re: [appfuse-user] hibernate3:hbm2ddl can't generate tables with GenerationType.SEQUENCE

2007-11-23 Thread Matt Raible
On Nov 23, 2007, at 2:41 AM, Joachim Ansorg wrote: Hi, I'm using an Appfuse 2.0 jpa+spring+struts2 fullsource project. I configured the hibernate dialect for jpa to use org.hibernate.dialect.MySQL5InnoDBDialect . I'm using @Id @GeneratedValue(strategy = GenerationType.SEQUENCE) priv

Re: [appfuse-user] jsp templates

2007-11-23 Thread Matt Raible
param is a JSTL variable that is the same as request.getParameter. These parameters are set in the page that uses pickList.jsp. Matt On Nov 23, 2007, at 8:09 AM, George.Francis wrote: Hello, I have a pretty good understanding of servlets and JSP, but I'm struggling to understand how pick

[appfuse-user] Sitemesh decorator based on ROLE

2007-11-23 Thread rdr
I am trying to apply different decorators based on user role when he/she log's in. I am trying to use the solution mentioned in http://jira.opensymphony.com/browse/SIM-37 I have these decorators defined. /* /* But "user" decorator gets applied even if I login with a user in role

Re: [appfuse-user] Sitemesh decorator based on ROLE

2007-11-23 Thread Rob Hills
Hi, rdr wrote: I am trying to apply different decorators based on user role when he/she log's in. I am trying to use the solution mentioned in http://jira.opensymphony.com/browse/SIM-37 I have these decorators defined. /* /* But "user" decorator gets applied even if I login

[appfuse-user] NoSuchFieldError: TRACE while installing fresh Spring MVC Basic archetype

2007-11-23 Thread emmby
Trying to create a fresh AppFuse 2.0 spring MVC app. As per quickstart on http://appfuse.org/display/APF/AppFuse+QuickStart I ran the following command mvn archetype:create -DarchetypeGroupId=org.appfuse.archetypes -DarchetypeArtifactId=appfuse-basic-spring -DremoteRepositories=http://static.app

RE: [appfuse-user] Please help me thank you very much.

2007-11-23 Thread 杜军胜
Thank you very much. I am using AppFuse 2.0 with Struts 2. Date: Fri, 23 Nov 2007 09:09:48 +From: [EMAIL PROTECTED]: [EMAIL PROTECTED]: Re: [appfuse-user] Please help me thank you very much. It woud help to know which version of AppFuse you are using as well as your chosen web framework. A

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

2007-11-23 Thread Frank Lawlor
Shash, I followed the directions in http://appfuse.org/display/APF/Eclipse to set up my Eclipse environment (MyEclipse actually), but when I imported my app, it wasn't recognized by Eclipse as a web app thus there is no option to deploy it on Tomcat. mvn install eclipse:eclipse claims to have ru

[appfuse-user] jsp templates

2007-11-23 Thread George.Francis
Hello, I have a pretty good understanding of servlets and JSP, but I'm struggling to understand how pickList.jsp works exactly. In debugging mode I've paused execution at the top of the compiled code but couldnt find which object in memory contained the values for param.leftId, leftList, e.t.c...

Re: [appfuse-user] Problem with jetty:run in Tapestry basic archetype

2007-11-23 Thread Michael Horwitz
On 11/23/07, traceon <[EMAIL PROTECTED]> wrote: > > > the point is, that i there are no "tapestry-flash, tapestry-spring" > entries > in my pom.xml under "myproject/pom.xml" which i can change from "runtime" > to > "compile". the entries only appear in the pom's under the target folder. Then that

Re: [appfuse-user] Please help me thank you very much.

2007-11-23 Thread Michael Horwitz
It most certainly can be done - all it needs is for the table to be embedded within a form. Mike. On 11/23/07, Carlos Ortiz <[EMAIL PROTECTED]> wrote: > > I am also new to display tag, and I wonder if this can be done, what does > the documentation have to say about putting controls inside rows a

Re: [appfuse-user] Please help me thank you very much.

2007-11-23 Thread Carlos Ortiz
Good points, but also the first thing to ask is to know which version of display tag [EMAIL PROTECTED] user is talking about On Nov 23, 2007 4:09 AM, Michael Horwitz <[EMAIL PROTECTED]> wrote: > It woud help to know which version of AppFuse you are using as well as > your chosen web framework. A

Re: [appfuse-user] Problem with jetty:run in Tapestry basic archetype

2007-11-23 Thread Michael Horwitz
Have you tried a mvn clean then full build after changing the pom files (as a note you should never change/need to change anything under target - target is Maven's work area so gets overwritten frequently). Mike On 11/23/07, traceon <[EMAIL PROTECTED]> wrote: > > > okay.. i'm running a tapestry-

Re: [appfuse-user] Problem with jetty:run in Tapestry basic archetype

2007-11-23 Thread traceon
okay.. i'm running a tapestry-basic app. after changing all pom's, i still have the problem. has anyone an idea? Matthew Sinclair wrote: > > Good point about the pom - the one I made the change in was the root pom > at the top level, above the "core" and "web" directories (in a > tapestry-modu

Re: [appfuse-user] Dropdown box in appfuse 2 Struct2+Spring+Hibernate (Newbie)

2007-11-23 Thread Michael Horwitz
There is no tutorial in AppFuse specifically dealing with setting up relationships between objects, but the CRUD tutorial in Struts 2 has an example that matches your case exactly. Have you had a look at it? http://struts.apache.org/2.0.11/docs/crud-demo-i.html Mike On 11/23/07, Jimmy <[EMAIL PRO

[appfuse-user] hibernate3:hbm2ddl can't generate tables with GenerationType.SEQUENCE

2007-11-23 Thread Joachim Ansorg
Hi, I'm using an Appfuse 2.0 jpa+spring+struts2 fullsource project. I configured the hibernate dialect for jpa to use org.hibernate.dialect.MySQL5InnoDBDialect . I'm using @Id @GeneratedValue(strategy = GenerationType.SEQUENCE) private Long id; in an entity class. GenerationType.AUTO di

Re: [appfuse-user] Please help me thank you very much.

2007-11-23 Thread Michael Horwitz
It woud help to know which version of AppFuse you are using as well as your chosen web framework. Am I correct in thinking it is AppFuse 2.0 with Struts 2? Mike On 11/23/07, [EMAIL PROTECTED] <[EMAIL PROTECTED]> wrote: > > Please help me thank you very much. > > There are 15 items of my display t

Re: [appfuse-user] jsp templates

2007-11-23 Thread George.Francis
OK, that works; what about the objects that don't start with 'param.' such as 'leftList' ? mraible wrote: > > On 11/23/07, George.Francis <[EMAIL PROTECTED]> wrote: >> >> >> Hmm, if I put: >> System.out.println(request.getParameter("param.leftId")); >> at the top of pickList.jsp, it prints out

Re: [appfuse-user] Problem with jetty:run in Tapestry basic archetype

2007-11-23 Thread traceon
the point is, that i there are no "tapestry-flash, tapestry-spring" entries in my pom.xml under "myproject/pom.xml" which i can change from "runtime" to "compile". the entries only appear in the pom's under the target folder. Mike Horwitz wrote: > > Have you tried a mvn clean then full build a

Re: [appfuse-user] Appfuse 2.0 "fullversion" Issue

2007-11-23 Thread Muthu Velappan
Hi, Thanks for your response... My intention was to work around with Appfuse and built a base framework for our internal projects and thats y i went on to change the package names using fullversion command... However, Now I deleted my previous project and started a new one from scratch.. The onl

Re: [appfuse-user] Please help me thank you very much.

2007-11-23 Thread Carlos Ortiz
I am also new to display tag, and I wonder if this can be done, what does the documentation have to say about putting controls inside rows and have it captured. This is an issue JSF resolves with datatable. Sorry not having been of any use. On Nov 22, 2007 8:30 PM, <[EMAIL PROTECTED]> wrote: >

Re: [appfuse-user] Sitemesh decorator based on ROLE

2007-11-23 Thread rdr
Thanks for the response Rob, Actually, if I change the order or add the role to the default decorator, no decorator is applied at all. There might be a > Hi, > > rdr wrote: >> I am trying to apply different decorators based on user role when he/she >> log's in. I am trying to use the solutio

Re: [appfuse-user] Problem with jetty:run in Tapestry basic archetype

2007-11-23 Thread traceon
i've done the following: - run mvn package - copied changes (see below) "myproject\target\myproject-1.0-SNAPSHOT\META-INF\maven\org.appfuse\appfuse-tapestry\pom.xml" to "myproject\pom.xml" - run mvn clean - run mvn package - open "myproject\target\myproject-1.0-SNAPSHOT\META-INF\maven\org.appfuse\

Re: [appfuse-user] jsp templates

2007-11-23 Thread George.Francis
Hmm, if I put: System.out.println(request.getParameter("param.leftId")); at the top of pickList.jsp, it prints out 'null', even when the value that ends up in the rendered JSP is 'availableRoles' Am I doing something wrong? mraible wrote: > > param is a JSTL variable that is the same as reques

Re: [appfuse-user] jsp templates

2007-11-23 Thread Matt Raible
On 11/23/07, George.Francis <[EMAIL PROTECTED]> wrote: > > > Hmm, if I put: > System.out.println(request.getParameter("param.leftId")); > at the top of pickList.jsp, it prints out 'null', even when the > value that ends up in the rendered JSP is 'availableRoles' > Am I doing something wrong? Try

Re: [appfuse-user] jsp templates

2007-11-23 Thread Matt Raible
This is probably set in the parent JSP using Matt On Nov 23, 2007, at 1:08 PM, George.Francis wrote: OK, that works; what about the objects that don't start with 'param.' such as 'leftList' ? mraible wrote: On 11/23/07, George.Francis <[EMAIL PROTECTED]> wrote: Hmm, if I put: System.o

Re: [appfuse-user] Sitemesh decorator based on ROLE

2007-11-23 Thread rdr
I noticed that Sitemesh is trying to apply the last decorator in the list which matches the pattern. If that decorator has a role defined and the current user has that role, the decorator is applied, else no decorator is applied. At this point I do not know if it is me or an issue with Sitemesh.