Page 2 of 2

Re: DynaForm and composite components

Posted: 15 Aug 2012, 21:14
by Oleg
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'))

Re: DynaForm and composite components

Posted: 16 Aug 2012, 08:16
by tdtappe
Yeaaahhhh - that's it. I had to use four backslashes!
Thanks a lot!!!

As for the escape function - is the next release already scheduled?

Re: DynaForm and composite components

Posted: 16 Aug 2012, 10:42
by tdtappe
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 #{...}?

Re: DynaForm and composite components

Posted: 16 Aug 2012, 10:52
by Oleg
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).