Repeater demo question: how to filter by name?

Hello,
I was looking at the repeater demo in the JSF beta distribution for some help with a problem I'm having.
For example, how would one modify the demo so that #{RepeaterBean.customers} only returns those customers who have a specific name?
My thought:
1) add a new property in RepeaterBean called "customerName".
2) add the following above the data_table in the repeater.jsp:
<h:input_text value="#{RepeaterBean.customerName}"/>
3) Add the appropriate logic in the "RepeaterBean.customers" method to only add those customers to the list whose name is equal to "RepeaterBean.customerName".
Unfortunately, this idea doesn't work. The "data_table" gets at the value of "RepeaterBean.customers" before it sets the value of the "RepeaterBean.customerName". In other words, when "RepeaterBean.customers" is called, it has no idea what the value of "RepeaterBean.customerName" is because it hasn't been set by JSF yet.
The above is a very simple example, and obviously not very useful, but it illustrates a particular problem: data_table inspects its value before other values from the form are set, and thus the data_table's value cannot be based on other form data.
Any ideas on work-arounds or solutions!?
Thanks,
Ryan

The approach you suggest is failing in the beta due to a bug in UIData, where it is too aggressive about caching the list of customers. This has been corrected for the final release.
One thing you might experiment with is having the getCustomers() method return a javax.faces.model.DataModel instead of a List. (You might even find the existing ListDataModel implementation useful for this.) By providing your own DataModel, it may be possible to update the underlying data directly, and therefore not be impacted by the caching.
Craig

Similar Messages

  • AWM Newbie Question: How to filter data loaded into cubes/dimensions?

    Hi,
    I am trying to filter the amount of data loaded into my dimensions in AWM (e.g., I only want to load like 1-2 years worth of data for development purposes). I can't seem to find a place in AWM where you can specify a WHERE clause...is there something else I must do to filter data?
    Thanks

    Hi there,
    Which release of Oracle OLAP are you using? 10g? 11g?
    You can use database views to filter your dimension and cube data and then map these in AWM
    Thanks,
    Stuart Bunby
    OLAP Blog: http://oracleOLAP.blogspot.com
    OLAP Wiki: http://wiki.oracle.com/page/Oracle+OLAP+Option
    OLAP on OTN: http://www.oracle.com/technology/products/bi/olap/index.html
    DW on OTN : http://www.oracle.com/technology/products/bi/db/11g/index.html

  • Hallo,my name is Adrian and i forgot my security questions,how do i find out the answers or how do i reset them? Thank You

    hallo,my name is Adrian and i forgot my security questions,how do i find out the answers or how do i reset them? Thank You

    Alternatives for Help Resetting Security Questions and Rescue Mail
         1. Apple ID- All about Apple ID security questions.
         2. Rescue email address and how to reset Apple ID security questions
         3. Apple ID- Contacting Apple for help with Apple ID account security.
         4. Fill out and submit this form. Select the topic, Account Security.
         5.  Call Apple Customer Service: Contacting Apple for support in your
              country and ask to speak to Account Security.
    How to Manage your Apple ID: Manage My Apple ID

  • Email question: I set my Full Name in Preferences/Accounts/Account Information.  Why does my name default to a partial version of my name on incoming/outgoing mail?  How can I correct this?

    Email question: I set my Full Name in Preferences/Accounts/Account Information.  Why does my name default to a partial version of my name on incoming/outgoing mail?  How can I correct this?

    Lurup wrote:
    I apologize for my ignorance, but what do you mean by 'everything'? The computer name, e-mail accounts, icloud accounts etc?
    My work computer (this mac) i use with my private icloud account so I have access to my private calendars etc. My husband's airbook is also connected to that icloud (since I only have 1 icloud account) and so is our shared ipad. Is that where the problem is? Do I need to change everything on those devises into my name too? Thanks again for you time and help!
    So you are sharing the account. Very bad idea.
    Get your husband his own account and stop sharing yours, they are free.

  • How to filter certificate templates in Certificate Authority snap-in with the correct values

    How to filter certificate templates in Certificate Authority snap-in with the correct values
    I have a 2012 R2 server running Microsoft Certificate Authority snap-in.
    I want to do a filter on a specific Certificate Template which i know exists in the 'Issued Certificates' folder.
    All the documentation i can find seems to suggest i copy the certificate name and use this in the View Filter.
    1). I add the 'Certificate Template' option into the Field drop-down.
    2). I leave the Operation as the '=' symbol
    3). I paste in just the name of the template in question. for example: 'my computers'
    The search results always come back blank 'There are no items to show in this view.' even when i know there are many instances of this template. I've tried on a win 2008 server and same issue.
    Is there a correct value to enter for the Certificate Template name?
    Can this be done easier using certutil commands?
    When i run the certutil tool i can confirm i have several issued templates. Certutil -catemplates -v > c:\mytemplate_log.csv
    Anybody know what i'm doing wrong?
    I seem to be getting nowhere with this one.

    > But its important you are using the template name, not the display name
    this is incorrect. OIDs are mapped to *display name*, not common name (it is true for all templates except Machine template). That is, in order to translate template name to a corresponding OID, you need to use certificate template's display name. And, IIRC,
    template name in the filter can be used only for V1 templates. For V2 and higher, OID must be used.
    My weblog: en-us.sysadmins.lv
    PowerShell PKI Module: pspki.codeplex.com
    PowerShell Cmdlet Help Editor pscmdlethelpeditor.codeplex.com
    Check out new: SSL Certificate Verifier
    Check out new:
    PowerShell FCIV tool.

  • 2 questions about authorization filter...

    Hi guys,
    i need your help to solve my question..
    i'm developing a jsf application and i've created an authorization
    filter...
    My filter must checking for each page access if a registered user is
    stored in the session,if not redirect to login page. I've a bit
    experience on servlet and filter and i've solved this question with
    this filter.
    import java.io.IOException;
    import javax.servlet.*;
    import javax.servlet.http.*;
    public class AuthorizationFilter implements Filter {
             * @uml.property name="config"
             * @uml.associationEnd
            FilterConfig config = null;
             * @uml.property name="servletContext"
             * @uml.associationEnd
            ServletContext servletContext = null;
            public AuthorizationFilter() {
            public void init(FilterConfig filterConfig) throws ServletException {
                    config = filterConfig;
                    servletContext = config.getServletContext();
            public void doFilter(ServletRequest request, ServletResponse response,
                            FilterChain chain) throws IOException, ServletException {
                    Utils.log(servletContext, "Inside the filter");
                    HttpServletRequest httpRequest = (HttpServletRequest) request;
                    HttpServletResponse httpResponse = (HttpServletResponse) response;
                    HttpSession session = httpRequest.getSession();
                    String requestPath = httpRequest.getPathInfo();
                    Visit visit = (Visit) session.getAttribute("visit");
                    if (visit == null) {
                            System.out.println("Visit Nullo");
                            session.setAttribute("originalTreeId", httpRequest
                                            .getPathInfo());
                            Utils.log(servletContext, "redirecting to "
                                            + httpRequest.getContextPath() + "/faces/Login.jsp");
                            httpResponse.sendRedirect(httpRequest.getContextPath()
                                            + "/index.jsp");
                    else {
                            chain.doFilter(request, response);
                    Utils.log(servletContext, "Exiting the filter");
            public void destroy() {
    } in my authentication bean,after user has logged in i've
    loggedIn=true;
    User newUser = new User(loginName, password,teamName, role);
    Visit visit = new Visit();
    visit.setUser(newUser);
    visit.setAuthenticationBean(this);
    visit.setLoggedIn(loggedIn);
    setVisit(visit);
    getApplication().createValueBinding("#{sessionScope.visit}").setValue(faces�Context,visit); to store values into visit object.
    and this is my logout function
    FacesContext facesContext = getFacesContext();
                    Utils.log(facesContext, "Executing AuthenticationBean.logout()");
                    HttpSession session = (HttpSession) facesContext.getExternalContext()
                                    .getSession(false);
                    session.removeAttribute("sessionScope.visit");
                    if (session != null) {
                            session.invalidate();
                    } My 2 questions are:
    1) how can i redirect to login page a user that tries to log in with
    the same data of a user stored in the session?
    2) how can i handling browser closing?I need a listener?
    Please help me,i'm trying to learn about it and i need your help.
    Thanks

    hi,
    1. use the copy - paste functions in the drop down menu.
    2. same menu, save setting as........
    DR9.

  • How get all table name from database

    hi master
    sir
    how get all table name from database

    The big question is 'why'.
    Selecting from view 'dba_tables' will indeed give the list of all tables in the database, but that includes the dictionary tables and the internal tables, and many others that are probably not of interet to a person who needs to ask this question. Besides, the dba_tables view requires access to a DBA account.
    There are several other views: "user_tables" will list all the tables in this user's schema; and "all_tables" will list all the tables this user can access in some way.
    The above do not, of course, include any information about synonyms, sequences, views, indexes and so on.
    The correct answer and the meaningful answer may be two different things.

  • How to show employee names in descending order but 3rd row is fixed and always top on the table ?

    how to show employee names in descending order but 3rd row is fixed and always top on the table ?
    for example employee names is A,B,C, D, E
    and output is     C,E,D,B,A

    Since you are posting in the design forum, the short answer is - you don't.  Rows in a table have no inherent order that you can rely on and the "position" of rows is a visual characteristic that should be implemented by the application that displays
    this information or by the query that is used to generate the resultset.  
    So the next question is how one accomplishes this particular order within a select statement.  That is a tsql question which, for future reference, is best posted to the tsql forum.  In addition, many of the questions or issues that you will face
    have been discussed in the forums - often many, many times.  The first thing you should do when faced with an issue is to simply search the forums and leverage the the knowledge that has already been discussed.  In doing so you are quite likely to
    see suggestions or related issues that you should consider in your search for a solution.  
    Now, to answer the question - you need to formulate a order by clause that forces the rows to be sorted in the manner you desire.  Effectively you have 2 levels of sorting.  The first level divides your rows into 2 groups.  Group 1 consists
    of rows where name = E and Group 2 is everything else.  Following that you then need to sort the rows in each group by name in descending order.  Something like:  
    order by case name when E then 1 else 2 end, name desc

  • How to pass column name as a   values from one page  to another

    hi
    i have created a report(pivot) from a table
    SQL> SELECT * FROM T;
    C1  C2          C3 D                SEQ
    A   AA           2                    1
    A   AB           3                    2
    A   AC           2                    3
    B   AB           5                    4
    B   AC           6                    5
    SQL> SELECT C1
      2  ,NVL(MAX(CASE WHEN C2='AA' THEN C3 END),'') AA
      3  ,NVL(MAX(CASE WHEN C2='AB' THEN C3 END),'') AB
      4  ,NVL(MAX(CASE WHEN C2='AC' THEN C3 END),'') AC
      5  ,SUM(C3) FROM T GROUP BY C1;
    C1          AA         AB         AC    SUM(C3)
    A            2          3          2          7
    B                       5          6         11
    SQL>
    my requirement in Apex is like this(reverse)
    eg-
    when i click on cell values '2' then,it should return
    C1  C2          C3 D                SEQ
    A   AA           2                    1
    {quote}how to pass column name as a  values from one page to another
    for example i have to pass 'c2' as a value to next page{quote}for report pivot you can reffer below link
    Report
    Amu

    thanks for your reply
    i 'm doing what exactly you mention here .
    my problem here is
    i have 15 columns
    i am executing a query based on the values of the column(column name)  in the target page
    1)here i am passing(all) the column values to the next page-but  i want to pass only one column values(column name)
    when i click on any cell of that  column
    OR
    2)i can pass all column name to target page -there(in the target page) i can filter out
    i think option 1 would good if you filter out the unwanted columns
    Regards
    Amul

  • How to use MONTH NAME in where condition in date column?

    Hi dudes,
    this is the table.
    sql>desc ACMINUTESPDFTEST;
    Name Null? Type
    ACDATE DATE
    TYPES VARCHAR2(10)
    here i have tried the following 2 queries,but i could not get the correct result
    select types,seqno,acdate from ACMINUTESPDFTEST where acdate like to_date('NOV','MON');
    or
    select types,seqno,acdate from ACMINUTESPDFTEST where acdate = to_date('NOV','MON');
    (for both the query the output is same)
    TYPES ACDATE
    PINK 01-NOV-10
    but the table having following data:
    TYPES ACDATE
    PINK 14-NOV-10
    WHITE 15-NOV-10
    PINK 01-NOV-10
    Any suggestion why i could not get correct result.

    bharathit wrote:
    Thanks for toon and divya...it solved my problem and my question how will you select between two months..
    select types,acdate from ACMINUTESPDFTEST where to_char(acdate,'MON') >= 'SEP' AND to_char(acdate,'MON') <= 'OCT';
    and i got
    no rows selected
    Edited by: bharathit on Nov 2, 2010 10:37 PMIf you're interested in finding dates in a range of months regardless of the year then try this:
    select ...
    from   ...
    where  to_number(to_char(date_column,'MM')) Between 9 And 10;You could also do something like:
    select ...
    from   ...
    where  to_number(to_char(date_column,'MM')) In (1,4,7,10);If you are interested in dates in a range of months in a particular year however, use something like this:
    select ...
    from   ...
    where  date_column >= date '2010-09-01' and
           date_column < date '2010-11-01' and

  • How to Filter Email or Direct Email to a Specific Folder

    Hi
    I've just bought a Blackberry Z10 but I cannot find how to filter my email. I was able to do this on my older Blackberry Edge.
    What I'm trying to do is filter emails by subject, sender, or other parameters. Alternatively, I would like to be able to direct email from specific senders into a seperate folder. As I said, I could do this on my BB Edge but I've searched the web to no avail.
    Any help would be much appreciated.
    Thanks George

    Hi George,
    Thanks for your question on email filtering.
    What type of email account are you using - ActiveSync, Gmail, Hotmail POP/IMAP etc?
    What type of email are you trying to filter - junk email or emails from a specific contact? 
    Thanks!
    -HMthePirate
    Come follow your BlackBerry Technical Team on twitter! @BlackBerryHelp
    Be sure to click Kudos! for those who have helped you.Click Solution? for posts that have solved your issue(s)!

  • How to set dynamic name of the mail attachment according to source file ?

    Hi,gurus:
    Our scenario is like below:
    Sending files from an FTP server to another FTP server without using the integraiton repositary,and the file name is not changed .Now, we want to also send the file to some with by mail adapter.The scenario  now works by using two business services in receiver determination.But the name of the attachment is "untitled.xml".We know how to set the file name staticly,but how to set the name dynamicly according to the source file name ?
    I have checked miachel's blog "XI: Dynamic name in the mail attachment - pseudo "variable substitution"(/people/michal.krawczyk2/blog/2006/02/23/xi-dynamic-name-in-the-mail-attachment--pseudo-variable-substitution),but how can I get the source file name?
    And another question:Must we restart the adapter or j2ee engine to make the user defined module work?

    Hi,
    >>>but how can I get the source file name?
    form dynamicconfiguration (ASMA)
    >>>And another question:Must we restart the adapter or j2ee engine to make the user defined module work?
    no need for a restart
    Regards,
    Michal Krawczyk

  • SharePoint 2010 list view - How to filter on a multiline text box field - the view filter does not allow me to select it.

    Hi there,
    Does someone know in SharePoint 2010 list view - How to filter on a multiline text box field - the view filter does not allow me to select it.
    Thanks,

    Hi,
    Per my knowledge,
    it is by design that the data type multiple lines of text can only use “contains” and “begins with” operators.
    You can also filter the list view using SharePoint Designer,
    Open your list AllItem.aspx page in SPD ->click “Filter” > in “Field Name” select your multipe line of text field, in “Comparison” will displayed four choices.
    Best Regards,
    Lisa Chen
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • How to filter rows where multiple columns meet criteria, ignoring rows where only some columns meet criteria

    Hi All,
    Question: How do I filter rows out of a query where multiple columns are equal to a single question mark character?
    Background: I'm using SQL 2008 R2.  Furthermore, the part of my brain that helps me create less-than-simple queries hasn't been working for the last 4 days, apparently, and now I need help.
    We have about 4,000 rows in a table.  This data set was generated from an exported report, and many of the rows in the detail table were not actual data rows but were simply "header" rows.  For those table rows, most of the columns have
    a single question mark as the value.
    Some of the detail rows have one or more question mark values, too, so it's important that these rows don't get filtered out.
    When I include criteria like "WHERE col1 <> '?' AND col2 <> '?' AND col3 <> '?' AND col4 <> '?'", all rows with a question mark value for even a single one of those columns get filtered out.  How do I filter out rows
    where all columns 1-4 contain a question mark value?
    Thanks for your help,
    Eric

    I just tried to create to create a scenario for you. Please see ig you're looking for something like this.
    Create table test_Question_mark
    RecordID INT identity(1,1),
    Col1 varchar(10),
    Col2 varchar(10),
    Col3 varchar(10),
    Col4 varchar(10),
    insert into test_Question_mark (Col1, Col2, Col3, col4) values ('?','?','?','?')
    insert into test_Question_mark (Col1, Col2, Col3, col4) values ('?','??','?','?')
    insert into test_Question_mark (Col1, Col2, Col3, col4) values ('?','??','??','?')
    insert into test_Question_mark (Col1, Col2, Col3, col4) values ('??','??','??','??')
    insert into test_Question_mark (Col1, Col2, Col3, col4) values ('?','?','?','?')
    insert into test_Question_mark (Col1, Col2, Col3, col4) values ('??','test ??','??','??')
    insert into test_Question_mark (Col1, Col2, Col3, col4) values ('??','test ?','??','??')
    --drop table test_Questio_mark
    select * from test_Question_mark
    select * from test_Question_mark 
    WHERE 
    (CHARINDEX('?', Col1,1) > 0 AND CHARINDEX('?', Col1, CHARINDEX('?', Col1,1)+1) = 0) AND 
    (CHARINDEX('?', Col2) > 0 AND CHARINDEX('?', Col2, CHARINDEX('?', Col2,1)+1) = 0) AND 
    (CHARINDEX('?', Col3,1) > 0 AND CHARINDEX('?', Col3, CHARINDEX('?', Col3,1)+1) = 0) AND 
    (CHARINDEX('?', Col4,1) > 0 AND CHARINDEX('?', Col4, CHARINDEX('?', Col4,1)+1) = 0) 
    --drop table test_Questio_mark
    I hope above solution will help.
    Thanks!
    Ashish.

  • How to filter Key Figures - not using the GUIDs

    An example How to filter Key Figures may look like this:
    http://XXX.com:8000/sap/bw/BEx?sap-language=DE&bsplanguage=DE&CMD=LDOC&TEMPLATE_ID=XXX&FILTER_IOBJNM=41F68RV4ZB5VYSARODYU70CAQ&FILTER_VALUE=41F68SAI18DB01DO023IR49QA
    The GUIDs consume the space in the URl. Is there a way to work with an alias.
    To use the technical name of a Key Figure defined in the Query does not work.

    Hi Cherie,
    This is exactly the type of problem that I'm currently trying to figure out. I'm trying to following your solution but I'm not clear on how you actually achieved this in you last note. I want to dynamically select actuals/budget column fields based on what period I enter. I thought about creating 12 separate RKF fields for actuals and 12 separate RKF fields for the budget reforecast and outputting these all and then doing some VBA to hide the fields not required based on which period was selected... how is your variable ZFYAPER7 defined and calculated?
    Cheers

Maybe you are looking for

  • IDoc Configuration for Production Order Creation and Change

    Hi All, Please Help me out for IDoc Configuration for Production Order Creation and Change I have found the IDoc for Production Order Messgae Type : LOIPRO and IDoc type : LOIPRO01 Actually my requirment is to send the (LOIPRO01 )IDoc from SAP R/3 to

  • Use one value of multi value parameter in dataset query

    I have a parameter @Period that is populated with posting periods from our financial system (e.g. 201301, 201302, 201303, etc.).  It is set as a multi value parameter to allow users to choose multiple posting periods.  This parameter is used in my ma

  • Jpegs flicker when exported to .mov

    Media & project properties field order is set to "none" but 2 jpegs still flicker on the exported QT file. What to do?

  • Lightroom Bulk Renaming Question

    Occasionally I need to rename files after import. I see how to access the bulk file rename from the Library | Rename menu after selecting the photos. However it's not clear to me how to do the type of rename I need. Here's an example. Current Filenam

  • Help! My iMac keeps crashing since Snow Leopard and RAM upgrade...

    ...tried starting up from disc...new user...reset PRAM...still crashing...is it bad RAM?  Is my Mac too old for the 10.6.8 upgrade?   Model Identifier:          iMac4,1   Processor Name:          Intel Core Duo   Processor Speed:          2 GHz   Num