We have the technical requirement to stay with JSPs. :( But there must be a way to put JSF bean values into the HTML-code of a JSP, or?
On 5/19/06, Frank Felix Debatin <[EMAIL PROTECTED]> wrote:
> What are doing the other folks? How do you access managed > bean property in pure HTML? Using facelets https://facelets.dev.java.net/. It offers you many nice options for connecting pure HTML with JSF. Frank Felix > > > > -----Original Message----- > > > From: Chrisi [mailto:[EMAIL PROTECTED] > > > Sent: 19 May 2006 11:18 > > > To: [email protected] > > > Subject: Beginner: html-attributes and bean-values > > > > > > > > > Hello, > > > > > > it's me again with a non magic beginner question;): > > > > > > We've got some html templates from our web-agency. > > > I like to use them in my JSF pages. > > > > > > In the html template I've got for example the following line: > > > > > > <DIV class="navigationActive"> lorum .... </DIV> > > > > > > I need to replace the class-style with a managed bean > property and > > > tried the following: > > > > > > 1.) <DIV class="<h:outputText > value='#{mybean.value}'/>"> lorum .... > > > </DIV> > > > > > > 2.) <DIV class="${mybean.value}""> lorum .... </DIV> > > > > > > Nr 1) doesn't work, because the beans value is not placed between > > > the attributes double quotes. > > > > > > Nr 2) seems not to work on the first JSF request. An > empty String is > > > returned. On following requests this works. > > > > > > What is the correct and easy way to populated JSF bean > values into > > > already existing HTML-Code? > > > > > > Thanks and Greetings > > > Chrisi > > > > > >

