is it properly nested in a form-component? shouldnt you use the-forms 
listener-method instead of the action-binding?
i didnt see an action-binding in the docs 
http://tacos.sourceforge.net/components/AjaxSubmit.html anyway...

-----Ursprüngliche Nachricht-----
Von: Balachandran [mailto:[EMAIL PROTECTED] 
Gesendet: Donnerstag, 1. Februar 2007 12:42
An: users@tapestry.apache.org
Betreff: Rewind problem in floating pane


Hi All,

I have a floating pane component with two text fields and a submit
button.The template looks like,

    <span jwcid="code" class="TextFieldSmall"></span><br>
    <span jwcid="name" class="TextFieldLong"></span><br>
    <span jwcid="listButton"  class="ButtonSmall"></span><br>
     <div id="details" class="details" jwcid="[EMAIL PROTECTED]">
        <table width="392px" class="detailsTable" jwcid="detailsTable"
keyExpression="rowId">
           <tr>
             <td>
               <span jwcid="rowIdColumnValue">
                       <span jwcid="editableRowId"></span>
               </span>
             </td>
           </tr>
         </table>
       </div>

and the page file has the folllowing entries

        <component id="code" type="TextField">
                <binding name="value" value="ognl:code"></binding>
        </component>
        <component id="name" type="TextField">
                <binding name="value" value="ognl:description"></binding>
        </component>
        <component id="listButton" type="tacos:AjaxSubmit">     
                <binding name="Value" value="literal:List"></binding>
                <binding name="action" value="listener:refreshSearch">
                </binding>
                <binding name="updateComponents" 
value="ognl:{'details'}"></binding>
        </component>
               <component id="detailsTable" type="Table">
                <binding name="source" value="ognl:source"></binding>
                                <binding name="columns"
value="literal:rowId,Code,Description"></binding>
                <binding name="value" value="ognl:selectedModel"></binding>
                <binding name="rowsClass" 
value="ognl:beans.evenOdd.next"></binding>
                <binding name="selectedRow" value="ognl:selectedRow"></binding>
                <binding name="pageSize" value="10"></binding>
        </component>

            This component is placed inside a container template and is
hidden initially.when the user clicks a button this pops up and the user
enters some values in the text fields(filter fields) and presses the submit
button.then i ve to show some details in the table.
            The problem is that the values entered by the user is not set on
the fields in the component class.ie its coming as null in the refreshSearch
method in component class.
         
      public void refreshSearch(IRequestCycle cycle){
        System.out.println("on refreshSearch");
        System.out.println(" Filter Code "+ getCode());   //printed as null
        System.out.println(" Filter Description "+ getDescription()); //printed
as null
      }
        
Am i missing something here..please advice..

Thanks in advance,
-- 
View this message in context: 
http://www.nabble.com/Rewind-problem-in-floating-pane-tf3154353.html#a8746826
Sent from the Tapestry - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to