[appfuse-user] weird behaviour when saving User

2008-08-07 Thread Allan Ang
I have this weird behaviour when saving users. steps to reproduce behaviour = 1. Login using default admin user and then click Edit Profile 2. Change password 3. Click save 4. Password is saved unencrypted. I did some debugging and traced the error to this line in UserManager

Re: [appfuse-user] debug problem

2008-07-06 Thread Allan Ang
for Linux use this in the command prompt before you run jetty:run-war (you only need to do this once per session) export MAVEN_OPTS="-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n" windows: replace 'export' with 'set' then go to your favorit

Re: [appfuse-user] security concern

2008-07-06 Thread Allan Ang
Not too sure what you are trying to accomplish here. If you just want your URL to be protected by a login page, you merely need to specify it in the "filterInvocationInterceptor" bean. You can leave it out from the "channelProcessingFilter". Make sure that you enter the pattern properly. e.g

Re: [appfuse-user] How to get user from session

2008-07-02 Thread Allan Ang
use String username = this.getRequest().getRemoteUser(); in your action class. allan krishgy wrote: > > Hi All, > > I am just beginning the java for a web based application. After some > struggle, I found appfuse and moven. > > I have basic appfuse-struts-spring-hibernate project. > >

Re: [appfuse-user] Avoid exposing all public methods - Web service annotations

2008-04-08 Thread Allan Ang
s the trick. allan Allan Ang wrote: > > Hi all, > > I'm trying to avoid exposing all methods in my Service Implementation > class as a web service. > I have tried removing the service endpoint in the implementation's > "@WebService" annotation and add

[appfuse-user] Avoid exposing all public methods - Web service annotations

2008-04-08 Thread Allan Ang
Hi all, I'm trying to avoid exposing all methods in my Service Implementation class as a web service. I have tried removing the service endpoint in the implementation's "@WebService" annotation and adding an explicit @WebMethod on the method I want exposed but no luck. All methods still appear i

Re: [appfuse-user] Get Users with a Rol

2008-01-29 Thread Allan Ang
add a Set of users to your Role object map using many-to-many then use role.getUsers() in dao and return the set -- View this message in context: http://www.nabble.com/Get-Users-with-a-Rol-tp15123957s2369p15176074.html Sent from the AppFuse - User mailing list archive at Nabble.com. -

Re: [appfuse-user] NullPointerException from personList.jsp

2008-01-24 Thread Allan Ang
perhaps you could post org.appfuse.dao.jpa.GenericDaoJpa.java besides, the naming convention should be org.appfuse.jpa.dao.{classname} where {org.appfuse.jpa} is your project package name defined in your pom.xml in the groupId attribute. Failure to do this might result in incorrect running of te

[appfuse-user] JSF or Struts

2007-12-31 Thread Allan Ang
Perhaps this shouldn't be in this forum but I would really like to know what the majority of Appfusers think. I mainly develop on Struts1/2 but lately a client of mine seems to think that JSF is faster to develop with all that sexy drag/drop stuff. Somehow the lack of control that I can have over

Re: [appfuse-user] Generating DAO, Service test class in Struts2 modular

2007-12-31 Thread Allan Ang
got a tip from Bob Fleischman in another thread turns out that appfuse:gen -Damp.genericCore=false did the trick thanks for the help anyways! -- View this message in context: http://www.nabble.com/Generating-DAO%2C-Service-test-class-in-Struts2-modular-tp14523512s2369p14560804.html Sent from t

Re: [appfuse-user] [solution] Inserting blobs using external files using DBUnit

2007-12-30 Thread Allan Ang
Hi there. This probably does not answer your question but why don't you try converting your binary data to Base64 strings and putting these strings in the XML and loading them the conventional way You will obviously need to reconvert the Base64 String back to the binary data again when you need

Re: [appfuse-user] Generating DAO, Service test class in Struts2 modular

2007-12-30 Thread Allan Ang
Nope...hence the puzzlement. Do I need to enable anything when running appfuse:gen I have tried the following combinations to no effect appfuse:gen -DgenericCore=false appfuse:gen -DgenericCore=false -DfullSource=true appfuse:gen -DfullSource=true thanks again Matt! -- View this message in con

Re: [appfuse-user] Generating DAO, Service test class in Struts2 modular

2007-12-29 Thread Allan Ang
Hi Matt, This is what I see: Thanks again! [INFO] Scanning for projects... [INFO] Searching repository for plugin with prefix: 'appfuse'. [INFO] [INFO] Building AppFuse Modular Application - Core [INFO]task-segmen

[appfuse-user] Generating DAO, Service test class in Struts2 modular

2007-12-28 Thread Allan Ang
Is there any way I can generate test classes for a Struts2 modular project I have tried appfuse:gen to no avail or did I miss something? thanks and happy new year everyone! allan -- View this message in context: http://www.nabble.com/Generating-DAO%2C-Service-test-class-in-Struts2-modular-tp1

Re: [appfuse-user] How to insert a large character object into Oracle database from Appfuse.

2007-11-21 Thread Allan Ang
0 put this inside the session-factory. -- View this message in context: http://www.nabble.com/How-to-insert-a-large-character-object-into-Oracle-database-from-Appfuse.-tf4833863s2369.html#a13873786 Sent from the AppFuse - User mailing list archive at Nabble.com. ---

Re: [appfuse-user] Preopopulating a production database

2007-11-21 Thread Allan Ang
try mvn:jetty-run -Dmaven.test.skip=true -- View this message in context: http://www.nabble.com/Preopopulating-a-production-database-tf4848327s2369.html#a13873159 Sent from the AppFuse - User mailing list archive at Nabble.com. ---

Re: [appfuse-user] How to insert a large character object into Oracle database from Appfuse.

2007-11-21 Thread Allan Ang
add to hibernate.cfg.xml e.g: ... -- View this message in context: http://www.nabble.com/How-to-insert-a-large-character-object-into-Oracle-database-from-Appfuse.-tf4833863s2369.html#a13872591 Sent from the AppFuse - User mailing list archive at Nabble.com. -

Re: [appfuse-user] How to insert a large character object into Oracle database from Appfuse.

2007-11-20 Thread Allan Ang
Can you go to applicationContext-hibernate.xml and set the hibernate.jdbc.batch_size to '0' ".. 0 .." -- View this message in context: http://www.nabble.com/How-to-insert-a-large-character-object-into-Oracle-database-from-Appfuse.-tf4833863s2369.html#a13863882 Sent from the AppFuse - User

Re: [appfuse-user] How to insert a large character object into Oracle database from Appfuse.

2007-11-20 Thread Allan Ang
You modified the type in Oracle right? CLOB allows storage of up to 4MB so I'm pretty sure a CLOB will work. Perhaps you could include your model class and also the SQL dump of your table and I'll have a look. -- View this message in context: http://www.nabble.com/How-to-insert-a-large-charac

Re: [appfuse-user] How to insert a large character object into Oracle database from Appfuse.

2007-11-19 Thread Allan Ang
well you could set the property in your model object as String and set the datatype in Oracle as CLOB. That will work. -- View this message in context: http://www.nabble.com/How-to-insert-a-large-character-object-into-Oracle-database-from-Appfuse.-tf4833863s2369.html#a13830060 Sent from the A

Re: [appfuse-user] How to insert a large character object into Oracle database from Appfuse.

2007-11-19 Thread Allan Ang
CLOB -- View this message in context: http://www.nabble.com/How-to-insert-a-large-character-object-into-Oracle-database-from-Appfuse.-tf4833863s2369.html#a13829317 Sent from the AppFuse - User mailing list archive at Nabble.com. --

Re: [appfuse-user] No value specified

2007-10-18 Thread Allan Ang
You'll probably have to add more information if you want someone to help you. e.g what framework are you using, what were you doing when you got this error etc.. -- View this message in context: http://www.nabble.com/No-value-specified-tf4633660s2369.html#a13269614 Sent from the AppFuse - Use

Re: [appfuse-user] Using appfuse:full-source

2007-10-13 Thread Allan Ang
Never had a need to use full-source yet, but here's a link for the M5 release http://appfuse.org/display/APF/Release+Notes+2.0+M5 ".. mvn appfuse:full-source This goal will convert your project to use all of AppFuse's source and remove all dependencies on AppFuse. Known issues with "full-sourc

Re: [appfuse-user] Getting DisplayTag to support multiple parameters

2007-10-13 Thread Allan Ang
yep John Kwon wrote: > > So would the first name, last name be as follows? > > whateveryoulike.html?lastName=${foo.lastName}&firstName=${ foo.firstName} {foo.lastName} > > with only the last name displayed, but first and last name passed in the > url? > > On 10/10/07, Matt Raible <[EMAIL P

Re: [appfuse-user] Sun java JDK 1.6 performance

2007-10-13 Thread Allan Ang
true. but the implementation for a bubblesort is relatively simple and the c++ and java code match each other very very closely (i.e 2 simple for loops and a swap). Let me know if you want the codes that i used. Naturally we only started the timing when after the arrays were initialized. I was a

Re: [appfuse-user] Sun java JDK 1.6 performance

2007-10-12 Thread Allan Ang
ran BEA 1.6, time taken=31 s ran Sun 1.6, time taken=5 s both with -server flags. :) -- View this message in context: http://www.nabble.com/Sun-java-JDK-1.6-performance-tf4611665s2369.html#a13186279 Sent from the AppFuse - User mailing list archive at Nabble.com.

[appfuse-user] Sun java JDK 1.6 performance

2007-10-11 Thread Allan Ang
Hi all, Just thought that I would post about a performance benchmark that I made with some colleagues at work. We wanted to test whether java could beat c++ in performance, so we implemented a bubblesort in both java and c++. When I used the BEA 1.5 SDK, the c++ code was approximately twice as f

Re: [appfuse-user] Jetty does not pick up changes made in css files

2007-10-08 Thread Allan Ang
should fix this. > > Matt > > On 10/8/07, Allan Ang <[EMAIL PROTECTED]> wrote: >> >> Im presently giving Appfuse 2 (Struts 2 - modular) a go >> >> I want to change some properties in the skins. I copied out the relevant >> css >> files from

[appfuse-user] Jetty does not pick up changes made in css files

2007-10-08 Thread Allan Ang
Im presently giving Appfuse 2 (Struts 2 - modular) a go I want to change some properties in the skins. I copied out the relevant css files from the appfuse styles folder into my project,edited the css file and then run mvn:jetty:run-war but the changes are not reflected when viewed using the brow

Re: [appfuse-user] How to call logout from struts baseaction

2007-10-04 Thread Allan Ang
1. have a public static in BaseAction that holds your variable 2. create a servlet filter that checks this value. servlet filter maps to all urls 3. if variable is set, response.sendRedirect to a url that is mapped to to the BaseAction method that you want to call perhaps there is a better way

[appfuse-user] How to make Jetty wait at breakpoints longer

2007-10-04 Thread Allan Ang
There's something you could do to make Jetty wait at the breakpoints longer. (it apparently won't wait forever) Just set the maxIdleTime value to something large. org.mortbay.jetty maven-jetty-plugin org.apache.geronimo.specs geronimo-j2ee_1.4_spec 1.1

Re: [appfuse-user] Eclipse Mavan jars

2007-09-11 Thread Allan Ang
aven to use a jar, you first install it and > then put a dependency for the jar in your pom using the appropriate > group id, artifact id, and version. > > On 9/11/07, Allan Ang <[EMAIL PROTECTED]> wrote: >> >> Hi there, >> >> I followed the quick start g

[appfuse-user] Eclipse Mavan jars

2007-09-11 Thread Allan Ang
Hi there, I followed the quick start guide but am still unable to get the JARs in my local Maven repo to be referenced in my Eclipse project. Do I have to do this manually (i.e Project->properties->variables->then select individual jars from within my Maven variable (M2_REPO, that I defined earl

[appfuse-user] CSS Menu overlaps

2007-08-28 Thread Allan Ang
Have any of you guys ever had a problem where a menu overlaps another just below it (this happens when you start increasing top level parent menus till it reaches a point where there are one just above another). the following should help for firefox users 1. go to styles/{whatever style you use}