I was able use <t:div> tag

thanks a lot
Mike


dcypher wrote:
> 
> One other solution:
> 
> 
> <h:outputText escape="false" value="<div width=\"{yourBean.width}\">"
> 
> .
> .
> .
> <h:outputText escape="false" value="</div>"
> 
> On 9/12/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
>>
>> If you're using facelets or JSF 1.2, I think you can simply use:
>>
>> <div style="width:#{yourBean.yourWidthHere}%"></div>
>>
>> Otherwise, you could use
>>
>> <f:verbatim>
>> <div style="width:
>> </f:verbatim><h:outputText
>> value="#{yourBean.yourWidthHere}"/><f:verbatim>
>> %"></div>
>> </f:verbatim>
>>
>> You might need to translate the <> symbols into &lt; &gt;
>>
>> There's also t:div which can do this for you:
>>
>> <t:div style="width:#{yourBean.yourWidthHere}%"></t:div>
>>
>> http://myfaces.apache.org/tomahawk/tlddoc/t/div.html
>>
>>
>>
>> On 9/12/06, Mike Shaw <[EMAIL PROTECTED]> wrote:
>> >
>> > Hi,
>> >
>> > I need to add following <div> tag in my jsf page
>> >
>> > <t:dataTable>
>> > <t:column>
>> > <div style="width:59%"></div>
>> > </t:column>
>> > </t:dataTable>
>> >
>> > where div width can have different value coming from backing bean
>> >
>> > Thanks
>> > Mike
>> > --
>> > View this message in context:
>> http://www.nabble.com/how-to-add-dynamic-%3Cdiv%3E-tag-tf2262091.html#a6276458
>> > Sent from the MyFaces - Users forum at Nabble.com.
>> >
>> >
>>
> 
> 

-- 
View this message in context: 
http://www.nabble.com/how-to-add-dynamic-%3Cdiv%3E-tag-tf2262091.html#a6276788
Sent from the MyFaces - Users forum at Nabble.com.

Reply via email to