Concatenating strings within EL expression defined in an attribute of a facelets tag?

String concatenation in EL is only possible by just inlining in the expression. The operator is in EL exclusively a sum operator. Further and are invalid characters in XML attributes, so you have to escape them (and instruct h:outputText to not escape them once again by escape="false ).

String concatenation in EL is only possible by just inlining in the expression. The + operator is in EL exclusively a sum operator. Further, are invalid characters in XML attributes, so you have to escape them (and instruct to not escape them once again by escape="false"): Alternatively, you can also use to alias the expression.

I had this idea in mind but I saw in another answer by you where you had talked about the performance issues associated with rendered attribute(1 ms for each rendered) If I implement this using your proposed solution that would add up atleast 50 more rendered attributes in my page. Thus 50ms delay..!? – Marcos Sep 12 at 12:55 1 For pure output components that's really negligible.

Anyway, I added an alternative using ui:param. With your JavaScript approach, you're only moving the CPU time from server to client side. – BalusC Sep 12 at 15:01 yes, javascript approach doesn't benefit in terms of performance but I just wanted to know(thinking a bit in JavaScript direction), is there any harm from this inline javascript usage.

, though I like your solution using ui:param – Marcos Sep 12 at 16:01.

This is the only thing I can come up with. Putting in a value attribute will always throw errors in JSF, so you'll have to use display:block.

Correction: "will always throw errors in XML". – BalusC Sep 12 at 12:33 Or you could add xmlns="w3.org/1999/xhtml" and write – Foumpie Sep 12 at 13:43.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions