Search on a DataTable doesnot wok

Hi,
I have a dataTable in one of my JSF pages with pagination in it.
I have Search functionality which works fine.
But when I click on next page in the Datatable the search returns nothing.
<h:dataTable id="ctrAdDt1" value="" var="applist" value="#{myBean.applicationList}" rendered="true"
     cellspacing="0" rules="all" styleClass="resultsTable" rows="10">
         <f:facet name="footer">
     <hx:panelBox styleClass="panelBox" id="box1">
        <hx:pagerWeb styleClass="pagerWeb" id="web1" />
     </hx:panelBox>
         </f:facet>Your help is greatly appreciated.

Hi,
I have a dataTable in one of my JSF pages with pagination in it.
I have Search functionality which works fine.
But when I click on next page in the Datatable the search returns nothing.
<h:dataTable id="ctrAdDt1" value="" var="applist" value="#{myBean.applicationList}" rendered="true"
     cellspacing="0" rules="all" styleClass="resultsTable" rows="10">
         <f:facet name="footer">
     <hx:panelBox styleClass="panelBox" id="box1">
        <hx:pagerWeb styleClass="pagerWeb" id="web1" />
     </hx:panelBox>
         </f:facet>Your help is greatly appreciated.

Similar Messages

  • Error Message...Searching for movie data in file .....PNG"

    When I try to open some Quicktime movies that were made from PNG frame sequences I get that error meesage everytime and it begins the search for the datat frame by frame. I have all the PNG files in the same folder as the movie thinking that would help but still get the message. Got any ideas? Please?

    As Jim says, this is a render file. However, simply rendering it won't fix this. What is causing this error is a QT reference movie in the project. When you export a QT movie, and make don't make it self contained, it is a reference movie that references media files and render files. When a render file is deleted (FCP does this automatically when the render file is no longer needed) then the refrerence movie can no longer function... one file it references is gone. Simply re-rendering won't fix it, because it is referencing that SPECIFIC render file.
    You need to find and delete the QT Reference movie from your project.
    Shane

  • A MVC datatable with dropdown filtering per column search with pagination example?

    Hello All,
    Just starting out a big project with MVC 3 and I've been searching for a while for any step by step example of creatintg a dynamic/ajax datatable that has real time filtering of the result set via dropdowns for mvc?  Is there a ready made solution already
    available for the MVC framework?
    Thanks,

    Hello,
    Thank you for your post.
    Glad to see this issue has been resolved and thank you for sharing your solutions & experience here. It will be very beneficial for other community members who have similar questions.
    Your issue is out of support range of VS General Question forum which mainly discusses
    WPF & SL designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System
    and Visual Studio Editor.
    If you have issues about ASP.NET MVC app in the future, I suggest that you can consult your issue on ASP.NET forum:
    http://forums.asp.net/
     for better solution and support.
    Best regards,
    Amanda Zhu [MSFT]
    MSDN Community Support | Feedback to us
    Develop and promote your apps in Windows Store
    Please remember to mark the replies as answers if they help and unmark them if they provide no help.

  • Refresh dataTable for Search function

    Hi,
    I have a page that contains a dataTable and search function for the dataTable. Basically once i clicked into that page it will display the current day records for me. At the below of the dataTable, it have a search function. So once i click the search button with my search criteria, how i refresh my dataTable to display the records?
    My dataTable already bind with the current day
    <h:dataTable id="outbound" value="#{Outbound.current}" var="sms" bgcolor="#F1F1F1" border="1" cellpadding="0" cellspacing="0" first="0" rows="10" width="100%" columnClasses="outcol1,outcol2,outcol3">
                                        <h:column>
                                            <f:facet name="header">
                                                <h:outputText value="Date-In" />
                                            </f:facet>
                                             <h:outputText value="#{sms.datein}" /> 
                                        </h:column>
                                        <h:column>
                                            <f:facet name="header">
                                                <h:outputText value="SMS Date" />
                                            </f:facet>
                                             <h:outputText value="#{sms.smsdate}" /> 
                                        </h:column>
                                        <h:column>
                                            <f:facet name="header">
                                                <h:outputText value="Del Date" />
                                            </f:facet>
                                             <h:outputText value="#{sms.dndate}" /> 
                                        </h:column>
                                        <h:column>
    </h:dataTable>So how to refresh the dataTable? Unless I do a rebind where I have one dataTable is for current day and another one is for search?
    Thanks.

    adrianclw wrote:
    Yup. I would like to re-render my dataTable after i clicked Search button. So the dataTable will display my search result.
    So existing dataTable unable to do it? Currently I'm using Apache Tomahawk for my dataTable.
    If you want to re-render the datatable without submitting the page, you will have to use Ajax. If you can allow submitting of page, then just change(refresh) the list in the backing bean that you have value-bound to the h:datatable in jsp.
    Another thing, I'm not sure i'm doing it correct or not. Now my dataTable is bind with the getCurrentDay function. So can i re-render it? Will it re-render and getting the same output since it already tied with current day function.
    See the above comment.

  • Search for all user messages doesnot work now ?

    Hello SDNer's,
    I often search my own questions and posts entering the keywords in Search for all user messages. After our forum has been revamped this functionality seems not be working as it used to. When I enter the keywords and Enter it throws me results from Expert Forums instead showing results just from my ID/Username.
    Have anyone noticed this ?
    Please comment Mods.
    Happy New Year to all SDNer's !!!

    User search and monitoring was all disabled due to Privacy issues.

  • Search help doesnot work

    HI
    I have the infoobject 0City_1 which is using 0City40 as the reference characteristic.This infoobject is
    getting values from the transactional datasource.When I press F4 for the city it doesnot display any
    values.Even SID talbe of the city doesnot contain any values.
    Could please suggest the steps to resolve it.
    Regards

    Hi
    This is acting as a attribute in an InfoObject which is acting as an Datatarget. However when check the
    data in the datatarget i can see the values for the city. However when I press F4 no values are displayed
    Its not an attribute only..Its a navigational attribute.
    Regards
    Edited by: Bi power on Mar 27, 2009 9:52 AM
    Edited by: Bi power on Mar 27, 2009 11:01 AM
    Edited by: Bi power on Mar 27, 2009 11:05 AM

  • Addressbar search doesnot work

    hello
    when i type a word in addressbar and press enter firefox tries opening it as a domain instead of searching it in search engine such as google.

    Hello,
    The Reset Firefox feature can fix many issues by restoring Firefox to its factory default state while saving your essential information.
    Note: ''This will cause you to lose any Extensions, Open websites, and some Preferences.''
    To Reset Firefox do the following:
    #Go to Firefox > Help > Troubleshooting Information.
    #Click the "Reset Firefox" button.
    #Firefox will close and reset. After Firefox is done, it will show a window with the information that is imported. Click Finish.
    #Firefox will open with all factory defaults applied.
    Further information can be found in the [[Reset Firefox – easily fix most problems]] article.
    Did this fix your problems? Please report back to us!
    Thank you.

  • I want to extend a region LOV based  Region - SupplierLovRN,  VO - ReqSupplierVO  to show Address field. Currently the rendered property in the region is set to false. The Query in the VO returns column Address but when searched from applications doesnot

    I want to extend a region LOV based  Region - SupplierLovRN,  VO 

    User, tell us your jdev version, please!
    Please take your time to rephrase your question. It's hard to understand what you really try to do. The better you describe the use case the better is the help we can give.
    Timo

  • How to delete entries from search help for a field

    hi guys
    how r u all doing.
    i have some questions for u.
    1. How can i delete some entries(from a list of many) from search help of a field with out (writing)going to a program.
    2.in PA10 (Personnel File),when i try to display data for a pernr,i am getting an error saying that infotype 122 doesnot exist.
    3.Again in Pa20,when i try to display data for a custom infotype,it leads me to short dump saying that load program does not exist.
    any help in this regard,wud be appreciated.
    thanks

    Follow this
    What to do before selling or giving away your iPhone, iPad, or iPod touch - Apple Support

  • Last Result from Fulltext SQL Query Search Not Showing

    I am creating a custom search results page for MOSS 2007 (using inline .aspx code - don't ask) that uses Fulltext SQL Queries.  I get the results in a ResultTable (see code below) and then use a DataTable to write code to display it (I could have used
    a DataGrid, I know).
    The problem is that the last result is not showing. So, if it reports that there are 5 results, only 4 will show. I have verified that all 5 results do exist (using a slightly broadened query). If it reports 1 result, none exist in the DataTable that loads
    the result data from the ResultTable.
    FullTextSqlQuery query = new FullTextSqlQuery(site);
    query.ResultTypes = ResultType.RelevantResults;
    query.QueryText = qry;
    query.RowLimit = 50;
    query.StartRow = iPage;
    try
    ResultTableCollection results = query.Execute();
    ResultTable resultTable = results[ResultType.RelevantResults];
    DataTable table = new DataTable();
    table.Load(resultTable, LoadOption.OverwriteChanges);
    int n = resultTable.TotalRows;
    The variable "qry" is a valid SQL Query with the relevant clauses.
    I am using a foreach loop to go through "table" (a DataTable), and so I do not think that I have a "one-off error".
    Any suggestions would be most welcome.

    So in results you have all items but when you are loading it into table (type DataTable) you are loosing one last record.
    1) First you check what data you are getting in resultTable - as you are specifying RelevantResult
    2) Check last index of data in ResultTable collection and try to find out the last index ResultTable, or try to find last index of data in result table
    DataTable.Load method accepts parm of type IDataReader and IDatareader, there are cases it looses records if not read properly..check below links
    http://stackoverflow.com/questions/8396656/why-does-my-idatareader-lose-a-row
    http://msdn.microsoft.com/en-us/library/system.data.datatable.load(v=vs.110).aspx
    <hr> Mark ANSWER if this reply resolves your query, If helpful then VOTE HELPFUL <br/> <b><a href="http://insqlserver.com">Everything about SQL Server | Experience inside SQL Server </a></b>-<a href="http://insqlserver.com">Mohammad
    Nizamuddin </a>

  • Data Search In SQL Database

    Hi, i want user to type a string in textbox, and i will search, if textbox.text exists in my SQL database table or not. Below is the code i'm using :---------------
     string txtname = (txtEmpName.Text).Trim();
     sQuery = "select * from tbUser where UserName='_username'";
     sQuery = sQuery.Replace("_username", txtname);
     SqlConnection objConnection = new SqlConnection(source);
     objDataAdapter = new SqlDataAdapter(sQuery,objConnection);
    // DataTable dtTable = new DataTable();
     if (objConnection.State  == ConnectionState.Closed)
     objConnection.Open();
     objDataSet = new DataSet();
     objDataAdapter.Fill(objDataSet);
    // objDataAdapter.Fill(dtTable);
    or i want to search if "txtname" exists in "tbUser" table.
    Thanks & Regards.
    Manish S. Anand

    This is a very poor coding, Unfortunately not fit anywhere :-(
    This code is a security risk (sql injection)!
    He should use SqlCommand class with parameters!
    but yet if i understand the problem he is facing, then the problem is in the SQL part of the code and not the Dot.net :-) therefor it is fit to this forum. Basically the code should work, but as i understand from him his problem is in the
    result set come back from the query filter. If so:
    * the problem is that he use:
    where UserName='_username'
    instead of:
    where UserName='%_username%'
    and he do ask about the search problem :-)
    [Personal Site] [Blog] [Facebook]

  • How to add multiple datatable into a report

    Hello!
    I have a little issue. I'm creatring a report with one dataset containing multiple datatables
    lets call them datatable1 and datatable2.
    I have a separate program that's going to collect the data I need, and then export the report into a pdf file.
    During runtime my other program collects the data into it's own datatable1 and datatable2 (simular names). And then sent to the program binding the information together This is achieved using the following code. Example1
      private void SetDataTables(ReportDocument rpt, ref System.Collections.Specialized.NameValueCollection nmCheckAllTablesSet)
                Tables tbls = rpt.Database.Tables;  //The tables from the report is collected
                foreach (DataTable table in dataTable) //The tables retrieved from other program is looped throught
                    foreach (Table tbl in tbls) //For each table that exists in the report
                        if (table.TableName == tbl.Name) //If the table from the report is a match with the one from the program
                            tbl.SetDataSource(table); //If matched the table is combined using the SetDataSource
                            nmCheckAllTablesSet.Set(table.TableName, "true"); //Used later to check if all tables it bound.
    The code works fine if I remove one of the datatables, this have to be done in both the report and the calling program. When I use multiple datatable with setdatasource the pdf is created but no data is added. I have debugged the code to see if the data somehow gets lost on the way but no, the data gets transfered to the report but is somehow not bound.
    Example2:
    CrystalReport contaning Crtable1 and Crtable2.
    CallingProgram containging Cptable1 and Cptable2.
    1. CallingProgram fills the tables with data.
    2. Then sends the data to the report.
    3. The tables from the Report is collected and a SetDataSource is attempted.
    CrTable1.SetDataSource(CpTable1)
    CrTable2.SetDataSource(CpTable2)
    4.The report is exported to PDF.

    Hi,
    It seems that you are having issue with Crystal reports .Net SDK's.
    Post your question in Crystal Reports .NET SDK forum.
    That forum is monitored by qualified technicians and you will get a faster response there. Also, all .NET SDK queries remain in one place and thus can be easily searched in one place.
    Thank you for your understanding,
    Regards,
    Amit

  • Problem with h:dataTable and binding attribute

    I am new to JSF and I have a problem using the binding attribute of h:dataTable.
    I can successfully use the value attribute to display rows of data fetched from an Oracle database into h:dataTable, but I do know how to bind a h:dataTable to a server object which I would use to update the changes made in the h:dataTable.
    Can some body show me an example how to do so ?
    Thanks in advance.

    I'm not sure whether i understand your problem,
    It doesnot need using the binding attribute If you wanna updating the value of each rows in the datatable.
    below is a sample that updating each rows of a datatable
    jsp file
    <h:dataTable value="#[sampleBean.data}" var="row">
        <h:column><h:inputText value="#{row.col1}"/></h:column>
    </h:dataTable>
    <h:commandButton value="update" action="#{sampleBean.update}"/>BackingBean:
    SampleBean.java
    public class Samplebean{
      private SampleRow[] rows[];
      public SampleRow[] getData{
              return rows;
      public String update(){
          for(int i=0; i<rows.length; i++){
             rows.update();
    return "success";
    SampleRow.java
    public class SampleRow{
      private String col1;
      public String getCol1(){
        return col1;
      public void setCol1(String col1){
        this.col1 = col1;
      public void update(){
         //write your code to save one row data to db/file here

  • Search and replace strings in a file while ignoring substrings

    Hi:
    I have a java program that searches and replaces strings in a file. It makes a new copy of the file, searches for a string in the copy, replaces the string and renames the new copy to the original file, thereafter deleting the copy.
    Now searching for "abcd", for eg works fine, but searching for "Topabcd" and replacing it doesnot work because there is a match for "abcd" in a different search scenario. How can I modify the code such that if "abcd" is already searched and replaced then it should not be searched for again or rather search for "abcd" as entire string and not if its a substring of another string.
    In the below code output, all instances of "abcd" and the ones of "Topabcd" are replaced by ABCDEFG and TopABCDEF respectively, whereas according to the desired output, "abcd" should be replaced by ABCDEFG and "Topabcd" should be replaced by REPLACEMEFIRST.
    try
              String find_productstring = "abcd";
              String replacement_productstring = "ABCDEFG";
              compsXml = new FileReader(compsLoc);
              compsConfigFile = new BufferedReader(compsXml);
              File compsFile =new File("file.xml");
              File compsNewFile =new File("file1.xml");
              BufferedWriter out =new BufferedWriter(new FileWriter("file1.xml"));
              while ((compsLine = compsConfigFile.readLine()) != null)
                    new_compsLine =compsLine.replaceFirst(find_productstring, replacement_productstring);
                    out.write(new_compsLine);
                    out.write("\n");
                out.close();
                compsConfigFile.close();
                compsFile.delete();
                compsNewFile.renameTo(compsFile);
            catch (IOException e)
            //since "Topabcd" contains "abcd", which is the search above and hence the string "Topabcd" is not replaced correctly
             try
                   String find_producttopstring = "Topabcd";
                   String replacement_producttopstring = "REPLACEMEFIRST";
                   compsXml = new FileReader(compsLoc);
                   compsConfigFile = new BufferedReader(compsXml);
                   File compsFile =new File("file.xml");
                   File compsNewFile =new File("file1.xml");
                   BufferedWriter out =new BufferedWriter(new FileWriter("file1.xml"));
                   while ((compsLine = compsConfigFile.readLine()) != null)
                         new_compsLine =compsLine.replaceFirst(find_producttopstring, replacement_producttopstring);
                         out.write(new_compsLine);
                         out.write("\n");
                     out.close();
                     compsConfigFile.close();
                     compsFile.delete();
                     compsNewFile.renameTo(compsFile);
                 catch (IOException e)
            }Thanks a lot!

    Hi:
    I have a java program that searches and replaces
    strings in a file. It makes a new copy of the file,
    searches for a string in the copy, replaces the
    string and renames the new copy to the original file,
    thereafter deleting the copy.
    Now searching for "abcd", for eg works fine, but
    searching for "Topabcd" and replacing it doesnot work
    because there is a match for "abcd" in a different
    search scenario. How can I modify the code such that
    if "abcd" is already searched and replaced then it
    should not be searched for again or rather search for
    "abcd" as entire string and not if its a substring of
    another string.
    In the below code output, all instances of "abcd" and
    the ones of "Topabcd" are replaced by ABCDEFG and
    TopABCDEF respectively, whereas according to the
    desired output, "abcd" should be replaced by ABCDEFG
    and "Topabcd" should be replaced by REPLACEMEFIRST.
    try
    String find_productstring = "abcd";
    String replacement_productstring = "ABCDEFG";
    compsXml = new FileReader(compsLoc);
    compsConfigFile = new
    BufferedReader(compsXml);
    File compsFile =new File("file.xml");
    File compsNewFile =new File("file1.xml");
    BufferedWriter out =new BufferedWriter(new
    FileWriter("file1.xml"));
    while ((compsLine =
    compsConfigFile.readLine()) != null)
    new_compsLine
    =compsLine.replaceFirst(find_productstring,
    replacement_productstring);
    out.write(new_compsLine);
    out.write("\n");
    out.close();
    compsConfigFile.close();
    compsFile.delete();
    compsNewFile.renameTo(compsFile);
    catch (IOException e)
    //since "Topabcd" contains "abcd", which is
    the search above and hence the string "Topabcd" is
    not replaced correctly
    try
                   String find_producttopstring = "Topabcd";
    String replacement_producttopstring =
    topstring = "REPLACEMEFIRST";
                   compsXml = new FileReader(compsLoc);
    compsConfigFile = new
    gFile = new BufferedReader(compsXml);
                   File compsFile =new File("file.xml");
                   File compsNewFile =new File("file1.xml");
    BufferedWriter out =new BufferedWriter(new
    dWriter(new FileWriter("file1.xml"));
    while ((compsLine =
    compsLine = compsConfigFile.readLine()) != null)
    new_compsLine
    new_compsLine
    =compsLine.replaceFirst(find_producttopstring,
    replacement_producttopstring);
    out.write(new_compsLine);
    out.write("\n");
    out.close();
    compsConfigFile.close();
    compsFile.delete();
    compsNewFile.renameTo(compsFile);
                 catch (IOException e)
    Thanks a lot!I tried the matches(...) method but it doesnt seem to work.
    while ((compsLine = compsConfigFile.readLine()) != null)
    if(compsLine.matches(find_productstring))
         System.out.println("Exact match is found for abcd");
         new_compsLine =compsLine.replaceFirst(find_productstring, replacement_productstring);
    out.write(new_compsLine);
    out.write("\n");
         else
         System.out.println("Exact match is not found for abcd");
         out.write(compsLine);
         out.write("\n");

  • IPhone says searching for service after ios 7.1.1 update! HELP!

    I updated my iPhone 5c to the iOS 7.1.1 last night and didn't think I would have any problems. I went to bed and woke up this morning with my phone in the top left corner saying "Searching..." and the the wifi symbol.
    I went to check my setting to see if my data was off, but when I went into the settings app and clicked the tab labed "Celluar" the app crashed and took me back to the home screen. It does this everytime I try and go into that tab! So, I have no idea what it going on with my phone! I can't make calls, send texts through my phone number (I can still send iMessages when connected to wifi), the screen glitches and moves when I go into apps, the battery life is now terrible and drains really fast. Everything about my phone was perfectly fine until I updated it to the iOS 7.1.1, so I believe something must have went wrong when it was updating.
    Overall these are my main problems:
    -iPhone is "Searching" for phone service (which means I have no service so no calls or texts can be sent or recieved)
    -Cellular tab in settings crashes
    -Battery drains over 2x faster than normal
    -Screen seems to glitch or move when I open apps

    Hi SamSam1103,
    If you are having multiple issues with your iPhone after a recent update, your best course of action may be to back up your content to iTunes, restore the phone to factory settings, then test to see if the issues persist in its default config before bringing back your content from the backup. You may find the following articles helpful:
    iOS: Back up and restore your iOS device with iCloud or iTunes
    http://support.apple.com/kb/HT1766
    Apple Support: Use iTunes to restore your iOS device to factory settings
    http://support.apple.com/kb/ht1414
    Regards,
    - Brenden

Maybe you are looking for

  • Sybase Unwired Platform - Error in creating a Blackberry Application

    Hi Experts, I am working in the development of Blackberry application using Sybase Unwired Platform and SAP as the backend data source. As a part of this I had created a Remote enabled function module in SAP which returns an internal table as the out

  • Debugging XSL

    I am attempting to migrate an existing application to Oracle XML parser v2 from LotusXSL. There seems to be some incompatibilities which may or may not be real. But I can't tell where the problems are. All I get are exceptions with stack traces deep

  • My iPod touch 5 suddenly quit working and it won't charge.

    My 5th Generation iPod touch suddenly quit working. I try to charge it and nothing happens.

  • HT1414 IPhone 4s Typing by itself

    my Iphone 4S is typing by itself and opening apps and changing pages. I restored it 3 times and it didn't work,even i restored it as a new phone.

  • Forms Service generated pdf null data

    I'm using the Visual Studio project from the livecycle blog (http://blogs.adobe.com/livecycle/2008/01/invoke_livecycle_with_visual_b.html) to merge the sample purchase order (PO.pdf) with xml data. lcFormsResult.outputContent.remoteURL comes back wit