You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@myfaces.apache.org by robinhoo <ro...@gmail.com> on 2005/11/08 16:12:51 UTC
HTML And JSF Component Mixing
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
Re: HTML And JSF Component Mixing
Posted by Grant Smith <wo...@gmail.com>.
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 <ro...@gmail.com> 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
--
Grant Smith