Re: [appfuse-user] RoleVoter

2008-03-27 Thread Ron Anderson
I made this change so that I could use both a 1.9 and 2.0 applications to access same database (user and role tables). You need to change the role table to use "ROLE_ADMIN" etc. Then change Constants.java and also the applicationContext-Security.xml to match. I think that was it and it shou

Re: [appfuse-user] Struts2 and jsCalendar

2008-02-20 Thread Ron Anderson
s based on that. Good luck. Ron Anderson-2 wrote: > > I changed to the setup in the equinox user form and it works so it isn't > related to jsCalendar or the import statements. > > Has to be something with the title="date" and its relationship to the >

Re: [appfuse-user] Struts2 and jsCalendar

2008-02-13 Thread Ron Anderson
Matt Raible <[EMAIL PROTECTED]> To: users@appfuse.dev.java.net Sent: Tuesday, February 12, 2008 8:12:54 PM Subject: Re: [appfuse-user] Struts2 and jsCalendar Do you see any sort of JavaScript error in your console (on Firefox)? Matt On 2/12/08, Ron Anderson <[EMAIL PROTECTED]> wrote: >

Re: [appfuse-user] Struts2 and jsCalendar

2008-02-13 Thread Ron Anderson
ruts2 and jsCalendar Do you see any sort of JavaScript error in your console (on Firefox)? Matt On 2/12/08, Ron Anderson <[EMAIL PROTECTED]> wrote: > > I'm using the instructions from Matt on adding jsCalendar to Appfuse 2.0 / > Struts 2 and it isn't working. The instruct

[appfuse-user] Struts2 and jsCalendar

2008-02-12 Thread Ron Anderson
I'm using the instructions from Matt on adding jsCalendar to Appfuse 2.0 / Struts 2 and it isn't working. The instructions are below. I understand how the id is determined for the inputField but where does the button id come from? It must have something to do with the textfield title="date" a

Re: [appfuse-user] Passing set of User objects as Argument in HQL

2008-01-19 Thread Ron Anderson
I use the following to pass in a collection as a parameter list but do it in a hibernate callback. hth, Ron public List getIpdrsToRate(final Collection listOfStatusToRate, final String subscriberToRate) throws DataAccessException { return getHibernateTemplate().executeFind(n

Re: [appfuse-user] Automatic timestamping of all persisted data

2007-12-13 Thread Ron Anderson
Hey Rob this seems like it might be a good application for Spring AOP/AspectJ. We've used it in a project for logging what was changed and by whom with date/time. Ron - Original Message From: Rob Hills <[EMAIL PROTECTED]> To: users@appfuse.dev.java.net Sent: Thursday, December 13, 200

Re: [appfuse-user] Could not open Hibernate Session for transaction; nested exception is

2007-12-09 Thread Ron Anderson
ession for transaction; nested exception is Hi Ron, What change did you make to your pom.xml to force commons-dbcp to version 1.2.1? I'm going to try just adding the dependency, but as you know this is a bit hard to test to see if it worked ;) Thanks Nathan - "Ron Anderson&qu

Re: [appfuse-user] Could not open Hibernate Session for transaction; nested exception is

2007-12-07 Thread Ron Anderson
load as the wait_timeout doesn't expire. Stopping and starting the mysqld service did work for me as long as I was the first to hit it. Otherwise someone else would see the ugly stack trace. Ron Ron Anderson wrote: > > It will also fail after the mysql variable 'wait_timeout&#

Re: [appfuse-user] Could not open Hibernate Session for transaction; nested exception is

2007-12-05 Thread Ron Anderson
; Server version: 5.0.41-community MySQL Community Edition (GPL) > > > > On Dec 5, 2007 , at 9:48 AM, Ron Anderson wrote: > > > > > Which mysql server version are the demo's running on? I'm using > 5.0.22. > > > - Original Message >

Re: [appfuse-user] Could not open Hibernate Session for transaction; nested exception is

2007-12-05 Thread Ron Anderson
y. You could try posting to the MySQL mailing list. Matt On Dec 5, 2007, at 9:40 AM, Ron Anderson wrote: > > Has anyone solved this problem? I've upgraded to latest mysql > connector > 5.0.8 and have the same problem described here (and on some other > posts > rela

Re: [appfuse-user] Could not open Hibernate Session for transaction; nested exception is

2007-12-05 Thread Ron Anderson
Has anyone solved this problem? I've upgraded to latest mysql connector 5.0.8 and have the same problem described here (and on some other posts related to this issue). The way to recreate it is to stop and restart mysqld. The first time you login, you'll see this error. It won't happen again a

Re: [appfuse-user]

2007-11-21 Thread Ron Anderson
Try something like this: - Original Message From: Bayu <[EMAIL PROTECTED]> To: users@appfuse.dev.java.net Sent: Wednesday, November 21, 2007 8:24:58 PM Subject: [appfuse-user] but the result is very ugly, it displays "290.0". my question are: -- how to di

Re: [appfuse-user] Jasper Report generated HTML displaying image placeholders in IE6 and IE7

2007-11-20 Thread Ron Anderson
I'm using Struts jasper reports plugin so I believe the IS_USING_IMAGES_TO_ALIGN is set by default. The img tags used for aligning output do show up and display perfectly in Firefox, just in IE they are displayed as img placeholders. So I'm guessing that is due to ImageServlet not being there

[appfuse-user] Jasper Report generated HTML displaying image placeholders in IE6 and IE7

2007-11-17 Thread Ron Anderson
I've run across a strange Internet Explorer problem and trying to figure out if it could be related to appfuse css or is a Jasper Reports issue. I'm using appfuse 2.0/struts2. I've configured Jasper Reports in Struts2 to output reports in HTML and everything is working great in Firefox. When

Re: [appfuse-user] simple redirect in Struts2 from index.jsp

2007-10-29 Thread Ron Anderson
This guy has some useful info as well. http://www.vitarara.org/cms/struts_2_cookbook/post_and_redirect Ron - Original Message From: Matt Raible <[EMAIL PROTECTED]> To: users@appfuse.dev.java.net Sent: Monday, October 29, 2007 3:39:46 PM Subject: Re: [appfuse-user] simple redirect in Str

Re: [appfuse-user] accessing a folder in modular setup

2007-10-23 Thread Ron Anderson
How about something like: File sourceDirectory = new File("/path/to/files"); File[] files = sourceDirectory.listFiles(); Hi guys, I have a modular project set up where files are uploaded into the resources folder from the admin module. The web module needs to access the resource folder in th

Re: [appfuse-user] Which design pattern

2007-10-22 Thread Ron Anderson
There are lots of examples and help on doing this via google. Here is just one example http://www.devx.com/Java/Article/28754/0/page/4 soussou97 wrote: > > Hi Ron; > > You have another example more simple for the criteria Query ? > > regards; > > > Ron Ande

Re: [appfuse-user] Intercepting Web Service requests

2007-10-16 Thread Ron Anderson
You might want to look at xfire's in and out handlers. Here is a link to xfire ws security that talks about them. http://xfire.codehaus.org/WS-Security - Original Message From: George.Francis <[EMAIL PROTECTED]> To: users@appfuse.dev.java.net Sent: Tuesday, October 16, 2007 7:27:49 AM

[appfuse-user] Export Table in JSF version

2007-10-10 Thread Ron Anderson
Hi Matt, Looks like you went with dataTable rather than display:table in the JSF version so no built in export is available. This might be the motivation to learn Struts 2 for a new project if no easy export solutions are available. Any suggestions? thanks, Ron -- View this message in contex

Re: [appfuse-user] has anyone got the basic-jsf to work and imported to eclispe

2007-10-10 Thread Ron Anderson
I just went through the entire process for basic-jsf from start to finish and didn't have any problems. Using Java 5, Tomcat 5.5 and Eclipse 3.2 Was able to import the project to eclipse, make changes and see them with a mvn jetty:run-war. I do miss the old ant window in eclipse though. Nice

Re: [appfuse-user] Which design pattern

2007-10-06 Thread Ron Anderson
Criteria Query is pretty good for this. http://www.hibernate.org/hib_docs/reference/en/html/querycriteria.html - Original Message From: soussou97 <[EMAIL PROTECTED]> To: users@appfuse.dev.java.net Sent: Saturday, October 6, 2007 7:38:55 AM Subject: [appfuse-user] Which design pattern

Re: [appfuse-user] How to write web service client

2007-10-03 Thread Ron Anderson
This should help with stub generation. http://xfire.codehaus.org/Client+and+Server+Stub+Generation+from+WSDL You can also just edit your web/action class that was built with appgen. Here is a code sample of what you would need. public List getCustomers() throws MalformedURLException {

Re: [appfuse-user] Asynchronous task

2007-08-17 Thread Ron Anderson
x27;ll slow down your container throughput. De : Ron Anderson [mailto:[EMAIL PROTECTED] Envoyé : vendredi 17 août 2007 15:38 À : users@appfuse.dev.java.net Objet : Re: [appfuse-user] Asynchronous task You can do it by starting your own Thread then. Ron - Original Message F

Re: [appfuse-user] Asynchronous task

2007-08-17 Thread Ron Anderson
You can do it by starting your own Thread then. Ron - Original Message From: benoit moraillon <[EMAIL PROTECTED]> To: users@appfuse.dev.java.net Sent: Friday, August 17, 2007 6:29:54 AM Subject: RE: [appfuse-user] Asynchronous task Thanks, but when it's not a scheduled task ? By launchi

Re: [appfuse-user] referring to components from Javascript

2007-06-20 Thread Ron Anderson
I've used something like this to get the component id and then set the value of a component later for a DWR driven display. var filenameId = document.getElementById("importCdrs:filename"); Where I have a form called importCdrs and a component called filename. Not sure if this is what you're l

Re: [appfuse-user] Re: Managers For Nested objects

2007-04-06 Thread Ron Anderson
You don't need managers for each object unless you have business logic you want to add for the object that isn't handled by the generic manager. You should first try to use the generic managers and dao's then if you need add a manager and/or dao for the object with most specialization required a

Re: [appfuse-user] hibernate relationship one-to-tone

2007-02-21 Thread Ron Anderson
You can just use a many to one with unique set to true like this: @hibernate.many-to-one column="deviceId" unique="true" lazy="false" on my getDevice() method Its a constrained many to one where you can really only have one of these for each deviceId. - Original Message From: hquinn <[

[appfuse-user] why illegal access to lazy collection with collection in commonclipse methods

2007-02-13 Thread Ron Anderson
Hi All, I've been wondering about this for awhile and especially when I forget about it and scratch my head when it happens. Hoping someone can shed some light. I use commonclipse for generating the equals, hashCode and toString methods automatically at the bottom of my pojo's. I've noticed t

Re: [appfuse-user] Why does logout.jsp redirect to mainmenu.jsp rather than login.jsp?

2007-01-10 Thread Ron Anderson
t, any attempt to go to the > mainmenu should result in the login page being shown? > > Mike. > > > > On 1/10/07, Ron Anderson <[EMAIL PROTECTED]> wrote: > > > > > > > > I've noticed that after upgrading our 1.9.2 appfuse based app with Acegi&

[appfuse-user] Why does logout.jsp redirect to mainmenu.jsp rather than login.jsp?

2007-01-10 Thread Ron Anderson
I've noticed that after upgrading our 1.9.2 appfuse based app with Acegi's 1.0.3 release jar that it fixes a logout error (only shows up on Linux) after session times out but now redirects to mainmenu and doesn't log user out. I've changed this to login.jsp and it seems to work. Using JSF. Ju

Re: [appfuse-user] JSF Backing bean's application-specific class type attributes get nulled

2006-12-21 Thread Ron Anderson
What is happening is when you submit the form by selecting save, your request scoped stuff which was displayed to the browser on your edit isn't going to survive unless you have a way of carrying it across. On input fields in your jsp it gets carried across, if you want to bring other stuff tha

Re: [appfuse-user] emailing users for log4j logs

2006-12-18 Thread Ron Anderson
ling users for log4j logs You might have better luck publishing an RSS feed for certain users. While Log4j e-mail works, if you ever get a major error, the user's inbox will fill up with thousands of messages - which is quite ugly. Matt On 12/17/06, Ron Anderson <[EMAIL PROTECTED]> wrote:

[appfuse-user] emailing users for log4j logs

2006-12-17 Thread Ron Anderson
I'm trying to figure out how to set up emailing log4j log messages to selected users. It is easy to setup the users you wish to email via the log4j.xml but I'd like to add two properties to User like boolean emailSevereLogs and boolean emailFatalLogs and then when a log is needing to be emailed

Re: [appfuse-user] How to print entire list in display tag

2006-12-13 Thread Ron Anderson
There are some properties that also might help at http://displaytag.sourceforge.net/10/configuration.html See the export.amount property. These are set up in the /WEB-INFO/classes/displaytag.properties file. Ron - Original Message From: pankaj singla <[EMAIL PROTECTED]> To: users@app