Also, you might be able to replace your table with a panelGrid, which
could make life easier.  For "Client:",  you might consider using an
h:outputLabel instead of text.

                        <h:outputLabel for="client">
                                <h:outputText value="Client:"/>
                        </h:outputLabel>
                        <h:outputText id="client" 
value="#{ClientCtlr.curClient.client}" />

Whether or not to include the : in the label is a judgement call, but
the label will be used in messages  instead of the outputText id if
you specify it.

On 11/23/05, albartell <[EMAIL PROTECTED]> wrote:
>
> I thought I saw this was fixed in the latest version of MyFaces but I must
> have been reading something else. . .
>
> Is there a way to make raw HTML be displayed (or not displayed) based on an
> encompassing JSF tag's rendered value? Below is some sample code of what I
> am trying to do without using a ton of verbatim tags.
>
> <x:div rendered="#{ClientCtlr.curClient.clientid!=null}">
>  <table border="0" cellspacing="0" cellpadding="2">
>   <tr>
>    <td>Client:</td>
>    <td>
>     <h:outputText value="#{ClientCtlr.curClient.client}" />
>    </td>
>   </tr>
>   <tr>
>    <td>Contact:</td>
>    <td>
>     <h:outputText value="#{ClientCtlr.curClient.contact}" />
>    </td>
>   </tr>
>
> ... many more rows of client information omitted ...
>
>  </table>
> </x:div>
>
> I am led to believe I cannot do this without the verbatim tag because of the
> below post, but I wanted to make sure.
> http://www.mail-archive.com/[email protected]/msg11682.html
>
> From the looks of it the JSF spec is more the problem than the lack of a
> MyFaces tag, would that be true?  This makes it incredibly hard to sell JSF
> as a viable solution to web designers!
>
> Aaron Bartell
>
>

Reply via email to