[appfuse-user] Problem on view jsp/action

2010-05-18 Thread Juan Antonio
Hello everybody. I have implemented an action with a "prepare()" "update()" and a "validate()" method. I have mapped it like: /WEB-INF/pages/configuracion_cliente.jsp mainMenu mainMenu I added it to the menu, and when i enter, its executed

Re: [appfuse-user] Problem on view jsp/action

2010-05-18 Thread Dustin Pearce
You action's "success" result is a redirect back to the mainMenu. I am assuming that you are returning "success" from your update() method. -D On May 18, 2010, at 4:25 PM, Juan Antonio wrote: > > Hello everybody. > > I have implemented an action with a "prepare()" "update()" and a > "validat

Re: [appfuse-user] Problem on view jsp/action

2010-05-18 Thread Juan Antonio
Thanks, for your quick response. Yes, it returns SUCCESS, but i can't access to the form, I try to enter, it goes through every method, and then returns to the mainMenu. I try to do the same as "saveUser" or "editUser" action. But it doesn't stops to let me update the data with the form. Ch

Re: [appfuse-user] Problem on view jsp/action

2010-05-18 Thread Dustin Pearce
It seems as though you are accessing the wrong action. Typically, there is an action for rendering the form and then an action for handling the posted form. It would appear you have the POST action "updateUserData", but you are missing the form action. You need something like: /

Re: [appfuse-user] Problem on view jsp/action

2010-05-18 Thread Juan Antonio
Thanks, it looks like it works, but the jsp doesn't render. :( The log doesn't give me any clue. I use a ModelDriven to recover a model bean, and I use the properties name to populate the form. Any idea? Thank you. - Original Message - From: "Dustin Pearce" To: Sent: Wednesday,

Re: [appfuse-user] Problem on view jsp/action

2010-05-18 Thread Juan Antonio
Oh, I know what is the problem. I try to recover an ArrayList to populate a select. from #application.types, and it throws an java.lang.NullPointerException. Cheers. - Original Message - From: "Dustin Pearce" To: Sent: Wednesday, May 19, 2010 1:47 AM Subject: Re: [appfuse-user] Pr

[appfuse-user] Re: Appfuse 2 and netbeans

2010-05-18 Thread ErEcTuS
Hello Matt, thanks for responding. Yeah i did what you advised me. I use netbeans 6.8, I created a maven project, i picked my pom.xml and my project was there. First i wanted to ask you, what's the difference between trying Build and Run? I build the project, my Mysql db is ok, the three tables

[appfuse-user] Populate a select with a list from servletcontext

2010-05-18 Thread Juan Antonio
Hello again: I have a jsp code like this: Where I populate a select from the a ServletContext attribute: public class UserDataListener implements HttpSessionAttributeListener, ServletContextListener { ... public void contextInitialized(ServletContextEvent sce) {

Re: [appfuse-user] Populate a select with a list from servletcontext

2010-05-18 Thread Dustin Pearce
Try #attr.types When you say sometimes, do you mean each time you load the page it works sometimes and if you reload sometimes it works, or it never works? Also, an ArrayList is a container so you don't need to initialize its size. I don't think you are using the capacity parameter in the con