I believe you need to make currentMessage a persistent page property.
(Well, that's what it was called in Tap3 anyway.)  CurrentMessage has a
value when the page is first drawn, but the DirectLink needs the object at
submit (rewind) time. The error message is saying the source of "id", which
is currentMessage, is null.



----- Original Message ----- 
From: "pickerel" <[EMAIL PROTECTED]>
To: <[email protected]>
Sent: Sunday, October 30, 2005 10:45 PM
Subject: Strange ListEdit


> messageList is a ListEdit component, blow is ok:
>        <form jwcid="@Form" listener="listener:updateMessage">
>            <span jwcid="messageList">
>                 <span jwcid="@Insert" value="ognl:currentMessage.id"/>
>                 <input type="checkbox" jwcid="[EMAIL PROTECTED]"
> selected="ognl:immediateMessages.deleted"/></td>
>                </span><br/>
> </span>
>                <input type="submit" value="del"/>
>        </form>
>
>  but when i add a directlink to the id, i always get a error when do
submit:
>        <form jwcid="@Form" listener="listener:updateMessage">
>            <span jwcid="messageList">
>                <a jwcid="@DirectLink" listener="listener:doView"
> parameters="ognl:currentMessage.id">
>                 <span jwcid="@Insert" value="ognl:currentMessage.id"/></a>
>
>           <input type="checkbox" jwcid="[EMAIL PROTECTED]"
> selected="ognl:immediateMessages.deleted"/></td>
>                </span><br/>
> </span>
>                <input type="submit" value="del"/>
>        </form>
>
> the error is :source is null for getProperty(null, "id").
>
>
> ---------------------------------------------------------------------
> 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