Re: [appfuse-user] testSave fails using custom property editor

2007-08-16 Thread syg6
Howdy. Did both of those things but it hasn't fixed either one of my problems. I suspect that the lazyLoadingFilter would eliminate errors when you try to access a Collection in a jsp without first initializing it, which might come in handy. But I still get duplicate and triplicate records in th

AW: [appfuse-user] Asynchronous task

2007-08-16 Thread Peter Schneider-Manzell
Hi! Take a look at the springframework docu: http://www.springframework.org/docs/reference/scheduling.html Bye, Peter -Ursprüngliche Nachricht- Von: benoit moraillon [mailto:[EMAIL PROTECTED] Gesendet: Donnerstag, 16. August 2007 11:00 An: users@appfuse.dev.java.net Betreff: [appfuse-

Re: [appfuse-user] How to get an iText PDF result

2007-08-16 Thread Dale Newfield
Bron Selle wrote: javax.servlet.ServletException: Could not execute action Means just that, which means the problem isn't with the result, but rather the action proceeding it. For example, does it have a "public String execute()" method? My current entry xwork.xml looks like this:

[appfuse-user] How to get an iText PDF result

2007-08-16 Thread Bron Selle
My application is based on AppFuse 1.9.3 with WebWork I am trying to add a printOffer action that uses iText to render PDF. I have tried a couple of different approaches, but when the action is called by selecting an item from the offerList, I just get a vague error: javax.servlet.ServletExc

Re: [appfuse-user] Help please

2007-08-16 Thread Developer Abe
The following tutorial should help you. http://downside.ch/blog/?page_id=4 http://downside.ch/hibernate/hibernatetutorial-1.4.pdf I think the tutorial covers what you want to do. Regards, Abe On 8/16/07, Ding, Qin <[EMAIL PROTECTED]> wrote: > > Abc: > > > > Yest I mean Hibernate. > > > > abs

Re: [appfuse-user] Asynchronous task

2007-08-16 Thread Trent
On Thu, 16 Aug 2007 11:00:10 +0200, benoit moraillon wrote > Do you know what is the best way to perform asyncrhonous tasks with appfuse > ? If they're recurring tasks, then use quartz. http://www.lucianofiandesio.com/javatales/qtzfuse.html If they're, not, then throw in mule or some other jms-b

RE: [appfuse-user] Help please

2007-08-16 Thread Ding, Qin
Abc: Yest I mean Hibernate. abstract class textType{ protected String name; } class Note extends TextType{ } Class Discription extends TextType{ } Class comment extends TextType{ } Table TextType Id (sequence) Name (discriminator) varchar(8) Example data: 1, n

Re: [appfuse-user] Help please

2007-08-16 Thread Developer Abe
Qin, I am not sure what part of your app you want to create a hierarchy relationship in. I am guessing you mean Hibernate. Can you describe the problem you are trying to solve in more depth. Regards, Abe On 8/14/07, Ding, Qin <[EMAIL PROTECTED]> wrote: > > > I use Appfuse 1.9.4/JSF/DB2. I t

Re: [appfuse-user] Choosing a flavor

2007-08-16 Thread Fred Forester
Here's another one. http://ofbiz.apache.org/ Michael Horwitz wrote: Looks like this is a bit of a hot topic at the moment: http://raibledesigns.com/rd/entry/choosing_a_jvm_web_framework As to security, this is provided by ACEGI, so is more or less independent of the choice of web framework.

Re: [appfuse-user] Choosing a flavor

2007-08-16 Thread Michael Horwitz
Looks like this is a bit of a hot topic at the moment: http://raibledesigns.com/rd/entry/choosing_a_jvm_web_framework As to security, this is provided by ACEGI, so is more or less independent of the choice of web framework. Good luck with the choice! Mike On 8/16/07, Steve Jorgensen <[EMAIL PRO

[appfuse-user] Choosing a flavor

2007-08-16 Thread Steve Jorgensen
Hi everyone, I've done some Web application development, and written some Java code, but I'm 100% new to Web development using Java, and that's what I'm now tasked with doing. The number of infrastructure layering choices is pretty daunting, and I'm hoping to get some advice on what ould wor

Re: [appfuse-user] new record based on an existing record

2007-08-16 Thread Fred Forester
trying to use BeanUtils.copyProperties from one pojo to a new instance of the pojo but it always fails when it hits a Double. works fine when the the list displayed. don't understand why it works in ConvertUtils but not when I call it directly. keep getting java.lang.IllegalArgumentExceptio

Re: [appfuse-user] Signup

2007-08-16 Thread Dale Newfield
mikebgx wrote: There are only 2 rows in the app_user table, neither of which have a username or email of test6 I know in the past for some appfuse based projects the 2 rows pre-loaded into the DB from sample-data.xml caused the first two inserts to fail (because those wanted the same PKs tha

Re: [appfuse-user] Signup

2007-08-16 Thread mikebgx
There are only 2 rows in the app_user table, neither of which have a username or email of test6 I haven't managed to get the debugger working, was hoping to avoid it :-( Mike. mraible wrote: > > If you're certain the username doesn't already exist - maybe it's the > e-mail address? That has t

Re: [appfuse-user] Signup

2007-08-16 Thread Matt Raible
If you're certain the username doesn't already exist - maybe it's the e-mail address? That has to be unique as well and can trigger a DataIntegrityViolationException. I'd suggest firing up your debugger and walking through the code to see what's happening along the way. Matt On 8/16/07, mikebgx <

Re: [appfuse-user] Signup

2007-08-16 Thread mikebgx
My User definitely doesn't exist, I checked with MySQL Query Browser. The exception occurs in UserDaoHibernate.saveOrUpdate(). Below is my output after turning up Hibernate logging to DEBUG, I can't see anything wrong, can you? Mike UserDaoHibernate.saveUser(52) | About to call saveOrUpdate()...

Re: [appfuse-user] Signup

2007-08-16 Thread Matt Raible
You might turn up Hibernate logging (in log4j.xml) - that way you can see if the error is happening at the database level. I suspect it is and your user really does already exist. Matt On 8/16/07, mikebgx <[EMAIL PROTECTED]> wrote: > > I'm having problems creating a User from within my app. It se

Re: [appfuse-user] 2.0 M5 DAO upgrade issue

2007-08-16 Thread Michael Horwitz
On 8/16/07, sparqle <[EMAIL PROTECTED]> wrote: > > > I am using JPA-Hibernate and 2.0 M5. I have followed all of the upgrade > notes. > Now, if I have 2 classes (say class A and class B). Suppose an object of > class A can contain one or many class B objects. > > If I have a method like this in my

Re: [appfuse-user] Disabling the remember me service

2007-08-16 Thread jithesh
hi, I have given a session time out of 5 minutes. With in that time intervel if he didnt perform any operation his session will be experied. So when he clickes the any link in that application he will be redirected to the login page. if he enters the correct user id and password appfuse will

[appfuse-user] 2.0 M5 DAO upgrade issue

2007-08-16 Thread sparqle
I am using JPA-Hibernate and 2.0 M5. I have followed all of the upgrade notes. Now, if I have 2 classes (say class A and class B). Suppose an object of class A can contain one or many class B objects. If I have a method like this in my page controller: and suppose all the B objects have already

Re: [appfuse-user] Disabling the remember me service

2007-08-16 Thread Michael Horwitz
I don't quite understand. Please could you detail the steps to re-create the problem? What exactly do you mean by go back to the last page? On 8/16/07, jithesh <[EMAIL PROTECTED]> wrote: > > > hi, > > >I tried both steps , still its going back to the last visited page . > the > problem arises

Re: [appfuse-user] Disabling the remember me service

2007-08-16 Thread jithesh
hi, I tried both steps , still its going back to the last visited page . the problem arises only when a session time out happends... please help for this problem... Thanks. -- View this message in context: http://www.nabble.com/Disabling-the-remember-me-service-tf4261587s2

Re: [appfuse-user] testSave fails using custom property editor

2007-08-16 Thread Michael Horwitz
O.K. To get rid of the problems in the page, uncomment the OpenSessionInView filter + filter mapping in your web.xml. To make it persist the relationship you need to add CascadeType.UPDATE to your list. Mike. On 8/16/07, syg6 <[EMAIL PROTECTED]> wrote: > > > Upon further reflection it seems I nee

Re: [appfuse-user] testSave fails using custom property editor

2007-08-16 Thread syg6
Upon further reflection it seems I need a ManyToMany, not OneToMany. I changed my mappings accordingly: Application POJO private Set places; @ManyToMany( targetEntity=com.myco.myapp.model.Place.class, cascade={CascadeType.PERSIST, CascadeType.MERGE}, fetch = FetchType.EAGER

[appfuse-user] Signup

2007-08-16 Thread mikebgx
I'm having problems creating a User from within my app. It seems to think the User already exists. Any ideas please? Mike Here's my output: (I'm logged in as test hence the msg: Verifying that 'test' can modify 'test6') ApplyForm.cmApprove(133) | User test6 not found, OK, creating cons... Appl

[appfuse-user] new record based on an existing record

2007-08-16 Thread Fred Forester
Hi All, Im an trying to insert a new record into a table where the new record is basically a clone of an existing record. I tried just setting the key field to null and calling save but hibernate complains that the key has been changed. what's the proper way to handle this? Thanks Fred ---

Re: [appfuse-user] testSave fails using custom property editor

2007-08-16 Thread syg6
I do have a hidden 'id' field, and I haven't specified a cascade type. Mind you, when I save an Application it is NOT saving an additional Application in the database nor is it saving an additional record in the applicationplace table. It is performing an UPDATE in the application table and seem

Re: [appfuse-user] testSave fails using custom property editor

2007-08-16 Thread Michael Horwitz
Two things to check: 1) You have a hidden field on your application form which stores the application id. If not there Hibernate will save a new application every time 2) Cascade is set to at least "save-update" for the relationship to place. Mike. On 8/16/07, syg6 <[EMAIL PROTECTED]> wrote

Re: [appfuse-user] testSave fails using custom property editor

2007-08-16 Thread syg6
Asnwered my own damn question, didn't I? That's what happens when you spend 20 minutes typing up a question for a mailing list ... :) What I was missing: in the initBinder() method, instead of binder.registerCustomEditor(Place.class, ppe); it should be: binder.registerCustomEditor(Place.class

Re: [appfuse-user] Public pages

2007-08-16 Thread Michael Horwitz
Not entirely sure what you mean by deeplink. The simplest approach may be to enable the remember me option by default, which would work as long as the cell phone browser is capable of storing/working with cookies. Otherwise you would probably want to issue a token server side and pass a reference

Re: [appfuse-user] Public pages

2007-08-16 Thread Martin Ravell
Hi Mike, Thanks for that. This will solve one issue. Do you know if there is a way I can deeplink passing the username and password though as parameters? I've had my customer request today that they be able to deeplink like this but to include the usual authentication check based on parms (rather

Re: [appfuse-user] struts tags

2007-08-16 Thread tibi
thanks tibi Michael Horwitz wrote: For Struts 2: http://struts.apache.org/2.0.8/docs/tag-reference.html On 8/16/07, *tibi* <[EMAIL PROTECTED] > wrote: can someone point me to the description of the struts-tags? thanks, tibi ps or am i a bit tiere

[appfuse-user] testSave fails using custom property editor

2007-08-16 Thread syg6
Hello all. I am using Appfuse M5, Spring MVC + Hibernate. I have an object, Application, that as a 1-many relationship with Place. The Application Pojo looks like this: private Set places; @OneToMany (fetch = FetchType.EAGER) @JoinTable( name="applicationplace", joinColumns = { @J

Re: [appfuse-user] struts tags

2007-08-16 Thread Michael Horwitz
For Struts 2: http://struts.apache.org/2.0.8/docs/tag-reference.html On 8/16/07, tibi <[EMAIL PROTECTED]> wrote: > > > can someone point me to the description of the struts-tags? > > thanks, > > > tibi > > ps or am i a bit tiered > > ---

[appfuse-user] struts tags

2007-08-16 Thread tibi
can someone point me to the description of the struts-tags? thanks, tibi ps or am i a bit tiered - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [appfuse-user] Adding same user

2007-08-16 Thread ujjala
I didn't do any changes in UserDaoHibernate or UserManagerImpl. I do some changes in user.hbm file and user.java file .I am sending my user.hbm file to you http://hibernate.sourceforge.net/hibernate-mapping-3.0.dtd";>

Re: [appfuse-user] Adding same user

2007-08-16 Thread Michael Horwitz
Which version of AppFuse are you using? Have you modified any of the user management code, e.g. UserDaoHibernate or UserManagerImpl? Mike On 8/16/07, ujjala <[EMAIL PROTECTED]> wrote: > > > When i add a user which is already exist in database then it throws the > following exception. > org.hiber

[appfuse-user] Adding same user

2007-08-16 Thread ujjala
When i add a user which is already exist in database then it throws the following exception. org.hibernate.exception. I get the error also in jsp page. It does not show any message that user already exist. What is the reason please tell me. ConstraintViolationException: could not insert: [org

[appfuse-user] Asynchronous task

2007-08-16 Thread benoit moraillon
Do you know what is the best way to perform asyncrhonous tasks with appfuse ? Thanks in advance, Benoît Moraillon. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: [appfuse-user] radio i18n

2007-08-16 Thread tibi
ok somehow i have a feeling i'm missing a simple option in the radio tag but i solved like this now: in my action: public Map genderMap() { log.debug("getUserList2 is called!"); Map map = new HashMap(); map.put(true, getText("candidate.gender.true")); map.put(false,

Re: [appfuse-user] Public pages

2007-08-16 Thread Michael Horwitz
If you are happy for the page to be publicly accessible from both a phone and the web then simply configure the URL/s to allow anonymous access in security.xml: PATTERN_TYPE_APACHE_ANT /activeUsers.*=ROLE_ADMIN

[appfuse-user] Public pages

2007-08-16 Thread Martin Ravell
What would be the best / simplest way to allow a page to be accessed without having to login to the (Appfuse 2M5) application? Alternatively is there a simple way to allow for the username and password to be passed in a URL which deep links to a given page (bypassing the need to manually login)?