DynaForm and composite components

Community Driven Extensions Project
User avatar
Oleg
Expert Member
Posts: 3803
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

15 Aug 2012, 21:14

Yes, you should escape : character.

Does it not work? @(#mainForm\:whatever) or @(#mainForm\\:whatever) or even @(#mainForm\\\\:whatever). Don't know :-) We will have an utility function for selector escaping quite soon. It will work as follows

Code: Select all

@(pe:escapeSelector('#mainForm:whatever'))
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

tdtappe
Posts: 29
Joined: 12 Sep 2011, 09:08

16 Aug 2012, 08:16

Yeaaahhhh - that's it. I had to use four backslashes!
Thanks a lot!!!

As for the escape function - is the next release already scheduled?
Using
Primefaces 6.2.14
Extensions 6.2.10
Mojarra 2.2.13
Wildfly 13.0.0.Final

tdtappe
Posts: 29
Joined: 12 Sep 2011, 09:08

16 Aug 2012, 10:42

For the time being I built myself a simple jsf function for escaping colons in selectors.
But this way I have to use a syntax like:

Code: Select all

@(#{td:escapeSelector('#mainForm:whatever')})
Just out of curiosity - will the pe:escapeSelector function be implemented differently so that it works without #{...}?
Using
Primefaces 6.2.14
Extensions 6.2.10
Mojarra 2.2.13
Wildfly 13.0.0.Final

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

16 Aug 2012, 10:52

pe:escapeSelector is an EL function, it will work with #{...} of course.

The next release is in the moddle of September (after my vacation; we have some open task yet).
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 0 guests