f:verbatim tags just treat their content as text. So yes they can
contain incomplete HTML elements. Remember, the input isn't XML. It
isn't even HTML, it's JSP which is a weird syntax where all sorts of
things are possible. Well, there's the xml variant of JSP which is nicer
I hear, but I presume Ali's using standard JSP.
Ali, because f:verbatim contents are just treated as text you can't just
wrap JSF tags in f:verbatim; they will not be executed. Try something
like this:
<f:verbatim>
some text
<table>
<tr>
etc
</f:verbatim
<h:outputText .../>
<f:verbatim>
</tr>
etc
</f:verbatim
Yes it's ugly. The alternative is to use something like Facelets. The
next version of JSF/JSP is going to fix at least some problems in this area.
Regards,
Simon
Sloan, Noah M wrote:
Can f:verbatim tags contain incomplete HTML elements? That's not valid XML.
But if they can't, what good are they for his problem? He's trying to put components inside a table.
________________________________
From: Grant Smith [mailto:[EMAIL PROTECTED]
Sent: Tue 08-Nov-05 10:14 AM
To: MyFaces Discussion; [EMAIL PROTECTED]
Subject: Re: HTML And JSF Component Mixing
You're enclosing your JSF components in the <f:verbatim> tags. Try to have multiple
<f: verbatim> tags sothat this does not occur.
On 11/8/05, robinhoo <[EMAIL PROTECTED]> wrote:
I'm using jsf components inside html table and i want commandbutton to
make action when it was clicked and this didn't happen
her is my code
<h:form>
<f:verbatim>
<table width="100%" id="filterTable">
<tr class="contacts_header" >
<td width="20%"><h:selectBooleanCheckbox id="nameCheckbox" />Name contains</td>
<td width="10%"><h:selectBooleanCheckbox id="statusCheckbox"
/>Status</td>
<td width="10%">Actions</td>
</tr>
<tr>
<td><h:inputText value="" /></td>
<td>
<h:selectOneMenu id="statusOption" tabindex="2"
value="#{filterBean.status}">
<f:selectItems
value="#{filterBean.statuses}"/>
</h:selectOneMenu>
</td>
<td>
<h:commandButton title ="Apply Filter" styleClass="contrack_button" value="Apply Filter" action="#{filterBean.showData}"/>
</td>
</tr>
</table>
<p/>
</f:verbatim>
thanx in advance
--
Ali abd el aziz ali
SoftWare Developer, OpenCraft