[appfuse-user] exception found while shuting down tomcat

2007-01-15 Thread Thinkboy
i observed this exception while shutting down appfuse in tomcat. is it normal? do I need to concern? pls advise ~thinkboy INFO: Stopping service Catalina [platform] INFO [main] [/platform].log(646) | Closing WebApplicationContext of Spring FrameworkServlet 'action' [platform] INFO [main] [/platf

Re: [appfuse-user] testSave fails: ObjectRetrievalFailureException

2007-01-15 Thread Stefan Malär
I use autoincrement, but I had already some sample data in the db. So you were right, the rollback doesn't really work. I don't know exactly why. For the tests I'm now using the code below, like that you are sure to update the right row and just the second one. public void testSaveResident() th

Re: [appfuse-user] warpath dependency issue with AppFuse M2 basic struts tutorial

2007-01-15 Thread Michael Horwitz
Hi, This looks like a misconfiguration of the warpath plugin. Not too sure why you are getting this from the archetypes, but please could you make sure the warpath plugin is configured as follows in your top level pom: org.appfuse maven-warpath-plugin 1.0-m2 true

[appfuse-user] problem running dojo's datepicker

2007-01-15 Thread Thinkboy
i am running dojo with spring mvc but experienced error while trying to implement the datePicker. - my setup: -- 1) add dojo.js in sitemesh's /web/decorators/default.jsp var djConfig = {isDebug: true}; d

[appfuse-user] LazyInitializationException with appfuse 1.9.4

2007-01-15 Thread wnqq
I was practicing http://raibledesigns.com/wiki/Wiki.jsp?page=HibernateRelationships Hibernate Relationships . I changed some of the code (which were originally written for appfuse 1.8.2) so that it could work with appfuse 1.9.4. Everything works fine except that "ant test-web" fails. Below is the

Re: [appfuse-user] Property editor support and validator rules conflict

2007-01-15 Thread Jarek Gilewski
Michael Horwitz wrote: > > You could use the onBindAndValidate() method of AbstractFormController to > perform custom validation? The method supplies both the request and the > command object, so you have access to all you should need to complete > validation. > > Mike > Thanks Mike. That's w

Re: [appfuse-user] LazyInitializationException with appfuse 1.9.4

2007-01-15 Thread Ealden Esto E. Escañan
Hi wnqq On 1/15/07, wnqq <[EMAIL PROTECTED]> wrote: Everything works fine except that "ant test-web" fails. Below is the excerpt of the error messages: What happens when you turn off lazy initialization (lazy="false")? Also, what web framework are you using? I looked into my copy of 1.9.4

[appfuse-user] Add custom read/write rights using Acegi

2007-01-15 Thread ErwinF
Hello, I am trying to find out if it is possible to give a role specific read and/or write rights using a matrix in Acegi. For example, lets say i have 2 roles : user and superuser, and i have 2 jsps, a.jsp and b.jsp. The matrix could look like this : Role PageRead Write user

Re: [appfuse-user] Add custom read/write rights using Acegi

2007-01-15 Thread Michael Horwitz
Hi, I'm not sure I understand what you mean by "read" and "write" permissions on a jsp? Acegi can do the follow: 1) Declarative role based access to URL's (and hence JSPs). 2) Declarative role based interceptors for methods on Spring managed beans. So using 1 you could restrict access to "write

[appfuse-user] Problem with action forwarding - Using tabbed panels

2007-01-15 Thread Jasper Huzen
I've a problem with my action forwarding. I have a page and on that page I've a dojo tabbed panel with remote tabs. Each of the tab calls a new action. Until so far there is no problem. When I add a object (model) with a form inside of a tab, it must forward to the page with the tabbedpanel. Thi

Re: [appfuse-user] Add custom read/write rights using Acegi

2007-01-15 Thread ErwinF
Hi, Thanks for the quick answer. Let me specify what i mean exactly. At this time, i restrict pages based on a role using acegi. By read rights i mean the logged on user can see the page, but not edit it (possibly by making a seperate jsp for that). But what i want is to implement some sort of

Re: [appfuse-user] Add custom read/write rights using Acegi

2007-01-15 Thread Michael Horwitz
It sounds like you need to have aggregate roles which you assign to users - this area can be a bit confusing, since the term "role" and "permission" are pretty much interchangeable. If you simply think of the existing roles as being permissions, and then create aggregate roles (which are simply pr

[appfuse-user] YUI-EXT

2007-01-15 Thread Ding, Qin
Have any one tried to integrate YUI-EXT into appfuse? I like the yui-ext's layout component and would like to use it in my appfuse application, which is built on appfuse 1.9.4. How should I proceed with it? Is it that I need to write a decorator with the YUI-ext component? If some has done it, w

Re: [appfuse-user] Add custom read/write rights using Acegi

2007-01-15 Thread ErwinF
You are right. I was probably thinking too deep. Thanks for enlightening me :) Michael Horwitz wrote: > > It sounds like you need to have aggregate roles which you assign to users > - > this area can be a bit confusing, since the term "role" and "permission" > are > pretty much interchangeabl

RE: [appfuse-user] warpath dependency issue with AppFuse M2 basic struts tutorial

2007-01-15 Thread MyWorkId
I tried again, this time recreated from the very beginning. It now works from the command line, thanks much. >From within Eclipse (using m2eclipse), I get slightly different message like this, Regards Dave [WARN] Unable to get resource from repository central (http://repo1.maven.org/maven2) [WA

Re: [appfuse-user] problem running dojo's datepicker

2007-01-15 Thread Matt Raible
You might try removing the Scriptaculous and Prototype includes in default.jsp. Matt On 1/15/07, Thinkboy <[EMAIL PROTECTED]> wrote: i am running dojo with spring mvc but experienced error while trying to implement the datePicker. - my setup: -- 1) add dojo.js in sitemes

Re: [appfuse-user] warpath dependency issue with AppFuse M2 basic struts tutorial

2007-01-15 Thread Michael Horwitz
Please could you raise this as a Jira? It looks like m2eclipse may not be able to handle extensions on plugins. Mike On 1/15/07, MyWorkId <[EMAIL PROTECTED]> wrote: I tried again, this time recreated from the very beginning. It now works from the command line, thanks much. From within Eclips

Re: [appfuse-user] exception found while shuting down tomcat

2007-01-15 Thread Matt Raible
This is a known issue that we haven't figured out the solution to yet. It shouldn't cause any issues in your application. Matt On 1/15/07, Thinkboy <[EMAIL PROTECTED]> wrote: i observed this exception while shutting down appfuse in tomcat. is it normal? do I need to concern? pls advise ~thinkbo

[appfuse-user] Thread Safey and Binding

2007-01-15 Thread maskkkk
Hello all, I'm not sure if the following code in my controller is thread-safe, could you please explain to me why, or why it isn't, thread-safe? EnviromentController wrote: > > ... > private EnvironmentManager envMgr; > ... > /** > * TODO: FIND OUT IF THIS IS ACTUALLY

Re: [appfuse-user] Thread Safey and Binding

2007-01-15 Thread Michael Horwitz
There does not seem to be anything in the code snippet you posted below to indicate that your code is not thread-safe, but it all largely depends on the implementation of the EnvironmentManager and any dependent classes. On the assumption that the manager is implemented in the standard fashion, th

[appfuse-user] speaking of free and awesome, check out Mylar

2007-01-15 Thread Nathan Anderson
Matt mentioned Firebug in another thread and I must agree. It is indeed a very cool Firefox plugin. Not only for the JS debugging capabilities, but also for CSS and (X)HTML. That sparked my post for this other free and very cool plugin, Mylar. This one is for Eclipse and it basically is a to

Re: [appfuse-user] speaking of free and awesome, check out Mylar

2007-01-15 Thread Matt Raible
This is an excellent writeup Nathan - we should add a "Cool Tools" section (or something like that) to the wiki. Thanks! Matt On 1/15/07, Nathan Anderson <[EMAIL PROTECTED]> wrote: Matt mentioned Firebug in another thread and I must agree. It is indeed a very cool Firefox plugin. Not only for

[appfuse-user] onFocus in Spring form tag...

2007-01-15 Thread Jesfre
Hi all... I tried to use onFocus action in the form:input tag, but this doesn't works... And the page for Spring form tag is "not found"... Somebody know how to get an javascript function whe my form:input control gets focus? Have a nice day... -- View this message in context: http://www.nabble.

[appfuse-user] Accessing a Manager in HttpSessionListener?

2007-01-15 Thread maskkkk
Is it "possible to"/"should I be" accessing a Manager in the service layer inside a HttpSessionListener that loads the User's properties into the session when they log in? Thank you, Andrew J. Leer -- View this message in context: http://www.nabble.com/Accessing-a-Manager-in-HttpSessionList

[appfuse-user] Equinox Question 1.4

2007-01-15 Thread Scott Purcell
I am trying Equinox 1-4 as I do not need the power of appfuse yet. I downloaded 1.4 and read the directions. I went to web/WEB-INF/classes and moved jdbc.properties to jdbc.properties.postgres, and renamed the jdbc.properties.mysql to jdbc.properties. (I use mysql). Then I ensured that I c

Re: [appfuse-user] Design Questions about integrating DWR with Appfuse/SpringMVC

2007-01-15 Thread Sanjiv Jivan
I've responded to your question on the DWR lists : http://www.nabble.com/using-Spring-MVC-with-DWR-tf3012602.html -- Forwarded message -- From: Sanjiv Jivan <[EMAIL PROTECTED]> Date: Jan 15, 2007 6:05 PM Subject: Re: [dwr-user] using Spring MVC with DWR To: [EMAIL PROTECTED] I'v

Re: [appfuse-user] onFocus in Spring form tag...

2007-01-15 Thread Matt Raible
You should add an "id" to your form field and then use the following Prototype call: Form.focusFirstElement("formId"); This will put the focus on the first field. Matt On 1/15/07, Jesfre <[EMAIL PROTECTED]> wrote: Hi all... I tried to use onFocus action in the form:input tag, but this doesn'

Re: [appfuse-user] Accessing a Manager in HttpSessionListener?

2007-01-15 Thread Matt Raible
If you put the listener after the StartupListener (or ContextLoaderListener in 2.0), you should be able to add/load Spring's ApplicationContext using: ApplicationContext ctx = WebApplicationContextUtils.getRequiredWebApplicationContext(servletContext); HTH, Matt On 1/15/07,

Re: [appfuse-user] Equinox Question 1.4

2007-01-15 Thread Matt Raible
Hibernate should create the tables. There's a hibernate.hbm2ddl.auto=update property in applicationContext-hibernate.xml. This will only be run when you fire up an ApplicationContext (in a unit test or when running the app). Matt On 1/15/07, Scott Purcell <[EMAIL PROTECTED]> wrote: I am t

Re: [appfuse-user] Appfuse 2.0 - org.springframework.beans.factory.BeanDefinitionStoreException

2007-01-15 Thread Matt Raible
Are you using JDK 5? On 1/15/07, Ocram Itnaf <[EMAIL PROTECTED]> wrote: Hi, After downloading the latest sources from trunk (using svn co https://appfuse.dev.java.net/svn/appfuse/trunk), and running "mvn install" I am getting: SEVERE: Context initialization failed org.springframework.beans.f

Re: [appfuse-user] LazyInitializationException with appfuse 1.9.4

2007-01-15 Thread wnqq
Hi Ealden, Thanks for your response. The following is an excerpt of the log messages when lazy="false" == [junit] [po] INFO [main] UserActionTest.testEdit(29) | in testEdit [junit] [po] INFO [main] UserActionTest.testEdit(36) | gonna ac

[appfuse-user] convertLists(user) or convertLists(userForm) ?

2007-01-15 Thread wnqq
While I practicing http://raibledesigns.com/wiki/Wiki.jsp?page=HibernateRelationshipsUI#ref-HibernateRelationshipsUI-2 Hibernate Relationships , I encountered a confusion: The tutorial says: "you can add convertLists(user) to UserAction.edit()" However, the actual code shows as: userForm

Re: [appfuse-user] Appfuse 2.0 - org.springframework.beans.factory.BeanDefinitionStoreException

2007-01-15 Thread Ocram Itnaf
Matt, Yes, I'm using JDK 5, Maven 2.0.4, and JAVA_HOME is pointing to the right place: C:\Documents and Settings\oi\Local Settings\Temp\summit-5>java -version java version "1.5.0_10" Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_10-b03) Java HotSpot(TM) Client VM (build 1.5.0_1

Re: [appfuse-user] LazyInitializationException with appfuse 1.9.4

2007-01-15 Thread simon wu
Hi wnqq, [junit] org.hibernate.LazyInitializati onException: could not initialize proxy - the owning Session was closed I think the log just showed what's the problem. try to find why session was closed before using some objects. On 1/16/07, wnqq <[EMAIL PROTECTED]> wrote:

Re: [appfuse-user] LazyInitializationException with appfuse 1.9.4

2007-01-15 Thread wnqq
Dear Simon, Thanks for your comments. However, your suggestion is too difficult for me to proceed because I didn't write any code to manipulate Hibernate (or Spring) sessions. Could you please give me some more hints? Thanks. simon wu-2 wrote: > > Hi wnqq, >[junit] org.hibernate.LazyInitia

[appfuse-user] JavaScript for adding a new entry

2007-01-15 Thread wnqq
While practicing "adding entries" in http://raibledesigns.com/wiki/Wiki.jsp?page=HibernateRelationshipsUI#ref-HibernateRelationshipsUI-8 Hibernate Relationships , I found the sample javascript code does not work for me. Just wonder anyone else can get it to work! I tested it with Firefox v2 and

Re: [appfuse-user] Changing default extension from *.html to *.??

2007-01-15 Thread thinkboy
i just experienced the same HTML extension problem in Dojo setup. no doubt, I do agree that .html is a pretty good abstraction to underly implementation. however, can we add a filter by default to bypass all static html pages ? that is pretty essential, I believe. ~thinkboy. Rene Lavoie wrot

Re: [appfuse-user] Appfuse 2.0 - org.springframework.beans.factory.BeanDefinitionStoreException

2007-01-15 Thread Matt Raible
The latest code in SVN should have 2.0-m3-SNAPSHOT. Can you try updating? Matt On 1/15/07, Ocram Itnaf <[EMAIL PROTECTED]> wrote: Matt, Yes, I'm using JDK 5, Maven 2.0.4, and JAVA_HOME is pointing to the right place: C:\Documents and Settings\oi\Local Settings\Temp\summit-5>java -version jav

Re: [appfuse-user] JavaScript for adding a new entry

2007-01-15 Thread Matt Raible
That's a lot of JavaScript. Did you get it from the tutorial or write it yourself? If you wrote it yourself, what are you trying to do? Matt On 1/15/07, wnqq <[EMAIL PROTECTED]> wrote: While practicing "adding entries" in http://raibledesigns.com/wiki/Wiki.jsp?page=HibernateRelationshipsUI#r

Re: [appfuse-user] JavaScript for adding a new entry

2007-01-15 Thread wnqq
Dear Matt, The code is from the tutorial. Matt Raible-3 wrote: > > That's a lot of JavaScript. Did you get it from the tutorial or write > it yourself? If you wrote it yourself, what are you trying to do? > > Matt > > On 1/15/07, wnqq <[EMAIL PROTECTED]> wrote: >> >> While practicing "addi

Re: [appfuse-user] LazyInitializationException with appfuse 1.9.4

2007-01-15 Thread simon wu
Hi wnqq, It seems that I encountered the same exception when I build Appfuse 1.9.3on Oracle.But I forgot how I fixed it.:-( With regard to your exception, I downloaded Appfuse 1.9.4 and looked at several basic web test classes. But I did not get some idea about the issue. Hope me lucky later.:

Re: [appfuse-user] LazyInitializationException with appfuse 1.9.4

2007-01-15 Thread wnqq
simon wu-2 wrote: > > With regard to your exception, I downloaded Appfuse 1.9.4 and looked at > several basic web test classes. > But I did not get some idea about the issue. Hope me lucky later.:) > The default appfuse tests are fine, unless you add some 1-many relationships to, say, User