Re: [appfuse-user] Authenticating with ldap almost there

2007-04-18 Thread ChenRanHow
Dear Matt I tried the ldap.zip file. It seems the role and user model had some modifications Would you mind to paste them ? ex: role.getMembers missed . Regards Chenztw On 4/18/07, Matt Raible <[EMAIL PROTECTED]> wrote: What tutorial are you talking about? The one on the wiki doesn'

[appfuse-user] BaseDaoTestCase substitution

2007-04-18 Thread paulie
I have gone through the Hibernate tutorials and built an app extending BaseDaoTestCase. Everything is working great. I wanted to see if I should deploy my code extending BaseDaoTestCase, build my own DAO base class, or extend another DAO base class. Let me know if there is somewhere I can find

[appfuse-user] Appfuse maven plugin

2007-04-18 Thread Christopher Love
I understand that the appfuse plugin is under work currently. But are the technical problems with the current implementation? I am noticing that I do not have a gendao target anymore and I am wondering if modifying the dao test target would be sufficient. Chris

[appfuse-user] NullPointerException when trying to populate in test case

2007-04-18 Thread celeraman+
I'm trying to do a test case based on Person Hibernate Tutorial. The news is that I want to do this using a .properties file, like the same tutorial for AppFuse 1.x. I'm using a AppFuse 2.0M4. However, I got a NullPointerException on the code that will populate the object. I couldn't see what is

Re: [appfuse-user] Pretending to be another user

2007-04-18 Thread Nigel in NZ
Matt, Ok its working. I added my own filter into the chain to see what it was doing, when it came to the call to j_acegi_switch_user it was not called at all! I then went to my web.xml and realised that the j_security_check was in there so I added my security url's and blow me down, it started

Re: [appfuse-user] Pretending to be another user

2007-04-18 Thread Nigel in NZ
Matt, Nearly there now I think. I am pretty sure the problem is in the pattern matching. It does not match when I do the following:- "> Yet, if I ask it to do a j_security_check it goes to the login page. Looking at the source code for the class if I got any further I woul

Re: [appfuse-user] datepicker problems in appfuse 2m4

2007-04-18 Thread Will Berger
Cancel that It can't find dojo apparently. dojo undefined javascript error message. I did try commenting out prototype, scriptaculous. Will Will Berger wrote: > > no javascript errors. > > will > > > > Aridany Ramirez wrote: >> >> Are you getting any javascripts errors??? Maybe is a p

Re: [appfuse-user] datepicker problems in appfuse 2m4

2007-04-18 Thread Will Berger
no javascript errors. will Aridany Ramirez wrote: > > Are you getting any javascripts errors??? Maybe is a problem with dojo > includes. > > > > 2007/4/18, Matt Raible <[EMAIL PROTECTED]>: >> >> If you disable SiteMesh for your app, or exclude this JSP, does it work? >> >> On 4/18/07, Will

Re: [appfuse-user] Jsp to display of the pdf files

2007-04-18 Thread Matt Raible
Which web framework are you using? Struts 1.x has a DownloadAction you may be able to use: http://www.google.com/search?q=DownloadAction Matt On 4/18/07, soussou97 <[EMAIL PROTECTED]> wrote: Hi; I have the following process : I receive via FTP of the pdf files which are stored on a directo

[appfuse-user] Jsp to display of the pdf files

2007-04-18 Thread soussou97
Hi; I have the following process : I receive via FTP of the pdf files which are stored on a directory of my server (Tomcat + JOnas). This directory is outwards of the deployment directory of JOnas (work directory) and the pdf files are not inside of war file but uploaded directly on the director

Re: [appfuse-user] datepicker problems in appfuse 2m4

2007-04-18 Thread Aridany Ramirez
Are you getting any javascripts errors??? Maybe is a problem with dojo includes. 2007/4/18, Matt Raible <[EMAIL PROTECTED]>: If you disable SiteMesh for your app, or exclude this JSP, does it work? On 4/18/07, Will Berger <[EMAIL PROTECTED]> wrote: > > I was wondering if anyone has run into

Re: [appfuse-user] datepicker problems in appfuse 2m4

2007-04-18 Thread Matt Raible
If you disable SiteMesh for your app, or exclude this JSP, does it work? On 4/18/07, Will Berger <[EMAIL PROTECTED]> wrote: I was wondering if anyone has run into this. I am trying to use the datepicker and it doesn't seem to render in the html page. When I go to the struts cookbook demo site

[appfuse-user] datepicker problems in appfuse 2m4

2007-04-18 Thread Will Berger
I was wondering if anyone has run into this. I am trying to use the datepicker and it doesn't seem to render in the html page. When I go to the struts cookbook demo site. The datepicker generates just fine. I took the example page and tried running it in appfuse. It also did not run. Anyone

Re: [appfuse-user] ajax tutorial for appfuse 2

2007-04-18 Thread Matt Raible
You should look at the tutorial pages to see how the code/tips/etc are handed in those. If you click edit, you should be able to see how most things are done. Here's some quick tips: {tip}tip goes here in green{tip} {info}blue{info} {note}yello{note} {code:language=java} code goes here, make s

[appfuse-user] getRemoteAddr() returns IPv6 instead of IPv4

2007-04-18 Thread bUg.
In IE7 and windows vista i call request.getRemoteAddr() and get ipv6 but i want to get ip4v. how i can do it? - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [appfuse-user] ajax tutorial for appfuse 2

2007-04-18 Thread tibi
i wish i could send an hour or two (i will sit here idle and you will move twice as fast ?) is there an example how to edit the page... i have code and its interpreted tibi Matt Raible wrote: How about this: http://appfuse.org/display/APF/Event+Calendar I tentatively scheduled 2.0 M5 for ne

Re: [appfuse-user] ajax tutorial for appfuse 2

2007-04-18 Thread Matt Raible
How about this: http://appfuse.org/display/APF/Event+Calendar I tentatively scheduled 2.0 M5 for next weekend. Unfortunately, the reality is this probably won't happen. I have to finish up my presentation[1] for ApacheCon Europe this week. Next week, I need to write a training course I'm deliv

Re: [appfuse-user] ajax tutorial for appfuse 2

2007-04-18 Thread tibi
i will try if you update this: http://appfuse.org/display/APF/2007/01/08/2.0+Release+Schedule ;) tibi Matt Raible wrote: If someone wants to document tips and tricks for getting Dojo working with AppFuse, that'd be great. It's probably best to start by modifying the existing Ajax page on the

Re: [appfuse-user] Pretending to be another user

2007-04-18 Thread Matt Raible
I have a requirement to add this functionality in one of my projects. I don't know when I'll get around to trying to implement it, but hopefully in the next week or so. Matt On 4/18/07, Nigel in NZ <[EMAIL PROTECTED]> wrote: Matt, Thanks for that. I spent some time this evening looking at it

Re: [appfuse-user] building entire appfuse M2 source with maven

2007-04-18 Thread Matt Raible
If you pull in the sources and exclude appfuse-hibernate and appfuse-service, you'll need to pull in the dependencies for those projects from their pom.xml files. If you post the errors you're seeing, we may be able to offer better help. Matt On 4/18/07, nmall <[EMAIL PROTECTED]> wrote: Hi,

Re: [appfuse-user] building entire appfuse M2 source with maven

2007-04-18 Thread nmall
Hi, So I pulled in all the modules from the appfuse source into myproject/src/main/java/ as follows. I tried to run mvn -e integration-test. However, I got a ton of compilation errors. Is there a complete set someone can specify that I need to pull in or is there an svn co command I can execute

Re: [appfuse-user] building entire appfuse M2 source with maven

2007-04-18 Thread Matt Raible
If you install AppFuse locally, it'll use those JARs instead of the ones from static.appfuse.org/repository as long as the versions match. If you want to ensure that you never get newer versions from the AppFuse repo, you should change the groupId on the artifacts, then change it in your project's

Re: [appfuse-user] building entire appfuse M2 source with maven

2007-04-18 Thread nmall
Actually, I did mvn and it built all the modules. However, I am trying to find a way to pull in all the classes needed for dao, dao/hibernate, service, acls etc into my project directory.how do I do that. mraible wrote: > > You can build all the source by running "mvn" from the top-level > dir

Re: [appfuse-user] Migrating from jsp to velocity

2007-04-18 Thread Matt Raible
I believe Velocity Tools has some of these: http://velocity.apache.org/tools/releases/1.3/ If you're using Spring MVC as your web framework, there's several macros that provide this type of functionality. Matt On 4/18/07, bUg. <[EMAIL PROTECTED]> wrote: I want to migrate from jsp to velocity

Re: [appfuse-user] updateActionListener with facelets 1.1.11

2007-04-18 Thread Matt Raible
This thread should help: http://www.nabble.com/jsf-updateactionlistener-deactivated-t3354082s2369.html Matt On 4/18/07, sionsmith <[EMAIL PROTECTED]> wrote: Guys & girls - i've had read a lot about this not being supported in earlier versions of appfuse - i'm using version 2 release m3. The u

Re: [appfuse-user] Dojo Problem

2007-04-18 Thread Matt Raible
I don't know - according to the following issue (and some googling), it looksl ike it's in there: https://issues.apache.org/struts/browse/WW-1598 Matt On 4/18/07, Aridany Ramirez <[EMAIL PROTECTED]> wrote: I thought that too, but i could not find struts.js in struts2-core.jar. Are some other j

Re: [appfuse-user] Dojo Problem

2007-04-18 Thread Aridany Ramirez
I thought that too, but i could not find struts.js in struts2-core.jar. Are some other jar to verify? 2007/4/18, Matt Raible <[EMAIL PROTECTED]>: You might try extracting struts.js from the struts.jar and putting it in your scripts directory. Matt On 4/18/07, Aridany Ramirez <[EMAIL PRO

Re: [appfuse-user] ajax tutorial for appfuse 2

2007-04-18 Thread Matt Raible
If someone wants to document tips and tricks for getting Dojo working with AppFuse, that'd be great. It's probably best to start by modifying the existing Ajax page on the wiki. If that get's too lengthy, we can break it up into sub-pages. http://appfuse.org/display/APF/Ajax If you don't have

Re: [appfuse-user] building entire appfuse M2 source with maven

2007-04-18 Thread Matt Raible
You can build all the source by running "mvn" from the top-level directory. This is the same as executing "mvn install" because "install" is the default goal (specified in the section of pom.xml). Matt On 4/18/07, nmall <[EMAIL PROTECTED]> wrote: Hi, I need to build the entire appfuse sour

[appfuse-user] building entire appfuse M2 source with maven

2007-04-18 Thread nmall
Hi, I need to build the entire appfuse source for trying security stuff and adding acls etc. I have downloaded M2 source. What is the maven command line that I can issue to build the entire source and what resulting libraries should I put into any project that I want to use the ACL classes in.

Re: [appfuse-user] Eclipse Appfuse project errors

2007-04-18 Thread Matt Raible
Yes, I this this definitely can be useful. I believe it adds the WAR files as JARs (warpath) too. That being said, I think Candy for AppFuse is likely a better option. It bundles the m2eclipse plugin and uses the latest source since it has a bunch of bug fixes in it. http://candy4appfuse.sf.net

Re: [appfuse-user] Dojo Problem

2007-04-18 Thread Matt Raible
You might try extracting struts.js from the struts.jar and putting it in your scripts directory. Matt On 4/18/07, Aridany Ramirez <[EMAIL PROTECTED]> wrote: Hi!, now i´m testing s:autocompleter, but dojo is not finding the file "scripts/struts.js". Any ideas?? 2007/4/17, Aridany Ramirez < [EMA

Re: [appfuse-user] ajax tutorial for appfuse 2

2007-04-18 Thread tibi
thanks but just got dojo working...;) this will call my normal action method save tibi - djConfig = { isDebug: false }; dojo.require("dojo.event.*"); dojo.require("dojo.io.*"); dojo.require("dojo.widget.*"); dojo.require("dojo.widget.Butto

Re: [appfuse-user] ajax tutorial for appfuse 2

2007-04-18 Thread Michael Horwitz
Have you seen this: http://appfuse.org/display/APF/Ajax? I have used Dojo with AppFuse 2.0, but it does require some fiddling with script libraries and web filters. I would suggest you take a close look at your requirements: only use something like Dojo or GWT if you need all the additional javasc

Re: [appfuse-user] ajax tutorial for appfuse 2

2007-04-18 Thread tibi
or should i use GWT? http://cwiki.apache.org/S2PLUGINS/gwt-plugin.html dojo seems very nice but its not clear to me if and how i can call struts actions. tibi tibi wrote: is there an ajax tutorial for appfuse 2. i only could find this one for appfuse 1.9 http://www.lucianofiandesio.com/java

Re: [appfuse-user] Pretending to be another user

2007-04-18 Thread Nigel in NZ
Matt, Thanks for that. I spent some time this evening looking at it but it is now 12:15am so must stop! I added my switchUserProcessingFilter to my filterChainProxy, I created, /j_acegi_switch_user /j_acegi_exit_user /main.jsp I then tried calli

Re: [appfuse-user] FlushMode.NEVER/MANUAL

2007-04-18 Thread tibi
thats it... my class was not named manager. i just followed my onw demo and than it worked. the diff the naming. i did know about this default behavior. thanks mike saved my day ;) tibi Michael Horwitz wrote: By default AppFuse wraps all methods on any bean whose class name ends in Manager in

Re: [appfuse-user] FlushMode.NEVER/MANUAL

2007-04-18 Thread Michael Horwitz
By default AppFuse wraps all methods on any bean whose class name ends in Manager in a transaction. So normally you do not need to add transactional annotations to your methods. You will have problems though if: 1) You access Dao's directly. 2) Your service layer bean class is not called xxxMana

Re: [appfuse-user] about hibernate manytomany update question

2007-04-18 Thread tibi
i continu in this thread: "FlushMode.NEVER/MANUAL" tibi tibi wrote: where do you set the session flush mode. i don't have a session in my setup. i work with doa's injected by spring. tibi tibi wrote: jep i have the same error. don't know where it comes from. tibi aninggo wrote: I don't

Re: [appfuse-user] FlushMode.NEVER/MANUAL

2007-04-18 Thread tibi
can't get my head around this. why this happens in my current project and not in others i don't know. i did not use something like: @Transactional(readOnly = false) in my others projects where i could do an update fine. any smart ass out there?? tibi tibi wrote: anyone got this error: Data A

Re: [appfuse-user] FlushMode.NEVER/MANUAL

2007-04-18 Thread Michael Horwitz
Yes, it's quite common! Depending on which version of AppFuse you are using it either means the method you are calling that is doing work is not under transaction, or that the transaction is marked as read only. Which version of AppFuse are you working on and which service layer component are you

Re: [appfuse-user] about hibernate manytomany update question

2007-04-18 Thread tibi
where do you set the session flush mode. i don't have a session in my setup. i work with doa's injected by spring. tibi tibi wrote: jep i have the same error. don't know where it comes from. tibi aninggo wrote: I don't understand why notes this row i try this way,it's Work normally; sessio

[appfuse-user] updateActionListener with facelets 1.1.11

2007-04-18 Thread sionsmith
Guys & girls - i've had read a lot about this not being supported in earlier versions of appfuse - i'm using version 2 release m3. The updateActionListener is commented out in my tomahawk.tiglib.xml: I have however read that this is now supported? is anyone using this tag successfully?? if s

Re: [appfuse-user] about hibernate manytomany update question

2007-04-18 Thread tibi
jep i have the same error. don't know where it comes from. tibi aninggo wrote: I don't understand why notes this row i try this way,it's Work normally; session.setFlushMode(FlushMode.AUTO); session.save(user); session.flush(); the OpenSessionInView default to

[appfuse-user] FlushMode.NEVER/MANUAL

2007-04-18 Thread tibi
anyone got this error: Data Access Failure Write operations are not allowed in read-only mode (FlushMode.NEVER/MANUAL): Turn your Session into FlushMode.COMMIT/AUTO or remove 'readOnly' marker from transaction definition. « Back and solved it??

[appfuse-user] Migrating from jsp to velocity

2007-04-18 Thread bUg.
I want to migrate from jsp to velocity and i want to know how replace some lines. For example: and ${sessionScope.var} - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[appfuse-user] ajax tutorial for appfuse 2

2007-04-18 Thread tibi
is there an ajax tutorial for appfuse 2. i only could find this one for appfuse 1.9 http://www.lucianofiandesio.com/javatales/ajxfuse.html or should i refer to the dojo toolkit site? (i'm using struts2) thanks tibi - To un

Re: [appfuse-user] Eclipse Appfuse project errors

2007-04-18 Thread swordfish
Oops, here is a newer version: Maven 2.x Integration for Eclipse (http://m2eclipse.codehaus.org) swordfish wrote: > > Hi Matt, do you think the Maven Eclipse Plugin > (http://maven.apache.org/maven-1.x/plugins/eclipse/) is useful for > developing an AppFuse application in Eclipse 3.2.2? > > >

Re: [appfuse-user] Eclipse Appfuse project errors

2007-04-18 Thread swordfish
Oops, here is a newer version: Maven 2.x Integration for Eclipse (http://m2eclipse.codehaus.org) swordfish wrote: > > Hi Matt, do you think the Maven Eclipse Plugin > (http://maven.apache.org/maven-1.x/plugins/eclipse/) is useful for > developing an AppFuse application in Eclipse 3.2.2? > > >

Re: [appfuse-user] Eclipse Appfuse project errors

2007-04-18 Thread swordfish
Hi Matt, do you think the Maven Eclipse Plugin (http://maven.apache.org/maven-1.x/plugins/eclipse/) is useful for developing an AppFuse application in Eclipse 3.2.2? mraible wrote: > > If you're using a basic archetype, no - you shouldn't delete them. > Instead, I'd try importing the project, o

Re: [appfuse-user] Dojo Problem

2007-04-18 Thread Aridany Ramirez
Hi!, now i´m testing s:autocompleter, but dojo is not finding the file "scripts/struts.js". Any ideas?? 2007/4/17, Aridany Ramirez <[EMAIL PROTECTED]>: Finally, I have dojo and scriptaculous working together. No changes made in the decorator, if you move above the scripts includes, scriptaculo