Simple question about af:panelTabbed and required="true"

Hello,
I have a component af:panelTabbed with four tabs:
In the fourth tab i have an af:inputText with the tag required="true"
The problem is: The required is only applied if i am at the fourth tab (where the inputText is on).
If i am at first tab, the form is commited and the required is not applied.
Any help, please ?
Victor Jabur

To complement, here is my jspx and my Managed Bean:
When i click at cb1 button, the focus would have to go for tab4, but the partial refresh doesn't work. If i use the refreshPage() method posted above, the focus works, but as mentioned, it's not web 2.0 common use.
JSPX:
<?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" title="Test Tab Component">
<af:form id="fm1">
<af:commandButton id="cb1" text="Execution Action" action="#{myBean.executeAction}" partialSubmit="true"/>
<af:panelTabbed id="ptab" styleClass="AFStretchWidth">
<af:showDetailItem id="tab1" text="Tab 1"/>
<af:showDetailItem id="tab2" text="Tab 2"/>
<af:showDetailItem id="tab3" text="Tab 3"/>
<af:showDetailItem id="tab4" text="Tab 4" binding="#{myBean.tab4}" clientComponent="true">
<af:inputText id="it1" label="Input Text" binding="#{myBean.inputText}" clientComponent="true"/>
</af:showDetailItem>
</af:panelTabbed>
</af:form>
</af:document>
</f:view>
</jsp:root>
Managed Bean:
package com.test;
import javax.faces.application.FacesMessage;
import javax.faces.context.FacesContext;
import oracle.adf.view.rich.component.rich.input.RichInputText;
import oracle.adf.view.rich.component.rich.layout.RichShowDetailItem;
import oracle.adf.view.rich.context.AdfFacesContext;
public class MyBean {
private RichInputText inputText = new RichInputText();
private RichShowDetailItem tab4 = new RichShowDetailItem();
public void executeAction(){
if(this.inputText != null){
if (this.tab4 != null) {
FacesContext context = FacesContext.getCurrentInstance();
FacesMessage facesMsg = new FacesMessage(FacesMessage.SEVERITY_ERROR, "Enter a value", "");
context.addMessage(this.inputText.getClientId(context), facesMsg);
this.inputText.setValid(false);
this.tab4.setDisclosed(true);
AdfFacesContext.getCurrentInstance().addPartialTarget(this.inputText);
AdfFacesContext.getCurrentInstance().addPartialTarget(this.tab4);
//AdfFacesContext.getCurrentInstance().partialUpdateNotify(this.inputText);
//AdfFacesContext.getCurrentInstance().partialUpdateNotify(this.tab4);
public void setInputText(RichInputText inputText) {
this.inputText = inputText;
public RichInputText getInputText() {
return inputText;
public void setTab4(RichShowDetailItem tab4) {
this.tab4 = tab4;
public RichShowDetailItem getTab4() {
return tab4;
}

Similar Messages

  • Simple question about table structure and HR in BW

    i need to following data from HR:
    current FTE, employee number, cost place
    i dont think the current FTE is stored per employee. Therefor is would need a list that contains:
    mutation start date, mutation end date, FTE, employee, cost place
    i think cost place is a custom field.
    my question : what tables names and field names do i need?
    Thanks in advanced

    Hi,
    For Head Count you can use 0HR_PA_0 datasource and the other Employee details like start date and end date you can get them from employee master data and FTE can be calculated from the Emloyee Master Data and Head count data.
    Hope this helps...
    Thanks,

  • Please help, simple question about Smart Playlists and Live Updating

    PLEASE for some reason I've never gotten an answer on this.
    I have a Smart Playlist called "Recently Played" with Live Updating. No matter how I set the parameters, the most recently played *song will ALWAYS appear on the bottom of the list when using my iPhone on the go.* I bolded that because I want you to be aware I'm not talking about on iTunes - I'm aware you can change how the list is viewed on iTunes.
    When using your iPod/iPhone on the fly and Live Updating is enabled, is there any way to make the most recently played song appear at the very top???
    Thanks so much

    Haven't seen that problem before but try the following: in iTunes, right-click the playlist name and enable the option "Copy to Play Order." Then sync.
    The normal use of "Copy to Play Order" when you have the playlist displayed in iTunes in some sort order, but you want it to display in the iPod in shuffled order (as it will actually play). Different problem than you are observing, but the same thing "might" help.... Let us know.

  • Simple question about iPhone backups and password

    I can't remember the password to my iPhone-backup in iTunes. But, phew, I haven't lost any data, as I have my iPhone with all data intact. So I deleted the backup in iTunes, and tried to start a fresh backup with a new password. But alas, that doesn't seem to be possible (it backs up, but doesn't ask for a password, and when trying to uncheck encryption I get asked for a password).
    Does this mean iTunes now won't let me back up and retrieve the data I actually have on my very own phone? And does it mean that I now have two options:
    a. Keep on using my iPhone, keeping the data on it, but without the ability to backup and retrieve the backups, or
    b. restore and set up my iPhone as a new device, losing all my data

    If you update you will not be able to go back to a previous iOS version. The iOS is not included in the backup.  The following link gives details of what is included: iTunes: About iOS backups

  • A simple question about c:out and the ADF bindings

    I have a small problem which I can't figure out :-(
    The solution is probably dead easy, but I don't see it ..
    The problem is :
    I have a jsp-file which have the following tags :
    <c:out value="${bindings.EstimatedInterest}" />
    <c:out value="${bindings.RemainingAmount}" />
    And I want to have one more field which just adds these two together.
    But I get this error :
    Attempt to coerce a value of type "oracle.jbo.uicli.binding.JUCtrlAttrsBinding" to type "java.lang.Long" (null)
    Can anyone pls point me in the right direction ?
    With regards, TA

    Hi Thor,
    try this,
    <c:set var="EstimatedInterest" value="${bindings.EstimatedInterest}"/>
    <c:set var="RemainingAmount" value="${bindings.RemainingAmount}"/>
    <c:out value="${EstimatedInterest+RemainingAmount}" />
    oscar

  • Simple question about environment variables and setting the class path???

    ok I have been trying for a few months now ontrying to set the class path..
    I work with windows vista..
    on the environment variables user variables,
    I have the name of the variable as class
    and the value as C:\Program Files\Java\jdk1.6.0_04\bin;.
    where javac is...
    on the system variables I have
    its name as class
    and the value as C:\Program Files\Java\jdk1.6.0_04\bin;.
    why is this not reading javac

    The PATH environment variable should have as an entry the directory containing your javac executable. The CLASSPATH should have have entries which define your library directories and entries which are your jar file libraries. In the early days, probably the only CLATHPATH entry you will need will be a '.' to indicate the current directory.
    The Java tutorial covers ALL of this.

  • Simple question about one RAID and 2 XServes

    Hey Guys,
    I have an old G5 XServe controlling an XServe RAID and want to add another XServe for Final Cut Server.
    Is it possible to run one fiber line to one server and the other to the other server?
    I'd like a straight shot to the RAID for maximized bandwidth, but maybe it doesn't work that way or wouldn't matter.
    Thanks for your expertise.

    Is it possible to run one fiber line to one server and the other to the other server?
    Yes, this is possible. Each xserve will have access to each half off the xraid. Each xserve can not access the other half! This is due to the design of xraids. Actually the xraids are two sets. Each set has a controller and 7 disks. These two sets are placed in one physical box. There is no data path between the two sets.
    If you want to access the same data from 2 machines, this will not work. If you want to have each machine it's own data, you will be comfortable.
    Regards
    Donald

  • Simple question about mount and delay script

    Hello, I have a simple question about mounting volumes on start up.
    My computer wakes up auto - and then auto there are serveral applescript tasks (mount and start up programs)
    I use this script (daily) for serveral connections with external volumes I always need the connect to. ( In the script I use this code 3 times for other locations) I do this on start up.
    set Uname to "XXX"
    set Pword to "XXX"
    set someVolume to "afp://XXX.XXX.XXX.XXX/XXX/XXX
    mount volume someVolume as user name Uname with password Pword
    (same code for 2 other locations)
    When i do this on start up sometimes the script says there is no connection possible. I guess it's because on start up the connection isn't there. And 1 minute later when computer is total ready the connection is ok. When I run the script then It works. Just sometimes ( In the morning) 'It' want to connect but the script stops. When i do it manually(I run the script again) it works just fine.
    Is it possible that I need a delay? Can someone explain this?
    How would I make a delay handler for this script? Is that the best solution?
    Thanks in advance. This is something small i'm wondering about.
    Colin

    BTW, If you saved the script as an application +(and not as an application bundle)+ you could drop the script on to *Drop Script Backgrounder* (freeware).
    Then the script would run in the background, so, you wouldn't see it running in the Finder.
    <http://www.macupdate.com/info.php/id/7922/drop-script-backgrounder-x>
    Tom

  • Question about Time Capsule and Spotlight

    I have a simple question about using Time Capsule and Spotlight. Is everything that goes on to Time Capsule indexed into Spotlight? It would appear so but when I search for something (that is still on my hard drive and also backed up to Spotlight) only the local copy appears. Would it be that it finds the closest copy and if that were not there it would point to the Time Capsule copy? Thanks in advance for clarifying this for me.

    The automatic setup in the airport utility has changed something.
    Is the line down to the TC from the express dotted.. in other words is wireless??
    Funny stuff happens.
    Please post the screenshots of the 3 pages from the airport utility setup for both airport express and TC..
    Make sure wireless is set to off in the express.
    Both should be set to dhcp on the internet tab and both set to off bridge mode on the network tab.
    So for example the bridge on the network tab.
    The summary page can also be a help.
    There is a half summary page when you click the item in the airport utility.
    There is also a fully summary page, when you hold option key and double click the TC icon for example.

  • A simple question about performance!

    Hi! I have a simple question about performance. Suppouse that you have a servlet or a class with DB access, and you need to use a value several times in that page. What is best, to assign the value from say, a resultset or a request.getParameter() to a variable or to call the resultset or the request every time you need to retrieve that value? Which option uses less memory, which is faster, etc.?
    Hoping the best fou u
    Raul

    If you need more values from a db, the best is to open some connections (connection pool) and use the for accessing the db.
    To get the data only once, open the connection, get the data, store the data whereever you want: variable (class), hidden control (if you want to send from one page to another by request) and close the connection as quicky as possible.
    The advantage of the first method is that the most time consuming activity (connections opening) is done only once.

  • A few questions about the ka790gx and dka790gx

    i have a few questions about the ka790gx and dka790gx , how much better is the dka790gx compaired to the ka790gx ? . how much difference does the ACC function make to overclocking etc , i plan on getting a phenom II 940BE or 720BE . i already have the ka790gx so would it be worth building another system using the dka790gx mobo , or should i keep what i already have and just change the cpu ?

    It's largely irrelevant what other boards had VRM issues other than the KA790GX - the fact is it died at stock settings. Since there is little cost difference between the more robust DKA790GX (or Platinum if you really need 1394) why bother with the proven weakling? There are other examples around of the KA not having a robust power section.  There's no way I would use even a 95W TDP CPU in the KA and absolutely not O/C.....!
    As for the credentials of Custom PC, I have generally found their reviews accurate and balanced, and echo my own findings where applicable. If a little too infrequent.
    The fact that the KA has such a huge VRM heatsink leads me to my other comments on the Forum, particularly regarding the "fudge" aspect:
    """Henry is spot on - the notion that adding a heatsink to the top of the D2PAK or whatever MOSFETS is effective is virtually worthless. The device's die thermal junction is the tab on the device back - which is always against the PCB pad. The majority of heat is therefore dissipated in to the board, and the fact that the epoxy plastic encapsulation gets hot is simply due to the inability of the heat to be conducted away from the device die via the tab. Not sure when Epoxy become an effective conductor of heat.... Good practice is to increase the size of the PCB pad (or "land" in American) such that the enlarged PCB copper area acts as an adequate heatsink. This is still not as effective as clamping a power device tab to an actual piece of ali or copper, but since the devices used are SMD devices, this is not possible. However, the surface area required to provide sufficient PCB copper area to act as a heatsink for several devices isn't available in the current motherboard layouts. Where industrial SBC designs differ in this respect is to place the VRM MOSFETs on the back of the PCB on very enlarged PCB pads - where real estate for components is not an issue.
    Gigabyte's UD3 2oz copper mainboards sound like a good idea, on the face of it. However, without knowing how they have connected the device tabs to where and what remains a mystery. I suspect it is more hype than solution, although there will be some positive effect. From an electrical perspective, having lower resistance connecting whatever to whatever (probably just a 0V plane) is no bad thing.
    The way the likes of ASUS sort of get round the problem is to increase the sheer number of MOSFET devices and effectively spread the heat dissipation over a larger physical area. This works to a degree, there is the same amount of heat being dissipated, but over several more square inches. The other advantage of this is that each leg of the VRM circuit passes less current and therefore localised heat is reduced. Remember that as well as absolute peak operating temperature causing reduced component life, thermal cycling stresses the mechanical aspects of components (die wire bonds for example) as well as the solder joints on the board. Keeping components at a relatively constant temperature, even if this is high (but within operating temperature limits), is a means of promoting longevity.
    For myself, the first thing I do with a seperate VRM heatsink is take it off and use a quiet fan to blow air on to the VRM area of the PCB - this is where the heat is. This has the added benefit of actively cooling the inductors and capacitors too....
    Cooling the epoxy component body is a fudge. If the epoxy (and thus any heatsink plonked on top of it) is running at 60C, the component die is way above that.....
    It's better than nothing, but only just."""

  • Question About Color's and Gradients

    Hi all,
    I have a question about color swatches and gradients.
    I am curious to know, if I have 2 color swatches that I make into a gradient color, is it posible to change the tint of each indivdual color in that gradient and have that applied to the gradient without having to adjust the gradients opacity.
    The reason that I'm asking this is because in creating a project I found that the colors that I chose for to make my gradient from my swatches were to dark, and while I can adjust each one's tint to my liking (if the object they were applied to was going to be a solid color) but that doesn't seem to apply to the overall gradient.
    I hope that makes sense, I know that this was something that was able to be accomplished in quark and was wondering if I can do something similar.

    If you double click your gradient swatch (after adding it to the swatches)
    Then click a colour stop in the gradient, and then change the drop down menu to CMYK (or rgb)
    And you can alter the percentages there. It's not much use for spot colours but it's a start.
    But making tint swatches would be a good start anyway.
    At least then when you double click the gradient (in the swatches) to edit it you can choose from CMYK, RGB, LAB, or Swatches and adjust each colour stop to your liking.

  • Question about clear page and reset pagination

    Hi,
    I have a question about clear pages and the reset pagination in an URL. What is the reason why a clear page doesn't also trigger a reset pagination on the pages which are cleared?
    I can't really imagine a business case where it makes sense to clear all data of page items on a page and don't reset the pagination of reports on that page which probably use a page item in there where clause...
    The drawback of this behavior is that a developer always has to set the reset pagination checkbox when he clears the target page and the even bigger drawback is that if you specify other pages to clear, you can't reset pagination for them, because reset pagination only works for the target page.
    Thanks for your input.
    Patrick
    *** New *** Oracle APEX Essentials *** http://essentials.oracleapex.info/
    My Blog, APEX Builder Plugin, ApexLib Framework: http://www.oracleapex.info/

    Enhancement request filed, thanks,
    Scott

  • The question about portlet customization and synchronization

    I have a question about portlet customization and synchronization.
    When I call
    NameValuePersonalizationObject data = (NameValuePersonalizationObject) PortletRendererUtil.getEditData(portletRenderRequest);
    portletRenderRequest.setPortletTitle(str);
    portletRenderRequest.putString(aKey, aValue);
    PortletRendererUtil.submitEditData(portletRenderRequest, data);
    Should I make any synchronization myself (use "synchronized" blocks or something else) or this procedure is made thread-safe on the level of the Portal API?

    HI Dimitry,
    I dont think you have to synchronize the block. i guess the code is synchronized internally.
    regards,
    Harsha

  • A simple question about combo box

    Dear All,
    Just got a simple question about combo box: I have one of these selectors with labels based on filtered rows from a table.
    Is it possible to have one more label that would select all options?
    Like:
    Product A
    Product B
    Product C
    All Product
    Many thanks for your help!
    Gilles

    Hi Gilles,
    The purpose of ComboBox itself to select single option out of many.
    For your purpose, you may have to use "List Builder" which can accomodate 1 or more  to select.
    Please revert for more clarification if you need.
    With best wishes
    BaaRaa.

Maybe you are looking for

  • PowerBook will not boot up

    Hi, I've recently been experiencing a problem with my PowerBook intermittently failing to startup and would appreciate any help in narrowing down the source of the problem. When I press the silver powerkey, I do not hear the startup chime, and there

  • Automation not working in multi output stereo?

    I changed my stereo outputs into multi output stereo and noticed that the volume automation is not being read any more. All the volume levels are still moving up and down but the sound itself stays at the same level. I tried out what would happen if

  • How can I re-enable my account?

    I had disabled my account for security and billing reasons. How do I undo that & enable my account again so that I can use it?

  • Redirect 301

    Hi there, I'm about to launch my new site built with Muse. However, before I go live, I want to make sure the redirect of former URL's is effectively taken care of. So........ I took a glance at the http://helpx.adobe.com/business-catalyst/partner/re

  • How do I copy frame width & height and apply to all other frames in Indesign CS5?

    I design albums using lots of photos. I often find myself copying a particular frame's width and height then pasting it individually across other frames. Is there a way to copy and paste a frames width and height and apply it across numerous frames?