Re: [appfuse-user] AppFuse: script.aculo.us Sortable Lists Question

2007-08-29 Thread JBlythe
Okay! I think your first suggestion (i.e. Using Ajax) is the way forward. As I mentioned in my original post, the script.aculo.us documentation (http://wiki.script.aculo.us/scriptaculous/show/Sortable.serialize) mentions that the final list can be "serialized" and then used to submit (HTTP POST) t

Re: [appfuse-user] AppFuse: script.aculo.us Sortable Lists Question

2007-08-29 Thread Matt Raible
You can get your information back to your application from the client in two ways: 1. Using Ajax - maybe use DWR or Prototype to call an Action/Manager and persist the value. 2. Put the value in a hidden field. When you submit the form, you can grab the value of the hidden field in your Action an

Re: [appfuse-user] AppFuse: script.aculo.us Sortable Lists Question

2007-08-29 Thread JBlythe
Jeez, I'm grateful for your fast reply, but am confused. Perhaps I should restate the issue briefly. I retrieve an ordered list from the database that I can easily display on screen. No problems displaying the list in correct order. With a little script.aculo.us magic, I can move the elements ar

Re: [appfuse-user] AppFuse: script.aculo.us Sortable Lists Question

2007-08-29 Thread Matt Raible
Yes, there's two things - one is persisting the order, the 2nd is using that persisted value to arrange the values on the UI. Maybe you can re-arrange the elements in your action before displaying them? Matt On 8/29/07, JBlythe <[EMAIL PROTECTED]> wrote: > > Matt!! > > Thanks for the prompt reply

Re: [appfuse-user] AppFuse: script.aculo.us Sortable Lists Question

2007-08-29 Thread JBlythe
Matt!! Thanks for the prompt reply. AppFuse totally rocks. You're my hero. Many thanks for the great work. =^D =) I haven't tried your suggestion, but... how would a hidden field return the "edit" made by rearranging a set of values in an on-screen list? I can see that the ordering might be pres

Re: [appfuse-user] AppFuse: script.aculo.us Sortable Lists Question

2007-08-29 Thread Matt Raible
Have you tried putting the value in a hidden field? There's a createFormElement method you can use to create a hidden field on-the-fly. For example: createFormElement("input", "hidden", "encryptPass", "encryptPass", "true", passwordField.form); Matt On

[appfuse-user] AppFuse: script.aculo.us Sortable Lists Question

2007-08-29 Thread John Blythe
Hey Folks: I have a question regarding AppFuse, script.aculo.us, and AJAX. script.aculo.us includes a REALLY useful and slick feature of "Sortable" lists, that allow users to drag and drop items around the screen, arranging the items as they like. (See demo http://wiki.script.aculo.us/script

Re: [appfuse-user] hibernate hierarchy mapping question

2007-08-29 Thread p7k
forgot to add, i also have to take the non-nullable constraint off my @ManyToOne(s). which is probably redundant anyway, i guess all that mappedBy attribute does is enforce non-nullability on the specified field. ??? p7k wrote: > > pardon the n00biness, > > i think i have a need to map thi

[appfuse-user] hibernate hierarchy mapping question

2007-08-29 Thread p7k
pardon the n00biness, i think i have a need to map this object model with hibernate. i tried to make both relationships {Project-Solution} and {Solution-Route} bidirectional by using the following annotations, however it fails: class Project { @OneToMany(targetEntity = Solution.class, mapped

[appfuse-user] hibernate hierarchy mapping question

2007-08-29 Thread p7k
pardon the n00biness, i think i have a need to map this object model with hibernate. i tried to make both relationships {Project-Solution} and {Solution-Route} bidirectional by using the following annotations, however it fails: class Project { @OneToMany(targetEntity = Solution.class, mapped

Re: [appfuse-user] Jasperreports compilation error!

2007-08-29 Thread Matt Raible
Do you have JasperReports listed as a dependency in your pom.xml? Matt On 8/29/07, Jesfre <[EMAIL PROTECTED]> wrote: > > I All. Y have problems with jasperreports compilation when maven try to > compile .jrxml files. > When I compile the .jrxml file with iReport software, this is successful. > Wh

[appfuse-user] Jasperreports compilation error!

2007-08-29 Thread Jesfre
I All. Y have problems with jasperreports compilation when maven try to compile .jrxml files. When I compile the .jrxml file with iReport software, this is successful. Why? There is the error list: Error compiling report design : D:\develop\workpace\inventario\src\main\jasperreports\saleBetween

Re: [appfuse-user] Missing artifiacts

2007-08-29 Thread Matt Raible
You might try running "mvn -U". Matt On 8/29/07, jar77 <[EMAIL PROTECTED]> wrote: > > New to maven and appfuse. Recieve the following error when following the > quickstart. Any ideas? Worked fine the other day.. > > Thanks for help > > mvn archetype:create -DarchetypeGroupId=org.appfuse -Darch

[appfuse-user] Missing artifiacts

2007-08-29 Thread jar77
New to maven and appfuse. Recieve the following error when following the quickstart. Any ideas? Worked fine the other day.. Thanks for help mvn archetype:create -DarchetypeGroupId=org.appfuse -DarchetypeA rtifactId=appfuse-basic-jsf -DremoteRepositories=http://static.appfuse.org/repos itory -

Re: [appfuse-user] Strange @ManyToOne form display problem (Struts2)

2007-08-29 Thread Espen Tjonneland
Got it. :jumping: It seems my lack of understanding of the wiring model had me. In case other people have problems getting it to work I'll post my way to get it to work. 1. Read the documentation 2. Re-read it The problem was that the JSP code needs you to implement the TODO: part(that I missed

[appfuse-user] Appfuse Eclipse integration

2007-08-29 Thread arpit patel
Hi All , I am using appfuse with eclipse and intelli j IDE . Here are the steps. Eclipse IDE 1. When we configure appfuse source code in eclipse at that time we ll get the compilation error to resolve that right click on project -> configure build path -> add jar files. 2. Right click

[appfuse-user] HibernateRelationships Tutorial

2007-08-29 Thread Fred Forester
Hi All, got a question about this. Weblog.java defines a list of Users where Weblog.username = User.username. how would I define the same relationship where instead of username, Weblog had a different field name like username_key so it would be Weblog.username_key = User.username? Also, h

Re: [appfuse-user] dbunit and foreign key

2007-08-29 Thread Matt Raible
Have you tried turning off foreign key constraints when running DbUnit? http://raibledesigns.com/rd/entry/dbunit_tip_turn_off_foreign Matt On 8/29/07, dylan schleppe <[EMAIL PROTECTED]> wrote: > Julien, > wish I had an answer for you but I run into this at times. The problem for > me seems to b

Re: [appfuse-user] dbunit and foreign key

2007-08-29 Thread dylan schleppe
Julien, wish I had an answer for you but I run into this at times. The problem for me seems to be xdoclet not putting the ON DELETE CASCADE statements in the create tables statements. I'd love to hear if anyone else has gotten this to work with mysql. I'm using mysql 5.x and all the tables are in

[appfuse-user] dbunit and foreign key

2007-08-29 Thread Julien C.
Hi, I've got a problem using dbunit. I have a class "Element" which have an collection of "Element" and etc... So when dbunit wants to delete content before insert it makes an error : Embedded error: com.mysql.jdbc.exceptions.MySQLIntegrityConstraintViolationException: Cannot delete or upd

Re: [appfuse-user] hibernate save app-user: 'Row was updated or deleted by another transaction'

2007-08-29 Thread tibi
i think i get the second one will test and add a jira if needed tibi Matt Raible wrote: On 8/28/07, tibi <[EMAIL PROTECTED]> wrote: ok stupid me. it was the version id which was not set correctly. this was not set correctly because i forgot about the candidate = candidateManager.save(cand