Re: h:selectManyCheckbox throwing NullPointerException when none selected. Why?

2005-08-21 Thread steve rock
Figured out the problem. Bug in v1.0.9rc3. Upgraded to v1.0.9m9 and everything works fine. -Steve On 8/19/05, steve rock <[EMAIL PROTECTED]> wrote: > 1.0.9 > -Steve > > On 8/18/05, Rahul Pilani <[EMAIL PROTECTED]> wrote: > > I am really sorry. Must be in a da

Re: h:selectManyCheckbox throwing NullPointerException when none selected. Why?

2005-08-19 Thread steve rock
1.0.9 -Steve On 8/18/05, Rahul Pilani <[EMAIL PROTECTED]> wrote: > I am really sorry. Must be in a daze or something to not see the stacktrace. > > What version of myfaces are you using? > > -Original Message----- > From: steve rock [mailto:[EMAIL PROTECTED] >

Re: h:selectManyCheckbox throwing NullPointerException when none selected. Why?

2005-08-18 Thread steve rock
cked, but not a later one, then the end result would be a null value in > the backing bean due to the later radio button. > > Hope this helps.. > > Rahul > > > -Original Message- > From: steve rock [mailto:[EMAIL PROTECTED] > Sent: Wednesday, August

Re: h:selectManyCheckbox throwing NullPointerException when none selected. Why?

2005-08-17 Thread steve rock
Second request. Stopping me from implementing a new feature in production. I basically have a list of checkboxes on a form that throws an error if none of them are selected. I need to be able to not have to select any checkboxes. Any ideas? -Steve On 8/14/05, steve rock <[EMAIL PROTEC

h:selectManyCheckbox throwing NullPointerException when none selected. Why?

2005-08-14 Thread steve rock
Here's my component. It presents a list of radio stations a user can select. However as part of the business requirements they can have none selected. When I select none and submit the form, I get a NullPointerException. How come? Here is the stack trace: java.lang.NullPointerExcept

Re: SelectItem and Hibernate

2005-06-28 Thread steve rock
What I have done is to create a RequestContextFilter that implements init(), doFilter(), and destroy() on the javax.servlet.Filter interface. The destroy() method gets called after every reqeust to my app. Here I close the db connections. So I keep the connection open for the whole request. This

Re: I have several buttons within a form, depending on which part of form they are on, want the Enter key to trigger different buttons

2005-06-11 Thread steve rock
Perfect, just what I was searching for. I knew there was a way to do this with js, just didn't know the keyword event.keyCode to search on. Thanks. -Steve On 6/11/05, Slawek <[EMAIL PROTECTED]> wrote: > i have answered You yesterday but i cant see my mail, so i do it again... > sht strange is goi

I have several buttons within a form, depending on which part of form they are on, want the Enter key to trigger different buttons

2005-06-09 Thread steve rock
Hi, I have several buttons in my JSF form page. There are also several input fields. What I would like is when the user is in one particular text field and hits Enter, I want to trigger the button associated with it. If I'm in another text field, it should trigger a different button. Basically I

Re: initialize a mangaged bean in application scope at applicationstartup

2005-06-08 Thread steve rock
Actually you can have multiple application startup listeners, each doing it's own thing. You don't need to override StartupServletContextListener. Just make a new one and implement the functionality that you need. For example I have 2 application scope listeners, and one session scope listener. In

App won't start: Error reading standard-faces-config.xml from jar. EOFException: Unexpected end of ZLIB input stream

2005-05-27 Thread steve rock
Hi, Getting this error when starting my app on linux, jboss 4. latest myfaces. Have no idea what is causing this nor how to fix. The app works on my local notebook, but not on our testing server. 2005-05-27 10:40:12,075 INFO [org.apache.myfaces.config.FacesConfigurator] Reading standard config o

Re: MyFaces and Tomcat - cant get it to work

2005-05-27 Thread steve rock
I am having the same problem. Myfaces .9 + JBoss 4 Is this the error you were getting on app startup? Not sure what this means. -Steve 2005-05-27 10:40:12,075 INFO [org.apache.myfaces.config.FacesConfigurator] Reading standard config org/apache/myfaces/resource/standard-faces-config.xml 2005-

Re: Wizard like component

2005-03-24 Thread steve rock
Rolled my own, 3 step wizard. Was pretty simple with JSF. Like Manfried suggests going from one step to the next is really tied to the business rules. In your backing bean add functions like this. protected void processStep() { switch (step) { case 1: clearPla

Re: and dont work

2005-03-10 Thread steve rock
Is your eventHandler bean registered as a managed bean in faces-config.xml? -Steve On Thu, 10 Mar 2005 17:40:10 +, Kostas Karadamoglou <[EMAIL PROTECTED]> wrote: > Does anyone know what's the problem? I really need your help because I > stucked to this error and I cannot solve it!!! :-( >

Re: Calling action within javascript

2005-02-22 Thread steve rock
I think onclick=" return checkPassword(this.form)" then return true from your javascript function to submit, else false to cancle submit. On Tue, 22 Feb 2005 11:29:21 -0600, Doug Ly <[EMAIL PROTECTED]> wrote: > > > > Hi, > > I have a javascript to confirm the passwords are matched which w