Af:panelCollection statusbar problem

Is there any way to hide status bar in af:panelCollection if it's empty and table in it has single row selection (like it was in earlier versions of JDeveloper)?
Note: My skin extends fusion.

I'm going to use this ugly workaround:
af|panelCollection::statusbar{
  display: none;
.showStatusBar af|panelCollection::statusbar{
  display: block;
}This will hide status bar on all af:panelCollections, and I will use style class showStatuBar for very few places where I need status bar.

Similar Messages

  • [Solved] dual monitor statusbar problem (dwm)

    Hi all , have a problem with status bar in dwm . The status bar change their position between monitors , if i work in the monitor1 the status bar is in monitor1 , but if i change to the monitor2 the status bar goes to monitor2 . 
    I would like to leave the bar in a single monitor or in both . Thanks in advance
    (i used conky status bar and xrandr)
    Last edited by Lordii (2013-04-04 13:36:53)

    mkaito wrote:
    That's how dwm behaves. I believe dwm's multihead support is rather lackluster out of the box. You might want to check out some of the patches they have, and ask around in the dwm hackers thread.
    I currently have dwm simply draw status on all monitors, but I'm investigating separate status bars per monitor. We'll see where that takes me. Dwm is a tinker's WM!
    i found the patch , thanks!

  • Taskflow region doesnt fully stretch inside a panel tab.

    Hello All,
    I have a main page which has below structure.
    --panelsplitter - horizontal
    --facet:first
    --facet:second
    --panelTabbed
    --showdetailItem
    Under the showdetail item I dragged and dropped a taskflow as a region.
    The taskflow(jsff) structure is as follows:
    --af:panelStretchLayout
    --center
    --panelCollection
    --Table
    Problem: The table of the taskflow region doesnt fully occupy the tab region and shows a vertical and horizontal bar.How can the table in the region set to use the entire tab.
    Thanks,
    --John.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

    Where does the panelStretchLayout go exactly?
    Just to make sure, all I need is a table in a tab which would fully occupy the tab.How can that be designed.
    Once again Thanks for all the help everyone.
    --John.                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Earlier Versions of JDeveloper?

    Does anyone know where I could get an earlier version of
    JDeveloper? Possibly 1.5?
    Thanks
    Jesse
    null

    I'm going to use this ugly workaround:
    af|panelCollection::statusbar{
      display: none;
    .showStatusBar af|panelCollection::statusbar{
      display: block;
    }This will hide status bar on all af:panelCollections, and I will use style class showStatuBar for very few places where I need status bar.

  • Downloads do not appear all (only the first two) in the download statusbar (could be a ff19 or downloadhelper or unmht problem)

    downloads do not appear all (only the first two) in the download statusbar (could be a ff19 or downloadhelper or unmht problem) and none in the download window
    used ff19
    with
    Download Statusbar v0.9.10 by Devon Jensen
    UnMHT v6.2.0 by http://www.unmht.org
    DownloadHelper v4.9.14
    had to revert to ff18.0.2

    Make sure that you do not run Firefox in (permanent) Private Browsing mode.
    *https://support.mozilla.org/kb/Private+Browsing
    *Tools > Options > Privacy: Use custom settings for history
    *Deselect: [ ] "Always use private browsing mode"
    Did you try to disable other extensions?
    *https://support.mozilla.org/kb/Troubleshooting+extensions+and+themes

  • Ratpoison: Problems with windows autoscaling and conky statusbar

    Hi all!
    I am newbie with ratpoison and yesterday made fresh installation. Everyting else did well expect window autoscaling and conky + dzen2 statusbar. 
    What I did:
    I followed those steps from archwiki for setting up dzen: https://wiki.archlinux.org/index.php/Dzen
    my .conkyrc looks like a same as in the wiki:
    background no
    out_to_console yes
    out_to_x no
    update_interval 1.0
    total_run_times 0
    use_spacer none
    TEXT
    ^fg(\#ff0000)${loadavg 1 2 3} ^fg()${time %a %b %d %I:%M%P}
    my .xinitrc looks like:
    #!/bin/bash
    FG='#aaaaaa'
    BG='#1a1a1a'
    FONT='-*-terminus-*-r-normal-*-*-120-*-*-*-*-iso8859-*'
    conky | dzen2 -e - -h '16' -w '600' -ta r -fg $FG -bg $BG -fn $FONT
    feh --bg-scale /home/tetrao/walls/hn.jpg &
    # setup urxvtd daemon
    urxvtc "$@"
    if [ $? -eq 2 ]; then
    urxvtd -q -o -f
    urxvtc "$@"
    fi
    unclutter -root -grab -idle 1 &
    exec ratpoison
    and .ratpoisonrc
    startup_message off
    escape C-z
    set padding 0 16 0 0
    bind x exec $(dmenu_path | dmenu)
    bind C-x exec $(dmenu_path | dmenu)
    bind c exec urxvtc
    bind C-c exec urxvtc
    bind b exec uzbl-tabbed
    bind C-b exec uzbl-tabbed
    # Undo
    bind u undo
    bind C-u undo
    definekey top Print exec import -window root ~/ss-`date +%Y%m%d%H%M%S`.png
    definekey top S-XF86AudioRaiseVolume exec ratvolume Master 3%+
    definekey top S-XF86AudioMute exec ratvolume Master 0
    definekey top S-XF86AudioLowerVolume exec ratvolume Master 3%-
    definekey top XF86AudioRaiseVolume exec ratvolume PCM 3%+
    definekey top XF86AudioMute exec ratvolume PCM 0
    definekey top XF86AudioLowerVolume exec ratvolume PCM 3%-
    definekey top C-S-Up focusup
    definekey top C-S-Left focusleft
    definekey top C-S-Down focusdown
    definekey top C-S-Right focusright
    definekey top C-M-Up prevscreen
    definekey top C-M-Down nextscreen
    definekey top M-l exec ratpoison -c "select -" -c "gprev" -c "next"
    definekey top M-h exec ratpoison -c "select -" -c "gnext" -c "next"
    definekey top M-j next
    definekey top M-k prev
    So I did 16 pixels hole for the conky statusbar. Still I cannot see anything on the top of screen. (Just empty hole)
    Problem with windows autoscaling is that it doesn't fullfill whole screen. I can also see two additional small holes at the bottom and right side of screen (eventhought I didn't made those by the config). Strange isn't it?
    I put my print screen, hope it tells more about the problem:
    What I should to do text? Edit some files, but I dunno which one and how?
    I appreciate your help.
    Cheers!

    fr33ke wrote:
    About the small holes, see "Why is there a small gap between my terminal and the edge of the screen?" in the ratpoison FAQ.
    I'm not sure about your dzen/conky problem, maybe you need to "unmanage" its window? See the ratpoison documentation.
    That fixed autoscaling issue. Thx a lot!
    Any ideas, what is wrong with dzen+conky bar? I quickly read ratpoison manual and didn't find any help for this problem.

  • I have Windows XP Pro and I downloaded the Extension Download Statusbar 0.9.8 . I have no problems downloading anything............but when the download is finished, the window that it downloaded in disappears! What can I do to correct this? Thanks.

    I use XP Pro on my desktop pc, and Win7 Pro on my laptop. No problems with laptop.

    I questioned that 64 bit version thing and when I checked the download it sent me to the java version 32 bit for windows 7. The download of jre 32 bit works for my computer on internet explorer but not for firefox 17. I also checked firefox and there is not a 64 bit version browser. so I don't get this at all. anyway, I don't know what a 64 bit vs a 32 bit means but someone asked me to check that too on the site I went to they thought it might be different browser. It's not.

  • IPHone: orientation change problem, with statusbars enabled

    Hello Folks:
    I've run into a problem with the rotation with the latest iPHone OS/SDK (Beta 5). I've submitted a bug report, but I've included the simple description below in case anyone has already run into this and knows of a work around.
    Thanks,
    Dan Pronovost
    [email protected]
    Summary:
    - If you turn on status bars in your application and rotate to landscape view and back, subview (and controls) can at times end up with an incorrect top position (y).
    - This can be demonstrated with a small change to the "WhichWayIsUp" sample application.
    Steps to Reproduce:
    - Load the WhichWayIsUp application
    - Edit the info.plist resource. Uncheck the 'UiStatusBarHidden' option.
    - Edit the MainWindow.XIB.
    - Move the Crate up to near the top (not QUITE near the top... stop on the dotted line that IB displays that represents below the status bar).
    - Build and run the app in the simulator (occurs equally in on the device itself).
    - Confirm that the box is properly displayed at the top of the window below the status bar. Make sure it's not 'chopped off' the top part (i.e. truly just below the status bar and not underneath it a bit).
    - Rotate to landscape. Notice it is now down a few pixels from the status bar.
    - Rotate back to portrait. Notice the box is now down what appears to be a full status bar height in pixels (20).
    - Adding debug code and getting the frame from the 'didRotateFromInterfaceOrientation' method on the main view, you'll see that the origin.y value is sometimes 20, sometimes not, depending on how many rotations you complete (and, the center property for the view is off by 10 sometimes). Equally, adding debug code to get the bounds and transform shows nothing unusual.
    Expected Results:
    - The box should stay at the top of the screen always.
    Actual Results:
    - Box gets moved down, and stays down, about a status bar in height. Reseting the frame in code (or center) does not fix it either, oddly.
    Regression:
    - Only tested on iPHone 2.0 SDK, Beta 5 (latest). Happens in simulator and device.
    Notes:
    - All above.

    Thank you for the reply. I created a bug report: https://bugs.adobe.com/jira/browse/SDK-24493
    I hope its not too hard to fix, because I need it for a product desperately

  • Problem in date functions

    Using:
    Jdev 11.1.1.5.0-adfbc
    problem description:
    problem in function not properly working
    Resource:
    this is my vo query which is based on one eo
    SELECT LegalDocDetailsEO.LDD_BE,
           LegalDocDetailsEO.LDD_UNIT,
           LegalDocDetailsEO.LDD_SUPLR_ID,
           LegalDocDetailsEO.LDD_CUST_ID,
           LegalDocDetailsEO.LDD_EMP_ID,
           LegalDocDetailsEO.LDD_DOC_ID,
           LegalDocDetailsEO.LDD_DOC_NO,
           LegalDocDetailsEO.LDD_ISSUED_AT,
           LegalDocDetailsEO.LDD_ISSUED_ON,
           LegalDocDetailsEO.LDD_VALID_FRQ,
           LegalDocDetailsEO.LDD_VALID_DUR,
    (case when LDD_VALID_FRQ='D'  then LDD_ISSUED_ON +  LDD_VALID_DUR                       //D-Date
          when LDD_VALID_FRQ='M'   then add_months(LDD_ISSUED_ON,LDD_VALID_DUR)        //M -Month  //Y-Year
          else add_months(LDD_ISSUED_ON,LDD_VALID_DUR*12)
    end ) as  LDD_EXP_ON,
           LegalDocDetailsEO.LDD_STATUS,
           LegalDocDetailsEO.LDD_SL_FLG,
           LegalDocDetailsEO.LDD_VEHICLE_ID,
           LegalDocDetailsEO.LDD_BFCRY_TYPE,
           LegalDocDetailsEO.LDD_EMPDEPNT_NO,
           LegalDocDetailsEO.LDD_ASSET_ID,
           LegalDocDetailsEO.LDD_PROD_UNIT,
           LegalDocDetailsEO.LDD_PROD_ID,
           LegalDocDetailsEO.LDD_PROD_REV,
           LegalDocDetailsEO.LDD_CRE_BY,
           LegalDocDetailsEO.LDD_CRE_DATE,
           LegalDocDetailsEO.LDD_UPD_BY,
           LegalDocDetailsEO.LDD_UPD_DATE,
           LegalDocDetailsEO.ROWID
    FROM LEGAL_DOC_DETAILS LegalDocDetailsEO
    WHERE LegalDocDetailsEO.LDD_BE = :pbuthis vo exposed as af:table
    <af:panelBox
                           binding="#{backingBeanScope.cfg0060.pb18}" id="pb18"
                           showDisclosure="false">
                <f:facet name="toolbar">
                  <af:group binding="#{backingBeanScope.cfg0060.g6}" id="g6">
                    <af:toolbar binding="#{backingBeanScope.cfg0060.t19}" id="t19">
                      <af:commandToolbarButton actionListener="#{bindings.CreateInsert13.execute}"
                                               text="Insert"
                                               disabled="#{!bindings.CreateInsert13.enabled}"
                                               binding="#{backingBeanScope.cfg0060.ctb90}"
                                               id="ctb90"/>
                      <af:commandToolbarButton
                                               text="Save"
                                               binding="#{backingBeanScope.cfg0060.ctb91}"
                                               id="ctb91"
                                               action="#{backingBeanScope.cfg0060.*ctb91_action2*}"
                                               partialTriggers="pc5:t18"/>
                      <af:commandToolbarButton text="Clear"
                                               binding="#{backingBeanScope.cfg0060.ctb92}"
                                               id="ctb92" icon="/icons/clear.png"/>
                     <af:commandToolbarButton text="Rollback"
                                               binding="#{backingBeanScope.cfg0060.ctb94}"
                                               id="ctb94"
                                             icon="/icons/rollback.png"/>
                      <af:commandToolbarButton text="Additional Details"
                                               binding="#{backingBeanScope.cfg0060.ctb95}"
                                               id="ctb95"/>
                      <af:commandToolbarButton text="Activate"
                                               binding="#{backingBeanScope.cfg0060.ctb96}"
                                               id="ctb96"
                                               icon="/icons/confirm.png"/>
                    </af:toolbar>
                  </af:group>
                </f:facet>
                <af:panelCollection binding="#{backingBeanScope.cfg0060.pc5}"
                                    id="pc5" styleClass="AFStretchWidth">
                  <f:facet name="menus"/>
                  <f:facet name="toolbar"/>
                  <f:facet name="statusbar"/>
                  <af:table value="#{bindings.LegalDocDetails1VO2.collectionModel}"
                            var="row"
                            rows="#{bindings.LegalDocDetails1VO2.rangeSize}"
                            emptyText="#{bindings.LegalDocDetails1VO2.viewable ? 'No data to display.' : 'Access Denied.'}"
                            fetchSize="#{bindings.LegalDocDetails1VO2.rangeSize}"
                            rowBandingInterval="0"
                            filterModel="#{bindings.LegalDocDetails1VO2Query.queryDescriptor}"
                            queryListener="#{bindings.LegalDocDetails1VO2Query.processQuery}"
                            filterVisible="true" varStatus="vs"
                            selectedRowKeys="#{bindings.LegalDocDetails1VO2.collectionModel.selectedRow}"
                            selectionListener="#{bindings.LegalDocDetails1VO2.collectionModel.makeCurrent}"
                            rowSelection="single"
                            binding="#{backingBeanScope.cfg0060.t18}" id="t18"
                            partialTriggers=":::ctb90">
                    <af:column sortProperty="LddDocId" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LddDocId.label}"
                               id="c19">
                      <af:inputText value="#{row.bindings.LddDocId.inputValue}"
                                    label="#{bindings.LegalDocDetails1VO2.hints.LddDocId.label}"
                                    required="#{bindings.LegalDocDetails1VO2.hints.LddDocId.mandatory}"
                                    columns="#{bindings.LegalDocDetails1VO2.hints.LddDocId.displayWidth}"
                                    maximumLength="#{bindings.LegalDocDetails1VO2.hints.LddDocId.precision}"
                                    shortDesc="#{bindings.LegalDocDetails1VO2.hints.LddDocId.tooltip}"
                                    id="it144">
                        <f:validator binding="#{row.bindings.LddDocId.validator}"/>
                      </af:inputText>
                    </af:column>
                    <af:column sortProperty="LdDocIdDesc" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LdDocIdDesc.label}"
                               id="c22">
                      <af:inputText value="#{row.bindings.LdDocIdDesc.inputValue}"
                                    label="#{bindings.LegalDocDetails1VO2.hints.LdDocIdDesc.label}"
                                    required="#{bindings.LegalDocDetails1VO2.hints.LdDocIdDesc.mandatory}"
                                    columns="#{bindings.LegalDocDetails1VO2.hints.LdDocIdDesc.displayWidth}"
                                    maximumLength="#{bindings.LegalDocDetails1VO2.hints.LdDocIdDesc.precision}"
                                    shortDesc="#{bindings.LegalDocDetails1VO2.hints.LdDocIdDesc.tooltip}"
                                    id="it145">
                        <f:validator binding="#{row.bindings.LdDocIdDesc.validator}"/>
                      </af:inputText>
                    </af:column>
                    <af:column sortProperty="LddDocNo" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LddDocNo.label}"
                               id="c21">
                      <af:inputText value="#{row.bindings.LddDocNo.inputValue}"
                                    label="#{bindings.LegalDocDetails1VO2.hints.LddDocNo.label}"
                                    required="#{bindings.LegalDocDetails1VO2.hints.LddDocNo.mandatory}"
                                    columns="#{bindings.LegalDocDetails1VO2.hints.LddDocNo.displayWidth}"
                                    maximumLength="#{bindings.LegalDocDetails1VO2.hints.LddDocNo.precision}"
                                    shortDesc="#{bindings.LegalDocDetails1VO2.hints.LddDocNo.tooltip}"
                                    id="it146">
                        <f:validator binding="#{row.bindings.LddDocNo.validator}"/>
                      </af:inputText>
                    </af:column>
                    <af:column sortProperty="LddIssuedAt" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LddIssuedAt.label}"
                               id="c15">
                      <af:inputText value="#{row.bindings.LddIssuedAt.inputValue}"
                                    label="#{bindings.LegalDocDetails1VO2.hints.LddIssuedAt.label}"
                                    required="#{bindings.LegalDocDetails1VO2.hints.LddIssuedAt.mandatory}"
                                    columns="#{bindings.LegalDocDetails1VO2.hints.LddIssuedAt.displayWidth}"
                                    maximumLength="#{bindings.LegalDocDetails1VO2.hints.LddIssuedAt.precision}"
                                    shortDesc="#{bindings.LegalDocDetails1VO2.hints.LddIssuedAt.tooltip}"
                                    id="it147">
                        <f:validator binding="#{row.bindings.LddIssuedAt.validator}"/>
                      </af:inputText>
                    </af:column>
                    <af:column sortProperty="LddIssuedOn" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LddIssuedOn.label}"
                               id="c17">
                      <f:facet name="filter">
                        <af:inputDate value="#{vs.filterCriteria.LddIssuedOn}"
                                      binding="#{backingBeanScope.cfg0060.id7}"
                                      id="id7"/>
                      </f:facet>
                      <af:inputDate value="#{row.bindings.LddIssuedOn.inputValue}"
                                    label="#{bindings.LegalDocDetails1VO2.hints.LddIssuedOn.label}"
                                    required="#{bindings.LegalDocDetails1VO2.hints.LddIssuedOn.mandatory}"
                                    shortDesc="#{bindings.LegalDocDetails1VO2.hints.LddIssuedOn.tooltip}"
                                    id="id10">
                        <f:validator binding="#{row.bindings.LddIssuedOn.validator}"/>
                        <af:convertDateTime pattern="#{bindings.LegalDocDetails1VO2.hints.LddIssuedOn.format}"/>
                      </af:inputDate>
                    </af:column>
                    <af:column sortProperty="LddValidFrq" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LddValidFrq.label}"
                               id="c20">
                      <af:selectOneChoice value="#{row.bindings.LddValidFrq.inputValue}"
                                          label="#{row.bindings.LddValidFrq.label}"
                                          required="#{bindings.LegalDocDetails1VO2.hints.LddValidFrq.mandatory}"
                                          shortDesc="#{bindings.LegalDocDetails1VO2.hints.LddValidFrq.tooltip}"
                                          id="soc12" autoSubmit="true">
                        <f:selectItems value="#{row.bindings.LddValidFrq.items}"
                                       id="si13"/>
                      </af:selectOneChoice>
                    </af:column>
                    <af:column sortProperty="LddValidDur" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LddValidDur.label}"
                               id="c18">
                      <af:inputText value="#{row.bindings.LddValidDur.inputValue}"
                                    label="#{bindings.LegalDocDetails1VO2.hints.LddValidDur.label}"
                                    required="#{bindings.LegalDocDetails1VO2.hints.LddValidDur.mandatory}"
                                    columns="#{bindings.LegalDocDetails1VO2.hints.LddValidDur.displayWidth}"
                                    maximumLength="#{bindings.LegalDocDetails1VO2.hints.LddValidDur.precision}"
                                    shortDesc="#{bindings.LegalDocDetails1VO2.hints.LddValidDur.tooltip}"
                                    id="it148" autoSubmit="true"
                                    partialTriggers="soc12">
                        <f:validator binding="#{row.bindings.LddValidDur.validator}"/>
                        <af:convertNumber groupingUsed="false"
                                          pattern="#{bindings.LegalDocDetails1VO2.hints.LddValidDur.format}"/>
                      </af:inputText>
                    </af:column>
                    <af:column sortProperty="LddExpOn" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LddExpOn.label}"
                               id="c16">
                      <f:facet name="filter">
                        <af:inputDate value="#{vs.filterCriteria.LddExpOn}"
                                      binding="#{backingBeanScope.cfg0060.id8}"
                                      id="id8"/>
                      </f:facet>
                      <af:inputDate value="#{row.bindings.LddExpOn.inputValue}"
                                    label="#{bindings.LegalDocDetails1VO2.hints.LddExpOn.label}"
                                    required="#{bindings.LegalDocDetails1VO2.hints.LddExpOn.mandatory}"
                                    shortDesc="#{bindings.LegalDocDetails1VO2.hints.LddExpOn.tooltip}"
                                    id="id9" partialTriggers="it148">
                        <f:validator binding="#{row.bindings.LddExpOn.validator}"/>
                        <af:convertDateTime pattern="#{bindings.LegalDocDetails1VO2.hints.LddExpOn.format}"/>
                      </af:inputDate>
                    </af:column>
                    <af:column sortProperty="LddStatus" filterable="true"
                               sortable="true"
                               headerText="#{bindings.LegalDocDetails1VO2.hints.LddStatus.label}"
                               id="c14">
                      <af:selectOneChoice value="#{row.bindings.LddStatus.inputValue}"
                                          label="#{row.bindings.LddStatus.label}"
                                          required="#{bindings.LegalDocDetails1VO2.hints.LddStatus.mandatory}"
                                          shortDesc="#{bindings.LegalDocDetails1VO2.hints.LddStatus.tooltip}"
                                          id="soc13">
                        <f:selectItems value="#{row.bindings.LddStatus.items}"
                                       id="si12"/>
                      </af:selectOneChoice>
                    </af:column>
                  </af:table>
                </af:panelCollection>
              </af:panelBox>
        public String ctb91_action2() {
            BindingContainer bindings = getBindings();
            DCIteratorBinding dciter2;
            dciter2 = (DCIteratorBinding) bindings.get("LegalDocDetails1VO2Iterator");
            ViewObject vo2 = dciter2.getViewObject();
            vo2.clearCache();
            vo2.executeQuery();
            //dciter2.executeQuery();
            OperationBinding operationBinding = bindings.getOperationBinding("Commit");
            Object result = operationBinding.execute();
            if (!operationBinding.getErrors().isEmpty()) {
                return null;
            return null;
        }this is my save button code.
    while pressing save button date,month,year increment operation takes place.
    i did like this:
    date issued : 3/10/1999
    validtiy type : months /days /years in select one choice
    validty time : 1 if i give 1 means
    date expires on : *4*/10/1999 it should be generates by pressing save button.
    by my issues:
    first time pressing button
    date expires on : *23*/10/1999 wrongly generated. each every first time default adding 10 to date. i dont have default value. why it's happening
    eventhough used clearcache. but it's not perforing correctly in first time
    by second time or third time... n tmes means
    date expires on : *4*/10/1999 it correctly generating.
    see pics.
    inputdate: 2/18/2012:
    wrongly generating : http://imageshack.us/photo/my-images/210/testttt.png/ in this pics see expires on : 2/28/2012
    correctly generating : http://imageshack.us/photo/my-images/341/testtsds.png/ in this pics see expires on : 2/20/2012
    i followed one of my thread: JDeveloper and ADF
    Edited by: subu123 on Feb 24, 2012 6:27 AM

    thank you sir. for visting my thread. i understood. how can i over come that?
    SELECT LegalDocDetailsEO.LDD_BE,
           LegalDocDetailsEO.LDD_UNIT,
           LegalDocDetailsEO.LDD_SUPLR_ID,
           LegalDocDetailsEO.LDD_CUST_ID,
           LegalDocDetailsEO.LDD_EMP_ID,
           LegalDocDetailsEO.LDD_DOC_ID,
           LegalDocDetailsEO.LDD_DOC_NO,
           LegalDocDetailsEO.LDD_ISSUED_AT,
           LegalDocDetailsEO.LDD_ISSUED_ON,
           LegalDocDetailsEO.LDD_VALID_FRQ,
           LegalDocDetailsEO.LDD_VALID_DUR,
    (case when LDD_VALID_FRQ='D'  then LDD_ISSUED_ON +  LDD_VALID_DUR                       //D-Date
          when LDD_VALID_FRQ='M'   then add_months(LDD_ISSUED_ON,LDD_VALID_DUR)        //M -Month  //Y-Year
          else add_months(LDD_ISSUED_ON,LDD_VALID_DUR*12)
    end ) as  LDD_EXP_ON,
           LegalDocDetailsEO.LDD_STATUS,
           LegalDocDetailsEO.LDD_SL_FLG,
           LegalDocDetailsEO.LDD_VEHICLE_ID,
           LegalDocDetailsEO.LDD_BFCRY_TYPE,
           LegalDocDetailsEO.LDD_EMPDEPNT_NO,
           LegalDocDetailsEO.LDD_ASSET_ID,
           LegalDocDetailsEO.LDD_PROD_UNIT,
           LegalDocDetailsEO.LDD_PROD_ID,
           LegalDocDetailsEO.LDD_PROD_REV,
           LegalDocDetailsEO.LDD_CRE_BY,
           LegalDocDetailsEO.LDD_CRE_DATE,
           LegalDocDetailsEO.LDD_UPD_BY,
           LegalDocDetailsEO.LDD_UPD_DATE,
           LegalDocDetailsEO.ROWID
    FROM LEGAL_DOC_DETAILS LegalDocDetailsEO
    WHERE LegalDocDetailsEO.LDD_BE = :pbui want to excute this vo. by pressing button. so only wrote like that.
    why am going excutes means?
    if am entering date and choosing select one choice means. by pressing button the button excutes vo and prorbably i get my output.
    is there any other way??? to attain my target..
    Edited by: subu123 on Mar 8, 2012 7:45 AM

  • Creating Declarative Component problem.

    Dear all
    I use Jdeveloper 11.1.1.4.0.
    I am planing to create an ADF declarative Component.The component will be a panel collection layout which contains menu (Action>Export to excel) and command button (Add new record).
    The scenario will be like this:
    1- The developer will drag my new component (myCustomPanel) to his page and will drag the data control inside this comonent to create ADF Read only table.
    2- at runtime the table should appear surrounded by (myCustomPanel) and the user can use the "Action" menu to export the content to Excel, and can click on "Add new Record"to navigate to another page to add record.
    The solution I made is:
    in my "myCustomPanel" I created two attributes , the first one is "tableID" and the second is "targetPage" represents the outcome of the navigation to the "Add new record" page.
    The developer must provide these two attributes when using "myCustomPanel".
    The problem is:
    at runtime when the user click on "Add new record" button an error is raised .
    The error in this line:
    <af:commandToolbarButton text="Add" id="dc_ctb1" action="#{attr.targetPage}"/>
    the action property of the command button expects a managed bean. But i proved it with page attribute.
    I want to dynamicly provides the naviation outcome to the button using attribute name. Is this possible?
    regards

    Thank you so much for you replying.
    Your solution is helpful
    I tried to do the following :
    1- in my "customcomponent" project I removed the attribute "taregtPage"
    2- I added a method attribute
    name: targetPage
    method-signature: java.lang.String method()
    <af:componentDef var="attrs" componentVar="component">
        <af:panelCollection id="collection">
          <f:facet name="menus">
            <af:menu text="Action" id="dc_m1">
              <af:commandMenuItem text="Export To excel" id="dc_cmi1"/>
            </af:menu>
          </f:facet>
          <f:facet name="toolbar">
            <af:toolbar id="dc_t1">
              <af:commandToolbarButton text="Add" id="dc_add"
                                       action="#{attrs.targetPage}"/>
            </af:toolbar>
          </f:facet>
          <f:facet name="statusbar"/>
          <af:facetRef facetName="tableContent"/>
        </af:panelCollection>
        <af:xmlContent>
          <component xmlns="http://xmlns.oracle.com/adf/faces/rich/component">
            <display-name>dhamanTable</display-name>
            <facet>
              <facet-name>tableContent</facet-name>
            </facet>
            <attribute>
              <attribute-name>tableID</attribute-name>
              <attribute-class>java.lang.String</attribute-class>
              <required>true</required>
            </attribute>
            <component-extension>
              <component-tag-namespace>dhaman.custom</component-tag-namespace>
              <component-taglib-uri>/componentLib</component-taglib-uri>
              <method-attribute>
                <attribute-name>targetPage</attribute-name>
                <method-attribute>
                  <attribute-name>targetPage</attribute-name>
                  <method-signature>java.lang.String method()</method-signature>
                </method-attribute>
                <required>false</required>
              </method-attribute>
            </component-extension>
          </component>now My question is how to use it?
    I do not understand this
    action="#{component.handleTargetPage}" Do you mean that i will create amanaged bean "component" and add a methos "handleTargetPage"??
    Edited by: ta**** on Mar 9, 2011 1:58 PM
    Edited by: ta**** on Mar 9, 2011 2:00 PM
    Edited by: ta**** on Mar 9, 2011 2:01 PM

  • GoMenuItem targetFrame="_blank" problem

    Hi all,
    I afraid, that my previous question was obscure. I pasted whole page to illustrate the problem. Inside panel collection may be ant table. Destination points to the same page (itself). The core is goMenuItem. If you try to run this page you will see, that new window behaves not properly. If destenation points to non Web Logic server, everything works fine. Any suggestions?
    Thanks,
    SNikiforov
    <?xml version='1.0' encoding='UTF-8'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich">
    <jsp:directive.page contentType="text/html;charset=UTF-8"/>
    <f:view>
    <af:document id="d1">
    <af:messages id="m1"/>
    <af:form id="f1">
    <af:panelCollection id="pc1">
    <f:facet name="menus">
    <af:menu text="menu 1" id="m2">
    <af:goMenuItem text="goMenuItem 1" id="gmi1"
    targetFrame="_blank"
    destination="http://127.0.0.1:7101/gomenuitem-ViewController-context-root/faces/Main"/>
    </af:menu>
    </f:facet>
    <f:facet name="toolbar"/>
    <f:facet name="statusbar"/>
    <af:table value="#{bindings.ViewTestObj1.collectionModel}" var="row"
    rows="#{bindings.ViewTestObj1.rangeSize}"
    emptyText="#{bindings.ViewTestObj1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.ViewTestObj1.rangeSize}"
    rowBandingInterval="0" id="t1">
    <af:column sortProperty="occ" sortable="false"
    headerText="#{bindings.ViewTestObj1.hints.occ.label}"
    id="c1">
    <af:outputText value="#{row.occ}" id="ot1"/>
    </af:column>
    </af:table>
    </af:panelCollection>
    </af:form>
    </af:document>
    </f:view>
    </jsp:root>
    Edited by: SNikiforov on Aug 10, 2010 7:17 AM
    Edited by: SNikiforov on Aug 10, 2010 7:25 AM

    Hi,
    I can reproduce thsi and filed a bug
    Frank

  • How to fix panelCollection toolbar buttons layout in Chrome [BUG]

    Hello,
    The bug is here for years.
    I've got a panelCollection with a toolbar and a number of toolbar buttons in it.
    In IE/Firefox it's all fine.
    In Google Chrome some buttons get randomly hidden after PPRs. One can only tab to them.
    Take a look at the screenshot: http://img252.imageshack.us/img252/6218/adftoolbarchrome.png
    Here's page code:<af:panelCollection id="pc_tree" featuresOff="statusBar" defaultToolbarItemDisplay="icon">
                    <f:facet name="menus"/>
                    <f:facet name="toolbar">
                      <af:toolbar id="t9" partialTriggers="::pc1:t1 tree1">
                        <af:commandToolbarButton text="#{templateBundle.EXPAND}" id="ctb_expand"
                                                 actionListener="#{backingBeanScope.TemplateBean1.expandTemplateTree}"
                                                 icon="/img/tree.png"
                                                 disabled="#{bindings.TemplateView1Iterator.currentRow == null}"/>
                        <af:spacer width="10" height="10" id="s1"/>
                        <af:commandToolbarButton text="Создать компоненту" id="ctb_del"
                                                 disabled="#{bindings.TemplateView1Iterator.currentRow == null}"
                                                 icon="/img/tree_1_level_create.png"
                                                 disabledIcon="/img/tree_1_level_create_bw.png" accessKey="1">
                          <af:showPopupBehavior popupId="::p2_create"/>
                        </af:commandToolbarButton>
                        <af:commandToolbarButton text="Создать параметр" id="ctb3" icon="/img/tree_2_level_create.png"
                                                 disabled="#{bindings.ComponentView1Iterator.currentRow == null || bindings.ComponentIdkComponent.inputValue == '3' || bindings.ComponentIdkComponent.inputValue == '4'}"
                                                 disabledIcon="/img/tree_2_level_create_bw.png" accessKey="2">
                          <af:showPopupBehavior popupId="::p3_create"/>
                        </af:commandToolbarButton>
                        <af:commandToolbarButton text="Создать показатель" id="ctb4"
                                                 disabled="#{bindings.ComponentView1Iterator.currentRow == null || bindings.ComponentIdkComponent.inputValue != '2'}"
                                                 icon="/img/tree_3_level_create.png"
                                                 disabledIcon="/img/tree_3_level_create_bw.png" accessKey="3">
                          <af:showPopupBehavior popupId="::p2" alignId="ctb4"/>
                        </af:commandToolbarButton>
                        <af:commandToolbarButton shortDesc="Редактировать" id="ctb_edit" icon="/img/edit.png"
                                                 disabled="#{bindings.ComponentAllView1Iterator.currentRow == null}"
                                                 accessKey="e">
                          <af:showPopupBehavior popupId="#{bindings.ComponentIdkComponent.inputValue == '1' ? '::p2_edit' : (bindings.ComponentIdkComponent.inputValue == '2' ? '::p3_edit' : '::p4_edit')}"/>
                        </af:commandToolbarButton>
                        <af:commandToolbarButton id="ctb23" icon="/img/delete.png"
                                                 shortDesc="#{templateBundle.COMPONENT_DELETE}"
                                                 disabledIcon="/img/delete_bw.png"
                                                 disabled="#{bindings.ComponentView1Iterator.currentRow == null || bindings.ComponentIsDelete.inputValue != '1'}">
                          <af:showPopupBehavior popupId="::p_del"/>
                        </af:commandToolbarButton>
                        <!--disabled="#{bindings.ComponentView1Iterator.currentRow == null || bindings.ComponentIsDelete != '1'}"-->
                        <af:spacer width="10" height="10" id="s2"/>
                      </af:toolbar>
                    </f:facet>
    </af:panelCollection>

    Tried once.
    About a year ago. Got an answer like "Google should fix their bugs themselves".
    Should try another one time.
    Is there any workaround? I can't be the only person with this problem.
    Here is a testcase application: http://dl.dropbox.com/u/8422244/ADF/ToolbarButtonsApp.zip
    In Google Chrome right-hand toolbar buttons get hidden after table row selection or left links click (on PPR).
    Found the answer at once. ADF conflicts with Chrome AdBlock extension.

  • ADF: Problem with List and ListOfValues bindings

    In my page I have panelSplitter.
    In first facet I have panelCollection with ADF tree. For the tree definition I have Iterator binding, which contains the elements with no parent and one accessor, which define a recursive master-detail hierarchy. For the tree node I have specified TragetIterator property, that look up second iterator binding, which containes all tree elements (parents and their children).
    In second facet I have panelForm with input fields, based on second iterator binding. So when the user clicks on any node in the tree, it can see and edit in input fields the data for this node.
    In panelCollection I have placed two buttons to create a new node and to delete current node.
    By creation of new node I do the following:
    1) From currently selected node I get the value of one attribute named Code, which is alternate unique key;
    2) From second iterator binding I get the ViewObject, create a new Row and for the "parent" attribute I set the value derived from step 1.
    3) I rerender through PPR tree component and PanelForm with input fields.
    As result I have a new empty node in the tree and empty input fields in second facet, which must be populated and submitted (commited).
    My problem happens after I populate all fields in panelForm, when I commit changes (press Button with Commit action binding) and rerender page content. The exception, which is trown is listed below.
    I want to make the follwing additional remarks:
    1) My primary key in ViewObject is ROWID. I need this attribute to uniquely identify created new rows.
    2) The problem happens only when in panelForm I have field based on Model driven List or ListOfValues binding (<af:selectOneChoice> or <af:inputListOfValues>).
    When I create a new row the ADF BC assign to it one "dummy" ROWID (for example 317499) and after Commit this ROWID is replaced wtih actual ROWID from database. But I don't understand, why after commit of changes on the page the method findByKey of oracle.jbo.server.ViewObjectImpl is called with initial "dummy" ROWID (317499)?
    When there is no field based on List or ListOfValues binding, then there are no calls of findByKey method and there is no such problem.
    And that is the exception:
    2009-7-29 18:04:54 oracle.adf.controller.faces.lifecycle.FacesPageLifecycle addMessage
    WARNING: ADFc: ORA-01410: невалиден ROWID
    oracle.jbo.SQLStmtException: JBO-27122: SQL error during statement preparation. Statement: SELECT OU.CODE, OU.NAME, OU.ABBREVIATION, OU.ORGUNIT_TYPE, OU.PARENT_UNIT, OU.IS_VALID, OU.ROWID FROM ORG_UNITS OU WHERE (OU.ROWID = :1)
         at oracle.jbo.server.BaseSQLBuilderImpl.processException(BaseSQLBuilderImpl.java:3837)
         at oracle.jbo.server.OracleSQLBuilderImpl.processException(OracleSQLBuilderImpl.java:4621)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:1150)
         at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:762)
         at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:5681)
         at nsi.isbs.dmc.common.IsbsViewObjectImpl.executeQueryForCollection(IsbsViewObjectImpl.java:56)
         at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1005)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:1162)
         at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:1082)
         at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:1076)
         at oracle.jbo.server.ViewObjectImpl.retrieveByKey(ViewObjectImpl.java:13994)
         at oracle.jbo.server.ViewObjectImpl.retrieveByKey(ViewObjectImpl.java:13758)
         at oracle.jbo.server.ViewObjectImpl.retrieveByKey(ViewObjectImpl.java:13752)
         at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:4891)
         at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:4679)
         at oracle.jbo.server.ViewRowSetImpl.findByKey(ViewRowSetImpl.java:4673)
         at oracle.jbo.server.ViewObjectImpl.findByKey(ViewObjectImpl.java:9456)
         at oracle.jbo.server.ApplicationModuleImpl.getListBindingName(ApplicationModuleImpl.java:8421)
         at oracle.adf.model.bc4j.DCJboDataControl.getListBindingName(DCJboDataControl.java:2244)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.initDefFromServerBinding(JUCtrlListBinding.java:2366)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.getAttributeDefs(JUCtrlListBinding.java:2327)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeDef(JUCtrlValueBinding.java:497)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.getAttributeDef(JUCtrlValueBinding.java:487)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.isInternalAttributeUpdateable(JUCtrlValueBinding.java:3262)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.isAttributeUpdateable(JUCtrlValueBinding.java:1617)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.isAttributeUpdateable(JUCtrlValueBinding.java:1695)
         at oracle.jbo.uicli.binding.JUCtrlValueBinding.isUpdateable(JUCtrlValueBinding.java:2512)
         at oracle.jbo.uicli.binding.JUCtrlListBinding.isUpdateable(JUCtrlListBinding.java:3357)
         at oracle.adfinternal.view.faces.model.AdfELResolver._isReadOnly(AdfELResolver.java:85)
         at oracle.adfinternal.view.faces.model.AdfELResolver.isReadOnly(AdfELResolver.java:101)
         at javax.el.CompositeELResolver.isReadOnly(CompositeELResolver.java:353)
         at com.sun.faces.el.FacesCompositeELResolver.isReadOnly(FacesCompositeELResolver.java:113)
         at com.sun.el.parser.AstValue.isReadOnly(AstValue.java:128)
         at com.sun.el.ValueExpressionImpl.isReadOnly(ValueExpressionImpl.java:230)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.getReadOnly(EditableValueRenderer.java:400)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.wasSubmitted(EditableValueRenderer.java:341)
         at oracle.adfinternal.view.faces.renderkit.rich.EditableValueRenderer.decodeInternal(EditableValueRenderer.java:113)
         at oracle.adfinternal.view.faces.renderkit.rich.SimpleInputListOfValuesRendererBase.decodeInternal(SimpleInputListOfValuesRendererBase.java:88)
         at oracle.adfinternal.view.faces.renderkit.rich.LabeledInputRenderer.decodeInternal(LabeledInputRenderer.java:55)
         at oracle.adf.view.rich.render.RichRenderer.decode(RichRenderer.java:236)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.__rendererDecode(UIXComponentBase.java:1089)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decode(UIXComponentBase.java:714)
         at oracle.adf.view.rich.component.UIXInputPopup.processDecodes(UIXInputPopup.java:134)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:970)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:956)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:812)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:970)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:956)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:812)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:970)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:956)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:812)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:970)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:956)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:812)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildrenImpl(UIXComponentBase.java:970)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.decodeChildren(UIXComponentBase.java:956)
         at org.apache.myfaces.trinidad.component.UIXComponentBase.processDecodes(UIXComponentBase.java:812)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl$ApplyRequestValuesCallback.invokeContextCallback(LifecycleImpl.java:1113)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:722)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.invokeOnComponent(ContextSwitchingComponent.java:153)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.invokeOnComponent(ContextSwitchingComponent.java:153)
         at oracle.adf.view.rich.component.fragment.UIXPageTemplate.invokeOnComponent(UIXPageTemplate.java:208)
         at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
         at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:664)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:303)
         at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:175)
         at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
         at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
         at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
         at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
         at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:181)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:279)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._invokeDoFilter(TrinidadFilterImpl.java:239)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:196)
         at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:139)
         at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at oracle.security.jps.wls.JpsWlsFilter$1.run(JpsWlsFilter.java:85)
         at java.security.AccessController.doPrivileged(Native Method)
         at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:257)
         at oracle.security.jps.wls.JpsWlsSubjectResolver.runJaasMode(JpsWlsSubjectResolver.java:250)
         at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:100)
         at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:65)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
         at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:42)
         at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3496)
         at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
         at weblogic.security.service.SecurityManager.runAs(Unknown Source)
         at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2180)
         at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2086)
         at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1406)
         at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
         at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    Caused by: java.sql.SQLException: ORA-01410: невалиден ROWID
         at oracle.jdbc.driver.SQLStateMapping.newSQLException(SQLStateMapping.java:70)
         at oracle.jdbc.driver.DatabaseError.newSQLException(DatabaseError.java:116)
         at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:177)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:455)
         at oracle.jdbc.driver.T4CTTIoer.processError(T4CTTIoer.java:413)
         at oracle.jdbc.driver.T4C8Oall.receive(T4C8Oall.java:1034)
         at oracle.jdbc.driver.T4CPreparedStatement.doOall8(T4CPreparedStatement.java:194)
         at oracle.jdbc.driver.T4CPreparedStatement.executeForRows(T4CPreparedStatement.java:947)
         at oracle.jdbc.driver.T4CPreparedStatement.executeMaybeDescribe(T4CPreparedStatement.java:891)
         at oracle.jdbc.driver.OracleStatement.doExecuteWithTimeout(OracleStatement.java:1186)
         at oracle.jdbc.driver.OraclePreparedStatement.executeInternal(OraclePreparedStatement.java:3381)
         at oracle.jdbc.driver.OraclePreparedStatement.executeQuery(OraclePreparedStatement.java:3425)
         at oracle.jdbc.driver.OraclePreparedStatementWrapper.executeQuery(OraclePreparedStatementWrapper.java:1490)
         at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:1040)
         ... 104 more
    ## Detail 0 ##

    I have resolved my problem. I have changed the type of list binding to be Dynamic List (not Model Driven List).

  • Problem with jsp and controller

    <%@ taglib prefix="c" uri="http://java.sun.com/jstl/core"%>
    <%@ taglib prefix="fmt" uri="http://java.sun.com/jstl/fmt"%>
    <%@ taglib uri="http://www.springframework.org/tags" prefix="spring"%>
    <%@ page import='com.uk.nhs.training.data.ActivityMatrix'%>
    <SCRIPT language="JavaScript" type="text/javascript">
    function bookActivity()
    if (document.bookActivityController.activitySelect.selectedIndex == 0)
    alert("Please Select Activity");
    else if (document.bookActivityController.trainerId.selectedIndex == 0)
    alert ( "Please Select Trainer");
    else if(document.bookActivityController.fromDate.value=="")
    alert("Please supply the Start Date of Activity")
    else
    validateForExistingCourses();
    function validateForExistingCourses()
    flag="wait";
    var trainerId=document.getElementById("trainerId").value;
    var fromDate=document.getElementById("fromDate").value;
    var toDate=document.getElementById("toDate").value;
    var activityId=document.getElementById("activitySelect").value;
    url="ajaxList.htm?actionType=checkBookedCoursesActivities&trainerId="+trainerId+"&fromDate="+fromDate+"&toDate="+toDate+"&activitySelect="+activityId;
    what = "checkForPreBookedCoursesActivities(req.responseXML)";
    doCallback(null);
    function checkForPreBookedCoursesActivities(theXmlResponse)
    // alert("in here in checking prebookedCourses");
    if(theXmlResponse != null)
         var isActivityExisting = theXmlResponse.getElementsByTagName('existingActivity')[0].text;
         var isCourseExisting = theXmlResponse.getElementsByTagName('existingbookedcourse')[0].text;     
              if(isActivityExisting=="Y")
              alert("Activity You are trying to book for Trainer already exists");
              return false;
              else if(isCourseExisting=="Y")
              if(confirm('Conflict Message. The dates choosen conflict with a current booking. Do you want to override'))
    window.open("/training1.1/secure/prebookedEvents.htm","clientwindow",'StatusBar', 'toolbar=yes,resizable=yes,scrollbars=yes,width=500,height=400,left=0,top=0');
    return false;
    else
    document.bookActivityController.action="/training1.1/secure/bookActivityTrainer.htm?actionType=submitForm";
    document.bookActivityController.submit();
    function goHomePage()
         window.location="/training1.1/secure/welcome.htm";
    function showHideAmPm(divId)
    if(document.bookActivityController.halfday.checked==true)
    showDiv(divId);
    else
    hideDiv(divId);
    function showDiv(divId)
    var item = document.getElementById(divId);
    alert("show item"+item);
    if (item)
    item.className='unhidden';
    function hideDiv(divId)
    var item = document.getElementById(divId);
    alert("unhide item"+item);
    if (item)
    item.className='hidden';
    function getActivitiesPm()
    if(document.bookActivityController.am.checked==true)
    document.bookActivityController.pm.checked=false;
    flag="wait";
         url="ajaxList.htm?actionType=activities&keyword=PM";
         what = "setActivities(req.responseXML)";
         doCallback(null);
         document.bookActivityController.activityTimeSelect.value="halfday";
         document.bookActivityController.activityTimeSubType.value="pm";
         // alert("subType"+document.bookActivityController.activityTimeSubType.value);
    function getActivitiesAm()
    if(document.bookActivityController.pm.checked==true)
    document.bookActivityController.am.checked=false;
    flag="wait";
         url="ajaxList.htm?actionType=activities&keyword=AM";
         what = "setActivities(req.responseXML)";
         doCallback(null);
         document.bookActivityController.activityTimeSelect.value="halfday";
         document.bookActivityController.activityTimeSubType.value="pm";
    function getSingleDayActivities()
    if(document.bookActivityController.singleday.checked==true)
    document.bookActivityController.moredays.checked=false;
    document.bookActivityController.halfday.checked=false;
    hideDiv('partofhalfday');
    document.bookActivityController.activityTimeSelect.value="fullday";
    flag="wait";
         url="ajaxList.htm?actionType=activities&keyword=FullDay";
         what = "setActivities(req.responseXML)";
         doCallback(null);
    else
    hideDiv('activitySelect');
    function getMoreDaysActivities()
    alert();
    if(document.bookActivityController.moredays.checked==true)
    document.bookActivityController.singleday.checked=false;
    document.bookActivityController.halfday.checked=false;
    hideDiv('partofhalfday');
    document.bookActivityController.activityTimeSelect.value="moredays";
    flag="wait";
         url="ajaxList.htm?actionType=activities&keyword=FullDay";
         what = "setActivities(req.responseXML)";
         doCallback(null);
    else
    hideDiv('activitySelect');
    showDiv('dateTo');
    function setActivities(theXmlResponse)
              //start filling the Venues Select boxes now
              if(theXmlResponse != null)
                   var coursesBox=document.getElementById("activitySelect");
                   coursesBox.options.length=0;
                   var activityElementsLength=theXmlResponse.getElementsByTagName('activity').length;     
                   var activityElementsArray=theXmlResponse.getElementsByTagName('activity');
                   //alert("length"+activityElementsLength+activityElementsArray);                              
              for(x = 0; x < activityElementsLength; x++)
                        //coursesBox.options[coursesBox.options.length] = new Option(coursesElementsArray[x].firstChild.text, coursesElementsArray[x].lastChild.text);
                        var optn = document.createElement("OPTION");
                   optn.text = activityElementsArray[x].firstChild.text;
    optn.value = activityElementsArray[x].lastChild.text;
    coursesBox.options.add(optn);
         if (activityElementsLength>0)
                   showDiv('activityTD');
              flag="release";
    </script>
    <div id="content"><!-- Top story -->
    <div id="topstory" class="box">
    <div id="topstory-img"></div>
    <!-- /topstory-img -->
    <div id="topstory-desc">
    <div id="topstory-title"><strong>BOOK Activity</strong></div>
    <!-- /topstory-title -->
    <div id="topstory-desc-in"></div>
    <!-- /topstory-desc-in --></div>
    <!-- /topstory-desc --></div>
    <!-- /topstory -->
    <div id="bodycontent">
    <% int errorCount=0; %>          
              <spring:bind path="bookactivityevent.*">
              <c:forEach items="${status.errorMessages}" var="error">
                        <B><font color="red">Error: <c:out value="${error}"/></font><B/>
                        <% errorCount++; %>
              </c:forEach>
              </spring:bind>
    <form method="post" name="bookActivityController" action="<c:url value="/secure/bookActivityTrainer.htm"/>">
    <table align="right" width="50%" border=0>
    <input type="hidden" name="activityTimeSelect"/>
    <input type="hidden" name="activityTimeSubType"/>
    <tr>
    <td align="left">
    <INPUT TYPE="checkbox" NAME="halfday" onclick="showHideAmPm('partofhalfday')">Half Day    
    <div align="left "id="partofhalfday" class="hidden">
    <INPUT TYPE="RADIO" NAME="am" onClick="getActivitiesAm()" value="am">AM <INPUT TYPE="RADIO" NAME="pm" onClick="getActivitiesPm()">PM <BR>
    </div>
    </td>
    </tr>
    <tr><td><INPUT TYPE="checkbox" NAME="singleday" onClick="getSingleDayActivities()"> Single Day</td>
    </tr>
    <tr>
    <td><INPUT TYPE="checkbox" NAME="moredays" onClick="getMoreDaysActivities()"> More Days</td>
    </tr>
         <tr>
              <td align="left" id="activityTD">Activity :
              <c:set var="activityMap" value=${requestScope.activityMap}/>
         <c:choose>
                        <c:when test="${activityMap = null}"
         <spring:bind path="bookactivityevent.userSuppliedActivity.activity.activityId">
              <select name="activitySelect" id="activitySelect" size="1"
                   STYLE="width: 150px">
                   <option value="Choose Activity" default>Choose Activity</option>
              </select>
              </spring:bind>
              </c:when>
              <c:otherwise>      
              <spring:bind path="bookactivityevent.userSuppliedActivity.activity.activityId">
              <select name="activitySelect" id="activitySelect"
                   size="1" STYLE="width: 150px">
                   <option value="" default>Choose Activity</option>
                   <c:forEach var="activity" items="${activityMap}" varStatus="a">
                        <c:choose>
                             <c:when
                                  test="${(bookactivityevent !=null) && (bookactivityevent.userSuppliedActivity.activity.activityId == activity.activityId)}">
                                  <option value="<c:out value="${activity.activityId}"/>" selected><c:out
                                       value="${activity.activityId}" /></option>
                             </c:when>
                             <c:otherwise>
                             <option value="<c:out value="${activity.activityId}"/>"><c:out
                                       value="${activity.activity}"/>
                             </c:otherwise>
                        </c:choose>
                   </c:forEach>
              </select>
         </spring:bind>
         </c:otherwise>
         </c:choose>
         </td>
    </tr>
         <tr>
              <td align="left">Trainer:
              <spring:bind path="bookactivityevent.userSuppliedActivity.trainer.trainerId">
              <select name="trainerId" id="trainerId"
                   size="1" STYLE="width: 150px">
                   <option value="" default>Choose Trainer</option>
                   <c:forEach var="trainer" items="${trainers}" varStatus="a">
                        <c:choose>
                             <c:when
                                  test="${(bookactivityevent !=null) && (bookactivityevent.userSuppliedActivity.trainer.trainerId == trainer.trainerId)}">
                                  <option value="<c:out value="${trainer.trainerId}"/>" selected>
                                  <c:out value="${trainer.firstName}"/>&nbsp<c:out
                                       value="${trainer.surName}" /></option>
                             </c:when>
                             <c:otherwise>
                                  <option value="<c:out value="${trainer.trainerId}"/>"><c:out
                                       value="${trainer.firstName}"/>&nbsp<c:out
                                       value="${trainer.surName}" /></option>
                             </c:otherwise>
                        </c:choose>
                   </c:forEach>
              </select>
         </spring:bind>     
              </td>
         </tr>
         <tr>
              <td align="left" id="dateFrom">From Date
              <spring:bind path="bookactivityevent.userSuppliedActivity.dateFrom">
              <input type="text" name="dateFrom" value=""/>
              </spring:bind>
              <img
                   src="../design/cal.gif" width="16" height="16" border="0"
                   alt="Click Here to Pick up the date"></td>
         </tr>
         <tr>
              <td align="left" id="dateTo" class="hidden">To Date
              <spring:bind path="bookactivityevent.userSuppliedActivity.dateTo">
              <input type="text" name="dateTo" value=""/>
              </spring:bind>
              <img
                   src="../design/cal.gif" width="16" height="16" border="0"
                   alt="Click Here to Pick up the date"></td>
         </tr>
         <tr>
              <td align="left" colspan="2"><input type="submit" name="_target1" value="BookActivity"/></td>
                   <c:if test="${(bookactivityevent != null) && (not empty bookactivityevent.conflictBookings)}">
    <td align="left" colspan="2"><input type="submit" name="_target2" value="OverRideBookings"/></td>
    </c:if>
              <td align="left" colspan="2"><input type="button" name="Cancel"
                   value="Cancel" onClick="goHomePage();" /></td>
         </tr>
    </table>
    </form>
    </div>
    <hr class="noscreen"/>
    <div class="content-padding"></div>
    <script language="JavaScript">
         var cal1 = new calendar1(document.bookActivityController.elements['dateFrom']);
         cal1.year_scroll = true;
         cal1.time_comp = false;
    var cal2 = new calendar1(document.bookActivityController.elements['dateTo']);
         cal2.year_scroll = true;
         cal2.time_comp = false;
    </script></div>
    <!-- /content -->
    package com.uk.nhs.training.controller;
    import java.beans.PropertyEditorSupport;
    import java.text.ParseException;
    import java.text.SimpleDateFormat;
    import java.util.ArrayList;
    import java.util.Date;
    import java.util.HashMap;
    import java.util.List;
    import java.util.Map;
    import javax.servlet.http.HttpServletRequest;
    import javax.servlet.http.HttpServletResponse;
    import javax.swing.text.html.HTMLDocument;
    import org.apache.commons.logging.Log;
    import org.apache.commons.logging.LogFactory;
    import org.springframework.util.StringUtils;
    import org.springframework.validation.BindException;
    import org.springframework.validation.Errors;
    import org.springframework.validation.ValidationUtils;
    import org.springframework.web.bind.ServletRequestDataBinder;
    import org.springframework.web.servlet.ModelAndView;
    import org.springframework.web.servlet.mvc.AbstractWizardFormController;
    import org.springframework.web.servlet.view.RedirectView;
    import com.uk.nhs.training.contractUtility.ContractHtmlReader;
    import com.uk.nhs.training.data.Activity;
    import com.uk.nhs.training.data.ActivityMatrix;
    import com.uk.nhs.training.data.BookActivityEvent;
    import com.uk.nhs.training.data.Booking;
    import com.uk.nhs.training.data.BookingDetails;
    import com.uk.nhs.training.data.Client;
    import com.uk.nhs.training.data.Course;
    import com.uk.nhs.training.data.Trainer;
    import com.uk.nhs.training.data.Venue;
    import com.uk.nhs.training.data.ActivityTimeConstants;
    import com.uk.nhs.training.service.ActivityMatrixService;
    import com.uk.nhs.training.service.ActivityService;
    import com.uk.nhs.training.service.BookingDetailsService;
    import com.uk.nhs.training.service.BookingService;
    import com.uk.nhs.training.service.ClientService;
    import com.uk.nhs.training.service.CourseService;
    import com.uk.nhs.training.service.TrainersService;
    import com.uk.nhs.training.service.VenueService;
    public class BookActivityController extends AbstractWizardFormController {
         protected final Log logger = LogFactory.getLog(getClass());
         private BookingService bookingFacade;
         private BookingDetailsService bookingDetailsFacade;
         private CourseService courseFacade;
         private VenueService venueFacade;
         private ClientService clientFacade;
         private ActivityMatrixService activityMatrixFacade;
         private ActivityService activityFacade;
         private TrainersService trainersFacade;
         private SimpleDateFormat dateFormat = new SimpleDateFormat("dd/MM/yyyy");
         public BookActivityController() {
              setCommandClass(BookActivityEvent.class);
         setCommandName("bookactivityevent");
         setBindOnNewForm(true);
         protected Object formBackingObject(HttpServletRequest request)
                   throws Exception {
              BookActivityEvent bookActivityEvent = new BookActivityEvent();
              ActivityMatrix activityMatrix = new ActivityMatrix();
              activityMatrix.setActivity(new Activity());
              activityMatrix.setTrainer(new Trainer());
              List<Booking> bookingList = new ArrayList<Booking>();
              bookActivityEvent.setUserSuppliedActivity(activityMatrix);
              bookActivityEvent.setConflictBookings(bookingList);
              return bookActivityEvent;
         public Map referenceData(HttpServletRequest request, Object command, Errors errors, int Page)
              List trainers = trainersFacade.loadTrainers();
         Map trainersActivitiesMap = new HashMap();
              trainersActivitiesMap.put("trainers", trainers);          
              return trainersActivitiesMap;
         protected ModelAndView processFinish(HttpServletRequest request,
                   HttpServletResponse response, Object command, BindException errors) {
              try {
                   ActivityMatrix activity = (ActivityMatrix) command;
                   activityMatrixFacade.saveActivityMatrix(activity);
                   logger.info("Activity is successfully saved for the trainer");
              } catch (Exception e) {
                   e.getClass();
                   e.printStackTrace();
              return new ModelAndView("bookSuccess");
         @Override
         protected void initBinder(HttpServletRequest request, ServletRequestDataBinder binder) throws Exception {
              dateFormat.setLenient(true);
              binder.registerCustomEditor(java.sql.Date.class, "dateFrom", new SqlDateEditor(true));
              binder.registerCustomEditor(java.sql.Date.class, "dateTo", new SqlDateEditor(false));
              binder.registerCustomEditor(java.sql.Date.class, null, new SqlDateEditor(true));
         protected ModelAndView handleInvalidSubmit(HttpServletRequest request,
                   HttpServletResponse response) throws Exception {
              return new ModelAndView("bookInvalidSubmit");
         @Override
         protected ModelAndView processCancel(HttpServletRequest request,
                   HttpServletResponse response, Object command, BindException errors)
                   throws Exception {
              return new ModelAndView(new RedirectView("welcome.htm"));
         @Override
         protected void onBindAndValidate(HttpServletRequest request,
                   Object command, BindException errors, int page) throws Exception {
              BookActivityEvent bookActivityEvent = (BookActivityEvent) command;
              System.out.println(" PAGE : " + page);
              try {
                   switch (page) {
                   case 0:
                        if (request.getParameter("_target1") != null) {
                             ActivityMatrix userActivityMatrix = bookActivityEvent.getUserSuppliedActivity();
                             buildActivityMatrix(request, bookActivityEvent);     
                             validateActivityMatrix(bookActivityEvent, errors);
                             if (errors.getErrorCount() == 0)
                                  Trainer trainer = (Trainer) trainersFacade.loadTrainersById(userActivityMatrix.getTrainer().getTrainerId());
                                  bookActivityEvent.getUserSuppliedActivity().setTrainer(trainer);
                                  Activity activity= (Activity) activityFacade.loadActivitiesById(userActivityMatrix.getActivity().getActivityId());
                                  bookActivityEvent.getUserSuppliedActivity().setActivity(activity);
                                  boolean activityExists = checkForExistingActivities(userActivityMatrix, errors);
                                  if(!activityExists)
                                  boolean bookingsExist =      checkForBookedCourses(request, bookActivityEvent, errors);
                                  if(bookingsExist)
                                       // inject an error code so that it can be used in GUI
                                       errors.rejectValue("dateFrom","invalid dates","Trainer has Bookings in conflict with the Supplied Activity Dates");
                                  else
                                       errors.rejectValue("dateFrom","Activity Dates supplied already exist");
                        break;
                   case 1:
                        if (request.getParameter("_target2") != null)
                             * Get the user supplied activitymatrix and try to get all the bookings which are in conflict for the trainer
                        List<Booking> conflictBookingsList = (List<Booking>)request.getSession().getAttribute("conflictBookingsList");
                        break;
                   default:
              } catch (Exception e) {
                   System.err.println("Exception :" + e.getMessage());
              super.onBindAndValidate(request, command, errors, page);
         * @param request
         * @param userActivity
         * @param bookActivityEvent TODO
         private ActivityMatrix buildActivityMatrix(HttpServletRequest request, BookActivityEvent bookActivityEvent) {
              ActivityMatrix userActivity = bookActivityEvent.getUserSuppliedActivity();
              userActivity.getTrainer().setTrainerId((String)(request.getParameter("trainerId")));
              userActivity.getActivity().setActivityId((String)(request.getParameter("activitySelect")));          
              String activityTime = (String)request.getParameter("activityTimeSelect");
              String activitySubType = (String)request.getParameter("activityTimeSubType");
              if("fullday".equals(activityTime))
                   userActivity.getActivity().setTime(ActivityTimeConstants.FULLDAY.toString());
              else if("moredays".equals(activityTime))
                   userActivity.getActivity().setTime(ActivityTimeConstants.MOREDAYS.toString());
              else if("halfday".equals(activityTime)&& "am".equals(activitySubType))
                   userActivity.getActivity().setTime(ActivityTimeConstants.AM.toString());               
              else if("halfday".equals(activityTime)&& "pm".equals(activitySubType))
                   userActivity.getActivity().setTime(ActivityTimeConstants.PM.toString());
              if(!("moredays".equals(activityTime)))
                   userActivity.setDateTo(bookActivityEvent.getDateFrom());
              userActivity.setDateFrom(bookActivityEvent.getDateFrom());
              bookActivityEvent.setUserSuppliedActivity(userActivity);
              return userActivity;
         * Create an empty Booking details for client and course...
         * @param booking
         private void setInitialBookingDetails(Booking booking, BindException errors) {
              if (booking.getBookingType().equals("Client-Based")) {
                   if (booking.getClient() == null
                             || booking.getClient().getClientId() == null) {
                        booking.setClient(new Client());
              } else if (booking.getBookingType().equals("Staff")) {
                   booking.setClient(null);
              if (booking.getBookingDetails() == null) {
                   List<BookingDetails> bkDetailsList = new ArrayList<BookingDetails>();
                   BookingDetails bkDetails = new BookingDetails();
                   bkDetails.setCourse(new Course());
                   bkDetailsList.add(bkDetails);
                   booking.setBookingDetails(bkDetailsList);
              } else {
                   List bkDetList = booking.getBookingDetails();
                   if (bkDetList.size() < 1
                             || (bkDetList.size() > 0 && !((bkDetList.get(0)) instanceof BookingDetails))) {
                        BookingDetails bkDetails = new BookingDetails();
                        bkDetails.setCourse(new Course());
                        bkDetList.add(0, bkDetails);
                        booking.setBookingDetails(bkDetList);
                   } else if (((BookingDetails) bkDetList.get(0)).getCourse() == null
                             || ((BookingDetails) bkDetList.get(0)).getCourse()
                                       .getCourseId() == null) {
                        ((BookingDetails) bkDetList.get(0)).setCourse(new Course());
         @Override
         protected void validatePage(Object command, Errors errors, int page,
                   boolean finish) {
              BookActivityEvent activityEvent = (BookActivityEvent) command;
              if (finish) {
              super.validatePage(command, errors, page);
         * Validate client
         * @param booking
         * @param err
         private boolean checkForExistingActivities(ActivityMatrix userSuppliedActivity, Errors err)
              boolean exist = false;          
              List<ActivityMatrix> trainerActivityMatrixList =      activityMatrixFacade.getActivityMatrixBetweenDateRange(userSuppliedActivity.getTrainer().getTrainerId(),
                        userSuppliedActivity.getDateFrom(), userSuppliedActivity.getDateTo());
              if(ActivityTimeConstants.MOREDAYS.equals(userSuppliedActivity.getActivity().getTime()))
                   //checkForDates(trainerActivityMatrixList,);
              else if(ActivityTimeConstants.FULLDAY.equals(userSuppliedActivity.getActivity().getTime()))
                   // checkForDates(trainerActivityMatrixList,);
              else if(ActivityTimeConstants.AM.equals(userSuppliedActivity.getActivity().getTime()) ||
                        ActivityTimeConstants.PM.equals(userSuppliedActivity.getActivity().getTime()))
                   // checkForDates(trainerActivityMatrixList,);
         return exist;          
              * Check for existing bookings for a trainer and sets them on event object
              * @param request request.
              * @param event event.
              * @param err err.
              * @return true- bookings exist else false.
    private boolean checkForBookedCourses(HttpServletRequest request, BookActivityEvent event, Errors err)
         List<Booking> conflictBookingsList =      bookingFacade.loadBookingsByTrainerIdDateRange(event.getUserSuppliedActivity().getTrainer().getTrainerId(),
                   event.getUserSuppliedActivity().getDateFrom(),
                   event.getUserSuppliedActivity().getDateTo());
    request.getSession().setAttribute("conflictBookingsList",conflictBookingsList);     
                   if(conflictBookingsList!=null && conflictBookingsList.size()!=0)
                   event.setConflictBookings(conflictBookingsList);
                   return true;
                   else
                        return false;
         * Validate client
         * @param booking
         * @param err
         private void validateActivityMatrix(final BookActivityEvent activity, Errors err) {
    //          ValidationUtils.rejectIfEmptyOrWhitespace(err, "trainer.trainerId",
    //                    "required.trainer.trainerId", "Valid trainer needs to be selected.");
    ////          ValidationUtils.rejectIfEmptyOrWhitespace(err, "activity.activityId",
    ////                    "required.activity.activityId", "Valid activity needs to be selected.");
    //          if (err.getErrorCount() < 1)
    //                    if (activity.getDateFrom() == null) {
    //                         err.rejectValue("dateFrom", "required.dateFrom",
    //                                   "Valid Activity Start Date is required");
    //                    try
    //                         if (activity.getDateFrom() != null && activity.getDateTo() != null
    //                                   && (activity.getDateTo().before(activity.getDateFrom())))
    //                              err.rejectValue("dateTo", "required.dateTo",
    //                                        "Activity End Date Should be after start date.");
    //                    } catch (Exception ex) {
    //                         err.rejectValue("dateFrom",
    //                                   "dateFrom",
    //                                   "Improper dates, please provide valid dates.");
         * Validate Trainer
         * @param booking
         * @param e
         private void validateTrainer(final Booking booking, Errors e) {
              ValidationUtils.rejectIfEmptyOrWhitespace(e,
                        "bookingDetails[0].startDate",
                        "required.bookingDetails[0].startDate",
                        "Valid Booking Details startDate required.");
              ValidationUtils.rejectIfEmptyOrWhitespace(e,
                        "bookingDetails[0].trainer.trainerId",
                        "required.bookingDetails[0].trainer.trainerId",
                        "Valid Booking Details Trainer required.");
              if (e.getErrorCount() < 1)
                   for (BookingDetails bd : booking.getBookingDetails()) {
                        if (bd.getStartDate() == null) {
                             e.rejectValue("startDate", "required.bbb0",
                                       "Valid Booking details Start Date is required");
                        try {
                             if (bd.getStartDate() != null && bd.getEndDate() != null
                                       && (bd.getEndDate().before(bd.getStartDate())))
                                  e.rejectValue("endDate", "required.bbb0",
                                            "End Date Should be after starting date.");
                        } catch (Exception ex) {
                             e.rejectValue("bookingDetails[0].startDate",
                                       "before.bookingDetails[0].startDate",
                                       "Improper dates, please provide valid dates.");
                        if (bd.getTrainer() != null) {
                             e.rejectValue("trianerId", "required.trianerId",
                                       "Valid Trainer details required.");
         public BookingService getBookingFacade() {
              return bookingFacade;
         public void setBookingFacade(BookingService bookingFacade) {
              this.bookingFacade = bookingFacade;
         public CourseService getCourseFacade() {
              return courseFacade;
         public void setCourseFacade(CourseService courseFacade) {
              this.courseFacade = courseFacade;
         public VenueService getVenueFacade() {
              return venueFacade;
         public void setVenueFacade(VenueService venueFacade) {
              this.venueFacade = venueFacade;
         public ClientService getClientFacade() {
              return clientFacade;
         public void setClientFacade(ClientService clientFacade) {
              this.clientFacade = clientFacade;
         public TrainersService getTrainersFacade() {
              return trainersFacade;
         public void setTrainersFacade(TrainersService trainersFacade) {
              this.trainersFacade = trainersFacade;
         * getter method for activityFacade.
         * @return Returns the activityFacade.
         public ActivityService getActivityFacade() {
              return activityFacade;
         * setter method for activityFacade.
         * @param activityFacade The activityFacade to set.
         public void setActivityFacade(ActivityService activityFacade) {
              this.activityFacade = activityFacade;
         * getter method for activityMatrixFacade.
         * @return Returns the activityMatrixFacade.
         public ActivityMatrixService getActivityMatrixFacade() {
              return activityMatrixFacade;
         * setter method for activityMatrixFacade.
         * @param activityMatrixFacade The activityMatrixFacade to set.
         public void setActivityMatrixFacade(ActivityMatrixService activityMatrixFacade) {
              this.activityMatrixFacade = activityMatrixFacade;
         * getter method for bookingDetailsFacade.
         * @return Returns the bookingDetailsFacade.
         public BookingDetailsService getBookingDetailsFacade() {
              return bookingDetailsFacade;
         * setter method for bookingDetailsFacade.
         * @param bookingDetailsFacade The bookingDetailsFacade to set.
         public void setBookingDetailsFacade(BookingDetailsService bookingDetailsFacade) {
              this.bookingDetailsFacade = bookingDetailsFacade;
         class SqlDateEditor extends PropertyEditorSupport {
              private boolean isRequired = false;
              SqlDateEditor(boolean isRequired) {
                   this.isRequired = isRequired;
              public void setAsText(String text) throws IllegalArgumentException {
                   java.util.Date d = null;
                   if (!this.isRequired && !StringUtils.hasText(text)) {
                        setValue(null);
                   else
                        try {
                             d = dateFormat.parse(text);
                             setValue(new java.sql.Date(d.getTime()));
                        } catch (ParseException ex) {
                             throw new IllegalArgumentException("Could not parse date: " + ex.getMessage());
              public String getAsText() {
                   Date value = (java.sql.Date)getValue();
                   if (value != null) {
                        java.util.Date d = new java.util.Date(value.getTime());
                        return dateFormat.fo

    This topic is hopeless. Too much unnecessary code. Unformatted code. No question. No requirements. No step-by-step explanation how to reproduce problem. No expectations. No unexpectations/errors.
    Please read this how to get better help.

  • Problem with dzen2 and bash

    I'm having a problem piping the date to dzen2 using the date command in a while loop in bash.
    In my startup script I have this line to start the panel and the script to pipe the info:
    statusbar | dzen2 -h $PANEL_HEIGHT -dock -ta l -title-name panel -fn $FONT -fg $PANEL_TEXT_LIGHT -bg $PANEL_BG &
    and then the statusbar script looks like this:
    while true ; do
    echo "$(date +%I:%M %p)"
    sleep 1
    done
    That isn't the complete statusbar script, but i've identified the date command as the problem. For whatever reason, when the date command is in the loop, there is no output to the panel, and if I monitor my system resources I can see that my computer's memory is getting used up extremely quickly. It seems like it spawning a bunch of instances of the script. I'm not extremely experienced with linux, and definitely not with bash, so I have absolutely no clue whats going on here.

    Raynman wrote:
    $ echo "$(date +%I:%M %p)"
    date: extra operand ‘%p’
    Try 'date --help' for more information.
    Edit: since you're basically saying you're a newbie (and this also probably fits better in the Newbie Corner), I'll add that you should put the formatting string in (single) quotes to turn it into a single argument.
    I'm not saying I'm a newbie at all. The issue occurs even without any parameters to the date command.

Maybe you are looking for

  • ¿How can I publish a Camera with a different UserID?

    First of all, Happy New Year 2011! I've tried WebcamPublisher webCamPub.publish("userPublisher") method to publish a WebCam to a room with a different user that the "myUserId" logged at the session, but the subscribers attached to the room they never

  • Quick par upload NWDS ERROR   Unexpected end of file from server

    Hi: I can´t deploy my par file from NWDS, this is the error: 28.04.09 / 08:24] #ERROR LEVEL# com.sap.portal.developmentTools.ideSpecific.eclipse.wizards.sapmakepar.SAPMPWizard$1 > No Information java.net.SocketException: Unexpected end of file from s

  • When opening firefox 3.6.8 I get a java script error at line 323

    When trying to open Firefox 3.6.8, I get a java script error: [JavaScript Error: "dir is null" {file: "file:///C:/Users/My%20Computer/AppData/Roaming/Mozilla/Firefox/Profiles/lk5mbar9.default/extensions/%7B0538E3E3-7E9B-4d49-8831-A227C80A7AD3%7D/comp

  • N78 software update issue

    Hi, I just updated the firmware for my new N78, after updated , the process seem to be slow, now my camera can't use the zoom buttons, and my theme look not good and not interact as before.

  • Peformance using XML

    Hi all, I want to know any comparision between the performance using XML and java. Currently im communicating with RMI protocol between the server and client, its agreed that its slow. We do have bulk transactions and the entire system runs slow a li