I have to run the code twice

I'm running a jmf class that will register a camera(attached to the computer) and show picture from the camera. My problem is that first time i run the code i get the following error:
"java.io.IOException: java.lang.Error: Couldn't initialize capture device
javax.media.NoDataSourceException: Error instantiating class: com.sun.media.protocol.v4l.DataSource : java.io.IOException: java.lang.Error: Couldn't initialize
capture device"
but the next time i run the code everything works properly.

ok sorry
Here comes the code:
//package JMF;
import java.awt.*;
import java.awt.event.*;
import java.io.*;
import javax.media.*;
import javax.media.format.*;
import javax.media.protocol.*;
//import com.sun.media.protocol.v4l.*;
public class GetVid extends Frame implements ActionListener, ItemListener, WindowListener,
ControllerListener {
CaptureDeviceInfo videoCDI = null;
String videoDeviceName = null;
Player dualPlayer;
Format videoFormat;
DataSource ds; //of the capture devices
public GetVid(String title) {
super(title);
addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent we) {
dispose();
MenuBar mb = new MenuBar();
setMenuBar(mb);
Menu menuConfigure = new Menu("Configure");
mb.add(menuConfigure);
Menu menuAction = new Menu("Action");
mb.add(menuAction);
/* menu items for Configure */
MenuItem menuItemSetting = new MenuItem("Capture Device");
MenuItem menuItemSetting2 = new MenuItem("Register Device");
menuItemSetting.addActionListener(this);
menuItemSetting2.addActionListener(this);
menuConfigure.add(menuItemSetting);
menuConfigure.add(menuItemSetting2);
/* menu items for Action */
MenuItem a1 = new MenuItem("Capture");
a1.addActionListener(this);
menuAction.add(a1);
MenuItem a2 = new MenuItem("Play");
a2.addActionListener(this);
menuAction.add(a2);
MenuItem a3 = new MenuItem("Stop");
a3.addActionListener(this);
menuAction.add(a3);
public void actionPerformed(ActionEvent ae) {
String command = ae.getActionCommand().toString();
if (command.equals("Register Device")) {
registerDevices();
else if (command.equals("Capture Device")) {
//registerDevices();
captureDevices();
else if (command.equals("Play")) {
play();
else if (command.equals("Capture")) {
capture();
else if (command.equals("Stop")) {
stop();
void captureDevices() {
CaptureDeviceDialog cdDialog = new
CaptureDeviceDialog(this, "Capture Device", true);
cdDialog.show();
if (!cdDialog.hasConfigurationChanged())     {
return;
//configuration has changed, update variables.
videoCDI = cdDialog.getVideoDevice();
if (videoCDI!=null) {
videoDeviceName = videoCDI.getName();
//Get formats selected, to be used for creating DataSource
videoFormat = cdDialog.getVideoFormat();
void registerDevices() {
//V4LAuto v4la = new V4LAuto();
CaptureDeviceInfo cdi = null;
try {
cdi = new com.sun.media.protocol.v4l.V4LDeviceQuery(0);
if ( cdi != null && cdi.getFormats() != null &&
cdi.getFormats().length > 0) {
// Commit it to disk. Its a new device
if (CaptureDeviceManager.addDevice(cdi)) {
System.err.println("Added device " + cdi);
CaptureDeviceManager.commit();
} catch (Throwable t) {
System.err.println(t);
if (t instanceof ThreadDeath)
throw (ThreadDeath)t;
void capture() {
if (videoCDI==null)     {
captureDevices();
try {
if (!(videoCDI==null)) {
ds = Manager.createDataSource(videoCDI.getLocator());
dualPlayer = Manager.createPlayer(ds);
dualPlayer.addControllerListener(this);
dualPlayer.start();
else
System.out.println("CDI not found.");
catch (Exception e) {
System.out.println(e.toString());
void play() {
try {
FileDialog fd = new FileDialog(this, "Select File", FileDialog.LOAD);
fd.show();
String filename = fd.getDirectory() + fd.getFile();
dualPlayer = Manager.createPlayer(new MediaLocator("file:///" + filename));
System.out.println("Adding controller listener");
dualPlayer.addControllerListener(this);
System.out.println("Starting player ...");
dualPlayer.start();
catch (Exception e) {
System.out.println(e.toString());
void stop() {
if (dualPlayer!=null) {
dualPlayer.stop();
dualPlayer.deallocate();
public synchronized void controllerUpdate(ControllerEvent event) {
System.out.println(event.toString());
if (event instanceof RealizeCompleteEvent) {
Component comp;
System.out.println("Adding visual component");
if ((comp = dualPlayer.getVisualComponent()) != null)
add ("Center", comp);
System.out.println("Adding control panel");
if ((comp = dualPlayer.getControlPanelComponent()) != null)
add("South", comp);
validate();
public void itemStateChanged(ItemEvent ie) {}
public void windowActivated(WindowEvent we) {}
public void windowClosed(WindowEvent we) {}
public void windowClosing(WindowEvent we) {}
public void windowDeactivated(WindowEvent we) {}
public void windowDeiconified(WindowEvent we) {}
public void windowIconified(WindowEvent we) {}
public void windowOpened(WindowEvent we) {}
public static void main(String[] argv) {
GetVid myFrame = new GetVid("Java Media Framework Project");
myFrame.show();
myFrame.setSize(300, 300);

Similar Messages

  • How do you upgrade OS X 10.4.11 tiger to a higher version of operating system such as OS x 10.5.6 as have tried running the upgrade disc on imac 5,1 with intel processor but only get message saying this cannot be installed with no further explanation ?

    how do you upgrade OS X 10.4.11 tiger to a higher version of operating system such as OS X 10.5.6 as have tried running the upgrade disc on imac 5,1 with intel processor but only get message saying this cannot be installed with no further explanation ?

    Retail Leopard disc looks like this;
    (The disc itself has the same logo). If the one you've got is grey it simply won't work.
    Given the retail and second hand prices of Leopard (usually some on Amazon MP), you'll probably find it cheaper to go directly to Snow Leopard, although there could be software updates and printer driver problems that could nullify the difference.

  • Hi Since updating to ios 7.04 i have noticed the phone consumes so much more power. I have to charge the phone twice sometimes 3 times a day. WHY?

    Hi Since updating to ios 7.04 i have noticed the phone consumes so much more power. I have to charge the phone twice sometimes 3 times a day. WHY?

    Hi,
    Thanks! I forgot to add, I have debonded and rebonded the bluetooth in car and phone and have carried out 3 restores on the phone in my ITunes. All to no avail. I have also jsut spent £40 on a lead from Ford that has made no difference too! I went to them today to request a software upgrade on my car as I though perhaps the lack of connectivity in the car was down to the car being behind the iOS5 software but was informed there was no need for an upgrade and this problem is purely an apple problem! Is there any way around the downgrade? Or are apple gong to resolve this problem at all??

  • TS3694 help, im trying to update my iphone but it kept saying connect to itunes, i have updated, run the file over and over but its still stuck to connect to itunes, wat can i do? thanx

    help, im trying to update my iphone but it kept saying connect to itunes, i have updated, run the file over and over but its still stuck to connect to itunes, wat can i do? thanx

    See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...
    Be sure to Follow ALL the Steps...
    But... if the Device has been Modified... this will Not necessarily work

  • How to run the code generator

    I urgently need to know how to run the code generator using creator. Can anyone assist? I cant find any tips in the forums.

    I am following the procedure to create a new custom component (or extend an existing component) available at http://developers.sun.com/prodtech/javatools/jscreator/reference/techart/2/writing_custom_components.html.
    Part of the procedure says: you need to use the JSC to run the code generator based on sun-faces-config.xml metadata.

  • HT1146 Why do I have to delete the messages twice?

    Every time I want to delete an email I have to repite the action twice. Why?

    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!

  • HT201209 I have rubbed half the code off what should I do ?

    I got an iTunes voucher and I have rubbed half the code off.....is there anything I can do?

    iTunes Store: Invalid, inactive, or illegible codes

  • Could you help me with an app situation? We purchased several codes for Splashtop to install on our iPad 2's. It was working great but now that we upgraded the OS they have disappeared. The codes that we purchased are giving us an error that they have alr

    Could you help me with an app situation? We purchased several codes for Splashtop to install on our iPad 2's. It was working great but now that we upgraded the OS they have disappeared. The codes that we purchased are giving us an error that they have already been used. So far it has only been 2 iPads. 
    Any solutions?

    The compiler is highlighting the areas you got wrong, although the error messages are somewhat confusing.
    Error 1: NSLog is a function and needs to be called as such, see e.g. the circleArea call on the line above. Functions are called using the function-name with its arguments in paratheses e.g. foo(12, 13).
    Error 2: looks like a typo, defining a function is done as function-name(... <arguments> ...) { ... <body> ...}. In your code there is a ";" between the arguments and the body that should not be there, you probably copy pasted it from the forward declaration at the top of the source codde file.

  • TS1292 I am having trouble with my iTunes Gift card code. It says I have not entered the code correctly when I have-repeatedly. How can I redeem my iTunes voucher?

    I am having trouble with my iTunes Gift card code. It says I have not entered the code correctly when I have…repeatedly. How can I redeem my iTunes voucher?

    If the card was issued in the same country as you and your account are based and the page that you posted from doesn't help, then you will need to try contacting iTunes Support (you will probably need to give them images of the front and back of the card, and possibly its receipt) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then iTunes Cards And Codes

  • TS1292 What do u if u have scratched off the code on the back of the iTunes card and u don't have the recpit?

    What do u do if u have scratched off the code on the back off the I tunes card and I do not have the receipt? Meaning the code is not visible for me to redeem.

    If the page that you posted from doesn't help then you will need to try contacting iTunes support (you will need to give them as much of the serial number and activation code from the card as you can read) : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then iTunes Cards And Codes

  • Strange prob... to get correct o/p we have to run this prog twice ?????????

    hi,
    my problem is that i have created one bat file and i want to run that file in java but it is not running properly. the problem is .......
    i have created one bat file named "file1.bat" & content of this file is as follows :-
    [ ag > b.txt]
    (and content of file "ag" is "aaaaaaa" )
    now i am trying to run this bat file in java and want to read this b.txt in which i have redirected the content of file "ag".
    for that i have written the code like this:-file name is "runbf.java"
    import java.awt.*;
    import java.lang.Runtime;
    import java.io.*;
    public class DriveVol
    public static void main(String args[]) throws IOException
    int volumn;
    Runtime r = Runtime.getRuntime();
    r.exec("ss.bat");
    FileInputStream fp;
    fp = new FileInputStream("b.txt");
    flush();
    do
    volumn = fp.read();
    System.out.print((char)volumn);
    }while(volumn != -1);
    fp.close();
    when i am running this programme first it is not displaying the content of b.txt. but when u run this prog twice then only it 'll give the correct ans. what i mean is, i'll explain that stepwise.
    1. as per my prog. -- r.exec("aa.bat") -- this line 'll execute first. so content of ag 'll redirect to file "b.txt"
    2. now i am trying to read the file "b.txt" using FIleInputStream...
    3. but first time it is giving some garbbage value.when i give --c:jdk1.3\bin>java runbf
    4. but the very next moment when again i run that file - c:jdk1.3\bin>java runbf
    it 'll give the correct value.
    5. again when i change the content of file ag(suppose "bbbbbbb"). & try to run "runbf.java" like this-
    -- c:jdk1.3\bin>java runbf --
    6. then it 'll display the value "aaaaaa". now when again i run that file
    it 'll give the correct value "bbbbbb"
    7. so every time i have to run that "runbf.java" twice for printing the correct
    value of file "b.txt"
    so what i think is that, it is not refreshing the data of file "b.txt". after executing this line
    r.exec("aa.bat");
    so is there any method to refresh the data of file "b.txt"??????
    i think u 'll try to understand my problem...
    so please help me to get the ans.......
    thx.........

    Cuz r.exec is asynchronous, dummy. Read the friggin API. It starts a background process. If you wanna wait for it to finish, then call
    Process p = r.exec(...);
    p.waitFor(whatever).

  • Have to click the button twice to invoke its action!!!!

    I am using netbeans 5.5 visual web pack and tomcat server for my JSF project.
    In one of my pages i have to click the submit button twice to invoke its action.
    I searched forum for the answer but could not find any that could solve my problem.
    Whenever i first click the button from the lifecycle listener class i used i found the application goes through following phases:
    BeforePhase: RESTORE_VIEW 1
    AfterPhase: RESTORE_VIEW 1
    BeforePhase: APPLY_REQUEST_VALUES 2
    com.sun.rave.web.ui.renderer.UploadRenderer::decode()
    com.sun.rave.web.ui.renderer.UploadRenderer::     Looking for id form1:citizenshipFileUPloadField_com.sun.rave.web.ui.upload
    com.sun.rave.web.ui.renderer.UploadRenderer::     Found id form1:citizenshipFileUPloadField_com.sun.rave.web.ui.upload
    AfterPhase: APPLY_REQUEST_VALUES 2
    BeforePhase: RENDER_RESPONSE 6
    AfterPhase: RENDER_RESPONSE 6There is no INVOKE_APPLICATION phase in first click. In second click, the status i got is:
    BeforePhase: RESTORE_VIEW 1
    AfterPhase: RESTORE_VIEW 1
    BeforePhase: APPLY_REQUEST_VALUES 2
    com.sun.rave.web.ui.renderer.UploadRenderer::decode()
    com.sun.rave.web.ui.renderer.UploadRenderer::     Looking for id form1:citizenshipFileUPloadField_com.sun.rave.web.ui.upload
    com.sun.rave.web.ui.renderer.UploadRenderer::     Found id form1:citizenshipFileUPloadField_com.sun.rave.web.ui.upload
    AfterPhase: APPLY_REQUEST_VALUES 2
    BeforePhase: PROCESS_VALIDATIONS 3
    AfterPhase: PROCESS_VALIDATIONS 3
    BeforePhase: UPDATE_MODEL_VALUES 4
    AfterPhase: UPDATE_MODEL_VALUES 4
    BeforePhase: INVOKE_APPLICATION 5
    AfterPhase: INVOKE_APPLICATION 5
    BeforePhase: RENDER_RESPONSE 6
    AfterPhase: RENDER_RESPONSE 6Now the INVOKE_APPLICATION phase is invoked.
    I have <h:messages /> tag but no errors could be seen.
    What can be the reasons behind this problem

    Well the code that is producing the problem is quite big. Anyway i will post it, hoope you can get something out of it.
    The jsp page is:
    <ui:body binding="#{ReceptionPage$CompanyPersonPage.body1}" id="body1" style="-rave-layout: grid">
                        <div align="center">
                            <ui:staticText binding="#{ReceptionPage$CompanyPersonPage.staticText1}" id="staticText1"
                                style="font-family: Georgia,'Times New Roman',times,serif; font-size: 18px; font-weight: bold" text="Company Person Page"/>
                        </div>
                        <div align="left" style="color:red;font-weight:bold;layout:table;">
                            <h:messages id="errMsgs"/>
                        </div>
                        <ui:form binding="#{ReceptionPage$CompanyPersonPage.form1}" id="form1">
                            <ul>
                                <li>
                                    <ui:label binding="#{ReceptionPage$CompanyPersonPage.label1}" id="label1" style="" text="Citizenship Number:"/>
                                    <br/>
                                    <ui:textField binding="#{ReceptionPage$CompanyPersonPage.textField1}" id="textField1" required="true" style="" text="#{CompanyPersonBean.citizenshipNumber}"/>
                                </li>
                                <li>
                                    <ui:label binding="#{ReceptionPage$CompanyPersonPage.label2}" id="label2" style="" text="Name:"/>
                                    <br/>
                                    <ui:textField binding="#{ReceptionPage$CompanyPersonPage.textField2}" id="textField2" required="true" style="" text="#{CompanyPersonBean.name}"/>
                                </li>
                                <li>
                                    <ui:label binding="#{ReceptionPage$CompanyPersonPage.label3}" id="label3" style="" text="Country:"/>
                                    <br/>
                                    <ui:textField binding="#{ReceptionPage$CompanyPersonPage.textField3}" id="textField3" required="true" style="" text="#{CompanyPersonBean.country}"/>
                                </li>
                                <li>
                                    <fieldset style="width:250px;float:left;">
                                        <legend>Temporary Address</legend>
                                        <ui:label binding="#{ReceptionPage$CompanyPersonPage.tempDistrictLabel}" id="tempDistrictLabel" text="District:"/>
                                        <br/>
                                        <ui:dropDown binding="#{ReceptionPage$CompanyPersonPage.tempDistrictDropDown}"
                                            converter="#{ReceptionPage$CompanyPersonPage.integerConverter1}" id="tempDistrictDropDown" immediate="true"
                                            items="#{ReceptionPage$CompanyPersonPage.tempDistrictDataProvider.options['DISTRICT_ID,DISTRICT_NEPALI_NAME']}"
                                            onChange="common_timeoutSubmitForm(this.form, 'ul:li:fieldset:tempDistrictDropDown');" valueChangeListener="#{ReceptionPage$CompanyPersonPage.tempDistrictDropDown_processValueChange}"/>
                                        <br/>
                                        <ui:label binding="#{ReceptionPage$CompanyPersonPage.tempAreaLabel}" id="tempAreaLabel" text="Area(VDC/Municipality):"/>
                                        <br/>
                                        <ui:dropDown binding="#{ReceptionPage$CompanyPersonPage.tempAreaDropDown}"
                                            converter="#{ReceptionPage$CompanyPersonPage.integerConverter3}" id="tempAreaDropDown" items="#{ReceptionPage$CompanyPersonPage.tempAreaDataProvider.options['AREA_ID,AREA_NEPALI_NAME']}"/>
                                        <br/>
                                        <ui:label binding="#{ReceptionPage$CompanyPersonPage.tempWardNoLabel}" id="tempWardNoLabel" text="Ward No:"/>
                                        <br/>
                                        <ui:textField binding="#{ReceptionPage$CompanyPersonPage.tempWardNoTextField}" id="tempWardNoTextField" required="true"/>
                                        <br/>
                                        <ui:label binding="#{ReceptionPage$CompanyPersonPage.tempHouseNoLabel}" id="tempHouseNoLabel" text="House No:"/>
                                        <br/>
                                        <ui:textField binding="#{ReceptionPage$CompanyPersonPage.tempHouseNoTextField}" id="tempHouseNoTextField"/>
                                    </fieldset>
                                    <fieldset style="width:250px;">
                                        <legend>
                                        Permanent Address</legend>
                                        <ui:label binding="#{ReceptionPage$CompanyPersonPage.permDistrictLabel}" id="permDistrictLabel" text="District:"/>
                                        <br/>
                                        <ui:dropDown binding="#{ReceptionPage$CompanyPersonPage.permDistrictDropDown}"
                                            converter="#{ReceptionPage$CompanyPersonPage.integerConverter2}" id="permDistrictDropDown" immediate="true"
                                            items="#{ReceptionPage$CompanyPersonPage.permDistrictDataProvider.options['DISTRICT_ID,DISTRICT_NEPALI_NAME']}"
                                            onChange="common_timeoutSubmitForm(this.form, 'ul:li:fieldset:permDistrictDropDown');" valueChangeListener="#{ReceptionPage$CompanyPersonPage.permDistrictDropDown_processValueChange}"/>
                                        <br/>
                                        <ui:label binding="#{ReceptionPage$CompanyPersonPage.permAreaLabel}" id="permAreaLabel" text="Area(VDC/Municipality):"/>
                                        <br/>
                                        <ui:dropDown binding="#{ReceptionPage$CompanyPersonPage.permAreaDropDown}"
                                            converter="#{ReceptionPage$CompanyPersonPage.integerConverter4}" id="permAreaDropDown" items="#{ReceptionPage$CompanyPersonPage.permAreaDataProvider.options['AREA_ID,AREA_NEPALI_NAME']}"/>
                                        <br/>
                                        <ui:label binding="#{ReceptionPage$CompanyPersonPage.permWardNoLabel}" id="permWardNoLabel" text="Ward No:"/>
                                        <br/>
                                        <ui:textField binding="#{ReceptionPage$CompanyPersonPage.permWardNoTextField}" id="permWardNoTextField" required="true"/>
                                        <br/>
                                        <ui:label binding="#{ReceptionPage$CompanyPersonPage.permHouseNoLabel}" id="permHouseNoLabel" text="House No:"/>
                                        <br/>
                                        <ui:textField binding="#{ReceptionPage$CompanyPersonPage.permHouseNoTextField}" id="permHouseNoTextField"/>
                                    </fieldset>
                                </li>
                                <li>
                                    <ui:label binding="#{ReceptionPage$CompanyPersonPage.label4}" id="label4" style="" text="Phone Number:"/>
                                    <br/>
                                    <ui:textField binding="#{ReceptionPage$CompanyPersonPage.textField4}" id="textField4" style="" text="#{CompanyPersonBean.phoneNumber}"/>
                                </li>
                                <li>
                                    <ui:label binding="#{ReceptionPage$CompanyPersonPage.label5}" id="label5" style="" text="Mobile:"/>
                                    <br/>
                                    <ui:textField binding="#{ReceptionPage$CompanyPersonPage.textField5}" id="textField5" style="" text="#{CompanyPersonBean.mobileNumber}"/>
                                </li>
                                <li>
                                    <ui:label binding="#{ReceptionPage$CompanyPersonPage.label6}" id="label6" style="" text="Email:"/>
                                    <br/>
                                    <ui:textField binding="#{ReceptionPage$CompanyPersonPage.textField6}" id="textField6" style=""
                                        text="#{CompanyPersonBean.emailAddress}" validator="#{ReceptionPage$CompanyPersonPage.textField6_validate}"/>
                                </li>
                                <li>
                                    <b>Person Company Relation:</b>
                                    <br/>
                                    <ui:checkbox binding="#{ReceptionPage$CompanyPersonPage.checkbox1}" id="checkbox1" label="Is Promoter" style=""/>
                                    <br/>
                                    <ui:checkbox binding="#{ReceptionPage$CompanyPersonPage.checkbox2}" id="checkbox2" label="Is Board Oof Director" style=""/>
                                    <br/>
                                    <ui:checkbox binding="#{ReceptionPage$CompanyPersonPage.checkbox3}" id="checkbox3" label="Is Shareholder" style=""/>
                                    <br/>
                                    <br/>
                                </li>
                                <li>
                                    <ui:label binding="#{ReceptionPage$CompanyPersonPage.label7}" id="label7" style="" text="Citizenship Certificate File"/>
                                    <br/>
                                    <ui:upload binding="#{ReceptionPage$CompanyPersonPage.citizenshipFileUPloadField}"
                                        columns="#{CompanyPersonBean.citizenshipFilePath}" id="citizenshipFileUPloadField" required="true" style=""/>
                                </li>
                                <li>
                                    <ui:button action="#{ReceptionPage$CompanyPersonPage.button1_action}" binding="#{ReceptionPage$CompanyPersonPage.button1}"
                                        id="button1" style="height: 23px"
                                        text="Save"/>
                                    ||
                                    <ui:button
                                        binding="#{ReceptionPage$CompanyPersonPage.button2}" id="button2" onClick="window.close()" style="height: 24px" text="Close"/>
                                </li>
                            </ul>
                        </ui:form>
                    </ui:body>
                        The corresponding bean is:
    public class CompanyPerson {
        private String citizenshipNumber;
        private String name;
        private String country;
        private String phoneNumber;
        private String mobileNumber;
        private String emailAddress;
        private String citizenshipFilePath;
        private String isShareHolder;
        private String isBoardOfDirector;
        private String isPromoter;
        public CompanyPerson() {
        public String getCitizenshipNumber() {
            return citizenshipNumber;
        public void setCitizenshipNumber(String citizenshipNumber) {
            this.citizenshipNumber = citizenshipNumber;
        public String getName() {
            return name;
        public void setName(String name) {
            this.name = name;
        public String getCountry() {
            return country;
        public void setCountry(String country) {
            this.country = country;
        public String getPhoneNumber() {
            return phoneNumber;
        public void setPhoneNumber(String phoneNumber) {
            this.phoneNumber = phoneNumber;
        public String getMobileNumber() {
            return mobileNumber;
        public void setMobileNumber(String mobileNumber) {
            this.mobileNumber = mobileNumber;
        public String getEmailAddress() {
            return emailAddress;
        public void setEmailAddress(String emailAddress) {
            this.emailAddress = emailAddress;
        public int getTemporaryAddressId() {
            return temporaryAddressId;
        public void setTemporaryAddressId(int temporaryAddressId) {
            this.temporaryAddressId = temporaryAddressId;
        public int getPermanentAddressId() {
            return permanentAddressId;
        public void setPermanentAddressId(int permanentAddressId) {
            this.permanentAddressId = permanentAddressId;
        public String getCitizenshipFilePath() {
            return citizenshipFilePath;
        public void setCitizenshipFilePath(String citizenshipFilePath) {
            this.citizenshipFilePath = citizenshipFilePath;
        public String getIsShareHolder() {
            return isShareHolder;
        public void setIsShareHolder(String isShareHolder) {
            this.isShareHolder = isShareHolder;
        public String getIsBoardOfDirector() {
            return isBoardOfDirector;
        public void setIsBoardOfDirector(String isBoardOfDirector) {
            this.isBoardOfDirector = isBoardOfDirector;
        public String getIsPromoter() {
            return isPromoter;
        public void setIsPromoter(String isPromoter) {
            this.isPromoter = isPromoter;
    }No all the properties of the bean has been bind to components.
    I also have value change listener methods for two drop down lists whose immediate property is set to true to bypass the validation. If i change the dropdownlist selection then its value change listener method is successfully invoked, then after if i click the submit button, then it will works.

  • Do I have to run the OS (10.6.3) in 64 bit in order to get full 64 bit benefits of PS CS5?

    I keep reading about the benefits of running PS in 64 bit, especially for very large files (which is most of my work). I was under the impression that applications can only use more than ~ 3GB of memory if the operating system is running in 64 bit mode. However I still run mine (Mac OS 10.6.3) in 32 bit (the default mode) and still, in the "Performance" preference panel of PS I can allocate my entire amount of RAM (14GB) for Memory Usage.
    Am I getting the full benefits of 64 bit or do I have to run my OS in 64 bit?
    Thanks for any bit of advice...

    By default Photoshop runs in 64 bit mode. If you want to switch between 32 and 64 bit then you would need to select Applications\Adobe Photoshop CS5\Adobe  Photoshop CS5.app and then press Cmd + I, or click "Get-Info" from File  menu.
    In  the Info panel, there would be a checkbox Open in 32 bit mode. Click that and Relaunch Photoshop. It will then run in 32 bit mode. Do reverse(Uncheck that) to run Photoshop in 64 bit mode.

  • HT1923 I have just run the latest up date on my ipod & every thing from my ipod has disappeared, its telling me that it does not recodnise my ipod

    I have just instaled the new update for my i pod, the screen on my i pod has usb symbol & i tunes symbol nothing else. The computer is tell me that i tunes does not reconise my i pod, that my i pod is on windows only, can't find it there either.

    Here is what worked for me:
      My usb hub, being usb2, was too fast. I moved the wire to a usb port directory on my pc. That is a usb1 port which is slow enough to run your snyc.

  • I keep getting the invalid redemption error and I have tried entering the code on the card several ways and nothing works

    How do I get help getting the right serial number to install my Photoshop elements software? I have tried entering the redemption code on the card in the box and even what is listed as a serial number on the receipt from the retailer I bought the software from. Nothing seems to be working and I keep getting the invalid code message.

    Redemption Code Help
    http://helpx.adobe.com/x-productkb/global/redemption-code-help.html

Maybe you are looking for

  • Stolen laptop - concerned about access to my itunes account

    I just had my laptop stolen. Not highest priority, but the other stuff has been addressed, so trying to figure out how to close down or freeze my itunes account to prevent someone from accessing my info and downloading stuff using my credit card. Any

  • Unable to access queries in Universe created over infocubes

    Hello Gurus Im having a weird situation over here with my queries created over BI content info cubes.Ive gone through all the threads related to my issue and ive tried more or less all the solutions specified. I hope i would get a different solution

  • "Options for Selected Service" greyed out.

    Help! I need to change QMaster from working with 1 processor to 4, but the option to change it is greyed out. FCP 5.1.4 on Leopard (10.5.2)

  • SHD0 Transaction

    Hi Friends,               Whlie Running the Transaction SHd0 for Developing transaction variant for me28,               In the selection screen i want to add a default value 'ALV' in the scope list field.              I am able to add the default val

  • Webutil problem when opening second application

    Hi! For some reason i get the following error in the java console if i open a second browser window and start a second forms application that uses webutil functions: Version von Forms-Applet: 9.0.4.0 2009-Nov-04  19:30:07.874 ERROR>WUL-928 [CApiFunct