page is frozen with primefaces ext

Community Driven Extensions Project
Post Reply
quintenjiang
Posts: 28
Joined: 25 Jan 2012, 21:00

24 Feb 2012, 16:53

Hi,

I am using KeyFilter like:

<p:inputText id="price" value="#{productTpBean.product.price}" required="true" llabel="price">
<pe:keyFilter mask="money" />
</p:inputText>


It work well in the normal page, but if this page is dynamically included like:

<ui:include src="#{controller.mainArea}" />

Then this page display errors on javaScript , and at the same time disable functions inside of page, if I refresh this page, then everything is working normally.

Can anyone figure out what happened for me?

Thanks

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

24 Feb 2012, 17:01

i think it's because:
the only pe component you include, it with dynamic includes. Right?

So, include the primefaces-extensions.js manually in your page:
<h:outputScript library="primefaces-extensions" name="primefaces-extensions.js" />
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

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

24 Feb 2012, 17:04

Hi,

As I said this is the same limitation as in PrimeFaces. If you have no PrimeFaces Extensions components in the main page, dynamic includes will not work. As workaround you have to include primefaces-extensions.js in the man page (somewhere in h:head).

Code: Select all

<h:outputScript library="primefaces-extensions" name="primefaces-extensions.js"/>
This should work. Can you try this please and report here?
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

24 Feb 2012, 17:06

Hey guys,

We're not on the google groups more. :-) Use

Code: Select all

 tag please.
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 8 guests