pe:keyfilter

Community Driven Extensions Project
Post Reply
arcturus
Posts: 19
Joined: 26 Mar 2014, 16:29

31 Mar 2014, 21:02

i don't know why keyfilter doesnt work with me
im trying to run the showcase example
here's my code :

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
		xmlns:f="http://java.sun.com/jsf/core"
		xmlns:h="http://java.sun.com/jsf/html"
		xmlns:p="http://primefaces.org/ui"
		xmlns:pe="http://primefaces.org/ui/extensions"
		>
<f:view>  

<h:head> 
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
<title>Insert title here</title>
</h:head>
<h:body>

<h:panelGrid columns="1" columnClasses="formColumn">  
    <h:outputText value="KeyFilter with mask on a p:inputText"/>  
    <p:inputText id="text1" required="true" style="margin-bottom: 10px;"/>  
    
    <h:outputText value="KeyFilter with regEx on a h:inputText"/>  
    <h:inputText id="text2" style="margin-bottom: 10px;">  
        <pe:keyFilter regEx="/[ABC]/i"/>  
    </h:inputText>  
  
</h:panelGrid>  
  
<pe:keyFilter for="text1" mask="num"/>   

</h:body>
</f:view>
</html>
i can still wrting random characters , its seems like there's no filter ... any idea ??

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

31 Mar 2014, 21:14

You append it to the standard h:inputText. I think you can only use PrimeFaces p:inputText. Simple try.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

31 Mar 2014, 21:15

Sorry, it should work with h:inputText too. Do any other PF Extensions components work for you?
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

arcturus
Posts: 19
Joined: 26 Mar 2014, 16:29

31 Mar 2014, 21:23

yes, fluidgrid works fine
ps: im using myfaces 2.1 tomcat 7, primefaces 4.0, primefaces ext 1.2.1

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

03 Apr 2014, 10:08

No ideas. For me, pe:keyfilter works also fine. I hadn't any problems with it. Do you have any JS errors in the JS console?
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

arcturus
Posts: 19
Joined: 26 Mar 2014, 16:29

07 Apr 2014, 15:00

Yes i have this js error :
TypeError: b.browser is undefined
Any solution

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

07 Apr 2014, 21:21

Strange, it seems from jQuery. pe:keyFilter worked well and works with PrimeFaces 5.0-SNAPSHOT too.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

arcturus
Posts: 19
Joined: 26 Mar 2014, 16:29

08 Apr 2014, 00:14

:( dont tell me , for me its works fine with PF 3.5 + PF Ext 0.6.3
what wrong with it ?
can u please show me any examp that works fine with u ?

User avatar
Oleg
Expert Member
Posts: 3805
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

08 Apr 2014, 23:43

can u please show me any examp that works fine with u ?
In the showcase.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

Post Reply

Return to “Extensions”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 30 guests