I don’t think that will work… If you are trying to do that, you will get the value of the outputText in your HTML code which is sent to the client…

But please tell me if I am wrong..

 

Dominik

 


From: CD [mailto:[EMAIL PROTECTED]
Sent: Tuesday, September 12, 2006 18:12
To: MyFaces Discussion
Subject: Re: Problem with <jsp:include/>

 

Perhaps this is another solution as well (kinda ugly but maybe it will work)

 

<h:outputText escape="false" value="<f:subview id=\"#{subviewIDBinding}\"><jsp:include page=\"#{pageIncludeBinding}\"></f:subview>"/>

 

Any thoughts?



 

On 9/12/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:

On 9/12/06, Jeff Bischoff <[EMAIL PROTECTED]> wrote:
> You know, I think I tried something like this initially. Ran into some
> sort of problem where it wouldn't let me make the id attribute dynamic.
> I believe MyFaces actually threw an exception stating such, when I tried
> to view the page.

Well, the trick is that id="#{something}" is illegal -- this executes
at render time.   However, id="${something}" should work -- this one
will run at page compile time, I think.

As long as you're not changing the id once the page has been built,
I'd think this could work.  You might also be able to change the id at
pre-renderResponse without breaking something.

 

Reply via email to