I think the Tap4 ListEdit doc at

http://jakarta.apache.org/tapestry/tapestry/ComponentReference/ListEdit.html

has not being fully updated - the example there still
uses expression in <binding> :

<binding name="source" expression="listEditMap.keys"/>

In Tap4, 'expression' is replaced by 'value'.
Please check the following for details

http://jakarta.apache.org/tapestry/UsersGuide/spec.html#spec.binding

Shing

--- Erik Husby <[EMAIL PROTECTED]> wrote:

> I am in the process of upgrading from Tapestry 3 to
> Tapestry 4 and am  
> having problems with one of my pages.
> 
> The page in question uses a @ListEdit defined as so
> using the  
> Tapestry 3 DTD:
>      <component id="measurementList"
> type="ListEdit">
>          <binding name="source"
> expression="listEditMap.keys"/>
>          <binding name="value"
> expression="listEditMap.key"/>
>          <binding name="listener"  
> expression="listeners.doSyncMeasurementItem"/>
>      </component>
> 
> The listener is defined as so:
>      public void doSyncMeasurementItem(IRequestCycle
> cycle) {...}
> 
> However at runtime the listener is never being
> called! And no error  
> is being logged that it can't find one. This page
> works fine under  
> Tapestry 3. The result is that when the page tries
> to reference a  
> value that should have set by the listener, a null
> pointer is thrown.
> 
> The documentation for @ListEdit does state that
> @ListEdit is being  
> depreciated but definitely implies that it is
> supported in 4.0. But  
> it also does not state if the listener signature
> should be something  
> else.
> 
> Any pointers on where to look for a solution would
> be appreciated.
> ---
> Erik Husby
> Senior Software Engineer
> Broad Institute of MIT and Harvard
> Rm. 2192, 320 Charles St, Cambridge, MA 02141-2023
> mobile: 781.354.6669, office: 617.258.9227
> email: [EMAIL PROTECTED] AIM: ErikAtBroad
> 
> 


Home page :
  http://uk.geocities.com/matmsh/index.html


                
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

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

Reply via email to