Skip to Main Content

Java Development Tools

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

#{af:format()} parameter limitation

1178689May 22 2014 — edited May 22 2014

Dear All,

I need your help. I want to render a long HTML string from a resource bundle, which requires 8 parameters.

If I use <h:outputFormat> than I can pass all the 8 parameters, however this component doesn't render HTML string.

So, my next alternative is <af:outputFormatted> with af:format(), af:format2(), af:format3(), af:format4() which accept 1, 2, 3, 4 parameters respectively, however none of them accepts 8 parameters. So, I split the HTML string into two pieces and used two <af:outputFormatted> components (each passing 4 arguments) to render the HTML string.

<af:outputFormatted id="of1" value="#{af:format4(p0,p1,p2,p3,p4)"/>


I don't want to split the HTML string and want to use only one <af:outputFormatted> component. How can I achieve this?


Thanks in advance.

Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Jun 19 2014
Added on May 22 2014
5 comments
270 views