Hi...
Currently I'm having an issue using RequestContext.addCallbackParam method, if the object added is including an String with '&' character (ex "m&m") the args variable returned to client is "undefined", any idea how could I solve that? I'm using PF 3.4
thanks in advance
Problem with RequestContext.addCallbackParam
Unfortunately at the moment I cannot try a new version, this is an application builded with PF 3.4, I will have lot of compilation issues if try this with other releases like 4 or 5... do you know if it could be solved in a newer version?kukeltje wrote:Did you try a newer version?
- andyba
- Expert Member
- Posts: 2473
- Joined: 31 Mar 2011, 16:27
- Location: Steinfeld, near Bremen/Osnabrück, DE
- Contact:
You may need to URL Encode the parameter values.ybendek wrote:Hi...
Currently I'm having an issue using RequestContext.addCallbackParam method, if the object added is including an String with '&' character (ex "m&m") the args variable returned to client is "undefined", any idea how could I solve that? I'm using PF 3.4
thanks in advance
PF 4.x (Elite versions), PF 5, Pf 5.1, PF 6.0
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now
Glassfish 4.1, Mojarra 2.x, Java 8, Payara 4.1.1.
If you haven't read the forum rules read them now
-
- Posts: 6
- Joined: 20 Nov 2014, 06:28
@ ybendek : Did you get any solution? I facing the same issue.. How do i solve it? URL encoder didnot work for me..
http://stackoverflow.com/questions/2722 ... estcontext
http://stackoverflow.com/questions/2722 ... estcontext
Eva Mariam.
JSF 2.1.29. Primefaces 5.2. Tomcat 7.
JSF 2.1.29. Primefaces 5.2. Tomcat 7.
Well finally after lot of test and even now with PF 5.2 this issue persist/ The only way I found to solved was to encode using some utility for example org.apache.commons.lang3.StringEscapeUtils. with this util and using the escapeXml10() it change '&' to '&' and it works properly.Eva Mariam wrote:@ ybendek : Did you get any solution? I facing the same issue.. How do i solve it? URL encoder didnot work for me..
http://stackoverflow.com/questions/2722 ... estcontext
-
- Information
-
Who is online
Users browsing this forum: No registered users and 48 guests