473,406 Members | 2,273 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

JSF pages - pressing a button first calls the constructor

Hello,
I 'm making my first JSF page using jdeveloper. The problem i'm facing is that every time i press a button for which i have an action method, the constructor is called first. I only want the constructor to be called at the beginning of the application.

Any help would be highly appreciated.
Following is the jsf button code:

Expand|Select|Wrap|Line Numbers
  1.   <h:commandButton value="Submit"
  2.                          id="commandButton2"
  3.                          action="#{backing_hello1.commandButton2_action}"/>
  4.       </h:form></body>
  5.  
  6.  
Jun 27 '08 #1
3 1729
Dököll
2,364 Expert 2GB
What is the name of your constructor?
Jun 29 '08 #2
JosAH
11,448 Expert 8TB
What is the name of your constructor?
Riddle: for a class named X what would be the name of its constructor(s)?

kind regards,

Jos ;-)
Jun 29 '08 #3
Dököll
2,364 Expert 2GB
Riddle: for a class named X what would be the name of its constructor(s)?

kind regards,

Jos ;-)
X to the third power:-)
Jun 29 '08 #4

Sign in to post your reply or Sign up for a free account.

Similar topics

2
by: McGeeky | last post by:
I use page_load to call a stored procedure and populate the form. When the user clicks the OK button on the form I have implemented an event handler behind it (OKButton_Click()) that calls another...
2
by: Trint Smith | last post by:
These don't work with system.web.ui.webcontrols.button: Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click, Button2.Click .... End Sub...
1
by: Claire | last post by:
I'm writing an application with custom skinned controls. I have a text editor form with a rich edit control. Because there's no toolbuttons in the skinned control set, I have to use normal ones for...
0
by: mshafim | last post by:
Hello, Is it possible to press a button on IE explorer window from a VB .Net application form? I see that we can open a handle to IE window, but is it possible press a button on that window from...
0
by: mshafim | last post by:
Can someone tell me how to press a button on another application (e.g., open IE webpage) through an application in VB .Net? Thanks in advance Shafi.
4
by: travellinman | last post by:
i'm trying to create a report that is based on selections from the user. i'm using a form which creates a query, by passing on the sql statement (from a hidden textbox) into the new query "query1"....
2
by: almurph | last post by:
Hi everyone, I have an APS.NET (v1.1) type button on a webform page. What I want it to do is when the user clicks it, it then calls another webform page that appears in a pop-up window. Now I...
2
by: ReneMarxis | last post by:
Hello i need some hints on how to implement a small app that does click an "Ok" button on a form that comes up from one other app once every 10 minutes. Something like "Push the freaking...
2
by: William | last post by:
Hi I've created a page with only 'n blank table control on it. When clicking a button, the table populates with various textboxes and dropdown lists to make up a complete form. In the last row...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.