Validation in a paneltabbed

Jdev 11.1.14
My page has a paneltabbed with two tabs.
In each tab I have a region with jsff (page fragments).
When I run the application, tab 1 displays. It has some fields that are mandatory (because they are defined this way in the entity object).
When I click in the sacond tab, a mandatory validation error raises. I don't want this to happen because I just want to go to the second tab that is a diferrent screen and I want to do nothing with the first tab.
I have tried to modify the pagedef with skipvalidation=true but I get exactly the same error.
Then I have changed the mandatory definition in the entity object and made the field optional. It works ok (but then it never validates !). Then I have put a client validation (mandatory=yes in the property inspector). Even with immediate=true in the showdetalitem of the panetabbed, I continue getting the mandatory error if I try to change the tab.
I need the field to be normally validated as mandatory except if I click in the second tab of the paneltabbed. How can I do ?

I have put it in both tabs but it doesn't work in my use case. I can send you the piece of code if you like.
This is the definition of the "mandatory field" (remember that it is inside a page fragment):
<af:selectOneChoice value="#{bindings.SvagrCodigo.inputValue}"
label="#{viewcontrollerBundle['ALU.SVAGRCODIGO']}"
required="#{bindings.SvagrCodigo.hints.mandatory}"
shortDesc="#{bindings.SvagrCodigo.hints.tooltip}"
binding="#{backingBeanScope.AluCertIniBB.soc2}"
id="soc2"
valueChangeListener="#{backingBeanScope.AluCertIniBB.soc1_changeListener}"
autoSubmit="true" immediate="true">
and this is the panltabbed (whose showDetailItem display the regions where the page fragments are):
<af:panelTabbed id="pt2">
<af:showDetailItem text="#{viewcontrollerBundle['ALU.CERTIFICADOS']}" id="sdi1"
stretchChildren="first" immediate="true">
<af:region value="#{bindings.AlumnosSolCertificados1.regionModel}"
id="r1"/>
</af:showDetailItem>
<af:showDetailItem text="#{viewcontrollerBundle['ALU.COMPULSAS']}" id="sdi2"
immediate="true">
<af:region value="#{bindings.AluComp1.regionModel}" id="r2"/>
</af:showDetailItem>
</af:panelTabbed>
It doesn't work.
If this field is declared as mandatory in the entity object, an error alert is displayed when trying to move from tab 1 to the second.
Edited by: user10867691 on 09-jul-2012 4:56

Similar Messages

  • Panel Stretch Layout is not a valid child of PanelTabbed Component

    With reference to the use case shown here(' [Table with Header Left,Footer Right|http://www.oracle.com/technetwork/testcontent/thlfrpattern-083015.html] ") :
    I tried to embed the table inside the tabbed pane.
    Here is the code for the same:
    <f:view>
    <af:document id="d1">
    <af:form id="f1">
    <af:panelSplitter id="ps1" orientation="vertical" splitterPosition="47">
    <f:facet name="first"/>
    <f:facet name="second">
    <af:panelSplitter id="ps2" splitterPosition="144">
    <f:facet name="second">
    <af:panelTabbed id="pt1">
    <!---- point of error here i get the error message ---------->
    <af:showDetailItem text="Embedded in a Tab" id="sdi1"/>
    <af:panelStretchLayout id="psl1" bottomHeight="31em" topHeight="62em" >
    <f:facet name="bottom">
    <af:panelStretchLayout id="psl2" endWidth="103em">
    <f:facet name="end">
    <af:panelGroupLayout id="pgl2" valign="middle" halign="end" layout="horizontal" >
    <af:commandButton text="Save" id="cb1" accessKey="S"/>
    <af:commandButton text="Cancel" id="cb2" accessKey="C"/>
    <af:spacer width="6" height="31" id="s2"/>
    </af:panelGroupLayout>
    </f:facet>
    </af:panelStretchLayout>
    </f:facet>
    <f:facet name="center">
    <!-- here the table will be displayed i have omitted the code from here------->
    </f:facet>
    <f:facet name="top">
    <af:panelGroupLayout id="pgl1" layout="horizontal">
    <af:spacer width="6em" height="31em" id="s1"/>
    <af:image source="/coffee.bmp" shortDesc="demo icon" id="i1"/>
    <af:outputText value="List of Cool Employees" id="ot1"
    inlineStyle="color:Black; font-weight:bold; font-size:large;"/>
    </af:panelGroupLayout>
    </f:facet>
    </af:panelStretchLayout>
    </af:panelTabbed>
    </f:facet>
    </af:panelSplitter>
    </f:facet>
    </af:panelSplitter>
    </af:form>
    </af:document>
    </f:view>
    Inside the PanelTabbed Component I cannot insert the PanelStretchLayout component.
    The error it is displaying is that the Panel Stretch Layout is not a valid child of the PanelTabbed Component.
    Please let me know how can I embed the 'Table with Header Left,Footer Right' in case of a PanelTabbed Component as shown in the use case in the documentation.

    Hi,
    Yes, children of af:panelTabbed must be af:showDetailItem - these represent each tab. You then add further components (e.g. your panelStretch, table etc.) as children to the af:showDetailItem.
    Looking at your code, you have a showDetailItem but the panelStretch is not inside it. In fact nothing is inside the showDetailItem as the XML tag is self-closed (i.e. has a / at the end). You need to remove the / and add a closing tag (</af:showDetailItem) after your panelStretch.
    Change your code to something like this:
    <af:panelTabbed id="pt1">
      <af:showDetailItem text="Embedded in a Tab" id="sdi1">
        <af:panelStretchLayout id="psl1" bottomHeight="31em" topHeight="62em" >
        </af:panelStretchLayout>
      </af:showDetailItem>
    </af:panelTabbed>Alternatively in the JDeveloper Structure view you could drag the panelStretch onto the showDetailItem so that it shows it as a child.
    Kevin.

  • Ignore required fileds when click on af:ShowDetilItem

    I am using jdeveloper 11.1.2
    I have jsf page with two showDetailItem
    in each one I have <af:region> which is task flow with jsff page contain required fields
    I need when click on showDetailItem to take me to this component without displaying error messages that I need to fill the required fields
    <af:form id="f1" usesUpload="true">
    <af:pageTemplate viewId="/templates/PageTemplate.jsf" id="pt1" value="#{bindings.ptb1}">
    <f:facet name="title">
    <af:outputText value="#{viewcontrollerBundle.PAGETITLE_U4}" id="ot1"/>
    </f:facet>
    <f:facet name="body">
    <af:group id="g1">
    <af:panelTabbed id="pt2" styleClass="AFStretchWidth" dimensionsFrom="auto">
    <af:showDetailItem text="#{viewcontrollerBundle.SAVED_SCI_PLAN}" id="sdi1" >
    <af:panelGroupLayout id="pgl1" layout="scroll">
    <af:region value="#{bindings.scientificWorkResearcherSubmitTF1.regionModel}"
    id="r1"/>
    </af:panelGroupLayout>
    </af:showDetailItem>
    <af:showDetailItem text="#{viewcontrollerBundle.SENDENG_SCI_PLAN_RESEARCH_CENTER}" id="sdi2">
    <af:region value="#{bindings.sentSciListTF1.regionModel}" id="r2"/>
    </af:showDetailItem>
    </af:panelTabbed>
    </af:group>
    </f:facet>
    </af:pageTemplate>
    </af:form>
    </af:document>
    </f:view>
    I tried to add attribute immediate = true and to define disclosureListener with FacesContext.getCurrentInstance().renderResponse(); but it didn't work

    I am sorry but I found this link after posting my question
    Validation in a paneltabbed
    sorry again

  • Af:panelTabbed validator

    Hi,
    i have a panelTabbed and panelTabbed have many showDetailItem, inside showDetailItem i have validators.
    After panelTabbed i have a commandButton, is possible command button invoke all validators?
    Thanks..
    panelTabbed
    showDetailItem
    Validator1
    /showDetailItem
    showDetailItem
    Validator2
    /showDetailItem
    /panelTabbed
    commandButton (invoke validator1, validator2 ....)

    What do you mean showDetailItem having validator? showDetailItem is not an input component, so what is there to validate?
    Can you explain your use case more fully.
    John

  • How to insert Commandbutton using paneltab in ADF Faces

    hi all,
    i am developing the ADF application where i created JSF page(.jspx).In that i have used the panelTabbed and dropped one VO(viewobject) as a table.I need to add one commandbutton and inputtext(any objects) after the table...But commandbutton or whatever components are not visible in the page..Please help on this.
    The below code for your reference.....
    <af:showDetailItem text="Add" id="sdi3">
    <af:panelGroupLayout id="pgl2">
    <af:table value="#{bindings.RejctVO1.collectionModel}"
    var="row"
    rows="#{bindings.RejctVO1.rangeSize}"
    emptyText="#{bindings.RejctVO1.viewable ? 'No data to display.' : 'Access Denied.'}"
    fetchSize="#{bindings.RejctVO1.rangeSize}"
    rowBandingInterval="0" id="t1">
    <af:column sortProperty="RejctId" sortable="false"
    headerText="#{bindings.RejctVO1.hints.RejctId.label}"
    id="c2">
    <af:inputText value="#{row.bindings.RejctId.inputValue}"
    label="#{bindings.RejctVO1.hints.RejctId.label}"
    required="#{bindings.RejctVO1.hints.RejctId.mandatory}"
    columns="#{bindings.RejctVO1.hints.RejctId.displayWidth}"
    maximumLength="#{bindings.RejctVO1.hints.RejctId.precision}"
    shortDesc="#{bindings.RejctVO1.hints.RejctId.tooltip}"
    id="it2">
    <f:validator binding="#{row.bindings.RejctId.validator}"/>
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.RejctVO1.hints.RejctId.format}"/>
    </af:inputText>
    </af:column>
    <af:column sortProperty="RejctDs" sortable="false"
    headerText="#{bindings.RejctVO1.hints.RejctDs.label}"
    id="c1">
    <af:inputText value="#{row.bindings.RejctDs.inputValue}"
    label="#{bindings.RejctVO1.hints.RejctDs.label}"
    required="#{bindings.RejctVO1.hints.RejctDs.mandatory}"
    columns="#{bindings.RejctVO1.hints.RejctDs.displayWidth}"
    maximumLength="#{bindings.RejctVO1.hints.RejctDs.precision}"
    shortDesc="#{bindings.RejctVO1.hints.RejctDs.tooltip}"
    id="it1">
    <f:validator binding="#{row.bindings.RejctDs.validator}"/>
    </af:inputText>
    </af:column>
    </af:table>
    </af:panelGroupLayout>
    <af:spacer id="s1"/>
    <af:commandButton text="commandButton 1" id="cb1"/>
    </af:showDetailItem>
    Regards
    murali

    Hi Muralli,
    First u can display the command button near to the table by surrounding the af:table by panelCollection and panelCollection has some facets... even af:table too have some facets
    In panelcollection facets make use of toolbar facet
    <af:panelCollection ....
    <f:facet name="toolbar">
    <af:toolbar id="t2">
    <af:commandButton text="commandButton 1" id="cb1"/>
    </af:toolbar>
    </f:facet>
    <af:table ....
    </af:table>
    </af:panelCollection>
    Have look on this documents for Table and Collection
    Table : http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e12419/tagdoc/af_table.html
    PanelCollection : http://download.oracle.com/docs/cd/E12839_01/apirefs.1111/e12419/tagdoc/af_panelCollection.html
    Regards,
    Suganth.G

  • ADF Validation problem

    Dear all,
    I use adf validation something like this <af:inputText id="it1" required="true"/>.
    As i think, validation should trigger when the user click on submit button.
    But this kind of validation trigger on any click on the page. (eg. menu, panel box collapse and expand)
    So, even user don't want to submit the input , they want to go others page they need to fill this text box.
    Is there any solution for that?
    With Regards,
    WP
    Edited by: user8729650 on Oct 26, 2009 8:50 PM

    Thanks for helping me...
    This is my code on jsp. i put immediate=true. but it still validate.
    <af:form id="f1" >
    <af:pageTemplate viewId="/StarsTemplate.jspx" id="pt1" >
    <f:facet name="SideMenu"/>
    <f:facet name="Main">
    <af:panelTabbed id="pt2" >
    <af:showDetailItem text="showDetailItem 1" id="sdi1" immediate="true">
    <af:panelBox text="PanelBox1" id="pb1" immediate="true">
    <f:facet name="toolbar"/>
    <af:panelGroupLayout layout="vertical" >
    <af:inputText label="Label 1" >
    <af:validateLength maximum="10"/>
    </af:inputText>
    <af:inputText label="Label 2" immediate="true" id="label2"
    validator="#{ConfirmBean.CustomValidate}" value="#{ConfirmBean.test}"
    >
    </af:inputText> <af:message id="m1" for="label2" messageType="error" />
    <af:separator/>
    <af:inputText id="it1" required="true" immediate="true"/>
    <af:panelGroupLayout layout="horizontal">
    <af:commandButton text="Delete">
    <af:showPopupBehavior popupId="confirm" triggerType="action" align="afterEnd"/>
    </af:commandButton>
    </af:panelGroupLayout>
    <af:popup id="confirm">
    <af:dialog title="Confirm" dialogListener="#{ConfirmBean.dialogListener}">
    <af:activeOutputText value="You really want to save all changes?"/>
    </af:dialog>
    </af:popup>
    <af:commandButton text="commandButton 1" immediate="true" action="#{ConfirmBean.save}" id="cb1"/>
    </af:panelGroupLayout>
    </af:panelBox>
    <af:panelBox text="PanelBox2" id="pb2">
    <f:facet name="toolbar"/>
    <af:inputDate label="Label 1" id="id1"/>
    </af:panelBox>
    </af:showDetailItem>
    <af:showDetailItem text="showDetailItem 3" id="sdi3">
    <af:panelBox text="PanelBox3" id="pb3">
    <f:facet name="toolbar"/>
    </af:panelBox>
    </af:showDetailItem>
    </af:panelTabbed>
    </f:facet>
    </af:pageTemplate>
    </af:form>

  • Af:panelTabbed always refreshing queries?

    Hi. I have several queries that execute when the panelTabbed component is first rendered. The problem is, when each tab is clicked, it executes the methods and queries again. How can I prevent this? I've tried using adfContext.postback and messing with the iterators refresh conditions. Either it no longer executes the query, or it losses it's data between tab clicks.
    Thanks, Graeme.

    Hi Frank. Thanks for the response. Yah, I've tried setting the tab to immediate=true (I think that only skips validation of the fields) It still reloads all the view objects / methods on each tab click.
    Thanks, Graeme.

  • View data in client B from client A in the same SID without a valid logon?

    Hi Folks
    We are planning on upgrading our 4.6C system to ERP 6.0, and are initialy considering having two clients in the same sandbox SID.  One would be for the developers to perform code remediation checks (client A), and one would contain a copy of production data for performing testing of functionality over live data (client B).
    Would it be possible to view data in client B from client A in the same system without a valid logon to client B or RFC connection to client B from client A?   For example via the use on an ABAP program to SQL the database?
    I know one can use transactions like SM30/SM31 to view, compare, and adjust data between clients, but this requires an RFC connection and valid logon to the target client.
    Regards
    Kevin.

    Hi Kevin.
    >
    Kevin McLatchie wrote:
    > Would it be possible to view data in client B from client A in the same system without a valid logon to client B or RFC connection to client B from client A?   For example via the use on an ABAP program to
    Short answer: yes.
    If someone has the right to write and execute ABAP reports on the system he is able to access the data of all clients. So I don't think that this setup is advisable. Don't mix development and production data in one system.
    Best regards,
    Jan

  • DEVOLUÇÃO DE EXPORTAÇÃO - CFOP 3201 - GRC VALIDA DADOS DI.

    Boa tarde a todos!
    Estamos em um projeto de NFE XML 2.00 e nos deparamos com o seguinte erro:
    Ao emitirmos um NF-e de devolução da mercadoria que se encontrava no Porto (devolução de exportação - CFOP 3201), a validação do monitor GRC informa que é necessário constar os dados de importação, apesar deste processo não se tratar de importação. Os seguintes logs de validação são gerados:
    Erro de validação: campo Código do fabricante estrangeiro no sistema. Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_ADI-CFABRICANTE, ID campo I028)
    Erro de validação: campo Nº da adição. Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_ADI-NADICAO, ID campo I026)
    Erro de validação: campo Nº sequencial do artigo na adição. Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_ADI-NSEQADIC, ID campo I027)
    Erro de validação: campo . Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_IMP-CEXPORTADOR, ID campo I024)
    Erro de validação: campo . Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_IMP-DDESEMB, ID campo I023)
    Erro de validação: campo . Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_IMP-DDI, ID campo I020)
    Erro de validação: campo . Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_IMP-NDI, ID campo I019)
    Erro de validação: campo . Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_IMP-UFDESEMB, ID campo I022)
    Erro de validação: campo . Campo é obrigatório e não pode ficar em branco. (campo IT_NFE_IMP-XLOCDESEMB, ID campo I021)
    Estamos no SAPK-10015INSLLNFE e as seguintes notas relacionadas a validação estão aplicadas:
    1493980     Validation for field xJust in cancel and skipping messages
    1499921     Problem with validation after implementing SP15
    1500046     Upgrade validation rule for field ID for version 2.00
    1500742     Adjust validation for field NADICAO and NSEQADIC layout 2.00
    1502217     Extend validation rules for , layout 2
    1504379     Adjust validation for field X_CLISTSERV
    1511291     Update allowed values for field E1_CPAIS for validation
    1511577     Update validation rules for field VUNCOM_V20
    1520861     Update validation rules for OIL_CPRODANP and OIL_UFCONS
    Não encontrei nenhuma nota SAP recente para o componente SLL-NFE que seja relacionada a este problema.
    Desde já agradeço pela ajuda.
    Sds / Renato Penido.

    Boa tarde, Fernando,
    Obrigado pela pronta resposta.
    Debugamos a BADI e descobrimos que os dados de importação estão sendo gravado "em branco", gerando o erro de validação no GRC, tal qual dito por você.
    Aprimoramos a lógica da BADI para que a tag de importação não seja preenchida indevidamente para as notas de devolução do porto e as notas foram aprovadas.
    Muito obrigado,
    Renato Penido.

  • How do i open a web page with VeriSign Class 3 Extended Validation SSL SGC SS CA certfificate i can't open web pages with this, how do i open a web page with VeriSign Class 3 Extended Validation SSL SGC CA certfificate i can't open web pages with this

    how do i open a web page with VeriSign Class 3 Extended Validation SSL SGC SS CA ?

    Hi
    I am not suprised no one answered your questions, there are simply to many of them. Can I suggest you read the faq on 'how to get help quickly at - http://forums.adobe.com/thread/470404.
    Especially the section Don't which says -
    DON'T
    Don't post a series of questions in  a single post. Splitting them into separate threads increases your  chances of a quick answer.
    PZ
    www.pziecina.com

  • When i login it says my apple id is valid but its not an icloud id

    when I try to login i get a message telling me my apple id is valid but its not an icloud id .I dont have any apple mobile priducts so i have no idea what to do.Any advice would be greatly appreciated.

    You are getting this message because you are trying to create an iCloud account on a PC by signing with your Apple ID.  You can only sign into an existing account on a PC.  You first have to create iCloud account on an iOS device (iPhone, iPad or iPod Touch) running iOS 5 or higher, or on a Mac running OS X Lion (10.7.5) or higher.  After creating your account on one of these devices you will then be able to sign into the account using this ID on your PC.

  • HT204053 Dear Support Team, every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud???

    Dear Support Team,
    Every time i tried to logon Icloud its gives me wrong user name or password and at the end it show me error " This Apple ID is valid but is not an ICloud Account" then how can i use one account for same Apple ID and ICloud?
    Thanks

    It is not possible to create a new iCloud account using a Windows machine. You must create the account using a Mac (10.7.5 or more) or an IOS device (iPhone etc). Once that is done you can sign into and use the account on your Windows machine.

  • TS1368 When I try to make a purchase at the App Store or iBook Store or iTunes an error message tells me my account is not valid at the UK store. I live in Canada so how did I get to be connected to the UK and how can I get back to Canada?

    When I try to make a purchase at the App Store or iBook store or at iTunes an error message tells me my account is not valid for the UK store. I've no idea how I got connected there and I'd like help getting back to Canada where I live. Any suggestions?

    Change App Store
    1. Tap "Settings"
    2. Tap "iTunes & App Stores"
    3.Tap "View Apple ID"
    4. Enter your user name and password.
    5. Tap "Country/Region."
    6. Tap "Change Country/Region"
    7. Select the region where you are located.
    8. Tap "Done".

  • Creating Master to show only rows for which valid entries exist in Detai

    I have created a Master-Detail Form in my Apex application based off of views to tables in a private remote Database.
    In the Master-Detail Creation Wizard, at the "Link Master and Detail" page, I specified that the defined Primary Key in the Master Column should be equal to the corresponding Foreign Key in the Detail Column.
    My goal is to have my Master Form only display rows for which a valid corresponding entry exists in the Detail Form. Yet, the above setup returns all of the rows from the Master Table, even where the corresponding Detail entry is blank.
    Can you provide some light on what I'm doing wrong, and how I can accomplish what I want to do?
    Thank you!

    I have created a Master-Detail Form in my Apex application based off of views to tables in a private remote Database.
    In the Master-Detail Creation Wizard, at the "Link Master and Detail" page, I specified that the defined Primary Key in the Master Column should be equal to the corresponding Foreign Key in the Detail Column.
    My goal is to have my Master Form only display rows for which a valid corresponding entry exists in the Detail Form. Yet, the above setup returns all of the rows from the Master Table, even where the corresponding Detail entry is blank.
    Can you provide some light on what I'm doing wrong, and how I can accomplish what I want to do?
    Thank you!

  • Validating records into a maintenance view

    Hi folks!
    I have a simple Z table (say ZTABLE) and a Z view based on it with some related description (say ZVIEW).  The ZTABLE has a DEC field (called COEF) with 2 decimals and it should have only numbers between 0 and 1.
    I set the valid interval from 0 to 1 but, as help says, it's only checked for CHAR, NUMC, DEC, INT1, INT2 and INT4 data types.  Not for DEC.
    Then I use an event on ZVIEW.  On SE11 I went to "Table maintenance generator" - Environment - Modification - Events.  So there I put the 05 event (Creating a new entry) and I programed the check.  It works fine for new entries, but if you have a record on table and you want to change the COEF field you can put there any number, even outside the 0-1 range.
    I tried with the 01 event (Before saving the data in the database) but it seams to be called only for last record.
    Could anybody tell me what can I do?
    Thanks!

    Hi,
    Since it is a Z TABLE..
    You can directly modify the flow logic in SE51.
    Go to SE51
    Give the program name - SAPL + Function group name
    Screen number
    Press change..
    In the flow logic..
    Add a module after the FIELD ztable-number, in the PAI event..
    Ex..
    FIELD ZTABLE-NUMBER MODULE NUMBER_CHECK.
    And in the module validate the number..
    MODULE NUMBER_CHECK INPUT.
      IF ZTABLE-NUMBER <> '0' OR
          ZTABLE-NUMBER <> '1'.
         MESSAGE E208(00) WITH 'Not a valid number'.
      ENDIF.
    ENDMODULE.
    Thanks,
    Naren

Maybe you are looking for