Re: [appfuse-user] AppFuse 2 + Struts 2 - One JSP -> two different Actions ? possible

2008-10-15 Thread Rob Hills
Hi All, Rob Hills wrote: > > > Rob Hills wrote: >> >> In my AppFuse 2 + Struts app, I have one Form JSP (with one Action class) >> that is accessed from two different lists. When the user quits the form >> (save, cancel etc.) they need to return to the list t

Re: [appfuse-user] AppFuse 2 + Struts 2 - One JSP -> two different Actions ? possible

2008-10-14 Thread Rob Hills
Hi All, Rob Hills wrote: > > In my AppFuse 2 + Struts app, I have one Form JSP (with one Action class) > that is accessed from two different lists. When the user quits the form > (save, cancel etc.) they need to return to the list they came from... > I still haven't be

Re: [appfuse-user] AppFuse 2 + Struts 2 - One JSP -> two different Actions ? possible

2008-10-05 Thread Rob Hills
Hi again, Some of the XML in my last post got scrambled, I'll try again. Is there any way to format code in the web interface of Nabble? Couldn't see anything in the help pages. Rob Hills wrote: > > method="listSomeThings"> > /WEB-INF/pages/lis

[appfuse-user] AppFuse 2 + Struts 2 - One JSP -> two different Actions ? possible

2008-10-05 Thread Rob Hills
there a way to pass this kind of parameter in the struts.xml or do I need to totally rethink the way I'm trying to achieve this? Cheers, Rob Hills Waikiki, Western Australia -- View this message in context: http://www.nabble.com/AppFuse-2-%2B-Struts-2---One-JSP--%3E-tw

Re: [appfuse-user] Problem trying to run my application in Tomcat

2008-10-05 Thread Rob Hills
I am unable > to access to app pages like > http://localhost:8081/myapp-1.0-SNAPSHOT/mylist.html, etc in tomcat. I > can access to all the pages using jetty though. > Are your app files (WEB-INF/pages/myList.jsp etc.) in the WAR file deployed to Tomcat? Cheers, Rob Hills Waikiki, W

Re: [appfuse-user] Making Java Daemons in App Fuse App

2008-09-27 Thread Rob Hills
al available on http://www.lucianofiandesio.com/javatales/qtzfuse.html using Quartz with AppFuse . HTH, Rob Hills -- View this message in context: http://www.nabble.com/Making-Java-Daemons-in-App-Fuse-App-tp19706363s2369p197084

Re: [appfuse-user] Are There Any Dependencies When Deploying To Tomcat

2008-09-26 Thread Rob Hills
he ${CATALINA_HOME}/conf/Catalina/MY_APP directory too. If you've not done so already, you may want to read up on http://tomcat.apache.org/tomcat-5.5-doc/deployer-howto.html deployments . HTH, Rob Hills Waikiki, Western Australia -- View this message in context: http://www.nabble.com/Are-Th

Re: [appfuse-user] Attempting to deploy App To Tomcat - Form+ Errors

2008-09-26 Thread Rob Hills
s isn't an Appfuse thing, I've seen it with WAR files built in various ways. I'd try stopping Tomcat, deleting the exploded files in your ${CATALINA_HOME}/webapps directory, just leaving the WAR file behind and then restart Tomcat. You may find things work OK from there. HTH, Rob

[appfuse-user] jscalendar and time increment - FIXED

2008-09-25 Thread Rob Hills
time increment value. It's not been heavily tested, but works fine for my needs. If anyone else has any need for this functionality, I'm happy to post the source code. Cheers, Rob Hills Waikiki, Western Australia -- View this message in context: http://www.nabble.com/jscalen

[appfuse-user] jscalendar and onblur event

2008-09-25 Thread Rob Hills
nction so I'm a bit mystified. I'm using Firefox btw and have tried to trace through with firebug, but it's tricky to trace a function that isn't being called :confused: Any tips or pointers welcome Cheers, Rob Hills Waikiki, Western Australia -- View this message in cont

Re: [appfuse-user] AppFuse 2 + Struts 2 - Why does save action return INPUT for an existing record?

2008-09-09 Thread Rob Hills
CESS". I note that failed validation causes an INPUT return so I need to use that to return to the edit screen. I have to say, I'd originally expected failed validation to return ERROR, but I expect there's some logic there I'd not thought of. Cheers, Rob Hills Waikiki, W

[appfuse-user] AppFuse 2 + Struts 2 - Why does save action return INPUT for an existing record?

2008-09-09 Thread Rob Hills
by returning SUCCESS in either case. However, would there be other adverse effects from this approach? Cheers, Rob Hills Waikiki, Western Australia -- View this message in context: http://www.nabble.com/AppFuse-2-%2B-Struts-2---Why-does-save-action-return-INPUT-for-an-existing-record

Re: [appfuse-user] Active user's full name not getting dispalyed

2008-04-23 Thread Rob Hills
ts/swf/intro/index.html It appears that OGNL is part of Spring Web Flow which I suspect would be part of the Spring MVC archetype, though I've never used that so I can't confirm. Cheers, Rob Hills Waikiki, Western Australia --

Re: [appfuse-user] Active user's full name not getting dispalyed

2008-04-23 Thread Rob Hills
ts 2 Libraries so will leave the detail to someone who is. Cheers, Rob Hills Waikiki, Western Australia. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [appfuse-user] Active user's full name not getting dispalyed

2008-04-23 Thread Rob Hills
em? I searched the Jira for "active user full name" and this turned up at the top of the search results: http://issues.appfuse.org/browse/APF-859 It includes an environmental setting workaround for the problem. I've added a post to the original thread to close off that loop. Cheers

Re: [appfuse-user] Active user's full name not getting dispalyed

2008-04-23 Thread Rob Hills
/issues.appfuse.org/browse/APF-859 this jira issue which provides an environmental setting workaround for the problem. The underlying issue ( http://jira.opensymphony.com/browse/OGNL-115 in OGNL has apparently been fixed for OGNL version 2.73. Cheers, Rob Hills Waikiki, Western Australia -- V

Re: [appfuse-user] CSS Framework and side-by-side fields

2008-04-09 Thread Rob Hills
uot;simple" for each field inside it. I also had to create one or two CSS classes to tidy up a couple of frayed edges for some field types (eg cssClass="checkbox" is one I know I had to do) but that wasn't too hard to do using Fireb

Re: [appfuse-user] Re: Help needed for Many to Many relation

2008-04-08 Thread Rob Hills
e Project.employeeId=?" should work if the Entities have an @ManyToMany annotation. Cheers, Rob Hills Waikiki, Western Australia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [appfuse-user] Help needed for Many to Many relation

2008-04-08 Thread Rob Hills
Hi again Trish, Rob Hills wrote: Hi Trish, Trish wrote: Following error found while using following query getHibernateTemplate().find("from Employee as emp where emp.employeeId in " + "(select empproj.employeeId from EmployeesProject as empproj " +

Re: [appfuse-user] Help needed for Many to Many relation

2008-04-08 Thread Rob Hills
: "where empproj.projectId=?)", projectId); HTH, Rob Hills Waikiki, Western Australia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [appfuse-user] Help needed for Many to Many relation

2008-04-07 Thread Rob Hills
It is also likely to perform better. To learn more about Hibernate, you're better off examining Hibernate documentation, starting somewhere like here: http://www.hibernate.org/5.html I don't think that the AppFuse project will have a lot of information

Re: [appfuse-user] GenericDaoHibernate - NoSuchMethodException

2008-04-04 Thread Rob Hills
sure that would help you as much as the error message does - it says "no default constructor found" so I'd guess that you don't have a default constructor in your AnonIdDao class. You should have the following in your AnonIdDao class: public AnonIdDao() { super (AnonIdD

Re: [appfuse-user] Re: How to create parent objects?

2008-04-01 Thread Rob Hills
wrote: and in ApplicationContext.xml: <..> ref="gltransactionDao" /> HTH, Rob Hills Waikiki, Western Australia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional

Re: [appfuse-user] Re: How to create parent objects?

2008-04-01 Thread Rob Hills
Derek Broughton wrote: Rob Hills wrote: Make sure your DAO attributes are references to the Interface rather than the Hibernate implementation. For example, if you've got a UtoDao interface and a UtoDaoHibernate class, your manager should include something like this: UtoDao u

Re: [appfuse-user] Re: How to create parent objects?

2008-04-01 Thread Rob Hills
Hi Derek, Derek Broughton wrote: Rob Hills wrote: I'd be looking to empower a Manager class with the wherewithall to do the job. I'd create a Manager class for your unnamed third object (UTO) and give it access to the DAO(s) it needs to load/create/persist the UTOs and return th

Re: [appfuse-user] Re: Re: How to create parent objects?

2008-03-31 Thread Rob Hills
f this seems to be sidetracking a little, but I believe that sorting out design things like this early on can save a lot of work later. Cheers, Rob Hills Waikiki, Western Australia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [appfuse-user] Re: Re: How to create parent objects?

2008-03-31 Thread Rob Hills
return them to your Action. Your Action can then tell the Manager to add/remove any dangly bits (Accounts and Transactions) it needs to and finally persist it all to the Database. Theoretically, that way the Manager takes care of all the DB transactional stuff for

Re: [appfuse-user] Re: Re: Executing Named query

2008-03-23 Thread Rob Hills
Hi Derek, Derek Broughton wrote: Rob Hills wrote: That may well work, but I suspect it's a bad habit to get into. Creating your own Manager (extending GenericManager) and Dao (extending GenericDao) and their implementing classes can be a bit of a chore, but unless your app is a _

Re: [appfuse-user] Re: Executing Named query

2008-03-22 Thread Rob Hills
Hi Derek, Derek Broughton wrote: Rob Hills wrote: Derek Broughton wrote: Appfuse 2.0, Struts basic, Postgres I want to execute a Hibernate NamedQuery, but I can't figure out how to get the hibernate Session from within my Action. Can somebody point me to some useful documentation -

Re: [appfuse-user] Executing Named query

2008-03-22 Thread Rob Hills
on. If anyone who knows more about this than I do (most of you) can verify this simple overview or correct it if any of it is wrong, I'd be pleased if you would. HTH, Rob Hills Waikiki, Western Australia - To unsubscribe,

Re: [appfuse-user] Implementing Acegi ACLs

2008-03-20 Thread Rob Hills
necessary changes for 1.9.4 and let you know whether I was successful. OK, that sounds cool. No rush at this end, it's nearly 11am on Good Friday here in Western Australia and I'll be away from my computer until later on tonight anyway :-) Good luck with getting it working. Chee

Re: [appfuse-user] Implementing Acegi ACLs

2008-03-20 Thread Rob Hills
and Acegi version numbers) and I'm happy to update the tutorial. I had nothing to do with the original, but I have a login that enables me to edit the docco and one day I might need to be able to do what you're doing. Cheers R

Re: [appfuse-user] Debugging missing pages

2008-03-15 Thread Rob Hills
55, column 21] cssHorizontalMenu.vm is greek to me, but unmodified by me. I see those lines all the time in an application that works without any problem, so I suspect they may not be related to your issue. HTH, Rob Hills Waikiki, Western Australia

Re: [appfuse-user] appfuse:gen - generated list form works fine, edit form is all blank

2008-03-09 Thread Rob Hills
comments around, including more and more dynamic stuff until I located the cause of the problem. One thing to watch out for with this technique is null variable values in included pages (eg header.jsp etc.) or the page headers themselves. HTH, Rob Hills Waikiki, Western Australia -

Re: [appfuse-user] dbunit database initialization

2008-03-02 Thread Rob Hills
parent record in the table and then barfing. Carrying on a bit further, still assuming I'm right, if the parent_id value worked, the next data value is a string which DBUnit would try and put into the accountnum column, which may account for your casting error. You should normally see m

Re: [appfuse-user] mvn dbunit:operation with oracle 10g

2008-02-18 Thread Rob Hills
nge the factory and I never explored if it was possible to do this via a property in the pom.xml file. I simply changed my date/time data in the sample-data.xml file. If that's your problem, let us know and I'll dig up the date/time formats that worked

Re: [appfuse-user] Appfuse 2 Spring-Hibernate query result filter question

2008-02-15 Thread Rob Hills
he hibernate docs, you need a column name in that part of your condition. HTH, Rob Hills Waikiki, Western Australia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [appfuse-user] AppFuse 2.0 + Struts - Menu in session scope rather than Application?

2008-02-15 Thread Rob Hills
Hi again Matt et al, On 15 Feb 2008 at 20:41, Rob Hills wrote: > On 14 Feb 2008 at 9:29, Matt Raible wrote: > > On Feb 14, 2008, at 9:24 AM, Rob Hills wrote: > > >> BTW, is it possible to have the main part of the menu in the > > >> Application (as it is cur

Re: [appfuse-user] AppFuse 2.0 + Struts - Menu in session scope rather than Application?

2008-02-15 Thread Rob Hills
Hi Matt, On 14 Feb 2008 at 9:29, Matt Raible wrote: > > On Feb 14, 2008, at 9:24 AM, Rob Hills wrote: > > > Rob Hills wrote: > >> BTW, is it possible to have the main part of the menu in the > >> Application (as it is currently) and then a submenu in the

Re: [appfuse-user] AppFuse 2.0 + Struts - Menu in session scope rather than Application?

2008-02-14 Thread Rob Hills
Hi Again Matt, Rob Hills wrote: BTW, is it possible to have the main part of the menu in the Application (as it is currently) and then a submenu in the Session? Does the tag just hunt through the first repository it finds, or can it be pointed at a different repository? Just to clarify this

Re: [appfuse-user] AppFuse 2.0 + Struts - Menu in session scope rather than Application?

2008-02-14 Thread Rob Hills
then a submenu in the Session? Does the tag just hunt through the first repository it finds, or can it be pointed at a different repository? On Feb 14, 2008, at 6:25 AM, Rob Hills wrote: My app is based on AppFuse 2.0 + Struts etc and I'm using the default struts-menu to build my app menu.

[appfuse-user] AppFuse 2.0 + Struts - Menu in session scope rather than Application?

2008-02-14 Thread Rob Hills
el rather than the Application level? TIA, Rob Hills Waikiki, Western Australia Mobile +61 (412) 904-357 Fax: +61 (8) 9529-2137 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [appfuse-user] Appfuse 2.01 + Struts + modified core classes -> password confusion

2008-02-13 Thread Rob Hills
Hi Ernas, [EMAIL PROTECTED] wrote: On Feb 11, 2008 10:03 PM, Rob Hills <[EMAIL PROTECTED]> wrote: When I trace through the UserManagerImpl.save(User) method, I find that at line 87, the code uses the dao to pull the user's old password from the DB to compare it with the one that&

Re: [appfuse-user] AppFuse(JSF)

2008-02-13 Thread Rob Hills
ned up the following as the first hit: http://sourceforge.net/projects/swoop/ HTH, Rob Hills Waikiki, Western Australia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

RE: [appfuse-user] Appfuse 2.01 + Struts + modified core classes -> password confusion

2008-02-13 Thread Rob Hills
Hi again Christophe, David, On 13 Feb 2008 at 21:02, Rob Hills wrote: > I'm trying out a variation of the workaround you mentioned and I'll report > back how I get on. Actually, it was the workaround that David mentioned and my variation of it seems to be working. Dav

RE: [appfuse-user] Appfuse 2.01 + Struts + modified core classes -> password confusion

2008-02-13 Thread Rob Hills
the workaround you mentioned and I'll report back how I get on. Cheers, Rob Hills Waikiki, Western Australia Mobile +61 (412) 904-357 Fax: +61 (8) 9529-2137 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [appfuse-user] Appfuse 2.01 + Struts + modified core classes -> password confusion

2008-02-12 Thread Rob Hills
appening and work out a way of stopping it, but your workaround should help in the meantime. On Feb 12, 2008, at 10:39 AM, Rob Hills wrote: Many thanks for the reply. On 12 Feb 2008 at 7:57, Matt Raible wrote: On 2/12/08, Rob Hills <[EMAIL PROTECTED]> wrote: On 11 Feb 2008 at 18:37, Rob H

Re: [appfuse-user] Appfuse 2.01 + Struts + modified core classes -> password confusion

2008-02-12 Thread Rob Hills
Hi Matt, Many thanks for the reply. On 12 Feb 2008 at 7:57, Matt Raible wrote: > On 2/12/08, Rob Hills <[EMAIL PROTECTED]> wrote: > > > > On 11 Feb 2008 at 18:37, Rob Hills wrote: > > > In your UserDaoHibernate class, you have a getUserPassword method which I &

Re: [appfuse-user] Appfuse 2.01 + Struts + modified core classes -> password confusion

2008-02-12 Thread Rob Hills
Hi All, Not sure if Matt missed this one, or if he's been too busy to reply, but I wondered if anyone else knows the answer to the question below... On 11 Feb 2008 at 18:37, Rob Hills wrote: > In your UserDaoHibernate class, you have a getUserPassword method which I > notice manages

Re: [appfuse-user] Appfuse 2.01 + Struts + modified core classes -> password confusion

2008-02-11 Thread Rob Hills
or versions, the > logic depended on a "encryptPassword" hidden field being created (by > JavaScript). > > On 2/10/08, Rob Hills [EMAIL PROTECTED] wrote: >> My app is based on Appfuse 2.0 (manually upgraded to 2.01) and Struts. >> >> I modified the core classes

Re: [appfuse-user] Appfuse 2.01 + Struts + modified core classes -> password confusion

2008-02-11 Thread Rob Hills
s point without Hibernate helpfully flushing the user's updated details for me? On 12 Feb 2008 at 0:03, Rob Hills wrote: > Well, after a little diversion to set up so I could trace into > UserManagerImpl, > I've worked out what's happening, but not why... > > On 1

Re: [appfuse-user] Appfuse 2.01 + Struts + modified core classes -> password confusion

2008-02-11 Thread Rob Hills
e for some time so the pattern is presumably OK. I'm still not sure what I've done to change this behaviour but will keep hunting to see if I can work it out. > On 2/10/08, Rob Hills <[EMAIL PROTECTED]> wrote: > > Hi All, > > > > My app is based on Appf

Re: [appfuse-user] Appfuse 2.01 + Struts + modified core classes -> password confusion

2008-02-11 Thread Rob Hills
Hi Michael, Michael Horwitz wrote: On 2/11/08, *Rob Hills* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: Hi Michael, Michael Horwitz wrote: Is it possible you've done something else to get the Appfuse source pulled down? No - defini

Re: [appfuse-user] Appfuse 2.01 + Struts + modified core classes -> password confusion

2008-02-11 Thread Rob Hills
emails and I'm convinced the source is not in my Maven repository. Is it possible you've done something else to get the Appfuse source pulled down? Cheers, Rob Hills Waikiki, Western Australia - To unsubscribe,

Re: [appfuse-user] Appfuse 2.01 + Struts + modified core classes -> password confusion

2008-02-11 Thread Rob Hills
Hi Michael, Michael Horwitz wrote: On 2/11/08, *Rob Hills* <[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>> wrote: Thanks for the reply. I suspect something I'm doing with my user class is messing with the Service layer logic, but it's a bit tricky to work

Re: [appfuse-user] Appfuse 2.01 + Struts + modified core classes -> password confusion

2008-02-11 Thread Rob Hills
Hi Again Matt, I should have qualified my request below Rob Hills wrote: Hi Matt, Matt Raible wrote: In 2.0.1, password encryption logic moved into the service layer. http://issues.appfuse.org/browse/APF-666 Click on the FishEye link to see the changes committed to SVN. Maybe that has

Re: [appfuse-user] Appfuse 2.01 + Struts + modified core classes -> password confusion

2008-02-11 Thread Rob Hills
a bit but haven't been able to find any description of how to do this. It'd make a good FAQ IMHO, so I'm happy to add that to the Eclipse page (or the FAQ page) once I find out how to do it. Cheers, Rob Hills Waikiki, Western Australia -

[appfuse-user] Appfuse 2.01 + Struts + modified core classes -> password confusion

2008-02-10 Thread Rob Hills
takes place, or what I may have done to stop that happening. I assume that this works correctly in an unmodified Appfuse app, so can someone please explain to me where the password encryption happens so I can work out how I've broken it? Cheers, Rob Hills Waikiki, Western Au

Re: [appfuse-user] How to get authentication info into a Spring bean / Hibernate interceptor

2008-02-05 Thread Rob Hills
AuditInfoListenerBean during a successful login and look inside the event object that's passed in, you'll find a complete user object in there somewhere - I remember seeing it when I was debugging my own listener. Don't have access to my own app ATM or I'd look it up so I coul

Re: [appfuse-user] Image in Velocitymenudisplayer

2008-02-04 Thread Rob Hills
if", ie the "images" folder there starts with a lowercase "i". HTH, Rob Hills Waikiki, Western Australia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [appfuse-user] How to get authentication info into a Spring bean / Hibernate interceptor

2008-02-04 Thread Rob Hills
nt is, it works and i didn't have time to experiment with it at the time :-) private HttpServletRequest getRequest() { return (HttpServletRequest) ((ServletRequestAttributes) RequestContextHolder.getRequestAttributes()).getRequest(); } HTH, Rob Hills W

Re: [appfuse-user] How to get authentication info into a Spring bean / Hibernate interceptor

2008-02-02 Thread Rob Hills
he servletContext attribute - it's just injected automatically. In my case, I inject a companyManager to give me access to the relevant Company details I need from the db - you can put anything you like in there (or nothing of course). HTH, Rob Hills Waikiki, Western Australia

Re: [appfuse-user] How to get authentication info into a Spring bean / Hibernate interceptor

2008-02-02 Thread Rob Hills
sible to the whole application without individual classes having to have access to the Servlet Context, but I don't know if that's possible. I seem to recall people talking about ThreadLocal in that context, but a quick Google for j2ee and ThreadLocal turned up an alarming list of "

[appfuse-user] Hibernate Named Query + Result Transformer + Boolean + Oracle woes

2008-01-31 Thread Rob Hills
that describes to me what they do - maybe a different one would work? At the moment, I'm looking at having to refactor this part of the app and most of the ways I've contemplated will involve quite a bit of work, especiall

[appfuse-user] Markup in 18n resource files

2008-01-27 Thread Rob Hills
8n message, but to escape any variables included in it? TIA, Rob Hills Waikiki, Western Australia Mobile +61 (412) 904-357 Fax: +61 (8) 9529-2137 - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [appfuse-user] Calling action method with parameters from JSP

2008-01-22 Thread Rob Hills
ist of objects as follows .. How do I call the getCommentCount method inside the s:iterator passing an instance of the current post? ${commentCount(post)} does not seem to work and I cannot find any reference on the net allowing me to call a method in my action from the JSP u

Re: [appfuse-user] Dynamically adding to AppFuse 2.0 menu

2008-01-22 Thread Rob Hills
Hi Mike, Michael Horwitz wrote: This example is for a database driven menu: http://demo.raibledesigns.com/struts-menu/dynamicMenu.jsp It sounds as if it could be a useful starting point for your use case? That looks perfect, thanks for the link! Cheers, Rob Hills Waikiki, Western Australia

[appfuse-user] Dynamically adding to AppFuse 2.0 menu

2008-01-22 Thread Rob Hills
e what I need. Can someone give me a bit of a clue to help - maybe a classname, or a Doc url? TIA, Rob Hills Waikiki, Western Australia Mobile +61 (412) 904-357 Fax: +61 (8) 9529-2137 - To unsubscribe, e-mail: [EMAIL PROTE

Re: [appfuse-user] SOLVED - AppFuse 2.0 + Hibernate - logging SQL Parameters

2008-01-14 Thread Rob Hills
it out all again in JIRA - all that copying and pasting would strain my fingers ;-) If you'd prefer JIRA to have a more complete record, I'm happy to modify it and put the detail in. Cheers, Rob Hills Waikiki, Western Australia Mobile +61 (412) 904

RE: [appfuse-user] SOLVED - AppFuse 2.0 + Hibernate - logging SQL Parameters

2008-01-14 Thread Rob Hills
Hi All, On 14 Jan 2008 at 18:20, Rob Hills wrote: > On 14 Jan 2008 at 11:32, GAFFAR Abdul Khaliq wrote: > > > Is it possible to see the values passed to sql queries ?During debugging > > ,it would be really great to know what values are being passed to sql > >

Re: [appfuse-user] Yikes Error Page

2008-01-14 Thread Rob Hills
log4j: > > > > > > > > > > > > Thanks for that, it's really cool. Also, applying what I've learned about placeholders and sql logging, I expect you can use placeholders for the SMTP details so you can specify appropriate details for dev, test and production environments. Che

RE: [appfuse-user] SOLVED - AppFuse 2.0 + Hibernate - logging SQL Parameters

2008-01-14 Thread Rob Hills
ppFuse 2 is in the log4j.xml file: Note, you have to set the value to TRACE - with DEBUG, you don't get to see the parameter values! I've not yet had a chance to see if placeholder will work there, it'd be cool if it did. HTH, Rob Hills Waikiki, Western Australia Mo

Re: [appfuse-user] SOLVED - AppFuse 2.0 + Hibernate - logging SQL Parameters

2008-01-13 Thread Rob Hills
does something weird to the login process so you can't actually log in to an appfuse app with it switched on. If you're curious, try putting this in your hibernate.cfg.xml: <-- etc --> true <-- etc --> Cheers, Rob Hills Waikiki,

Re: [appfuse-user] Problem with "simple" display-only page - SOLVED

2008-01-13 Thread Rob Hills
I fixed it :-( Maybe later I'll have the time to experiment. On 13 Jan 2008 at 20:17, Matt Raible wrote: > I don't know what could be causing this - I'd suggest you run it > though a debugger and see if that helps at all. If that doesn't help, > you might try c

Re: [appfuse-user] Problem with "simple" display-only page

2008-01-13 Thread Rob Hills
list" method is never called, the stack trace I get indicates that a superclass' "execute()" method is called instead. This makes me suspect that there is some problem with my definition for this action in struts.xml, but I have no idea what it is. FWIW, I've tried

Re: [appfuse-user] Converting JSTL expressions to OGNL

2008-01-12 Thread Rob Hills
Hi Dale, On 12 Jan 2008 at 16:12, Dale Newfield wrote: > Rob Hills wrote: > > > format="%{getText('datetime.format')}"/> > > > value="${#updatedDate}"/> > > name="delivery.lastUpdated" format="%{getTex

Re: [appfuse-user] Converting JSTL expressions to OGNL

2008-01-12 Thread Rob Hills
Hi All, On 11 Jan 2008 at 14:47, Rob Hills wrote: > I've successfully converted my JSTL expressions... I spoke a bit to soon on this and would appreciate any tips on a better way (ie one that works) of doing the following: This mix of Struts, JSTL etc. was clums

[appfuse-user] Converting JSTL expressions to OGNL

2008-01-10 Thread Rob Hills
pped up by this problem in the future. I've successfully converted my JSTL expressions, but would be grateful for any comments on the way I've done it - see below. On 11 Jan 2008 at 13:41, Rob Hills wrote: > On 10 Jan 2008 at 21:34, Matt Raible wrote: > > > I'm assumin

Re: [appfuse-user] AppFuse Struts-2 Basic + Hibernate - upgrade to AppFuse 2.0.1 -> Struts Taglib problem?

2008-01-10 Thread Rob Hills
the expressions to OGNL. If I have a further problem, I'll report back, otherwise I'll report what I did to fix it. Cheers, Rob Hills Waikiki, Western Australia Mobile +61 (412) 904-357 Fax: +61 (8) 9529-2137 - To unsub

Re: [appfuse-user] AppFuse Struts-2 Basic + Hibernate - upgrade to AppFuse 2.0.1 -> Struts Taglib problem?

2008-01-10 Thread Rob Hills
Hi again, On 11 Jan 2008 at 12:17, Rob Hills wrote: > I bit the bullet last night and upgraded my app from AppFuse 2.0 to 2.0.1 > (Struts 2 Basic Archetype + Core Classes + Hibernate). Since > then I've run into a problem with one of my JSPs. It was working prior to > t

[appfuse-user] Neat Maven Dependency Browser tool

2008-01-10 Thread Rob Hills
UI view of maven dependencies that really help to sort out where dependency problems are coming from. Hope this helps someone else as much as it's helped me! Cheers, Rob Hills Waikiki, Western Australia Mobile +61 (412) 904-357 Fax: +6

[appfuse-user] AppFuse Struts-2 Basic + Hibernate - upgrade to AppFuse 2.0.1 -> Struts Taglib problem?

2008-01-10 Thread Rob Hills
lpful. If I replace my expression with a constant value (eg -1), I then get the same type of error complaining about an expression in the "name" attribute of a s:text tag (which also has an expression that was working before I updated). Any suggestions gratefully received. Cheers,

[appfuse-user] AppFuse 2.0 + Struts 2 - Replaceable Variables in struts.xml

2007-12-31 Thread Rob Hills
s expected behaviour? If so, is there a way of putting something like ${route.id} into my struts.xml file so that it isn't replaced, or will I have to refactor the app to use a different parameter name here? Cheers, Rob Hills Waikiki, Western Australia Mobile +61 (412) 904-3

Re: [appfuse-user] Using hsqldb with Appfuse 2

2007-12-20 Thread Rob Hills
ta.xml and then run your tests. Hope that helps to get you started. Cheers, Rob Hills Waikiki, Western Australia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [appfuse-user] How can an Action's list() method disappear in the web container?

2007-12-19 Thread Rob Hills
pefully be deploying the app to the Test server which is another box so I can try running the app there and see if I get the same error. On 12/19/07, Rob Hills <[EMAIL PROTECTED]> wrote: Hi All, Using AppFuse 2.0 + Struts2 I've described this problem before but had no takers

[appfuse-user] How can an Action's list() method disappear in the web container?

2007-12-19 Thread Rob Hills
s this method OK. I've clean-compiled numerous times and I've also completely removed and redeployed the application to Tomcat numerous times. Why does my list() method disappear from my class inside the web container? TIA, Rob Hills Waikiki, Western Australia --

Re: [appfuse-user] Appfuse 2 + Struts2 + hibernate - version incrementing x 2 between "edit" and "save"

2007-12-18 Thread Rob Hills
Hi Dale, Dale Newfield wrote: Rob Hills wrote: A record sitting in the db has the version no 0. User A opens a form to edit the record and hibernate increments the version to 1. As far as hibernate is concerned, I don't understand how there is any difference between "load an obje

Re: [appfuse-user] SOLUTION DOESN'T WORK with Hibernate! Automatic timestamping of all persisted data

2007-12-18 Thread Rob Hills
Rob Hills wrote: Hi Matt, On 18 Dec 2007 at 9:25, Matt Raible wrote: I believe these annotations only works when you're using JPA. I think you're right. I had thought that Annotations like @EntityListeners, @PrePersist, @PreUpdate etc should work when I found th

Re: [appfuse-user] Appfuse 2 + Struts2 + hibernate - version incrementing x 2 between "edit" and "save"

2007-12-18 Thread Rob Hills
Hi Dale, Dale Newfield wrote: Rob Hills wrote: My problem arises when using this last form. If I watch the database while navigating through the Grandparent edit form to the Parent edit form, I see that the version number for the selected Grandparent record increments once when going to the

Re: [appfuse-user] SOLUTION DOESN'T WORK with Hibernate! Automatic timestamping of all persisted data

2007-12-18 Thread Rob Hills
o switch over, but I'll take a look at that. Leaving aside my application code, how difficult is it to switch a basic AppFuse 2.0 + Struts2 + Hibernate app over to Struts2 + JPA? Is it just a matter of tweaking something in the pom.xml? > On 12/18/07, Rob Hills <[EMAIL PROTECTED]>

Re: [appfuse-user] SOLUTION DOESN'T WORK! Automatic timestamping of all persisted data

2007-12-18 Thread Rob Hills
te in AppFuse 2.0, which is a real shame as they promise very useful functionality. On 17 Dec 2007 at 23:55, Rob Hills wrote: > WooHoo! I found a JPA/Hibernate "Event Listener" solution for this, and it's > really easy. As is often the way, I stumbled across it while loo

Re: [appfuse-user] No result defined for action au.com.myapp.webapp.action.DeliveryTonnageAction and result success

2007-12-18 Thread Rob Hills
Hi All, On 14 Dec 2007 at 10:04, Rob Hills wrote: > Nathan Anderson wrote: > > Hmm... that's a bit of a mystery. I don't really have any answers, but > > maybe if I ask some questions it will help :shrug: > > > > >From what I can tell, the buildT

Re: [appfuse-user] Appfuse 2 + Struts2 + hibernate - version incrementing x 2 between "edit" and "save"

2007-12-18 Thread Rob Hills
tion be the best solution, or is there a better way to do this? Thanks, Rob Hills Waikiki, Western Australia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

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

2007-12-18 Thread Rob Hills
stamps for optimistic locking. Unfortunately, I need optimistic locking, otherwise it'd be a very nice, easy solution. Rob Hills wrote: I'm using AppFuse 2.0 + Struts2 + Hibernate. I need to timestamp all of my persisted data. I have a base model class that includes a "las

Re: [appfuse-user] Appfuse 2.0 + Struts + Hibernate - customising Hibernate error messages

2007-12-17 Thread Rob Hills
w all I have to do is get back to working out why I'm getting these dang errors when I'm the only one editing the record :-( Many thanks, Rob Hills Waikiki, Western Australia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[appfuse-user] Appfuse 2.0 + Struts + Hibernate - customising Hibernate error messages

2007-12-17 Thread Rob Hills
for example for the StaleObjectStateException? Cheers, Rob Hills Waikiki, Western Australia - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

[appfuse-user] Appfuse 2 + Struts2 + hibernate - version incrementing x 2 between "edit" and "save"

2007-12-17 Thread Rob Hills
ling another copy (well, two copies) of the entity, but nothing found. I'm guessing its something that OGNL is doing for me, but I can't see what I might have done to my JSP to cause this. Has anyone seen this kind of thing before that can give me a c

Re: [appfuse-user] Appfuse 2.0 + Struts2 Dropdown menus problem

2007-12-17 Thread Rob Hills
my current CSS and JS skills to try and work out how to incorporate such a solution. It sounds like it would be a more attractive solution to the problem if it could be made to work. I'll have to leave this one for now as I have more pressing problems elsewhere. On Dec 17, 2007, at

[appfuse-user] Appfuse 2.0 + Struts2 Dropdown menus problem

2007-12-17 Thread Rob Hills
erence. Unfortunately, my css skills are not really up to diagnosing this problem but I can't believe no-one else has seen the problem and I'm hoping someone who knows their CSS better than I do has already fixed it. Has anyone else seen th

Re: [appfuse-user] Change default date format

2007-12-16 Thread Rob Hills
onResources.properties file and change the format there. That will change the format wherever a date is formatted using the pattern in the JSTL snippet you posted. If you just want to change it in one place, simply replace ${datePattern} with your own format s

  1   2   3   >