DataTable on initial request

Hi,
I have a DataTable component with more than 500 rows, so I have used paging, displaying 10 rows at a time. Each row displays details for an employee, such as ID, First Name, Last Name ... etc. I also have separate pages to add and edit an employee. Hence i have a main page, an edit page and an add page.
Edit and add buttons on the main page all work fine, taking me to the edit and add pages respectively. My problem is when navigating back to the main page from either add or edit pages. For example, after editing, I want the DataTable to display the row just edited. Similarly, after adding a new employee, the data table should display the employee just added. Either case, the data table always displays the first item, at index 0.
When navigating back to the main page, the data table (surprisingly) returns the following: -
getFirst() = 0
getRowIndex() = -1
getRowCount() = 0and in no way can alter the position of the first row. neither are beforeRenderResponse() and afterRenderResponse() methods called, where I could manipulate the data table.
Is this because this is an initial request? How can i solve the problem? For instance, can I use the FacesContext instance? If so, how?

Hi,
Here is what I did to diplay the just edited / added record on going back to the main page:
I added a property to the session bean called stat of datatype boolean. The initial value I set it to false. I added another property corresponding to the primary key. After successfully modifying / adding a record I set the session bean property value of with the edited / added rows corresponding value. Also I set the boolean property to true. In the main page constructor I have an if(sessionBean1().is<booleanProperty>) block. The contents of the block for the sample application I developed are like this:
personRowSet.setCommand("SELECT * FROM TRAVEL.PERSON WHERE JOBTITLE=?");
dataTable1Model.setObject(1,this.getSessionBean1().getJobTitle());
dataTable1Model.execute();
I was able to display the rows that just got added or edited.
Hope this helps you.
Cheers :-)
Creator Team

Similar Messages

  • Initial request and reconfig question

    Hi there,
    Why does the web server issues requests to itself when it startup or reconfig is invoked?
    For the two initial request, if the NameTrans function from a plugin returns error, the error function(s) are not invoked.
    Also can a plugin register for notification of the reconfig. i.e., can the plugin know the the reconfig happened?
    Thanks
    -Seshubabu Pasam

    From what I can see it looks like Spring is on the roadmap and since BEA is now in the game they will incorporate Pageflows, Controls (Beehive), Open Standard Portal Engineering, SOA stuff, and more ease of use. ;->.
    Hopefully M7 remains true to the Anti-Vendor-Lockin pattern. It takes courage for BEA to go this way, but customers and the engineering scene will applaud to this, and I guess that this will put BEA in a good light, and those who wish to get nice and easy to manage and professional infrastructure, they will also pay for that (to make a living for M7 and BEA staff). Like I was ready to pay from NitroX Studio. I bought it, because it had this "no vendor lock in tag" on it and it was much easier to code with than with other products.
    On the other side the Open Source and the ISV scene can build applications that can run on the Service Oriented Operating System, and on any App and Portal Server. And this becomes easy.
    Everybody will win from this.

  • Render(true or false) on initial request

    Hello all,
    I have a JSF page which has a button (HtmlCommandButton) on. I want the button to be rendered/displayed depending on a value in the session. How can I do this?
    I have the button binded to a HtmlCommandButton instance field member of the AddCaseForm managed bean (see below). On the initial request though I am getting a NullPointerException because in the constructor of the ManagedBean I do :
    if(valueFromSession == whatever){
              offenderFindButton.setRendered(false);
          }else{
              offenderFindButton.setRendered(true);
          }BUT the offenderFindButton is actually null intially. How can I get around this?
    TAG
    <h:commandButton type="button" value="Find"
                                           binding="#{AddCaseForm.offenderFindButton}"
                                           immediate="false"/>
    ManagedBean Field
    In MangedBean the field is: private HtmlCommandButton offenderFindButton;Thanks much,
    Any help would be greatly appreciated.

    I wonder, why you do not like just using the
    'rendered' attribute of the commandButton for this
    purpose?Thanks Sergey it seemed to have worked. I did not really think of doing it that way. I thought that you could have been able to do it from within the constructor of the backing bean since the button was binded to a instance member of the backing bean class.
    I am actually still curious why it did not work and why the command button instance field was not initialized by the time the constructor of the backing bean executes on the initial request. Could someone please explain if possible?
    Thanks again.

  • Delete initial request

    Hi,
    I did a intial request for 0EC_PCA_3, becasue the data is huge with more that 10000000, I decide to do some separate full uploads and do a new initail updata.
    After I deleted this initial request and also delete all the data of cube.
    But after I check the requests list in the cube, the original initial request appreared again with data loading.
    Is there anyone know how I can stop this data loading?
    Many Thanks
    Jonathan

    Hi Jonathan ,
    It is strange that the request is again appearing in the target . To confirm that , please check if any one is trying to push that request from PSA . If so then check for any job BI_BOOK* or BI_BTCH* in SM37 . If any job is progressing check which request it is trying to push .
    If it is trying to push your request we can cancel that job and delete the cube contents again
    Regards
    Venkat

  • How I can change ipad mini mobile number I initially requested and to place the wrong number

    how I can change ipad mini mobile number I initially requested and to place the wrong number

    If you're refering to your uphone number thats set up to be used with imessage on your ipad, then that is associated with your apple id and has to be changed there first.
    My Apple ID
    https://appleid.apple.com/cgi-bin/WebObjects/MyAppleId.woa/
    Then on your ipad, sign out of messages. Go to settings/messages/tap on send and receive/tap on apple id/sign out
    Then sign out of messages on phone and then back in.
    Then sign into messages on ipad again, number should appear
    http://support.apple.com/kb/HT5538

  • Checking the first radio box in a dataTable on initial load

    Hi,
    I have a datatable bound to a UIData object in a backing bean. The data table has a radio check box widget which I use to select a data row. I would like to have the first checkbox checked on an initial load, I tried using EL to no avail.....
    Any suggestions or syntax advice is appreciated. Here is my JSF tag inside the data table.... note, friends is a reference to a session variable containing the UIData elements.
    <h-bud:column id="budSelected">
                            <f-bud:facet name="header">
                                <f-bud:verbatim>�</f-bud:verbatim>
                            </f-bud:facet>
                            <h-bud:selectOneRadio id="budSelectedValue" value="#{ (friends.data.rowIndex eq 0) ? 1 : 0 }" valueChangeListener="#{friends.doOnSelectRadio}" onclick="selectOne(this.document, this);" immediate="true"><f-bud:selectItem itemValue="#{friendsList.friend.id}" /></h-bud:selectOneRadio>
                            <f-bud:facet name="footer">
                                <h-bud:column id="budEmpty">
                                    <f-bud:verbatim>�</f-bud:verbatim>
                                </h-bud:column>
                            </f-bud:facet>
                        </h-bud:column>Cheers
    Colm

    Hi Meghasyam
    Thanks for the reply, I am setting the value of <f-bud:selectItem itemValue="#{friendsList.friend.id}" /> to the value of my "Friends" primary key ID, so I know which user was selected when the form is submitted?
    If im correct in understanding you, you are saying that this value must alway be 1. If this is the case, where can I tag a value to the radio box associating it with an ID?
    I need to use a radio button UI widget as a checkbox is associated with multiple selections which is not allowed on my form, I need to only allow one selection of the table row per display.
    Cheers
    COlm

  • DataTable var in request scope?

    Hi all,
    The description for the 'var' attribute of a h:dataTable tag reads:
    "Name of a request-scope attribute under which the model data for the row ... will be exposed."
    So I thought I would be able to access the object set as 'var' in normal JSP expressions and actions:
    <h:dataTable value="#{currentItem.children}" var="item">
      <h:column>
        <h:outputText value="#{item.uri}"/>
        <f:verbatim>${item.uri}</f:verbatim>
      </h:column>
    </h:dataTable>But the ${item.uri} does not evaluate to the same as #{item.uri}. Instead, it is empty, or if 'item' pre-exists in the request scope, it shows that item (and not the one assigned by the dataTable).
    What have I misunderstood?
    Cheers,
    Roger

    Basically:
    JSF<h:dataTable binding="#{myBean.table}" value="#{myBean.list}" var="item">
        <h:column><h:outputText value="#{myBean.value}" /></h:column>
    </h:dataTable>MyBeanprivate HtmlDataTable table;
    private List<Dto> list;
    // + getters + setters
    public String getValue() {
        Dto dto = (Dto) table.getRowData();
        // Do your thing with the current row object.
    }Although I recommend to just add a new property or getter to the DTO. It saves one mapping layer.

  • Safari http network initial requests is slow

    Hi everyone,
    Have anyone noticed a initial slow http request taking about 10 sec. to connect to a website? My connection is DSL and I am trying to debug the network to find out what is(are) the issue(s).
    Thanks for your feedback.
    Eduardo
    PS: If I try with the same Safari and Netscape Mozilla connecting to other web sites besides Apple and some other vendors, the page download at the "speed of a bullet."
    Safari Version 2.0.1 (412.5)

    Then try this. Open System Preferences->Network pane and click on your current connection (under Airport) and then turn off the Airport card. Then at the top of the pane you will see the "location" drop-down. Use that drop-down to create a new "Custom Location". Don't worry, it will act actually like 'Automatic'. Then after making the new Custom Location look at the bottom of the Network pane for the 'Apply' button. Click on this to save your new Location. Then rejoin your wireless network again. See if this helps, Good Luck.

  • AddEventListener is not working first time(initial request).

    Hi All,
        It is behaving strangely; I’m having below code in ActionScript and .MXML file.
       Very first request it is not displaying inquiry_id in confirmation page but it is displaying this value in later requests. In first request also it is displaying value correctly in getNewInquiryResultHandler in controller but when it comes to newReportSucEventHandler it is displaying null value in BroadModel.inquiryConsumer.inquiry_id
    -------------------- NewReportEvent.as(Begin) ---------------------------
    package com.broad.events
      import flash.events.Event;
      import com.broad.beans.Inquiry;
      import com.broad.beans.InquiryConsumer;
      // This custom event should be dispatched if the user
      // successfully logs into the application.
      public class NewReportEvent extends Event{   
        public static const REPORT:String = "report";
        public function NewReportEvent(){
          super(NewReportEvent.REPORT,true,true); //bubble by default     
        override public function clone():Event{
                return new NewReportEvent(); // bubbling support inside
    -------------------- NewReportEvent.as(End) ---------------------------
    In my controller(action script) I added below code for dispatching this event
    public function NewReportEvent():void
          ro = new RemoteObject();
          setUpAmfChannel();
          ro.destination = "manageInquiryService";
          ro.addEventListener("fault", faultHandler);     
          ro.createInquiry.addEventListener("result", getNewInquiryResultHandler);
          Alert.show("Before addNewInquiry");     
              ro.createInquiry(BroadModel.inquiryConsumer);
    }//End of NewReportEvent
    public function getNewInquiryResultHandler(event:ResultEvent):void
          BroadModel.inquiryConsumer.inquiry_id = event.result as String;     
          Alert.show("getNewInquiryResultHandler:"+BroadModel.inquiryConsumer.inquiry_id);
    }//End of getNewInquiryResultHandler
    In Report.mxml file is having following code
    ---------------Report.mxml (Begin) ---------------
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Canvas xmlns:mx="http://www.adobe.com/2006/mxml" width="100%" height="100%">
    <mx:Script>
          <![CDATA[
          import mx.controls.Alert;
          import com.broad.controller.BroadController;
          import com.broad.model.BroadModel;
          import com.broad.events.*;   
          [Bindable]
          public var mainLableText:String="NEW REPORT";
          [Bindable]
          public var titleText:String="Create A New Report";
        public function init():void{
          Alert.show("Inside newreport init mxml");
          myViewStack.selectedChild = newReport;
          Confirmation.visible=false;       
          broad.selectedItem.label = "Yes";
          // Reset the value too.
          first_name.text = "";       
          last_name.text = "";
          street_address.text = "";
          street_address2.text = "";
          city.text = "";
          state.text = "";
          zip.text = "";         
        private function initHandler():void
          Alert.show("Inside initHandler");
          addEventListener(NewReportEvent.REPORT,newReportSucEventHandler);
          private function newReportSucEventHandler(event:NewReportEvent):void{ 
                Alert.show("Inside newReportEventHandler mxml");
                myViewStack.selectedChild = Confirmation;
                newReport.visible=false;
                Alert.show("Inside newReportEventHandler inquiryId:"+BroadModel.inquiryConsumer.inquiry_id);
                inquiryIdVal.text = BroadModel.inquiryConsumer.inquiry_id;
                public function submitInquiry(evt:Event):void{
                BroadModel.inquiryConsumer.first_name = first_name.text;
                BroadModel.inquiryConsumer.last_name = last_name.text;
                BroadModel.inquiryConsumer.street_address = street_address.text;
                BroadModel.inquiryConsumer.street_address2 = street_address2.text;
                BroadModel.inquiryConsumer.city = city.text;
                BroadModel.inquiryConsumer.state = state.text;
                BroadModel.inquiryConsumer.zip = zip.text;
                Alert.show("Inside submitInquiry state:",currentStateVal);
                this.dispatchEvent(new NewReportEvent());     
          ]]>
    </mx:Script>
          <mx:ViewStack id="myViewStack" width="100%" height="100%" creationPolicy="all" >
          <mx:Canvas id="newReport" height="100%" width="100%" visible="true">
          <mx:Label x="10" y="10" text="{mainLableText}" fontSize="18" fontWeight="bold" color="#F07012"/>
          <mx:LinkButton id="viewEditLink" right="10"  styleName="htmlLink" label="{pageMode}" click="setPageMode(event);"
                visible="{pageMode != null}" includeInLayout="{pageMode != null}" />
          <mx:TitleWindow width="100%" height="100%" layout="absolute" title="{titleText}" fontWeight="normal" fontSize="13" y="38" x="0">
          <mx:Canvas height="100%" width="100%">
          <mx:VBox width="100%" height="100%">
              <mx:HBox>
                    <mx:Label text="Consumer Information: " fontSize="12" fontWeight="bold" color="#34B05D"/>
              </mx:HBox>
              <mx:HBox>
                    <mx:Label text="Report Type: " fontWeight="normal"/>
                    <mx:Label text="Phone" fontWeight="bold"/>
              </mx:HBox>
              <mx:HBox width="100%">
                    <mx:Label width="25%"  text="First Name:" fontWeight="normal"/>
                    <mx:TextInput width="25%" id="first_name" editable="{pageModeStat}" />
                    <mx:Label  width="25%

    Previously, when I'm calling below line in Report.mxml file
    this.dispatchEvent(new NewReportEvent());
    In Controller, I'm having following line in init() method
    private function init( event:Event ):void{
          systemManager.addEventListener(LoginEvent.LOGIN, login, true);
          systemManager.addEventListener(LoginSuccessEvent.LOGIN_SUCCESS, handleLogin, true);
          systemManager.addEventListener(LoginFailureEvent.LOGIN_FAILURE, handleLogin, true);
          systemManager.addEventListener(ValidateLoginEvent.LOGIN_VALIDATE, checkLogin, true);
          systemManager.addEventListener(HomeEvent.HOME, home, true);
          systemManager.addEventListener(SearchEvent.SEARCH, search, true);
          systemManager.addEventListener(NewReportEvent.REPORT, newInquiry, true);
          login(new LoginEvent(LoginEvent.LOGIN));
    public function newInquiry(evt:NewReportEvent):void{
            Alert.show("Inside newInquiry", evt.type);
            addNewInquiry();  
        }//End of newInquiry
    public function addNewInquiry():void
            ro = new RemoteObject();
            setUpAmfChannel();
            ro.destination = "manageInquiryService";
            ro.addEventListener("fault", faultHandler);      
            ro.createInquiry.addEventListener("result", getNewInquiryResultHandler);
            Alert.show("Before addNewInquiry");      
            ro.createInquiry(BroadModel.inquiryConsumer);
        }//End of addNewInquiry
    public function getNewInquiryResultHandler(event:ResultEvent):void
           BroadModel.inquiryConsumer.inquiry_id = event.result as String;      
           Alert.show("getNewInquiryResultHandler:"+BroadModel.inquiryConsumer.inquiry_id);
        }//End of getNewInquiryResultHandler
    Did following changes
    In Controller:
        // systemManager.addEventListener(NewReportEvent.REPORT, newInquiry, true);  COMMENTED
    Report.mxml:
         public function submitInquiry(evt:Event):void{
            var controller:BroadController = new BroadController();
            controller.addNewInquiry();
              this.dispatchEvent(new NewReportEvent(NewReportEvent.REPORT));
        Still I'm having same issue, it is calling this.addEventListener(NewReportEvent.REPORT,newReportSucEventHandler); before dispathEvent and it is showing null value in confirmation page.
        Can you please check this code and let me know what I'm doing wrong. Why addEventListerner is firing before dispatchEvent?
    Thanks,
    Sharath.

  • I need to know initial request

    Hello,
    I'm working on a Identity Assertion provider based on cookie with WLS 7.0 SP2.
    Everything is OK except that, when a user try to connect on a protected ressource
    without a authentication cookie, the server redirect him on a 401 error page.
    In this one I need to know the initial URL asked by the client, but I don't know
    if it's possible, and if yes, how ????
    Thank you in advance.

    "Benoit" <[email protected]> wrote in message
    news:[email protected]..
    >
    Hello,
    I'm working on a Identity Assertion provider based on cookie with WLS 7.0SP2.
    >
    Everything is OK except that, when a user try to connect on a protectedressource
    without a authentication cookie, the server redirect him on a 401 errorpage.
    >
    In this one I need to know the initial URL asked by the client, but Idon't know
    if it's possible, and if yes, how ????
    In 8.1 and I think 7.0 SP4, there is a
    weblogic.servlet.security.ServletAuthentication
    getTargetURLForFormAuthentication
    method. Does this do what you want?
    For 7.0 SP2, I don't think there is a public api that does the equivalent.

  • Slow performance during Apply Request Values Phase of JSF lifecycle

    Dear all,
    I found that my application is sucked at the Apply Request Values Phase of JSF lifecycle when I submit the page. (Totally spend 1 min to pass this phase)
    In the application, there is around 300 input fields in the page. Who know how can I ehance the performace?
    Thanks.

    Thanks a lot for your help. Maybe I explain more about my current structure
    I need to develop a input form for course instructor to input students' assignment / examination result (max 9 assignments and 1 examination).
    so that I have below coding:
    *1. bean to store marks of a student*
    public class Mark {
    private String studentID = "";
    private String mark1 = "";
    private String mark9 = "";
    private String markExam = "";
    //getter & setter of above properties
    public void setMark1(String mark1) {
    this.mark1 = mark1;
    public String getMark1() {
    return this.mark1;
    *2. backing bean*
    public class markHandler {
    ArrayList<Mark> marks = new ArrayList<Mark>();
    //getter & setter of above property
    //method to retrieve list of student (this will be the action before go in mark input page)
    public void getStudentList() {
    //get student list from database
    for(int i = 0 ; i < studentCount; i++){
    //initial mark of student
    Mark mark = new Mark();
    mark.setStudentID(studentID);
    mark.setMark1("");
    mark.setMarkExam("");
    //put into arraylist
    marks.add(mark);
    *3. mark input page*
    <html>
    <h:dataTable value="#{markHandler.marks}" var="e">
    <column>
    <h:output value="#{e.studentID}" />
    </column>
    <column>
    <h:input id="mark1" value="#{e.mark1}" />
    </column>
    <column>
    <h:input id="mark1" value="#{e.markExam}" />
    </column>
    </h:dataTable>
    <h:commandButton action="#{markHandler.save} />
    </html>
    When I submit the page, It seems that there is a long time spent at the input field of datatable at Apply Request Values Phase. (I use Phase Listeners to test the time difference before & after phase)
    Pls help. Thanks.
    Edited by: Daniel_problem on Aug 15, 2008 10:34 AM
    Edited by: Daniel_problem on Aug 15, 2008 10:36 AM

  • Request in Reply Payload Problem

    I am attempting to build a component which takes our common xml payload, passes it through a Mediator and then off to an external service. In the response I need to copy values from the request object and pass back to caller. In my mediation activity I have selected the "Include request in the reply payload" which added an initial.request parameter, I am able to do a mapping and even the test comes out the way I expect it but when I deploy I get an
    error:
    Caused by: javax.xml.transform.TransformerException: XML-22036: (Error) Cannot convert result tree fragment to NodeSet.

    this shouldn't happen. if you are opening a new window and calling your jsp you obviously should get a new session. but if you are opening a new page without closing your browser your session shouldn't get killed.
    post your jsp so that we can have a look. remember that navigator and ie are very different.
    cem.

  • ERM Role con't be deleted Automatically after rejecting the request in CUP

    Hi Experts,
    I am involving the GRC implimentation project and ERM component is succefully configured with post-installation activites and also configure the workflow(1-stage) in CUP for role approval.
    After initiating request, the request was sent to appropriate approver for approval process and approved/ Rejected by the approver.For first case(Request approved) everything is looks fine.
    but whenever the request is rejected (second case) by the approver, the role is still present in ERM and ABAP backend as well as.
    please suggest me, if the role is deleted in ABAP/ERM system after rejecting the request by Role Approver in CUP. or still present the role in systems.
    Regards,
    Arjuna.

    Hi Jes,
    We so have a feature called Password Self Service which is used by users to reset their password using CUP. Also if the password is locked by multiple failed attempt, CUP even activate this user.
    However in your case administrator will be locking the user or deactivating the password, so CUP will not allow users to unlock their users as it has been locked by administrator.
    So CUP can only unlock those users which were locked due to failed attempts etc.
    Regards,
    Shweta

  • Does clicking WESubmitButton request the report twice?

    <p>Hi all,</p><p> </p><p>I am using a textarea and a WEsubmit button to do a write to the database. THis is done bythe stored procedure processing the write when a parameter contains the value "Write". what I am seeing is if I enter all the values in the initial request of the report ( when user is promted for paramters) a single record is written. </p><p>The issue I am  seeing is when the write request occures from a WESubmitButtton click that the record is written twice to the database.  My question is does calling the Report from a WESubmit cause the report to be called twice before being displayed?  if so is there a know workaround or do I need to modify the stored procedure to check for a duplicate record on each write ?</p><p> </p><p>Jon Roberts</p><p><a href="http://www.programmervault.com" title="ProgrammerVault.com">www.programmervault.com</a> </p><p><a href="http://www.dsi-bi.com" title="Decision Systems Inc.">Decision Systems Inc </a> </p>

    hello,
    this would be normal behaviour depending on your boe settings. this is the same as when you press an open new window opendocument link in dashboard manager twice or a press a hyperlink twice that doesn't close down the parent report.
    to eliminate reports running a multiplicity of times within a certain time you should see your boe documentation on caching reports...this is out of the realm of the webelements forum i'm afraid.
    jw

  • Need sql query to get OIM request pending approval details for one user

    HI OIM Guru,
    It would be great help if someone can provide me sql query by which i can find out how many requests are pending for approval for one user ?

    1. Below query will give you status of all the request.
    SELECT REQ.REQUEST_ID , REQ.REQUEST_STATUS FROM REQUEST REQ
    2. You can have following status
    Obtaining Operation Approval
    Obtaining Template Approval
    Operation Approval Approved
    Operation Approval Rejected
    Post Operation Processing Initiated
    Request Approval Rejected
    Request Closed
    Request Completed
    Request Created
    Request Failed
    Request Withdrawn
    Template Approval Rejected
    3. Now prepare the query from above sapmle, the requset status string should not contains foloowing values.
    Rejected
    Failed
    Closed
    Withdrawn
    Completed
    The builded query will give you the desired result for 11g
    for 10 G
    Get the OST_STATUS from Req table, and do you logic above stated
    -Kuldeep
    Edited by: Kuldeep on May 22, 2012 1:04 AM

Maybe you are looking for

  • HDD errors - Wi-Fi: no hardware installed - Flashing ?-Folder

    Hi there, for the last one year I'm having periodical issues with my macbook pro 13'' mid 2011. Some time ago I started a discussion https://discussions.apple.com/message/22086569#22086569 concerning allocation errors on the file system etc. I though

  • Install CS6 failed for Ai, Ps, Fw, and Id. How can I get these installed?

    Purchased product through TechSoup for nonprofits. Installing on Dell Vostro, Core2Duo, 2GB RAM, 32-bit Windows 7 Professional Error messages that followed: Exit Code: 6 Please see specific errors and warnings below for troubleshooting. For example, 

  • I cannot find my partner portal

    I have not logged in for months. I try to log in then it forced a password reset - ok I did that then it would not accept me new password so I reset the password again. Then it worked !!! When I login to the partner portal url, using the login link a

  • Fault Handling with periodic notification and infinite retry.

    Hi all, I am invoking a database adapter to call a PL/SQL procedure and during maintenance window the database could be down for upto 4 hours. My requirement is to keep re-trying until the server comes back up but notify someone after every 4 hours.

  • Photoshop Album Starter 3.2 Pictures dark

    I have Photoshop Album Starter 3.2.  When I download pictures from my camera they show up on my PC very dark. If I print them, they print out fine but I cannot view them. If I import them into Photoshop they still show up dark. I have to up the contr