On 11/8/05, Sloan, Noah M <[EMAIL PROTECTED]> wrote:
Can f:verbatim tags contain incomplete HTML elements? 


Yes.
 

 That's not valid XML.

Correct. Exactly why <f:verbatim> is such a hot topic. Hopefully JSF 1.2 resolves this.
 
But if they can't, what good are they for his problem? He's trying to put components inside a table.


A better approach would be to nest the components inside an <h:panelGrid>, and avoid <f:verbatim> altogether.


________________________________

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="">                        </td>
                    </tr>
                    </table>
                <p/>
                </f:verbatim>

        thanx in advance
        --
        Ali abd el aziz ali
        SoftWare Developer, OpenCraft




--
Grant Smith





--
Grant Smith

Reply via email to