Not highlighting error fields in subform when displaying FacesMessages

Hi,
I am trying to display FacesMessage on UI and highlight the errored field. It is working as expected if my fields are NOT in subform like this:
<af:form>
<af:inputText label="Label 159" id="it5"/>
<af:commandButton text="commandButton 2" id="cb3"
action="#{viewScope.backing_testFormLayout.validateRecordset}"/>
</af:form>
java codes:
public String validateRecordset() {
FacesContext fc = FacesContext.getCurrentInstance();
fc.addMessage("it5", new FacesMessage(FacesMessage.SEVERITY_ERROR,
"Parameter Name is required",
null));
return null;
However, if my fields are in subform, the FaceMessage error is displayed, but the errored field ("it5") is not highlighted.
<af:form>
<af:subform id="s9">
<af:inputText label="Label 159" id="it5"/>
<af:commandButton text="commandButton 2" id="cb3"
action="#{viewScope.backing_testFormLayout.validateRecordset}"/>
</af:subform>
</af:form>
Any ideas?
Thanks
-Mina

Use s1:it5 as the id of the input Text component instead -
public String validateRecordset() {
FacesContext fc = FacesContext.getCurrentInstance();
fc.addMessage("s1:it5", new FacesMessage(FacesMessage.SEVERITY_ERROR,
"Parameter Name is required",
null)); On a sidenote its always better to use bean binding instead of hardcoded id's to avoid issues downstream during maintainance and changes when id changes.
Also add partialSubmit= true to avoid a full page submit.

Similar Messages

  • "file not found" error in VI Logger when running an imported VI Logger task

    I'm having trouble getting all of my imported tasks to run in VI Logger.
    I'm using VI Logger 2.0, with an SCXI-1100.  The data acquisition tasks I import run fine.  One of the VI Logger tasks I've imported runs OK, but the other one gives an error:
    "Engine Error!
    Error Code = 7
    LabView: File not found.  The file may have been moved or deleted, or the file path might be incorrectly formatted for the OS."
    If I create a new VI Logger task, the new task works OK.  And my 1st VI Logger task to be imported works OK.  So I know my setup mostly works.  But our company has never been able to figure out importing tasks very well, so I'm looking for help.
    Question 1: What file is LabView looking for?  I've checked my Export path and database path, and they are identical in both the working task and the non-working task.
    Question 2: Where else might I look for the difference between the 2 VI Logger tasks?  Neither task uses any weird characters in the name, both have analog input channels and calculated channels.  And I've mixed and matched the data acquisition tasks with no change (the good VI Logger task will run with either data task, the bad VI Logger task won't run with either data task), so I'm pretty sure the problem is in the VI Logger task, and not the data task.  I've also tried importing the 2nd task on its own, as a separate import function, but that gave the same error.
    Thanks for the help in advance,
    Jake

    Hi Spex,
    I can import the VI Logger task OK (from another PC running VI Logger 2.0), but I can't run the task.  I've attached the file.  The "1 channel" task runs OK.  The "x-probe" task starts, takes 1 or 2 data points, then hangs for a few seconds, then pops up the "file not found" error. The data acquisition taks run OK, so I don't think they're the problem.
    This file I've attached includes 2 good data tasks ("1 channel" and xprobe"), 1 good VI Logger task ("1 channel"), and my non-working VI Logger task ("x-probe", which works fine on the PC it was exported from).
    I have also tried exporting the non-working VI Logger task on its own, and it still imports OK, but still doesn't run, and gives the same error.
    Thanks,
    Jake
    Attachments:
    configData1.zip ‏353 KB

  • Results from a form submission does not keep the fields in order when I get the email

    I created a form and it works fine but when I get the email
    back the fields are out of the tab order or out of wack meaning
    they are not in order that I set the acceptabilities to.
    Is this something in the Action script I have to add and what
    would it look like or do I need to edit the CGI script?
    I can provide a link or script let me know.
    Thanks

    This is action script 3.0 Flash CS3
    Below is what I receive back after I test it but it is not in
    order. I guess I assumed that if the tab order is correct and the
    are layout in that order and the code in the form is in order it
    would come back the same way. Mostly I am trying to narrow down the
    problem and my guess is the cgi script or am I wrong? I have
    attached the code for the form.
    Thank You for you time
    Form email submission results:
    Below is what you submitted on Tuesday, February 19, 2008 at
    10:35:08
    list:
    phone:
    address:
    comments:
    city:
    state:
    zip:
    name:

  • How to i repair a printer not activated, error code -30 message when trying to save a file to pdf

    Please help

    Hi,
    Thank you for posting in Windows Server Forum.
    Yeah, agree with Milos. Please provide more information for further troubleshooting. 
    From your initial subject it seems you are facing issue with printer activation on your server. The error may be caused if the wrong printer is set as the default printer, the printer driver is missing, or if there are conflicts in the device manager. Please
    make sure below 3 steps whether it’s get some workaround.
    Step one: Make sure the desired printer is set as the default printer 
    Step two: Re-install the USB Composite Device from Device Manager  
    Step three: Reinstall the Software for that particular printer
    Hope it helps!
    Thanks.
    Dharmesh Solanki
    TechNet Community Support
    Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have feedback for TechNet Support, contact [email protected]

  • Eclipse not highlighting syntax errors, why?

    Hello everyone,
    I have started to use the eclipse IDE, version 3.1.2
    My problem is that it is not highlighting errors of any kind in the editor, i cannot seem to find the setting for this,
    help is appreiated.

    Hello everyone,
    I have started to use the eclipse IDE, version 3.1.2
    My problem is that it is not highlighting errors of
    any kind in the editor, i cannot seem to find the
    setting for this,Really? I actually have a 3.1.1 here but I assume this hasn't changed.
    Window -> Preferences -> Java -> Editor: Checkbox "Report problems as you type".

  • Idocs not populating the fields

    Hi
    We are using Extended Classic Scenario. After the shopping cart is approved, the PO is generated in the backend R/3. The PO is generated in the backend and the idoc is triggered which is sent to supplier.
    The problem we are facing is as below:
    There are some fields in the idocs which are not getting populated. We are using badi implementation BBP_PO_INBOUND_BADI in the backend. We have used both the methods BBP_MAP_BEFORE_BAPI
    BBP_MAP_AFTER_BAPI
    The table EKPO is getting updated but the idoc does not have the fields.
    Also when we are second time retriggering the output the idoc is having the required fields.
    Kindly advice.
    Thanks and Regards
    Manoj

    Hello,
    It looks the first generation occurs to early in the process.
    Can you should check the processing time you defined in condition records ?
    3 is too early, 4 should work because a commit work is done before. And at worst set it to 1 (selection report) and schedule a job to process the message.
    Rgds,
    Pierre

  • Microsoft word excel powerpoint not responding error

    I recently went to 10.4.2 and also to office 2004. Not too happy about the switch so far as office products are even less stable than before. The (not responding) error happens most reliably when opening larger documents. Often the application will hang up before I can do anything with the document at all. Also, in the Force quit menu, the microsoft error reporting application will sometimes also be there and (not responding). By large files, I mean around 16Mb, so not really very big at all relative to memory.
    Any ideas?
    Thanks, Rob.

    Hey! Same problem here. Was happening to me under Panther and continues under Tiger. The only thing that seems to help is to trash your Microsoft prefs file. I found this info on MSFTs site. It seems to keep this crashing problem away for a while. But it does keep coming back eventually. Really only happens to me with Word and the ironically the Microsoft Error Reporting app. Both always show up in the Force Quit screen as (not responding). You can find your prefs file in the Library under Preferences. Just throw the whole folder away then restart any Office app. Of course you'll lose all the customization you may have had with the Formatting Palette, etc. THIS IS A BIG HASSLE MICROSOFT!!!

  • How to find invalid statements(not syntax error) executed using v$ views

    Hi
    I want find invalid statements(not syntax error statements) that executed, when some of the applications runs in the server,
    for eg: permissions denied, table/view doesn't exit .. etc
    I could not able to find it in v$sql views. is there any other view that gives this information?

    V$ views only contain parsed statements, not incorrect ones.
    Max

  • Encountering error: "field does not exist, please re-enter" when setting up basic calculation

    I created a form in InDesign with many form fields. I would like to be able to have specific form fields generate a sum total in another form field. In acrobat, when I select the form field I wish to have the calcualtion appear in, I select the fields I want to calculate and when I click OK, I am greeted with a pop-up error that the "... field does not exist, please re-enter". I can see that there is a field present when I select "Highlight Existing Fields", I can select it and even fill it in manually. What am I doing wrong?
    I attempted to contact Adobe Help chat and they threw up their hands and directed me here. Does it have something to do with the naming convention? I am stumped but I really need to figure this out. Do I need specific script to drop into the field notation box?
    Thanks,
    In Over My Head

    Thank you George.
    Keeping the file names simple seems to be helping.
    I am now encountering an issue where some field calculations (rouhgly 20 out of 58 different basic calculations) do not compute.They create no sum and remain "zero" despite being created the exact same way as all the other calculations that appear to be working flawlwessly.
    I don't understand and it is giving me kittens.

  • Filling up a pdf form which I received as email. I opened it on my adobe reader 11 and filled up the highlighted fields. Yet when I click on the send via mail it says changes will not be included. How do I send the form with changes?

    Filling up a pdf form which I received as email. I opened it on my adobe reader 11 and filled up the highlighted fields. Yet when I click on the send via mail it says changes will not be included. How do I send the form with changes?
    The add annotations field shows as not allowed in the security options. So how do I send this form back with the changes??

    I think you you need to click 'save' first, then it is saved to acrobat, where it will prompt to send.

  • Field name is not know error when trying to add a filter

    Hello all!
    I need to add a filter dinamically to display a report. I'm using Crystal Reports 10 w/ RAS server.
    There is an sql statement in Database Fields > Command. It uses a join and a correlation name for table name: TT.START_TIME.
    I am getting a "Field name is not known" error:
    "This field name is not known. Details: errorKind Error in File C:\WINDOWS\TEMP\{D375AB61-F7AE-4BCC-AF5E-6702C0EFDE10}.rpt: Error in formula . '{Command.TT.START_TIME} in DateTime (2007, 08, 01, 09, 00, 00) to DateTime (2007, 08, 24, 04, 45, 00)' This field name is not known. Details: errorKind"
    I tried to specify the field the following ways:
    Command.START_TIME
    TT.START_TIME
    START_TIME
    TIME_TRACKER.START_TIME (time_tracker being the table name)
    MAIN.TIME_TRACKER.START_TIME (main being the schema)
    All of the above is giving the same field name not known error.
    I am adding the filter the following way:
            String whereClause = "{Command.TT.START_TIME} in DateTime (2007, 08, 01, 09, 00, 00) to DateTime (2007, 08, 24, 04, 45, 00)";
            IFilter filter = rptClientDoc.getDataDefinition().getRecordFilter();
            filter.setFreeEditingText(whereClause);
            rptClientDoc.getDataDefController().getRecordFilterController().modify(filter);
    I also tried the following where clause:
    String whereClause = "{Command.TT.START_TIME} > DateTime (2006, 08, 01, 09, 00, 00) AND {Command.TT.START_TIME} < DateTime (2007, 08, 24, 04, 45, 00)";
    still doing the same thing.
    If anyone could please help me w/ this I'd really appreciate it!
    Thank you!
    Anastasia

    The first formula was created using the selection formula expert. I only added the TT part after it didn't work giving the same message. The name the expert gives it after I click on the field is {Command.START_TIME}. Still gives the invalid field name error. -_- Could the rest of the forumula be causing the problem?
    In regards to parameterizing the SQL Command, I spoke w/ the gentleman who creates these reports in Crystal, he says it's not possible, because sometimes we don't want a where clause and sometimes we do.
    Is there a way to directly edit the SQL string itself which is in the Command through java?
    Thank you very much for taking time to respond.
    Anastasia

  • Fields not highlighting

    I created a form in AdobeLivecycle Designer ES 8.1. Now on bottom of this form there is a print, save and clear button, when the print or save button is click a validation that i have written on the click event of the button runs. NOTE (I HAVE NOT USED user required on the fields). This validation checks if certain fields have been selected or has information in them. If the validation returns false a message is displayed to tell the user to enter the required information, the field highlighted and the save or print action cancelled. Now this works fine when tested in the livecycle and the full adobe acrobat professional 8 environment; however when it is tested on a machine that only has the adobe reader the message is displayed but the fields are not highlighted. I have enabled the form for usage in Adobe Reader and it still doesnt highlight the form?
    Below is the code used to do this:
                if (form1.txtpartallottaddr2.rawValue == null)
                    xfa.resolveNode(" form1.#subform[3].txtpartallottaddr2.ui.#textEdit.border.edge").stroke = "lowered";
                    xfa.resolveNode(" form1.#subform[3].txtpartallottaddr2.ui.#textEdit.border.fill.color").value = "253,128,128";
                    status = 0;
    Remember this works fine in the adobe acrobat environment (full version installed) but in an environment when there is only adobe reader this does not trigger. Can someone kindly assist me ad I have a deadline to meet to solve this issue?

    I tried it on my installation and it worked fine. I did find that if you had the field highlighting feature on in Reader or Acrobat then it appeared that it did not work. My guess is that is being set after the color change that you make. To ensure that this is not on add this command to the beginning of your script:
    app.runtimeHighlight = false;
    If this works, then you shoudl set the above command when the form loads instead of when your script runs.
    Paul

  • Error when displaying xellerate form

    Hello,
    I have the following error when displaying the form of any xellerate users :
    ERROR,03 May 2011 10:40:56,273,[XELLERATE.APIS],Class/Method: tcFormDefinitionOperationsBean/getFormFieldPropertyValue encounter some problems: Property 'Column Names' has not defined for the form field '-19'
    All is working fine, just this error that is diplayed each time I want to display a user form. In my formMetadata.xml, I have the following definition for the field -19, it is the manager :
    <Attribute name="-19" label="global.label.managerid" displayComponentType="LookupField" variantType="long" dataLength="50" map="Users.Manager Login">
    <ValidValues lookupColumnNames="User ID,Last Name,First Name" lookupQuery="SELECT usr.usr_key,usr.usr_last_name,usr.usr_first_name,usr.usr_login FROM usr, ugp, usg WHERE ugp.ugp_name = 'PROF_MANAGER' AND ugp.ugp_key = usg.ugp_key AND usr.usr_key = usg.usr_key AND usr.usr_status = 'Active' AND usr.usr_emp_type = 'Employee'" displayColumns="Users.User ID,Users.Last Name,Users.First Name" selectionColumn="Users.User ID"/>
    </Attribute>
    What is the problem with my attribute definition ?
    Thanks for your help,
    Kind regards,
    mdadikn

    Hello,
    I'm new to OIM. I am a new hire to a group that had a contractor setup the whole system. I'm finding a similar issue on our system here. I've looked through the database and cannot seem to find the issue. Error happens when from the webapp clicking on "Create IT Resource".
    From the Error Log:
    Class/Method: tcFormDefinitionOperationsBean/getFormFieldPropertyValue encounter some problems: Property 'Column Names' has not defined for the form field '-82'
    Line with issue from FormMetaData.xml:
         <Attribute name="-82" label="global.label.itresourcetype" displayComponentType="LookupField" variantType="String" dataLength="255" map="IT Resources Type Definition.Server Type" useInRule="true">
              <ValidValues lookupQuery="select svd_svr_type from svd" selectionColumn="svd_svr_type"/>
    </Attribute>
    Please let me know any additional information/questions. From what I can tell everything should be correct. Sorry again if the answer is obvious, I'm only 3 days into OIM.
    Thank you,
    Ryan

  • DAX error "Formula is invalid" when updating underlying data, but not changing the formula?

    Hello,
    first of all: I use the 64-bit versions of Excel 2010 and PowerPivot on Windows Server 2008 R2.
    I use this formula to calculate the median of my data:
    MINX( FILTER( VALUES( TableName[ColumnName] ),
                  CALCULATE( COUNTROWS( TableName ),
                             TableName[ColumnName] <= EARLIER( TableName[ColumnName]
                  > COUNTROWS( TableName ) * 0.5 ),
          TableName[ColumnName] )
    The data comes from a view on an MS SQL Server and has about 3.5 million rows. With one dataset ("dataset 1"), everything is working out fine and VERY fast ;-). When I change the view on the SQL server to filter for different data ("dataset 2", the result
    set still containing about 3.5 million rows) and update the PowerPivot data and then the pivot table, the status bar reads "Executing OLAP query..." and excel.exe utilizes one CPU core at 100% for a long time and its memory usage increases significantly, but
    nothing happens. If I interrupt that process by pressing Esc, I get the following error (original German text included):
    ============================
    Fehlermeldung: (Error message:)
    ============================
    Ausnahme von HRESULT: 0x800A03EC (Exception from HRESULT: ...)
    Das Median-Feld konnte der PivotTable nicht hinzugefügt werden, weil die Formel ungültig ist. (Could not add the field "Median" to the PivotTable because the formula is invalid.)
    ============================
    Aufrufliste: (Stack trace:)
    ============================
    Server stack trace:
    Exception rethrown at [0]:
       bei System.Runtime.Remoting.Proxies.RealProxy.HandleReturnMessage(IMessage reqMsg, IMessage retMsg)
       bei System.Runtime.Remoting.Proxies.RealProxy.PrivateInvoke(MessageData& msgData, Int32 type)
       bei Microsoft.Office.Interop.Excel.PivotTable.AddDataField(Object Field, Object Caption, Object Function)
       bei Microsoft.AnalysisServices.Modeler.FieldList.ExcelInterOpUtil.AddToDataFields(ICalculatedMember calculatedMember, Int32 positionIndex, Boolean isSpecialColumnBasedNamedSetPresent)
       bei Microsoft.AnalysisServices.Modeler.FieldList.ExcelInterOpUtil.AddToDataFields(ICalculatedMember calculatedMember, Int32 positionIndex, Boolean isSpecialColumnBasedNamedSetPresent)
       bei Microsoft.AnalysisServices.Modeler.FieldList.GeminiPivot.SetFieldOrientation(FieldLocation location, IGeminiColumn column, Int32 positionIndex)
       bei Microsoft.AnalysisServices.Modeler.FieldList.GeminiPivot.SetFieldOrientation(FieldLocation location, IGeminiColumn column, Int32 positionIndex)
       bei Microsoft.AnalysisServices.Modeler.FieldList.GeminiPivot.AddField(IGeminiColumn column, Int32 index)
       bei Microsoft.AnalysisServices.Modeler.FieldList.FieldListControl.fieldsTreeView_AfterCheck(Object sender, TreeViewEventArgs e)
    ============================
    I have analyzed the two datasets for differences and found the following ones:
    Dataset 2 has also negative values in its ColumnName column, dataset 1 does not. Filtering dataset 2 (by changing the view on the SQL server) so that the column contains only positive values does not help.
    A displayed column contains text with square brackets in it in dataset 2. Changing the SQL view to replace them with an empty string (replace(column2, '[', '')) does not help.
    I do not know what else to try. Can anybody help me? The two datasets are very large, but if anyone can give a recommendation how to export them in a reasonable size, I can make them available.
    Best regards
    Michael

    Hello Javier,
    I use a new measure (button "New Measure" in the toolbar or option in the context menu of the table). Here are the data samples:
    Dataset 1:
    Probability    RThreshold    SThreshold    vector    value
    0    -1    -1    DHTTestApp: Total GET Success Ratio    0.98
    0    -1    -1    DHTTestApp: Total GET Success Ratio    1
    0    -1    -1    DHTTestApp: Total GET Success Ratio    1
    0    -1    -1    DHTTestApp: Total GET Success Ratio    1
    0    -1    -1    DHTTestApp: Total GET Success Ratio    1
    0    -1    -1    DHTTestApp: Total GET Success Ratio    0.98
    0    -1    -1    DHTTestApp: Total GET Success Ratio    1
    0    -1    -1    DHTTestApp: Total GET Success Ratio    1
    0    -1    -1    DHTTestApp: Total GET Success Ratio    1
    0    -1    -1    DHTTestApp: Total GET Success Ratio    1
    Dataset 2:
    Probability    RThreshold    SThreshold    vector    value
    0    -1    -1    [MKTBR] BaseOverlay: All nodes: Own routing trust value    0.011353711790393
    0    -1    -1    [MKTBR] BaseOverlay: All nodes: Own routing trust value    0.20522161505768
    0    -1    -1    [MKTBR] BaseOverlay: All nodes: Own routing trust value    0.12309191295875
    0    -1    -1    [MKTBR] BaseOverlay: All nodes: Own routing trust value    0.26926457661881
    0    -1    -1    [MKTBR] BaseOverlay: All nodes: Own routing trust value    0.1911946574326
    0    -1    -1    [MKTBR] BaseOverlay: All nodes: Own routing trust value    0.066699727250186
    0    -1    -1    [MKTBR] BaseOverlay: All nodes: Own routing trust value    0.32597014925373
    0    -1    -1    [MKTBR] BaseOverlay: All nodes: Own routing trust value    0.11977454203852
    0    -1    -1    [MKTBR] BaseOverlay: All nodes: Own routing trust value    0.24751410911045
    0    -1    -1    [MKTBR] BaseOverlay: All nodes: Own routing trust value    0.076218041485769
    In both datasets, probability has a range from 0 to 1, both thresholds from -1 to 1. In dataset 1, value has a range from 0 to 1, in dataset 2, it's -1 to 1.
    Thanks for your help!

  • ReportContextAttributeMessage does not highlight field

    Hi
    I have a node named Params, and I have created the elements under that dynamically. One of the elements created dynamically is "Rating".
    I need to check if the input field(created dynamically) mapped to "Rating" is null or not. if it is null, I need to report a message and highlight the field.
    I have a validation helper class, that Im calling, with the method:
    public static void raiseError(IWDMessageManager messageMgr, IWDMessage message, IWDNodeInfo node,
    IWDNodeElement element, String fieldName, String fieldLabel)
    IWDAttributeInfo attributeInfo = node.getAttribute(fieldName);
    messageMgr.reportContextAttributeMessage(element,attributeInfo,message,new Object[] {
         fieldLabel },true);
    I have done everything thats necessary and am calling the validation class raise error with all the attributes as follows:
    ValidationHelper.raiseError(messageMgr, IMessageEmployeeRating.MESSAGE,
    wdContext.nodeParams().getNodeInfo(), wdContext.currentParamsElement(), "Rating"+i, "The rating
    has not been entered");
    The problem is that the message "The rating has not been entered" is displayed as expected, but the field is not highlighted or outlined red.
    What could be wrong?
    BTW, Im on EP 7.00 SP 13.
    Thanks
    OJ

    Hi Manoj
    Yes, the attributeinfo is for the same attribute im checking, and the element is the current element.
    Im still not able to fugure out what the problem is.
    There was a recent upgrade of patches in my system. Do you think this could have caused it? It was working prior to that. I searched for some docs or Notes on it, but found none.
    Thanks.
    Edited by: Jo on Jan 29, 2008 4:58 PM

Maybe you are looking for

  • Function FUNCTION FILE_GET_NAME and table FILENAMECI

    I have an ABAP program that calls FUNCTION 'FILE_GET_NAME' with only the logical_filename and operating_system parameters.  ex: CALL FUNCTION 'FILE_GET_NAME'     EXPORTING       logical_filename = 'Z_SAP_TO_GAINS'       operating_system = 'NT'     IM

  • Upgrading phone at 12 months on  a single phone plan at $59.99

    Okay so in February I bought the original Motorola Droid. At the time I was thinking about just signing up for a one year plan but I wanted to use my NE2 discount so i went with the two year agreement. I had heard that if you had the $59.99 plan or h

  • Insérer une virgule à certains endroits d'une chaine

    Bonjour à tous, Je cherche à formater un fichier en lui insérant des virgules. Fichier de départ : Enregistrement 10:02:15 -002 +000 +00001 +002 +000 -00002 +000 +000 -00003 +000 +000 -00002 Fichier à l'arrivée : Enregistrement 10:02:15 -0,02 +0,00 +

  • Filenames in iPhoto

    Is it true that there is no method for safely editing a photo's filename once the photo has been imported into iPhoto? By "safely", I mean without corrupting the iPhoto library. Also, if I delete a photo in iPhoto, is it completely deleted from the h

  • Getting "weblogic.jdbc.extensions.PoolLimitSQLException:" error oracle databse cloud

    I build a servlet applocation which access the data on cloud. But when i ran it it gave me the following error weblogic.jdbc.extensions.PoolLimitSQLException: weblogic.common.resourcepool.ResourceLimitException: No resources currently available in po